renoise.song().selected_track.devices gives a list of devices if you do rprint.
 => userdata: 0x0x22c9c674 (TrackDevice object)
 => userdata: 0x0x22c9c6d4 (TrackDevice object)
 => userdata: 0x0x22c9c734 (TrackDevice object)
 => userdata: 0x0x22c9c794 (TrackDevice object)
 => userdata: 0x0x22c9c7f4 (TrackDevice object)
For instance, like this. i see numbers, and then I somehow thought that
local number=renoise.song().selected_track.devices for i=1,number do oprint (renoise.song().selected_track.devices) oprint (renoise.song().selected_track.devices[i].is_active)
but what I end up is an error, because this isn’t how it works. If there’s now _index that can be used to get the numbers out, how do I just extract the number from that output? Like can lua be used to read the output of rprint and extract a number out of the amount of lines output, or…?