Created
February 27, 2021 19:03
-
-
Save nischalshrestha/077727c32b357905fe08a6acd3186dcd to your computer and use it in GitHub Desktop.
Night owl midi jam
This file contains hidden or 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
# "night owl" jam | |
# sonic pi version: v3.2.1 | |
with_fx :reverb, room: 1 do | |
live_loop :midi_piano do | |
use_real_time | |
note, velocity = sync "/midi:midi_fighter_64:0:3/note_on" | |
with_fx :flanger, wave: 0, decay: 0, delay: 0, max_delay: 0 do | |
synth :pretty_bell, note: note - 12 | |
synth :pluck, note: note - 12, attack: 0, coef: -0.5, sustain: 0, amp: (velocity / 127.0) | |
synth :pluck, note: note, attack: 0, coef: 0.1, sustain: 0, amp: (velocity / 127.0) | |
synth :pluck, note: note, attack: 0.25, sustain: 0, amp: (velocity / 127.0) | |
end | |
end | |
end | |
bass = (ring :as2, :f2, :g2, :d2, :ds2, :f2) | |
live_loop :bass do | |
with_fx :gverb, room: 60, damp: 0.8, spread: 0.5, release: 20 do | |
with_synth :saw do | |
play bass.choose + 12, attack: 0, sustain: 0, amp: 0.8 | |
play bass.choose - 12, attack: 0, sustain: 0, amp: 0.8 | |
end | |
end | |
sleep 2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment