[linux-audio-dev] Does anyone have a working example of Supercollider and SCUM GUI where slider or a button does real-time update on the synth

From: Ivica Bukvic <ico@email-addr-hidden>
Date: Wed May 18 2005 - 02:46:58 EEST

Greetings all,

I guess title says it all. I do have working examples (i.e. the sequencer
example from the LAD 2004) that make new instances of synths but none of them
actually do real-time updates to existing instances.

At any rate I would greatly appreciate your help in this matter.

This is as far as I got and cannot figure it out beyond this point (my brain
is pretty darn fried :-):

s = Server.local.boot;

SynthDef("onetwoonetwo",{ arg out=0, freq;
        w = SCUMWindow.new;
        w.title = "Slider example";
        w.initialSize = Size(20, 300);

    c = SCUMVBox( w );

    v = SCUMSlider(c, { |v|
                v.expand = 1;
                v.fill = 1;
                v.bgColor = Color.white;
                v.fgColor = Color.black;
                v.action = {
                        freq = v.value * 100;
                };
                v.doAction;
        });
        w.show;

        Out.ar(out,
                 SinOsc.ar(freq + 400, 0, 0.5)
        )
}).play;

What I am simply trying to do is to affect the frequency of the sinetone by
moving the slider, yet nothing changes when I move the slider.

Any help would be greatly appreciated!

Best wishes,

Ico
Received on Wed May 18 04:15:10 2005

This archive was generated by hypermail 2.1.8 : Wed May 18 2005 - 04:15:12 EEST