Skip to content

Instantly share code, notes, and snippets.

@rubentr
Created December 4, 2016 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubentr/481718d63d382b5daddc4963f5ca57be to your computer and use it in GitHub Desktop.
Save rubentr/481718d63d382b5daddc4963f5ca57be to your computer and use it in GitHub Desktop.
Sonic Pi song
### ixi_rain
# rubent
use_debug false
#use_bpm 125
master=(ramp *range(0, 1, 0.01))
#master=(ring 0.1)
cutoffs = range(100, 120, 0.5).mirror
live_loop :drum do
#stop
sample :bd_haus, amp: master.tick, cutoff: cutoffs.look
sleep 0.5
end
cutoffs_sna = range(90, 120, 0.5).mirror
live_loop :sna do
stop
sample :sn_dolf, amp: master.tick, rate: 0.8, start: 0.15, finish: 0.35, cutoff: cutoffs_sna.look
sleep 1
end
live_loop :sna_b do
sync :sna
stop
with_fx :reverb, room: 0.7 do
sample :sn_dolf, amp: master.tick, start: 0.15, finish: 0.35, rate: 0.7, cutoff: cutoffs_sna.look
end
sleep 0.25
end
live_loop :noise do
sync :drum
stop
if (spread 3,8) then #* _ _ * _ _ * _
with_fx :slicer, mix: 0.6,phase: 0.125 do
with_synth :pnoise do
play :d3, amp: master.tick, release: 0.1, decay: 0.18, attack: 0.05, cutoff: cutoffs_sna.look
end
end
end
sleep 0.25
end
oh_cutoffs = range(80, 120, 0.5).mirror #cambiar los cutoff 120,130
live_loop :open_cymbal do
stop
sync :drum
with_fx :echo, mix: 0.3, phase: 0.1 do
sample :drum_cymbal_open, start: 0.2, finish: 0.3,
amp: master.tick, cutoff: oh_cutoffs.look
end
sleep 0.5
end
chorh= (chord :f3, :major7).shuffle
panr= (range -1,1, 0.05).mirror
live_loop :fnoise do
stop
sync :drum
with_fx :flanger, mix: 0.4, phase: 0.8 do
with_synth :supersaw do #pnoise #dsaw #pnoise
play chorh.tick(:h), amp: master.tick, decay: 1, cutoff: cutoffs.look,
detune: 0.2, phase: 0.4, pan: panr.look
end
end
sleep 0.5
end
chor= (chord :e3, :major7).shuffle
live_loop :ixi do
stop
sync :drum
with_fx :ixi_techno, cutoff_min: cutoffs.tick,
cutoff_max: cutoffs.look-30, phase: 0.3 do
with_synth :dsaw do
play chor.tick(:c), amp: master.look, detune: 0.2
end
end
sleep 0.25
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment