Enable "SampleStartMod" via scripting?
-
@ulrik What's the end goal?
-
@David-Healey I have Midi Processor script that automatically find the Sampler in the chain using "Synth.getIdList("Sampler")", then I would like to enable/disable that samplers "SampleStartMod"
-
@ulrik said in Enable "SampleStartMod" via scripting?:
samplers "SampleStartMod"
Do you mean you have a sample start modulator you want to toggle, or that you want to toggle it for individual samples in the sampler?
-
@David-Healey I just want to be able to toggle this button:

-
@ulrik That's just an edit button, turning it on/off doesn't affect the sample offset value of the individual samples.
Which would be here

-
@David-Healey said in Enable "SampleStartMod" via scripting?:
@ulrik That's just an edit button, turning it on/off doesn't affect the sample offset value of the individual samples.
Which would be here

Aha, so I don't need to set it to enable then, if I want to change the SampleStartMod?
-
@ulrik It's just for editing with the mouse on the waveform, but you can change the value directly in the edit box or through scripting.
-
@David-Healey said in Enable "SampleStartMod" via scripting?:
@ulrik It's just for editing with the mouse on the waveform, but you can change the value directly in the edit box or through scripting.
Yes thank you David!
-
@ulrik If I am following this correctly, I made this mistake recently. Just add a constant modulator to the sampler and enable/disable that. Make sure you do have the SampleStartMod enabled in the sampler though since that information is stored in the samplemap. I had to go back and fix my samplemaps after overlooking this. Luckily a little powershell script saved me here...

-
@HISEnberg Thank you, that information about the sample maps are a bit worrying though, the client has a lot of sample maps to be resaved, or fixed with a script as you say.
-
@ulrik said in Enable "SampleStartMod" via scripting?:
the client has a lot of sample maps to be resaved, or fixed with a script as you say.
What needs to be changed in the sample maps?
-
I believe this information is not saved into the xml unless the SampleStartMod edit button is activated. I'll have to double check to confirm this though.
@ulrik I can give you the script if you want to use it. Admittedly it's like 60% AI though.
