scide: LookupDialog - redo lookup on classes after partial lookup
[supercollider.git] / SCClassLibrary / Common / Audio / IEnvGen.sc
blob727dfb1d1f955eaa869224ae44a5ac0b3feda0ea
1 IEnvGen : UGen { // envelope index generator
3         *ar { arg envelope, index, mul = 1, add = 0;
4                 envelope = this.convertEnv(envelope);
5                 ^this.multiNewList(['audio', index, envelope]).madd(mul, add)
6         }
8         *kr { arg envelope, index, mul = 1, add = 0;
9                 envelope = this.convertEnv(envelope);
10                 ^this.multiNewList(['control', index, envelope]).madd(mul, add)
11         }
13         *convertEnv { arg env;
14                 if(env.isSequenceableCollection) { ^env.reference }; // raw envelope data
15                 ^env.asArrayForInterpolation.collect(_.reference).unbubble
16         }
18         *new1 { arg rate, index, envArray;
19                 ^super.new.rate_(rate).addToSynth.init([index] ++ envArray.dereference)
20         }
22         init { arg theInputs;
23                 // store the inputs as an array
24                 inputs = theInputs;
25         }
26         argNamesInputsOffset { ^2 }