Skip to content

Instantly share code, notes, and snippets.

@lisabaut
Created April 13, 2018 15:00
Show Gist options
  • Save lisabaut/af653ad4c19a7d88a28936fcf938ef25 to your computer and use it in GitHub Desktop.
Save lisabaut/af653ad4c19a7d88a28936fcf938ef25 to your computer and use it in GitHub Desktop.
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
play 67
sleep 0.5
play 67
sleep 0.25
play 67
sleep 0.5
play 69
sleep 0.5
play 71
sleep 0.5
end
play 72
sleep 1
play 71
sleep 1
play 69
sleep 1
play 71
sleep 1
end
live_loop :main_synth do
use_synth :dsaw
main_melody
end
live_loop :second_synth do
use_synth :prophet
main_melody
end
live_loop :kickdrum, delay: 16 do
sample :drum_heavy_kick, rate: 1
sleep 1
end
live_loop :bass, delay: 16 do
use_synth :tri
with_fx :krush do
#1
play :G1, release: 0.8
sleep 0.5
play :G1, release: 0.8
sleep 2
play :C2
sleep 0.75
play :B1
sleep 0.75
#2
play :G1, release: 0.8
sleep 0.5
play :G1, release: 0.8
sleep 2
play :C2
sleep 0.75
play :B1
sleep 0.75
#3
play :C2, release: 0.8
sleep 0.5
play :C2, release: 0.8
sleep 2
play :F2
sleep 0.75
play :E2
sleep 0.75
#4
play :C2, release: 0.8
sleep 0.5
play :C2, release: 0.8
sleep 2
play :C2, release: 0.8
sleep 0.75
play :C2, release: 0.8
sleep 0.75
end
end
live_loop :snare, delay: 32 do
sleep 1
with_fx :reverb, room: 0.5 do
sample :sn_dolf, amp: 0.5
end
sleep 1
end
@benjmin-r
Copy link

slightly different

use_bpm 125

define :main_melody do
  3.times do
    play 67, release: 0.8
    sleep 1
    
    play_pattern_timed [67, 67, 67, 67, 67, 69, 71], [0.5, 0.25, 0.5, 0.25, 0.5, 0.5, 0.5]
  end
  
  play_pattern [72, 71, 69, 71]
end

live_loop :main_synth do
  use_synth :dsaw
  main_melody
end

live_loop :second_synth do
  use_synth :prophet
  main_melody
end

live_loop :kickdrum, delay: 16 do
  sample :drum_heavy_kick, rate: 1
  sleep 1
end

live_loop :bass, delay: 16 do
  use_synth :tri
  with_fx :krush do
    #1
    play_pattern_timed [:g1, :g1], [0.5, 2], release: 0.8
    play_pattern_timed [:c2, :b1], [0.75, 0.75]
    
    
    #2
    play_pattern_timed [:g1, :g1], [0.5, 2], release: 0.8
    play_pattern_timed [:c2, :b1], [0.75, 0.75]
    
    
    #3
    play_pattern_timed [:c2, :c2], [0.5, 2], release: 0.8
    play_pattern_timed [:f2, :e2], [0.75, 0.75]
    
    
    #4
    play_pattern_timed [:c2] * 4, [0.5, 2, 0.75, 0.75], release: 0.8
  end
end

live_loop :snare, delay: 32 do
  sleep 1
  with_fx :reverb, room: 0.5 do
    sample :sn_dolf, amp: 0.5
  end
  sleep 1
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment