Why does this work for UI elements but not for samplers?
-
It says the "enableRoundRobin" function is unknown.
It works if I save the reference to the type in a variable though, so why not in an array? -
Also, while we're at it:
What difference does it make referencing a sampler as a ChildSynth or as a type?Started with Hise a few days ago so very new to this!
-
@observantsound you have an array called 'samplers' and you're calling the function with 'sampler'
Misspelling happens à lot, always check it when facing an error -
@observantsound it depends on the functions you want to use. Take a look at the API to see which reference you need
-
@observantsound Try
samplers[i].asSampler().enableRoundRobin(false);
Edit: and fix the typo sampler*
-
Ah yes, indeed a typo. Embarassing!!
Makes sense that some built in functions only work with certain target types.
Thanks!