Skip to content

Instantly share code, notes, and snippets.

@algorev
Created May 19, 2017 14:54
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 algorev/7955b15a304417cb8dcfdb44170a7ef7 to your computer and use it in GitHub Desktop.
Save algorev/7955b15a304417cb8dcfdb44170a7ef7 to your computer and use it in GitHub Desktop.
The final code of a personal algorave session with sonic pi. The result is here: http://www.newgrounds.com/audio/listen/745299
live_loop :bass do
use_synth :prophet
play_pattern_timed [:cs2, :d2, :g2].reverse, 0.5, cutoff: rrand(70, 90)
play_pattern_timed [:cs2, :fs2, :e2].reverse, 0.5, cutoff: rrand(80, 100)
end
live_loop :thing do
sample :bd_haus, cutoff: 90
sleep 0.5
end
live_loop :snare do
sample :drum_snare_soft, cutoff: 100
sleep 1
sample :drum_snare_soft, cutoff: 100
sample :drum_snare_hard, cutoff: 100
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment