Re: Allocating new Buffers in a Score

[email protected] Fri, 28 May 2021 07:18:16 +0800
Newsgroups gmane.comp.audio.supercollider.user
Message-ID <CAFniQ7Vq60w=APGQOxD=ZRKDJLCqSx3LBN-pXRjHgHBcUEV9Zg@mail.gmail.com>
On Wed, May 26, 2021 at 1:06 PM <[email protected]> wrote:
> Sorry to piggyback on this question but I just ran up into a similar
> issue in establishing groups and group order on the same  score.  I
> set a default group via "basicNew" to the NRT server, like this:
> defaultGroup1 = Group.basicNew(server);
> defaultGroup2 = Group.basicNew(server);
>
> My understanding is that this is essentially just "allocation" also,
> at this point - it doesn't actually get loaded onto the server until
> there is a different message in the score.  However, I can't quite
> figure out how to format the message in the score..
> Something like this doesn't work:
> n.add([0.01, [\g_new, defaultGroup1.addToHeadMsg]]);
> n.add([0.01, [\g_new, defaultGroup2.addToTailMsg]]);

'addToHeadMsg' etc return the entire message, so there is no need to
double-g_new it. That is, the method is not called
"oscParametersForAddToHeadMsg" -- it's just "addToHeadMsg."

n.add([0.01, defaultGroup1.addToHeadMsg]);

hjh

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/