@Lindon Haha, allmost exactly as I do it
// ============= SET SAMPLE START MOD LENGTH ===================
inline function onSampleLengthControl(component, value)
{
// Select all samples
local selected = Sampler.createSelection("");
for (s in selected)
s.set(Sampler.SampleStartMod, s.get(Sampler.SampleEnd) * value);
}
SampleLength.setControlCallback(onSampleLengthControl);