Last active
May 20, 2017 06:20
-
-
Save willbasky/223359c606a437153b3afa7dfc724dc1 to your computer and use it in GitHub Desktop.
Spring night, Sonic Pi code, my first music
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Spring night | |
# | |
# Coded by Vladislav Sabanov | |
live_loop :foo do | |
with_fx :echo do | |
sample :elec_ping | |
end | |
with_fx :reverb do | |
2.times do | |
sample :bass_hit_c, amp: 1 | |
sleep 0.8 | |
end | |
end | |
with_fx :vowel do | |
sample :ambi_glass_hum, amp: 2 | |
end | |
with_fx :flanger, feedback: 0.5 do | |
sample :vinyl_hiss, amp: 2.5 | |
sleep 0.8 | |
end | |
use_synth :sine | |
use_random_seed rrand(1, 100) | |
notes = (scale :e3, :mixolydian, num_octaves: 1) | |
12.times do | |
play notes.choose, release: 1, cutoff: rrand(70, 120) | |
sleep 0.1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment