Skip to content

Instantly share code, notes, and snippets.

@nischalshrestha
Last active November 27, 2022 03:45
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 nischalshrestha/22c749b64253bea6cea007e27846c6fa to your computer and use it in GitHub Desktop.
Save nischalshrestha/22c749b64253bea6cea007e27846c6fa to your computer and use it in GitHub Desktop.
Sonic Pi tune
# Infinite Space
with_fx :reverb, room: 1, damp: 1 do
with_fx :tremolo, wave: 1, phase: 0.09 do
level = 3
with_fx :gverb, room: 300, damp: 1, ref_level: 0, release: level + 1 do
live_loop :guit do
with_fx :lpf, cutoff: 0 do
vol = 0.25
with_fx :flanger, feedback: 0, phase: 0.8, depth: 4 do
with_fx :distortion, distort: 0.8, mix: 0.125 do
bass_note = (scale :e1, :major_pentatonic).choose
with_synth :saw do
play (scale :b1, :diatonic).choose, amp: vol, attack: level, release: level
##| play (scale :fs3, :mixolydian).choose, amp: vol, attack: level, release: level
##| play (scale :fs4, :mixolydian).choose, amp: vol - 0.1, attack: level, release: level
##| play (scale :b3, :diatonic).choose, amp: vol, attack: level, release: level
##| play (scale :b4, :diatonic).choose, amp: vol, attack: level, release: level
# bass
##| play bass_note, amp: vol + 0.25, attack: 0.75, release: level
end
with_synth :sine do
##| bass
##| play bass_note, amp: vol, attack: 0.75, release: level
end
sleep level + 1
end
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment