Time travel error ... you can't go backwards in time


I have a patch that is set to use_real_time on all the threads. It’s syncing to a lot of external midi in and generating a lot of midi out. I’m using the midi method to send some fast arpeggios and 32nds.

Every few minutes the patch stops and throws the (now dreaded) “time travel error”. This does not seem to happen when I set use_sched_ahead_time to something generous like a second.

Is this just a matter of the scheduler falling behind and something in the midi system is trying to do work in the past? Or does this suggest some other bug?

Anybody come up against this?


Hi there, which OS are you using?


Hi Sam

I’m using the latest sonic pi on a MacBook Pro with High Sierra. Midi is over usb to an old motu midi express xt.

I’m playing with some smaller patches, and trying to isolate the bug.


Could you try replacing calls to midi with calls to midi_note_on and midi_note_off and see if that also trips the issue. My assumption is that this will fix things.