– Insert a new device at the given position. “device_path” must be one of
– renoise.song().instruments.sample_modulation_sets.available_devices.
.
.
renoise.song().instruments.sample_modulation_sets:insert_device_at(device_path, index)
→ [returns new renoise.SampleModulationDevice object]
But in order to inset the device in a specific lane you need to put in an extra int so it becomes:
I just ran into this same problem on R3.2.4 with Win10 x64. I can’t get the insert_device_at() to work for the sample_modulation_sets. This issue is directly related to this:
Did you try to add the extra undocumented lane_index parameter? This was only something missing in the docs. You just need to add a number 1-5 for the following ‘lanes’:
It is related. Thanks for the note! I will try it!
The API does not give access to this index. For example, there is no way to select the Vol, Pan, Pitch, Cut, Res tabs.
Try building a tool that can change these tabs. A slider for example. You will see that you cannot.
Apparently the API is missing some things related to the selection of these tabs and the correct selection of the devices within each chain.
Also, the devices are listed inside each modulation_set in a somewhat messy way. This needs a general overhaul to fix the API.
I think the modulation devices should always be accumulated in this order: Vol → Pan → Pitch → Cut → Res
Note: Each modulation set is limited to 12 devices per target, and has 6 targets to deposit (Vol, Pan Pitch …). From the API, It is necessary to be able to select the target previously to be able to insert.