Hi, Do we have anything like ctcsound ( https://csound.com/docs/ctcsound/ctcsound-API.html) or libpd ( http://libpd.cc/) for ChucK. I know changes have been made in the latest release, I was just wondering if there's anything to look at out there. Cheers, Mario
There isn't great documentation like those projects have, but if you want to embed ChucK then you just need to include all of the C++ files in the src/core folder. To use ChucK, make a new ChucK object and then all the functions you need to call are in chuck.h: https://github.com/ccrma/chuck/blob/master/src/core/chuck.h A typical sequence might look something like this: // create the_chuck = new ChucK(); // set params (see full list at top of chuck.h) the_chuck->setParam( CHUCK_PARAM_SAMPLE_RATE, (t_CKINT) MY_SRATE ); the_chuck->setParam( CHUCK_PARAM_INPUT_CHANNELS, (t_CKINT) MY_CHANNELS ); the_chuck->setParam( CHUCK_PARAM_OUTPUT_CHANNELS, (t_CKINT) MY_CHANNELS ); // init the_chuck->init(); // start the_chuck->start(); ... // add code the_chuck->compileCode( "SinOsc foo => dac; while(true) { 2::second => now; }", "" ); // or the_chuck->compileFile( "myChuckProgram.ck", "my:list:of:args:2:3.5" ); ... // in audio callback the_chuck->run( inBuffer, outBuffer, numFrames ); ... // elsewhere in your application, might want to use global variables the_chuck->setGlobalInt( "roughness", 2 ); the_chuck->broadcastGlobalEvent( "playTheSound" ); On Fri, Aug 16, 2019 at 4:07 AM Mario Buoninfante < mario.buoninfante@gmail.com> wrote:
Hi,
Do we have anything like ctcsound ( https://csound.com/docs/ctcsound/ctcsound-API.html) or libpd ( http://libpd.cc/) for ChucK. I know changes have been made in the latest release, I was just wondering if there's anything to look at out there.
Cheers, Mario _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
There is libchuck https://github.com/heuermh/libchuck https://github.com/heuermh/libchuck (and other forks) though as far as I know, it may be dead in the water for iOS going forward, as Apple no longer allows the system exec calls. michael
On Aug 16, 2019, at 6:06 AM, Mario Buoninfante
wrote: Hi,
Do we have anything like ctcsound (https://csound.com/docs/ctcsound/ctcsound-API.html https://csound.com/docs/ctcsound/ctcsound-API.html) or libpd (http://libpd.cc/ http://libpd.cc/) for ChucK. I know changes have been made in the latest release, I was just wondering if there's anything to look at out there.
Cheers, Mario _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi Jack, Michael, Thanks for your reply. Really good to know there is this possibility, and despite I'm not into C++, from what I can see from Jack's email, it is kind of straightforward. It seems like there are good possibilities to have ChucK running in other languages (ie Python, Lua, etc.) and I'd like to know if there's anybody out there that has already done anything like that. Cheers, Mario On 16/08/2019 18:25, Michael Heuer wrote:
There is libchuck
https://github.com/heuermh/libchuck (and other forks)
though as far as I know, it may be dead in the water for iOS going forward, as Apple no longer allows the system exec calls.
michael
On Aug 16, 2019, at 6:06 AM, Mario Buoninfante
mailto:mario.buoninfante@gmail.com> wrote: Hi,
Do we have anything like ctcsound (https://csound.com/docs/ctcsound/ctcsound-API.html) or libpd (http://libpd.cc/) for ChucK. I know changes have been made in the latest release, I was just wondering if there's anything to look at out there.
Cheers, Mario _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu mailto:chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Electronic Musician, Creative Coder, QA Engineer https://vimeo.com/creativecodingsalerno http://mbuoninfante.tumblr.com/ https://github.com/mariobuoninfante https://bitbucket.org/mariobuoninfante/
How about embedding in a browser, or calling from web assembly; that would be cool. The webAudio is cool, but chuck would be better! -- Rich On 8/16/2019 2:28 PM, mario buoninfante wrote:
Hi Jack, Michael,
Thanks for your reply. Really good to know there is this possibility, and despite I'm not into C++, from what I can see from Jack's email, it is kind of straightforward.
It seems like there are good possibilities to have ChucK running in other languages (ie Python, Lua, etc.) and I'd like to know if there's anybody out there that has already done anything like that.
Cheers,
Mario
On 16/08/2019 18:25, Michael Heuer wrote:
There is libchuck
https://github.com/heuermh/libchuck (and other forks)
though as far as I know, it may be dead in the water for iOS going forward, as Apple no longer allows the system exec calls.
michael
On Aug 16, 2019, at 6:06 AM, Mario Buoninfante
mailto:mario.buoninfante@gmail.com> wrote: Hi,
Do we have anything like ctcsound (https://csound.com/docs/ctcsound/ctcsound-API.html) or libpd (http://libpd.cc/) for ChucK. I know changes have been made in the latest release, I was just wondering if there's anything to look at out there.
Cheers, Mario _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu mailto:chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users -- Electronic Musician, Creative Coder, QA Engineer https://vimeo.com/creativecodingsalerno http://mbuoninfante.tumblr.com/ https://github.com/mariobuoninfante https://bitbucket.org/mariobuoninfante/
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (5)
-
Jack Atherton
-
mario buoninfante
-
Mario Buoninfante
-
Michael Heuer
-
rich