Skip to content

Instantly share code, notes, and snippets.

@josephwilk josephwilk/melody.rb
Created Nov 26, 2015

Embed
What would you like to do?
live_loop :melody do
with_fx :level, amp: 0.0 do
sync :organ
use_synth :pretty_bell
sample Organic[/kick/,0], amp: 1.0
with_fx :pitch_shift, mix: 1.0, window_size: 0.1, damp_slide: 1.0 do
sample Organic[/loop/,[0,0,0,1]].tick(:perc), beat_stretch: 8
with_fx :reverb, room: 1.0 do |r_fx|
with_fx :distortion, mix: 0.15 do
#s = play scale(:Fs3, :minor_pentatonic).choose, cutoff: 100, env_curv: 3, note_slide: 0.05, decay: 8
s3=nil
s2=nil
with_transpose -24 do
s2 = synth :dsaw, note: scale(:Fs3, :minor_pentatonic).choose, cutoff: 50, decay: 4, detune: 12
s3 = synth :prophet, note: scale(:Fs3, :minor_pentatonic).choose, cutoff: 50, decay: 2
end
32.times{
#control s, note: scale(:Fs3, :minor_pentatonic).choose
control s3, note: scale(:Fs3, :minor_pentatonic).choose
control s2, note: scale(:Fs3, :minor_pentatonic).choose
control r_fx, damp: rand
sleep 0.25
}
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.