[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: "Andrew C. Smith" <acsmith@xxxxxxxxxxxxxx>
- Date: Mon, 27 Jul 2009 09:23:38 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=FHk6u+ZKZNXTiPcN4u07bGu5DE44qyubQykjLvi0arE=; b=rxHluWXJ2lwcBu2/xdx232Mat0s69rOY+F/wlRghZxUIZR+oviUkgddS41KkKOPOyL 7N/XbSPCwUs9q4r2IuqRsseKDJpsHlmwMKkcoA87iKXaZqy6+Hc6zR2dMjtqOEa1PEZY VDzqyxkGuS1SFIe3Eh/03GCkAe2inlHDnDhHc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=N4FFT96Fnc9Wvmxq5EAmwfrcFzy8fvk46ysOGuD9mhXSY+tiOD6zKfI4alfZ0Z2ZTe JH0vDYrJ3b+8Tw4CA42RCaJXLrcjc5DcAT1fAN+sAwi4yv9cEhihydECILnC/VgAdC4+ 6/VJjo/SNA6N/ZfBaBdb2CHieYeOTWMEQyP3w=
- In-reply-to: <4A6D66A7.5060507@xxxxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <4A6D5FF4.7000604@xxxxxxxxxxxxxxxxx> <286e6b7c0907270120o24a05587t6bf3e24518354626@xxxxxxxxxxxxxx> <4A6D66A7.5060507@xxxxxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Is there a help file that outlines these t_ and other types of special
arguments? I've spent a while looking for it and can't seem to find
it. All kinds of cmd-d didn't bring anything up.
Andrew
On Mon, Jul 27, 2009 at 4:34 AM, jesus gollonet<listas@xxxxxxxxxxxxxxxxx> wrote:
> great it works!
> time to stop overlooking those funny t_ arguments.
> cmd+shift+d 'ing t_trig now.
>
> thanks a lot, dan.
> best,
> jesús.
>
>
>
> Dan Stowell escribió:
>
> 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/
>
>
>
>
>
_______________________________________________
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/