Can I manually trigger a Callback function?
-
@d-healey I'm glad I'm not the only benefiting away from from the mess I caused. Unless you want all buttons off radio groups seem to be fine to use.
-
@Lindon aye! the playing never worked on the button press though. only ever on the preset load. I'll have to revisit the way I fired the note
-
@Lindon this was the way I did it before
Bass.asSampler().loadSampleMap(bassMaps[bassProms.indexOf(control)]); Bass.setLoadingCallback(Synth.playNote(36,127));
and that only seems to fire on preset loading, not on the actual button use
-
@Morphoice You can…
-
Call it by function name (pass in the component as the first argument).
-
If you want the callback after a component value change, call onChanged(). Except if it's during onInit. That won't work.
-
Register the callback for use with a broadcaster. Then, trigger the broadcaster manually.
-