View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

Osc1 problem?

~orc = [

	{ arg amp; SinOsc.ar(rrand(300, 500), 0, amp*0.1) },
	{ arg amp; SinOsc.ar(rrand(300, 500), 0, amp*0.1) },
	{ arg amp; SinOsc.ar(rrand(300, 500), 0, amp*0.1) }

];

{
	var w;
	w = GUIWindow.new("panel", Rect.newBy(128, 64, 244, 137));
	z = SliderView.new( w, Rect.newBy(71, 45, 128, 20), "SliderView", 0, 0, 1, 0, 'linear');


s = Signal.hammingWindow(1024);
x = Instrument(\sine, { arg amp; SinOsc.ar(rrand(300, 500), 0, amp*0.1) });
Spawn.ar({ arg sp, i;
	var out, env;
	env = EnvGen.kr(Env.linen(0, 1, 0, 0.1));
	
	out  = Osc1.ar(s, 0.1) * ~orc.wrapAt(i).value(z.kr);
}, 1, 0.1)
}.play;




~orc = [

	{ arg amp; Pulse.ar(rrand(300, 500)*2, 0.4.rand, amp*0.1) },
	{ arg amp; SinOsc.ar(rrand(300, 500)*3, 0, amp*0.1) },
	{ arg amp; SinOsc.ar(rrand(300, 500), 0, amp*0.1) }

];
/*
authors so far:
*/
ein test, ob Osc1 wirklich als envelope funktioniert.


Link to this Page