The source code for this:
use_synth :dsaw
my_scale = scale(:c3, :minor)
define :melody_starting_from do |base_index|
play_pattern_timed my_scale[base_index, 4], 0.25, sustain: 0.25, release: 0.1
play_pattern_timed my_scale[base_index + 2, 2] * 2, 0.2, sustain: 0.2, release: 0.1
end
melody_starting_from 4
melody_starting_from 3
melody_starting_from 2
play_pattern_timed [my_scale[3], my_scale[4], my_scale[2], my_scale[3]], 1, sustain: 0.9, release: 0.2
play my_scale[1], sustain: 1.5
sleep 2
play :c3, sustain: 1, release: 0.5
Leave a Reply