Joyrex Posted June 3, 2012 Report Share Posted June 3, 2012 SuperCollider has many UGens* for analysing real-time audio signals. Amplitude is one such UGen, which can act as an envelope follower.The advantages of performing this task digitally are that separate values may be given for the up and down lag (or slew) times, and I can have as many of them as my soundcard has hardware inputs. (Doepfer’s A-119 looks great, but if I want 8 envelope followers, that’s 64 units of rack space and 520 euros down the drain. 8 lines of code is somewhat more economical.)Here is my envelope following patch: SynthDef(ampToCV, { |audioInBus = 99, outLo = 0.0, outHi = 1.0, lagU = 0.0, lagD = 0.0, audioOutBus = 99|var audioIn = SoundIn.ar(audioInBus);var cvOut = Amplitude.ar(audioIn).range(outLo, outHi).lagud(lagU, lagD);Out.ar(audioOutBus, cvOut);}).send(s); The lag up and down times can actually be provided to the Amplitude UGen directly, but I make the lag explicit as a personal preference.It’s possible that even if you know nothing about programming, you can follow what happens here: an audio input is generated, the amplitude of this input is analysed, a lag is applied and this “signal” is mapped to a new range (perhaps only positive values, or whatever range proves useful.) Then this control signal is sent to a hardware audio out, to be put into the control input of a synth module.Here are some audio demos:The envelope is used to modulate the frequency of a resonating filter: first positively, then negatively: Your browser does not support the HTML5 audio tag Env Follow to Frequency, Positive and NegativeThe negative and positive signals are used with two different resonating filters: Your browser does not support the HTML5 audio tag Dual Env Follow to FrequencyThe output of one filter additionally modulates a CV input of the other. Your browser does not support the HTML5 audio tag Dual Env Follow Frequency ModulationThe envelope is used to control the delay time of the Doepfer A-188-1X BBD module, as the signal is put through its audio input. Various combinations of positive / negative CV control and positive / negative feedback are selected, and the delay time manually adjusted: Your browser does not support the HTML5 audio tag Env Follow to BBD Delay TimeFinally, an additional saw is added to this control signal: Your browser does not support the HTML5 audio tag Env Follow to BBD plus Saw* (unit generators, or chunks of code which generate, filter or analyse audio) View the full article Thanks Haha Confused Sad Facepalm Burger Farnsworth Big Brain Like × Quote Hide all signatures Follow WATMM on Twitter: @WATMMOfficial Link to comment https://forum.watmm.com/topic/74031-cylobbot-masaaeoads-5-env-follow/ Share on other sites More sharing options...
Ivan Ooze Posted June 5, 2012 Report Share Posted June 5, 2012 my god no wonder mood bells sucked Thanks Haha Confused Sad Facepalm Burger Farnsworth Big Brain Like × Quote Hide Ivan Ooze's signature Hide all signatures On 2/26/2015 at 9:39 AM, RupturedSouls said: This drugs makes me feel like I'm on song! On 9/1/2014 at 5:50 PM, StephenG said: I'm hardly a closed minded nun. Remember, I'm on a fucking IDM forum.... an IDM forum.. Think about that for a second before claiming people are closed minded nuns. Link to comment https://forum.watmm.com/topic/74031-cylobbot-masaaeoads-5-env-follow/#findComment-1829140 Share on other sites More sharing options...
dr lopez Posted June 30, 2012 Report Share Posted June 30, 2012 lol Thanks Haha Confused Sad Facepalm Burger Farnsworth Big Brain Like × Quote Hide dr lopez's signature Hide all signatures On 11/24/2015 at 12:29 PM, Salvatorin said: I feel there is a baobab tree growing out of my head, its leaves stretch up to the heavens Link to comment https://forum.watmm.com/topic/74031-cylobbot-masaaeoads-5-env-follow/#findComment-1841943 Share on other sites More sharing options...
psn Posted June 30, 2012 Report Share Posted June 30, 2012 Write your own RSS feed. Thanks Haha Confused Sad Facepalm Burger Farnsworth Big Brain Like × Quote Link to comment https://forum.watmm.com/topic/74031-cylobbot-masaaeoads-5-env-follow/#findComment-1842002 Share on other sites More sharing options...
Recommended Posts