Change VoiceLimit and VoiceAmount with a Button
-
@d-healey but when I use childsynth I get error after error because functions are not found
-
@meto396 Check out the snippet I posted above.
-
@d-healey I did already but this doesn't change my problems as soon as I change the getSampler to ChildSynth the whole code that works doesn't work anymore:
-
@meto396 said in Change VoiceLimit and VoiceAmount with a Button:
the whole code that works doesn't work anymore
That's because those other parts (the line numbers in the error messages) need the Sampler reference, so that's where you use
.asSampler()
-
@d-healey so all of them functions must be look like this?
Sampler1.asSampler().clearSampleMap();
-
@meto396 Correct
You can see in the API browser that function is part of the Sampler class