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

[sc-dev] patterns in SC3



Hi all,

I can get a pattern to run by defining an 'instrument', downloading it to
the server, and using that instrument name in the pattern (see below)
But I cannot force a pattern to stop (by using cmd-period).
On the server end, I cannot get a fixed length envelope to work (I have
not tried gated envelopes yet).

Anyone have any tips?

Also, I copied the user piece into a separate directory, but it does not
seem to run correctly...

RJK

PS: Tyrone Slothrop? Sometimes SC feels like impolex G...

s = Server.default;
			// or Server(NetAddr("127.0.0.1", 57110);
s.boot;
s.start;

SynthDef("trem", { arg freq=800, rate=8, amp=0.1, dur =1; 
	var osc, eg;
	eg = Linen.kr(1,0,1,1,2);
	osc = LFTri.ar(freq, 0, eg);
	Out.ar(0, osc) 
}).writeDefFile;

s.sendMsg("/d_load","engine/synthdefs/trem.scsyndef");

s.start;
Pbind(\dur,Pseq([2,2,0.2]), \instrument,'trem', \freq, Pfunc({ 40.rand +
800})).play(Event.protoEvent);
s.stop