control the root in the sampler
-
Is it possible to control the root in the sampler module via script?
Looked around but didn’t come across anything.
-
@BWSounds Do you mean set the root note of an individual sample?
-
@d-healey yes, it would be 1 sample in my case.
-
-
@d-healey thank you, i'll look into it!
-
@d-healey
I have this code, but its only going from C-2 - G8... nothing in between.inline function onrootControl(component, value) { for(s in Sampler1.createSelection(".*")) { local R = (s.get(Sampler.Root)); s.set(Sampler.Root, value * R); } }; Content.getComponent("root").setControlCallback(onrootControl);
-
@BWSounds Why are you multiplying the value by the current root note?
-
@d-healey
oh man, im trippin... thanks