Allocating new Buffers in a Score

[email protected] Sat, 22 May 2021 01:56:43 -0400
Newsgroups gmane.comp.audio.supercollider.user
Message-ID <CACCEbVEyQq9xoYs_05woEAZmbJ5L4N0KftFbe8Q7dOqDdAgCtA@mail.gmail.com>
Hi all -

I'm currently trying to create bunch of Chebyshev-filled buffers for
use in a Score. I've established the values elsewhere as an
environmental variable and I'm using the following to load up the
buffers and add them in the Score:
n.add([0.1, [\b_alloc, ~bufs = Array.fill(20, {|i| Buffer.alloc(s,
1024, 1, { |buf| buf.chebyMsg(~chebs[i])})})]]);

I'm suspicious that this is causing a problem, but I can't quite prove
it (something about the multiple "allocs", maybe) . As for this
question, I was simply hoping that someone could point out whether
this is the right way of creating a bunch of buffers in a Score.

Thanks!

_______________________________________________
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/