[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] recording a Pbind into a Buffer
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] recording a Pbind into a Buffer
- From: "Dan Stowell" <danstowell@xxxxxxxxx>
- Date: Wed, 3 Dec 2008 12:10:30 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=eIv4YNeHlv3NUYY+eeoQx6TYUCmqMyD+/LYOhrELDio=; b=P+VZ4+K9AdPwjGe9qF+Wc5fKP18xlrf/V4piOrqEq+uZ3yUIjPY9IyruXzq7pwVQSf xHbrMnA876gCKVrXGe81SDcD7+zDUlmAW4Vis2XSQLHQ7qkHiXbhFtmYtnLAHQAy06oQ 77sydx+x76kQXlLSDwsxiIK7clo/KzBMMD5do=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=up5yn+F1xSt3E/ExL3NnxwcfSDmSFkissQ6aaIRaUGq8kxpZGaibn7IRBZ0dk/j/zy gQTtLTjXE44NeM9mg4bL4ZupKsTmqZ1wb7ghnUT1Dw5GY+gtqRLcogTIYxw+ohwmnXk8 rud41iojGhWlcLmkzxgW6z8isx9ZzVlPnTDAs=
- In-reply-to: <7AE17961-B56A-40FC-BF17-00A94D83B8E0@xxxxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <286e6b7c0812010427t6b595a75g47b2eb87204ba90b@xxxxxxxxxxxxxx> <7AE17961-B56A-40FC-BF17-00A94D83B8E0@xxxxxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Thanks all of you for the suggestions on this one. I used James' Pfx()
suggestion in the end, which works really well and fits quite neatly
into my brain...
Thanks
Dan
2008/12/2, James Harkins <jamshark70@xxxxxxxxx>:
>
>
> On Dec 1, 2008, at 7:27 AM, Dan Stowell wrote:
> Hi -
>
> I have a Pbind which generates 8 seconds of sound. I'd like to play it
> and record it into an 8-second-long Buffer at the same time, but I'm
> not sure about the neatest way to do this without losing some of the
> beginning/end. How would you do it?
>
> Actually I think this would be really clean to do with Pproto, but currently
> it doesn't have support for making nodes or groups in the initialization
> function.
>
> Ron, is there a reason why synth/group support is not there? There is a
> group event type, but it's commented out.
>
> Actually, come to think of it, why not Pfx? This way it will automatically
> stop the recorder when the pattern exits.
>
>
> SynthDef(\bufrec, { |bufnum, gate = 1, bus|
> var sig = In.ar(bus, 1);
> FreeSelf.kr(1 - gate);
> RecordBuf.ar(sig, bufnum);
> }).memStore;
>
>
> b = Buffer.alloc(s, 8 * s.sampleRate, 1);
>
>
> p = Pfx(Pbind(\degree, Pseries(0, 1, 8), \dur, 0.25), \bufrec, \bufnum, b,
> \bus, 0).play;
>
> hjh
>
>
>
> : H. James Harkins
> : jamshark70@xxxxxxxxxxxxxxxxx
> : http://www.dewdrop-world.net
> .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
>
> "Come said the Muse,
> Sing me a song no poet has yet chanted,
> Sing me the universal." -- Whitman
>
--
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/