Ableton 11 appears to break the functionality of the Task Object
Trevor being Trevor
May 11 2023 | 12:49 am
This is fun one. I wrote some code for a device that uses the Task Object. Everything works as expected when I use my device in Ableton 10. However, in Ableton 11 on both Windows and Mac it appears to stop functioning.
For context, here's the quick breakdown of how the code works...
- The user triggers an initialization function that sets all the global variables to a starting value and then kicks off the desired process function.
- The desired processing function searches for a desired condition to be true within a data set using a loop to process each piece of data. Each iteration increments the necessary global variables.
- When the desired condition is found, the task function is called for a given number of repetitions.
- A flag is set that allows the process function to pause using break or return commands nested in if statements checking for that flag
- The Task function runs. When it reaches it's final repetition, it calls the process function again.
- This repeats until certain global variable conditions are met.
Now after debugging for a while, this what I found. The Task function runs successfully "once". More specifically, it's called to repeat x number of times and on the last repetition it triggers the process function again as expected. However, the second time it's called to repeat, it stops just before the last repetition. It fails to call the process function again and everything grinds to a halt. As far as I can tell, this is not an error on my part because the works just fine on Ableton 10 (Windows and Mac). I've been looking through the release notes and documentation looking for a clue, but I have not had any luck. Hence, once again I am asking for your help. Maybe I should change my name to Trevor being Bernie. Anyway, this forum is full of heroes without capes as far as I can tell, thanks for any insight in advance!