Is there a more reliable way to time midi messages than the Ruby sleep method?
I have written some kind of cpu intensive logic to create beats to play but after many iterations you can feel it has slowly lost tiny fractions of tempo. I admit my code it's not optimized, but, shouldn't midi messages be synchronized through Midi Clock (or something like that?) Do you have any ideas how I can do that? Thanks.
Is there a more reliable way to time midi messages than the Ruby sleep method?
I have written some kind of cpu intensive logic to create beats to play but after many iterations you can feel it has slowly lost tiny fractions of tempo. I admit my code it's not optimized, but, shouldn't midi messages be synchronized through Midi Clock (or something like that?) Do you have any ideas how I can do that? Thanks.