Last active
November 7, 2023 00:40
-
-
Save nischalshrestha/064d246bb0ad51c02c8f30bda7e7daaf to your computer and use it in GitHub Desktop.
Shepard Tone
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
# Shepard Tone | |
start_amp, end_amp = 0, 1 | |
with_fx :reverb, room: 0.8, mix: 0.8 do | |
with_fx :lpf, cutoff: 100 do | |
live_loop :shephard do | |
high = synth :saw, amp: start_amp, amp_slide: 20, notes: [:c5], | |
note_slide: 30, release: 30 | |
control high, notes: [:c7], amp: end_amp | |
mid = synth :saw, amp: start_amp, amp_slide: 20, notes: [:c3], | |
note_slide: 30, release: 30 | |
control mid, notes: [:c5], amp: end_amp | |
low = synth :saw, amp: start_amp, amp_slide: 20, notes: [:c1], | |
note_slide: 30, release: 30 | |
control low, notes: [:c3], amp: end_amp | |
sleep 10 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment