What does time mean in Sonic Pi?

Hi @soxsa

I was looking at getting some hardware to act as a primary clock, like a BeatstepPro or similar,

I don’t think that you can make SP listen to some external clock at the current state.

I have made some attempts to actually go the other way round and use SP as primary clock to sync a Fates (a small music machine based on Raspberry Pi and Norns software).

My setup actually works quite well with some lines of code:

use_bpm 60

live_loop :clock do
  midi_start if tick == 0
  4.times do
    midi_clock_beat port: "midi_usb-usb_midi_1"
    sleep 1
  end
end

midi_usb-usb_midi_1 is refering to the 1 port of this little device I am using to connect to usb hosts (my laptop and the Raspberry Pi Fates device).

1 Like