Skip to content

Instantly share code, notes, and snippets.

@richcarl
Created March 14, 2020 18:40
Show Gist options
  • Save richcarl/5527979a4b4539177b894a6e8d5dd13d to your computer and use it in GitHub Desktop.
Save richcarl/5527979a4b4539177b894a6e8d5dd13d to your computer and use it in GitHub Desktop.
Midi out test
live_loop :metronome do
use_real_time
sample :drum_cowbell, beat_stretch: 1, amp: 0.4
sleep 0.5
end
live_loop :midi_out do
use_real_time
mdev = "model_d"
ch = 1
midi (octs :e0, 8).tick, sustain: 0.1, port: mdev, channel: ch
sleep 2.0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment