I no longer recommend using the posted workaround. Use the "de-threader" instead.
The de-threader is in the Wiki, article name "MIDI and Timers". (Shouldn't this be in the official documentation ?)
My failed workaround is okay for the actual data, but not for the triggers which should be sent further down the code.
Sorry if this thread
has been the cause of confusion / additional trouble.
I faced a similar problem earlier in my code for converting a Bool to an Int
(once again, using the selector instead of simply connecting the bool to an int "solved" it.)
After having done so, there was no need for the workaround that occured later in the code.
But, even with the workaround, I still had issues when using an external MIDI keyboard (but not PC keyboard, strangely)
SM would crash very often when I would connect basic elements deep in the code, trying to see if the data was changing as it should, making analysis very difficult. Still managed to find triggers were not being sent properly when using an external MIDI keyboard.
Inserting a de-threader solved everything. Many thanks to whoever posted that article in the wiki.
SM made me lose my hair