You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/server/ruby/lib/sonicpi/lang/midi.rb
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1415,8 +1415,9 @@ def midi_clock_beat(*args)
1415
1415
The MIDI specification requires 24 clock tick events to be sent per beat. These can either be sent manually using `midi_clock_tick` or all 24 can be scheduled in one go using this fn. `midi_clock_beat` will therefore schedule for 24 clock ticks to be sent linearly spread over duration beats. This fn will automatically take into account the current BPM and any `time_warp`s.
1416
1416
",
1417
1417
examples: [
1418
-
"midi_clock_beat #=> Send 24 clock ticks over a period of 1 beat",
1419
-
"midi_clock_beat 0.5 #=> Send 24 clock ticks over a period of 0.5 beats",
1418
+
"midi_clock_beat #=> Send 24 clock ticks over a period of 1 beat to all connected MIDI devices",
1419
+
"midi_clock_beat 0.5 #=> Send 24 clock ticks over a period of 0.5 beats to all connected MIDI devices",
1420
+
"midi_clock_beat port: \"moog_subphatty\" #=> Send 24 clock ticks over a period of 1 beat to just the MIDI port with name moog_subphatty",
1420
1421
"
1421
1422
live_loop :clock do # Create a live loop which continually sends out MIDI clock
0 commit comments