[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] methods for rendering and playing functions and patterns ?
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] methods for rendering and playing functions and patterns ?
- From: Monsieur <grirgz@xxxxxxxxx>
- Date: Tue, 16 Dec 2014 17:57:10 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=stI9hqJxp7N3R0d1dqn3MlRNI5/hxu79ZyMO24z+ie0=; b=DVo4eoETG5kCgwVhPbGV3SqONQa0I//xxUVo+FCqRZtFytf8eVzPGZfB7aV4HAXfBe qT83T/0FvFIg2DPQk3Fj07USN27Htv0Jol83jbqce5sO2ybOQVlkZ2YBY1BWSE4sw84A GkPln2CR8feryw6ZmU2awjpEYsE5Ig9AU0U8ixyBsz2z54CCBuu0Z3f12tWB7W3kvTti QFz+fL4PA0cIycYxcE0QJsyAJTlLg4atRJIIwxahL9v5o3YIHR2YG/Q9nKcZXP1C9L6p l/JBHj9c0HhvUmGN6VwivvroqIBrSpgrNGYNtUW2Ofs16OQVdvJ4VWzSbfdISP2EUDTq OdgA==
- In-reply-to: <E60AE1CA-4297-4D3F-9BE4-40B556BB71E3@email.de>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <E60AE1CA-4297-4D3F-9BE4-40B556BB71E3@email.de>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
Hi,
It's a bit like Pattern:record, no ?
2014-12-13 3:21 GMT+01:00 Daniel Mayer <daniel-mayer@xxxxxxxx>:
>
> Wouldn't it be useful to have such methods ?
> I think I've read in a thread that something had already existed in earlier SC versions, no ?
>
>
> (
> p = Pbind(
> \midinote, Pwhite(60, 90),
> \dur, 0.2
> );
>
> // and similar for Functions of course
> // in a real implementation SynthDef would better be predefined
>
> ~renderPlay = { |pat, numChannels = 2, server, path, maxTime = 60, sampleRate = 44100,
> headerFormat = "AIFF", sampleFormat = "int16", options, inputFilePath, action|
> path = path ?? { "pRender_" ++ Date.localtime.stamp ++ "." ++ headerFormat.toLower };
> options = options ?? { ServerOptions().numOutputBusChannels = numChannels };
> server = server ?? { Server.default };
> pat.render(path, maxTime, sampleRate, headerFormat = "AIFF", sampleFormat = "int16",
> options, inputFilePath, {
> server.makeBundle(nil, {
> var bufnum = Buffer.read(server, path).bufnum;
> { PlayBuf.ar(numChannels, bufnum, BufRateScale.kr(bufnum)) }.play;
> })
> }
> );
> };
> )
>
>
> ~renderPlay.(p, maxTime: 10)
>
>
> Very practical: sample-exact if desired, neglectable latency with examples up to a minute or so !
>
>
> Greetings
>
> Daniel
>
> -----------------------------
> www.daniel-mayer.at
> -----------------------------
>
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/