Skip to content

Instantly share code, notes, and snippets.

@acid
Created January 27, 2018 16:20
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 acid/b665dad3a0e659c6fa3adf8e6206613f to your computer and use it in GitHub Desktop.
Save acid/b665dad3a0e659c6fa3adf8e6206613f to your computer and use it in GitHub Desktop.
My first time playing around with SonicPi
use_bpm 120
live_loop :yeah do
with_fx :ring_mod do
with_fx :wobble do
use_synth :tb303
sample :bass_hard_c, attack: 3, release: 2, amp: 4, slope_below: 5, pitch: -12
sleep 2
end
end
end
live_loop :fuck, sync_bpm: :yeah do
use_synth :tb303
with_fx :nrlpf do
sample :drum_snare_soft
sleep 2
sample :drum_snare_hard, pitch: -2
end
end
define :bassdrum do |note1, duration, note2 = note1|
use_synth :sine
with_fx :pitch_shift, amp: 30, pitch: -6 do
with_fx :hpf, cutoff: 100 do
play note1 + 24, amp: 40, release: 0.01
end
with_fx :distortion, distort: 0.1, mix: 0.3 do
with_fx :lpf, cutoff: 26 do
with_fx :hpf, cutoff: 55 do
bass = play note1, amp: 85, release: duration, note_slide: duration
control bass, note: note2
end
end
end
end
sleep duration
end
live_loop :bassdrum_schleife do
bassdrum 36, 1.5
if bools(0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0)[tick]
bassdrum 36, 0.5, 40
bassdrum 38, 1, 10
else
bassdrum 36, 1.5
end
bassdrum 36, 1.0, ring(10, 10, 10, 40)[look]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment