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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux