Skip to content

Instantly share code, notes, and snippets.

@yratof
Created October 30, 2019 08:21
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 yratof/ba72945f2aecb2f29270de9af5ab8911 to your computer and use it in GitHub Desktop.
Save yratof/ba72945f2aecb2f29270de9af5ab8911 to your computer and use it in GitHub Desktop.
Sonic Pi codes
in_thread do
live_loop :harm do
with_fx :bitcrusher, sample: 100, bits: 2, mix: 1, amp: 0.7 do
a = 2.4
use_synth :chipbass
play chord(:b3,:add9).tick, decay: a
sleep a
end
end
end
in_thread do
live_loop :soft do
use_synth :saw
a = 2.4 / 2
with_fx :ixi_techno, phase: a, res: 0.2 do
play chord(:e3,:add9).tick, release: a, decay: a, mod_phase: 0.6
sleep a
end
end
end
in_thread do
live_loop :lofting do
use_synth :saw
a = 2.4
with_fx :ixi_techno, phase: a, res: 0.7 do
play chord(:e1,:add9).tick, release: a, decay: a, mod_phase: 0.6
sleep a
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment