Skip to content

Instantly share code, notes, and snippets.

@beryann
Created April 23, 2024 19:45
Show Gist options
  • Save beryann/f476e8d9e2dfbc56c2779cd8ca252096 to your computer and use it in GitHub Desktop.
Save beryann/f476e8d9e2dfbc56c2779cd8ca252096 to your computer and use it in GitHub Desktop.
Gracieuse mélodie - Graceful melody (Sonic Pi)
live_loop :kick do
sample :bd_haus
sleep 1
end
puts scale(:c4,:major)
play chord_degree(:i, :c4, :major, 4)
progression = (ring, :i, :vi, :ii, :v)
use_bpm 60
live_loop :prog do
use_synth :pluck
play chord_degree(progression.tick, :c4, :major, 3), release: 4, amp: 4, pan: rrand(-1.0, 1.0)
sleep 2
end
live_loop :melody,delay: 8 do
use_synth :pluck
play (knit :c5, 4, :e5, 4, :d5, 4, :e5, 4).tick
sleep 0.25
end
live_loop :bass, delay: 16 do
use_synth :chipbass
play (ring, (knit :c3, 4), (knit :a2, 4), (knit :d3, 4), (knit :g2, 4)).tick
sleep 2
end
live_loop :dense do
with_fx :compressor do
with_fx :ixi_techno,cutoff_max: rrand(10,120) do
density 8 do
use_synth :pluck
play (ring, 60,64,72,84,96).choose, release: rrand(0.1, 2), pan: rrand(-1, 1)
sleep 1
end
end
end
end
live_loop :dense2 do
with_fx :compressor do
with_fx :ixi_techno,cutoff_max: rrand(10,120) do
density 4 do
play (ring, 36, 48, 64,67,76).choose, release: rrand(0.1, 2), pan: rrand(-1, 1), cutoff: rrand(60,120)
sleep 1
end
end
end
end
live_loop :dense3 do
with_fx :compressor do
with_fx :reverb, room: 0.9 do
density 4 do
play chord(:c4, :major7), release: rrand(0.1, 2), pan: rrand(-1, 1), cutoff: rrand(60,120), amp: 0.4
sleep 1
end
end
end
end
live_loop :rythm, delay: 8 do
sample (ring, :loop_safari, :sn_zome).tick, amp: 2
sleep 1
end
@beryann
Copy link
Author

beryann commented Apr 24, 2024

Made with Sonic Pi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment