[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

Ivica Bukvic ico at fuse.net
Tue May 17 23:46:58 UTC 2005


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



More information about the Linux-audio-dev mailing list