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

Re: [sc-users] proxyspace args to synth



hi there
so i have a synth

(

SynthDef(\prc3, {|freq=1000, amp=1, gate=1, out=0|
Out.ar(out,
		{
			Lag.ar(
				Pulse.ar(
					ExpRand(1, freq)
				).bitOr(
					Pulse.ar(
						ExpRand(1, freq)
					)
				),
				0.005
			)
			*
			SinOsc.ar(
				Lag.ar(
					Pulse.ar(
						ExpRand(1, freq)
					).bitAnd(
						Pulse.ar(
							ExpRand(1, freq)
						)
					),
					0.01
				)
				*
				1000
			)}.dup
		*
	EnvGen.ar(
		Env.perc(0.0,0.4,1,6),
		gate,
		doneAction:2
	)
	*
	amp

		)
}).load(s)
)

p = ProxySpace.new.know_(true)
p.out.play
p.out = \prc3

how do i set the initial freq?


p.out.set(\freq, 900);

--





.