Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Created July 3, 2020 21:25
Show Gist options
  • Select an option

  • Save manualbashing/020e96c7149875386dbed89950efc21e to your computer and use it in GitHub Desktop.

Select an option

Save manualbashing/020e96c7149875386dbed89950efc21e to your computer and use it in GitHub Desktop.
Nervous Beat #SonicPi
define :whoosh do
use_synth :pulse
play :F, amp: 0.2, release:3, attack:2
play :E, amp: 0.2, release:3, attack:2
sample :ambi_lunar_land, amp: 0.4
end
live_loop :nervous_beep do
with_fx :bitcrusher, phase: 0.5, decay: 8 do
use_synth :saw
play_pattern [:E,:A,:D,:G,:B], amp: 0.2 if one_in(10)
play_pattern_timed [:E,:A,:D,:G,:B], 0.5, amp: 0.2
whoosh if one_in(4)
sleep 0.5
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment