muellmusik / Utopia

This is an attempt at a generic library of tools for making Network Music Apps in SuperCollider
43 stars 8 forks source link

Is this a sensible way of sending ugen values in Utopia? #24

Open madskjeldgaard opened 5 years ago

madskjeldgaard commented 5 years ago

A fairly quick question: Is this the folllowing a sensible way of sending the contents of a control rate UGen graph via Utopia or is there a smarter way of doing that ? Thanks!

~updateFreq = 10;

// LFO1
    Ndef(\lfo1, {|f=0.25|
        var sig = SinOsc.kr(f.linexp(0.0,1.0,0.00001,100));
        SendReply.kr(Impulse.kr(~updateFreq), '/mlfo1', sig);
    });

    OSCdef(\lfo1, {|msg, time, addr, port|
        var val = msg[3];
        ~objSpace[\mlfo1] = val;
    }, '/mlfo1');
muellmusik commented 5 years ago

That’s more or less how I’d do it. Utopia is mostly lang side.

On 1 Jun 2019, at 21:37, mads kjeldgaard notifications@github.com wrote:

A fairly quick question: Is this the folllowing a sensible way of sending the contents of a control rate UGen graph via Utopia or is there a smarter way of doing that ? Thanks!

~updateFreq = 10;

// LFO1 Ndef(\lfo1, {|f=0.25| var sig = SinOsc.kr(f.linexp(0.0,1.0,0.00001,100)); SendReply.kr(Impulse.kr(~updateFreq), '/mlfo1', sig); });

OSCdef(\lfo1, {|msg, time, addr, port|
    var val = msg[3];
    ~objSpace[\mlfo1] = val;
}, '/mlfo1');

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.