Assigning Modulation Sets with API

I’ve been looking through the documentation trying to find if I can to assign a Sample to a Modulation Set, can’t find it though!

I hoped that renoise.song().selected_sample_modulation_set_index would do the trick but that just selects the GUI focus, not the Sample Assignment as far as I can see

Am I missing something or is it not possible via the API?

It’s the property “modulation_set_index” in the sample object.

Example: renoise.song().selected_sample.modulation_set_index

ey niceone joule!

you’re definitely earning that guruh motha fakka status

now if i can just manage to get Duplex to control ADSRs i’ll be able to retire my mouse, happy days…