Created
April 29, 2017 14:07
-
-
Save jarmitage/da34e0f3b56891abb40fdfcb37936492 to your computer and use it in GitHub Desktop.
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
| // live audio input | |
| ( | |
| SynthDef(\anintest, { |out, sustain = 1, speed = 1, begin = 0, end = 1, pan, accelerate, amp = 1, offset| | |
| var env, sound, rate, phase; | |
| phase = Line.ar(begin, end, sustain); | |
| rate = (begin + 1) * (speed + Sweep.kr(1, accelerate)); | |
| sound = SinOsc.ar( AnalogIn.ar( 0 ).poll.exprange( 200, 5000 ), 0, 0.1 ); | |
| OffsetOut.ar(out, | |
| DirtPan.ar(sound, ~dirt.numChannels, pan, amp) | |
| ) | |
| }).add | |
| ); |
Author
jarmitage
commented
Apr 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment