[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] problem with SendReply for creating synths ?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] problem with SendReply for creating synths ?
- From: umberto torrez <umberto.torrez@xxxxxxxxx>
- Date: Sat, 29 Dec 2012 21:01:47 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9nVoSvTwh+Q7ZonZF3Sr8M6fqJmnE8wLvvpAL0SqRTQ=; b=TPNvpRltUrQNHJyob1lJRy+OBmINw2Cp3456LLk3IXant4YbmJ9M/0A73bBp0MEfzC zO3ZVe9YdqDlBaRO9yaGInF/nq4OecTk46DV9gjABk3yZH6zReuZMZ5cLUjzgtgJhRl2 OYmuB3LpFv+4XMUgZfANqhTHVVS2Jm2xZD5wFLh37rt4f9ovNPcdFPMiiM0NC11aUZqm yaUP5D5Yn6mytil/tWQr02MN7YeN+vp8y1aL+wNYp/SGXRnExNhoyPPMtMEQ92eM4HNv jNSq3epAmCBfdqvl2QijNYOSPYtqqwn/P9f61/RSm0bwNvHMybwxPXtGg/Zq8a+zQ7mm hjrg==
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hi, i need to create a synth from a trigger from another synth, so im
using SendReply in my synth that triggers and then i have a function
in the language that creates the new synth
But the problem i have is that when the function receives the trigger
(from sendReply) , it doesnt create just one synth ( as it should be)
but instead it start creating hundreds of synths until my server
collapse.
any idea what am i doing wrong? maybe im missing something?
b = Buffer.read(s, "sound_a.aif");
SynthDef(\my_synth, {| out = 0, bufnum = 0, start = 0 , env |
env= EnvGen.ar(Env.sine(1.0,1.0), doneAction:2);
Out.ar(out,
PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), startPos:
start , doneAction:2) * env
)
}).add();
o = OSCFunc({ |msg| msg.postln ; Synth(\my_synth, [\bufnum, b, \start
, d[0 ]);}, '/the_answer');
cheers
U.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/