Skip to content

Instantly share code, notes, and snippets.

Avatar

Nicolas Dermine nicoder

  • Poland
View GitHub Profile
View 20210121_sonic_pi.rb
use_bpm 180
live_loop :a do
play 60
play 60 - (ring 12, 12, 5, 7).stretch(8).tick
sleep 1
end
live_loop :b do
sync :a
View 20200828_sonic_pi.rb
with_fx :echo do
live_audio :in, amp: 3
end
live_loop :a do
sample :bd_808, amp: 2
sleep 1
end
View 20200414_sonic_pi.rb
live_loop :a do
sample :bd_808
sleep 1
end
live_loop :b do
sync :a
sleep 0.5
sample :bd_ada
end
View 20200413_sonic_pi.rb
live_loop :a do
sample :bass_dnb_f, amp: line(1, 0.5, steps: 8).tick
sleep 1
end
live_loop :b do
sync :a
sleep 0.5
with_fx :echo do
sample :tabla_dhec
View 20200411_sonic_pi.rb
live_loop :a do
with_fx :echo, phase: 0.5 do
with_fx :echo, phase: 0.125, mix: (knit 1, 1, 0, 3).tick do
sample :drum_bass_soft
end
end
sleep 1
end
live_loop :b do
View 20200406_sonic_pi.rb
live_loop :a do
sleep 1
end
live_loop :b do
sync :a
sample :loop_3d_printer
sleep sample_duration :loop_3d_printer
end
View 20200331_sonic_pi.rb
live_loop :a do
sample :drum_heavy_kick
sleep 1
end
live_loop :b do
sync :a
sample :drum_roll if one_in 8
end
View 20200330_sonic_pi.rb
live_loop :a do
sample :drum_cymbal_closed
sleep 1
end
live_loop :b do
sync :a
at [0.5, (ring 0.75, 0.9).tick] do
sample :drum_snare_soft
View 20200329_sonic_pi.rb
live_loop :a do
with_fx :echo, phase: (ring 0.25, 0.125).stretch(2).tick do
sample :drum_bass_hard
end
sleep 1
end
live_loop :b do
sync :a
use_synth :tb303
View 20200327_sonic_pi.rb
live_loop :a do
with_fx :echo do
sample :drum_bass_hard
end
sleep 1
end
live_loop :b do
sync :a
sleep 0.5