Use UGen value as a number

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Use UGen value as a number

jordiespuny
hello

it possible to use the values from a Ugen like a regular number?

for example: mouse = MouseX.kr(0,10) and then use de mouse value in an
other UGen

I get the following error: The preceding error dump is for ERROR: can't
set a control to a UGen in this example

(
SynthDef(\mouseTest, {arg mouse;
     mouse.postln;
}).add;

Tdef(\myTask, {
     loop {
         m = MouseX.kr(0,10);
         Synth(\mouseTest,[\mouse,m]);
         1.wait;
}}).play;
)

thanks!