Created
June 8, 2019 02:04
-
-
Save tado/e1c47c8b5222160cd183d3f2e964131a to your computer and use it in GitHub Desktop.
Sonic Piのサンプル その1
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
live_loop :live do | |
with_fx :flanger do | |
base = 0 | |
cf = rrand(60, 120) | |
ch = chord(:C4, '7sus4') | |
rel = choose([0.1, 0.2, 0.4, 0.6]) | |
use_synth :prophet | |
play choose(ch) + base + choose([-12, 0, 12])+12, cutoff: cf, pan: rrand(-1.0, 1.0), release: rel | |
play choose(ch) + base + choose([-12, 0, 12]), cutoff: cf, pan: rrand(-1.0, 1.0), release: rel | |
play choose(ch) + base + choose([-12, 0, 12]), cutoff: cf, pan: rrand(-1.0, 1.0), release: rel | |
play choose(ch) + base + choose([-12, 0, 12])-12, cutoff: cf, pan: 0.0, release: rel | |
sleep 0.125 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment