Anyone please note the combo box will have to have "saveInPreset" switched OFF,
otherwise there's a loop loading the preset as onPresetsControl fires every time a preset is loaded.
Oh by the way, you've helped me countless times during this project, I've relied heavily on posts in this forum and your name comes up a lot in very useful threads. Thank you!
Well I didn't answer the title question but using the original audio file rather than the synthesised buffer to get the number of channels solves the problem I was having.
Is that intentional, maybe there's a more powerful version?
I think all notes off just turns off currently playing notes - the same as sending CC123.
To turn off notes that don't yet exist you'd need to keep an list of such notes and cancel them before they are triggered as you are doing. You could combine this into a function with Engine.allNotesOff()
@VirtualVirgin define an inline function with a g argument, write it and then just pass the function into the setPaintRoutine method call for any panel you want to use it for.
@VirtualVirgin it's Content.getComponent("ScriptLabel1"), you forgot the "Content"
Sorry, I was trying to use the function you provided:
// get the component object
inline function getComponent(componentId)
{
for (c in AllComponents)
if (c.get("id") == componentId)
{
return c;
break;
}
}