[Solved] Sampler Glide Script Broken
-
Cool, what kind of instrument is it? Synth, sampler, hybrid, something else?
Is there a way to have it so that the glide works without notes having to overlap?
Of course, scripting :p
If it has to stay that way for any reason, is there another workaround to switch modes from mono to poly at all
Yeah the time knob at 0 is the same as turning the effect off. You can script a button to control this or you can edit the script so it stays mono even when at 0.
-
@d-healey This one is a sampler instrument.
My scripting knowledge is still not great but I'll have a go at working it out here so let me know if I'm close or not. I've got my head around the basics now but I'm still not 100% which parts I'd need to change for this...
For a guess at the monophonic thing I'd say that it would be something to do with the oninit callback? Maybe this line below would need the 0.01 removing to fix it?
time.setRange(0, 2000, 0.01);
For the overlapping notes part I'd guess it was the onNoteon callback and it could be something to do with this part? (but I'm not certain)
Synth.addPitchFade(eventId, time.getValue(), lastTuning + Message.getNoteNumber()-lastNote, 0);
-
I don't think either of those changes will do what you want. I don't have time at the moment to look at it but I'll check it out at the weekend.
-
@d-healey No probs mate. Thank you. I'll try a few experiments with it in a separate project in the meantime and see if I can work anything out
-
@SteveRiggs @d-healey Hey guys, was this mono / poly issue ever resolved in this script?