Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 409 Bytes

wolfwhistle.md

File metadata and controls

19 lines (18 loc) · 409 Bytes
define :wolfwhistle do |n|
  n=note_info(n).midi_note
  p = play n,sustain: 0.2,release: 0.1
  control p, note: n + 24, note_slide: 0.5
  sleep 0.5
  p = play n,sustain: 0.2,release: 0.1
  control p, note: n + 24, note_slide: 0.4
  sleep 0.2
  p = play n + 24,sustain: 0.12,release: 0.1
  control p, note: n+8, note_slide: 0.4
  sleep 0.1
end

in_thread do
  wolfwhistle(:c5)
end
wolfwhistle(:g5)