Skip to content

Commit e3b2f73

Browse files
committed
Docs - improve examples for midi_clock_beat
1 parent d5d55ad commit e3b2f73

File tree

1 file changed

+3
-2
lines changed
  • app/server/ruby/lib/sonicpi/lang

1 file changed

+3
-2
lines changed

app/server/ruby/lib/sonicpi/lang/midi.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,8 +1415,9 @@ def midi_clock_beat(*args)
14151415
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.
14161416
",
14171417
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",
14201421
"
14211422
live_loop :clock do # Create a live loop which continually sends out MIDI clock
14221423
midi_clock_beat # events at the current BPM

0 commit comments

Comments
 (0)