Skip to content

Instantly share code, notes, and snippets.

@xavriley
Created February 18, 2015 16:37
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 xavriley/e78b4213e992b738ff94 to your computer and use it in GitHub Desktop.
Save xavriley/e78b4213e992b738ff94 to your computer and use it in GitHub Desktop.
Ring mod, bitcrusher, reverb, compression - oh my!
use_bpm 110
live_loop(:dr) do
with_fx :compressor, pre_amp: 10 do
with_fx :reverb, mix: 0.1, room: 1 do
with_fx :ring, freq: scale(:eb4, :minor_pentatonic).choose, mix: 0.4 do
"100100101110".chars.map(&:to_i).each.with_index do |beat, i|
sample :bd_808 if beat == 1
sample :bd_808 if beat != 1 and one_in(12)
with_fx :bitcrusher, bits: 8 do
sample :elec_blip, pan: -> {rrand(0,1)}.call, amp: 5 if [4,13].include? i
end
sleep 0.25
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment