Re: [chuck-users] Machine.add() (.yield) from mike clemow
Depending on how HUGE the SndBuf files are, I have often loaded all of the files sequentially at the beginning, before I make any sound at all, into a single SndBuf, not to play them, but to get them into the cache. Then when the time comes to truly load them, they can be zero-disk loads. If they’re too big, this won’t work of course because you’ll exhaust your cache. PRC
On Jul 2, 2020, at 2:19 PM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. Machine.add() and me.yield() (mike clemow) 2. Re: Machine.add() and me.yield() (Michael Heuer) 3. Re: Machine.add() and me.yield() (mike clemow)
----------------------------------------------------------------------
Message: 1 Date: Thu, 2 Jul 2020 16:43:51 -0400 From: mike clemow
To: ChucK Users Mailing List Subject: [chuck-users] Machine.add() and me.yield() Message-ID: Content-Type: text/plain; charset="utf-8" Greetings Chuckists,
Looking for validation on this before I change many, many lines of code: I'm noticing clicks and pops in running audio when I do something like this:
Machine.add("thingOne.ck"); Machine.add("thingTwo.ck"); Machine.add("thingThree.ck"); Machine.add("thingFour.ck");
and also with Machine.remove(idNum); four times in a row.
Question:
Is this:
Machine.add("thingOne.ck"); Machine.add("thingTwo.ck"); Machine.add("thingThree.ck"); Machine.add("thingFour.ck"); me.yield();
significantly different than this:
Machine.add("thingOne.ck"); me.yield(); Machine.add("thingTwo.ck"); me.yield(); Machine.add("thingThree.ck"); me.yield(); Machine.add("thingFour.ck"); me.yield();
???
The same for sporking shreds four in a row.
Warmly, Mike
-- Michael Clemow Artist/Composer/Sound Designer http://michaelclemow.com (he/him)
Hi Perry,
I thought about doing this but wanted the solution to scale in case the
files were really huge or there was an overwhelming number of them. I've
noticed that this is a great approach when you need things to happen
immediately when they are called, however, the timing in this application
is loose so, I'd rather buy the time I need to load the files from the disk
on demand than be limited by the size of the cache.
I'm assuming that this "cache" is in memory... what are the effective
limitations here? Assuming a 64bit OS for now, are we basically just
limited by the availability of RAM on the system? Or is are there limits
set in the Chuck executable?
Best,
Mike
--
Michael Clemow
Artist/Composer/Sound Designer
http://michaelclemow.com
(he/him)
On Thu, Jul 2, 2020 at 6:48 PM Perry Cook
Depending on how HUGE the SndBuf files are, I have often loaded all of the files sequentially at the beginning, before I make any sound at all, into a single SndBuf, not to play them, but to get them into the cache. Then when the time comes to truly load them, they can be zero-disk loads. If they’re too big, this won’t work of course because you’ll exhaust your cache.
PRC
On Jul 2, 2020, at 2:19 PM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. Machine.add() and me.yield() (mike clemow) 2. Re: Machine.add() and me.yield() (Michael Heuer) 3. Re: Machine.add() and me.yield() (mike clemow)
----------------------------------------------------------------------
Message: 1 Date: Thu, 2 Jul 2020 16:43:51 -0400 From: mike clemow
To: ChucK Users Mailing List Subject: [chuck-users] Machine.add() and me.yield() Message-ID: Content-Type: text/plain; charset="utf-8" Greetings Chuckists,
Looking for validation on this before I change many, many lines of code: I'm noticing clicks and pops in running audio when I do something like this:
Machine.add("thingOne.ck"); Machine.add("thingTwo.ck"); Machine.add("thingThree.ck"); Machine.add("thingFour.ck");
and also with Machine.remove(idNum); four times in a row.
Question:
Is this:
Machine.add("thingOne.ck"); Machine.add("thingTwo.ck"); Machine.add("thingThree.ck"); Machine.add("thingFour.ck"); me.yield();
significantly different than this:
Machine.add("thingOne.ck"); me.yield(); Machine.add("thingTwo.ck"); me.yield(); Machine.add("thingThree.ck"); me.yield(); Machine.add("thingFour.ck"); me.yield();
???
The same for sporking shreds four in a row.
Warmly, Mike
-- Michael Clemow Artist/Composer/Sound Designer http://michaelclemow.com (he/him)
participants (2)
-
mike clemow
-
Perry Cook