[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] reset playbuf trigger using Synth.set
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] reset playbuf trigger using Synth.set
- From: Dan Stowell <danstowell@xxxxxxxxx>
- Date: Mon, 27 Jul 2009 09:20:23 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=a2256LGNXJqcDkgoloZ+UETruScyZ1t7n1GXWc0+BUA=; b=FC5fSLPMAXhXSAWhqy1aGvZME4eIpLNUZ5IrCrwrJVKSe5Xr28XDMaSgVv5poDm4xK EBIfhLE5Wqp95NIeD+Li11cKSoavtlyIo93qhAnVJnCpOEW5/7u/BlCQIOz/YDMnXjWO Tk+tUp9DvKhYr6VqKUbpWVGNM6IXPytpcvXMw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CvOfkHGevtN+nqv956UMbgwhMjJIBg4bGX1qKLsK1UzaWmJxgL6KOLJdCy/48qV1y+ bdWbIV1jnQheBlIZEEN/6rhtkN9NT6phKYfyxmBp0rfzlNyGiPn2TYNbspP8XFfnsVwX 4MjbNKKsMJ9L3AVPsCd1SG8D5nTwxg01F1tdY=
- In-reply-to: <4A6D5FF4.7000604@xxxxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <4A6D5FF4.7000604@xxxxxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hi -
You need to know one of the secret tricks of supercollider ;)
Change the name of your trigger control from "trig" to "t_trig", and
you will find it works just like you want it to...
(Controls beginning with "t_" are assumed to be trigger-type controls
and treated slightly differently)
HTH
Dan
2009/7/27 jesus gollonet <listas@xxxxxxxxxxxxxxxxx>:
> Hi all.
>
> I'm stuck with what I believe to be a shamefully simple problem.
> I have this simple playbuf synthdef
>
> SynthDef(\pbf, { |out = 0, bufnum = 0, rate = 1, amp = 0.5, trig=0|
> Out.ar(out,
> Pan2.ar(
> PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum) * rate, trig),
> level:amp
> )
> )
> }).memStore;
>
> which I'm going to use for short percussive sounds, and I'd like to be able
> to trigger it using Synth.set instead of creating a new Synth every time,
> ie:
>
>
> a = Synth(\pbf, [\bufnum,~b4])
> // each time I do this I should hear it. but only hear it the first
> time.
> a.set(\trig,1)
> a.set(\trig,1)
> a.set(\trig,1)
> the problem is that trig is only triggered when I change from <=0 to >0 so
> I have to manually reset the trigger each time:
>
> a.set(\trig,1)
> a.set(\trig,0)
> a.set(\trig,1)
>
> and I've been looking for a way to auto reset the trig, but no luck yet...
> any pointers?
>
> Thanks a lot!
> jesús.
>
>
>
> _______________________________________________
> 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/
>
--
http://www.mcld.co.uk
_______________________________________________
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/