hi, so i’m making a tool and one of the things the tool does is let you press a “render pattern” button in a dialogue box, which will then create a new instrument named after the selected pattern, then insert into the instrument a render of each track in the pattern that has notes in it.
i’ve hit a wall, however, as i can’t get around this error.
basically, in my render pattern function, I have a for loop that’s going through the tracks by index, checking if they have any notes, and if they do then it calls a function that gets the render process going for that track.
the error happens when it gets to the next track it calls to render. I put a print right before the render function is called, in the for loop. it is basically printing whether or not renoise.song().rendering == true. sure enough, the first time it’s false, then by the time it’s at the next track, it’s true.
so obviously, I need to write something that says, wait until rendering is false, then continue. but I dont think this sort of instruction is intuitive to this scripting environment, I dont think anything natively supports this. please correct me if I’m wrong, and suggest any external library solutions you may have in mind!