Runs well, like getting any module name.
But as module name and module type can and will differ trying to find a way to know what base model type the module actually follows.
If the naming was changed to something meaningless like "www(dot)example-super-download-page(dot)com" in example from some Xi file import (well yes it will be made up from samplers of course) but a lot other modules get renamed and so the only way to find what module type it is, is by parsing the parameters into some array to create a hash and compare it to some collection of hashes for each available module type and its expected parameters.
Guessing i missed something how to find the type or i am far out in the future ^^.
When i can create a new module with..
Code: Select all
int sv_new_module (
int slot,
const char* type,
const char* name,
int x, int y, int z
)
Code: Select all
sv_get_module_name(int slot, int mod_num)
Code: Select all
const char* sv_get_module_type(int slot, int mod_num)
Because this would allow to act accordingly on the constellation of contained modules in a sunvox file.