Skip to content

Instantly share code, notes, and snippets.

with_fx :record, buffer: :foo2 do
8.times do
use_real_time
note, velocity = sync "/midi/usb_keystation_49e/0/1/note_on"
synth :blade, note: note unless velocity == 0
end
end
live_loop :blu do
sleep 5
live_loop :name do
use_real_time
note, velocity = sync "/midi/usb_keystation_49e/0/1/note_on"
if note == 65 && velocity != 0
sample "~/Desktop/1-flute-loop-9.wav"
end
end
live_loop :kick do
sample :bd_haus
sleep 0.5
end
live_loop :snare do
sleep 0.5
sample :sn_dolf
sleep 0.5
end
# Run DMC - Walk This Way (Intro Drums)
use_bpm 109
live_loop :hihat do
sample :drum_cymbal_closed, rate: 1, pan: -1
sleep 0.5
end
live_loop :cymbal do
# inspired from https://www.youtube.com/watch?v=QGLPinGZhfg
live_loop :kick do
sample :drum_heavy_kick
sleep 0.5
end
live_loop :snare, sync: :kick do
sleep 0.5
sample :drum_snare_hard
# Benjamin Workshop
use_bpm 110
live_loop :bubble do
use_synth (ring :tri, :blade).tick
play :e2, attack: 1, cutoff: 100
sleep 0.5
end
@lisabaut
lisabaut / i_just_cant_get_enough.rb
Created April 13, 2018 15:00
Sonic Pi - Depeche Mode "I just can't get enough"
use_bpm 125
define :main_melody do
3.times do
play 67, release: 0.8
sleep 1
play 67
sleep 0.5
play 67
sleep 0.25