Hi Jack,
Thanks for clarifying! I'll try the workaround you suggest with global
variables and report back!! Socket.io will be my first port of call for a
JavaScript mechanism but open to all suggestions...
On Tue, 25 Aug 2020, 23:05 ,
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. Re: webchuck and osc (Jack Atherton) 2. Passing functions as arguments (John Crane) 3. Re: webchuck and osc (M. Edward (Ed) Borasky) 4. Re: webchuck and osc (Jack Atherton)
---------- Forwarded message ---------- From: Jack Atherton
To: ChucK Users Mailing List Cc: Bcc: Date: Tue, 25 Aug 2020 11:37:37 -0700 Subject: Re: [chuck-users] webchuck and osc It doesn't! Never quite figured out architecturally how this might work. The workaround would be to use some JavaScript mechanism for communicating with outside programs, then use global variables to communicate between JS and ChucK. ~Jack
On Tue, Aug 25, 2020 at 5:02 AM Mícheál Ó Catháin < micheal.ocathain@gmail.com> wrote:
hi there,
Webchuck is such an excellent development - thanks for all the work that has gone into this by Jack (and others I'm sure). Hopefully I'll be able to contribute in some way in future, after getting up the learning curve a bit more!
I have a question about using OSC with webchuck...
I have a .ck script running on my local machine, using OSC to emit messages every X samples of a .wav file played by a SndBuf. These OSC messages are received by a webpage on my local machine. For this receiver I am running the page using node.js, and... * https://github.com/automata/osc-web * socket.io
Locally, this works fine - as I play the .wav file via ChucK on MiniAudicle, the webpage at localhost:3000 displays the OSC messages as I'd expect.
However when I try to run this same .ck file using Webchuck, I get the following error message: chucknode.js:189 [osc-eibhlin.ck]:line(38): undefined type 'OscOut'...
Does Webchuck feature OSC messages yet?
Thanks Micheal
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
---------- Forwarded message ---------- From: John Crane
To: chuck-users@lists.cs.princeton.edu Cc: Bcc: Date: Tue, 25 Aug 2020 13:51:07 -0700 Subject: [chuck-users] Passing functions as arguments Hi all, Chuck newbie here. Is it possible to pass a function as an argument? I'd like to be able to transform things in a functional programming manner. As a trivial example, if I had an array of midi notes and wanted to raise them all one interval.
fun int increment(int note) { note + 1; }
// use map to apply a function to all elements of an array map ( array_of_notes, increment);
thanks in advance,
John
---------- Forwarded message ---------- From: "M. Edward (Ed) Borasky"
To: ChucK Users Mailing List Cc: Bcc: Date: Tue, 25 Aug 2020 14:52:40 -0700 Subject: Re: [chuck-users] webchuck and osc This is the first I've heard of WebChuck - is there a link to it? Google turned up nothing. On Tue, Aug 25, 2020 at 11:39 AM Jack Atherton
wrote: It doesn't! Never quite figured out architecturally how this might work.
The workaround would be to use some JavaScript mechanism for communicating with outside programs, then use global variables to communicate between JS and ChucK.
~Jack
On Tue, Aug 25, 2020 at 5:02 AM Mícheál Ó Catháin <
hi there,
Webchuck is such an excellent development - thanks for all the work
micheal.ocathain@gmail.com> wrote: that has gone into this by Jack (and others I'm sure). Hopefully I'll be able to contribute in some way in future, after getting up the learning curve a bit more!
I have a question about using OSC with webchuck...
I have a .ck script running on my local machine, using OSC to emit
messages every X samples of a .wav file played by a SndBuf.
These OSC messages are received by a webpage on my local machine. For this receiver I am running the page using node.js, and... * https://github.com/automata/osc-web * socket.io
Locally, this works fine - as I play the .wav file via ChucK on MiniAudicle, the webpage at localhost:3000 displays the OSC messages as I'd expect.
However when I try to run this same .ck file using Webchuck, I get the following error message: chucknode.js:189 [osc-eibhlin.ck]:line(38): undefined type 'OscOut'...
Does Webchuck feature OSC messages yet?
Thanks Micheal
_______________________________________________ chuck-users mailing list 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
-- Borasky Research Journal https://www.znmeb.mobi
Markovs of the world, unite! You have nothing to lose but your chains!
---------- Forwarded message ---------- From: Jack Atherton
To: ChucK Users Mailing List Cc: Bcc: Date: Tue, 25 Aug 2020 15:04:43 -0700 Subject: Re: [chuck-users] webchuck and osc Here's two pages that use WebChucK in slightly different ways -- you can look at the source to get an idea, download relevant files, etc: https://ccrma.stanford.edu/~lja/webchuck/ https://ccrma.stanford.edu/~lja/timbre-library/
I think this might be the most recent branch on github. It's at least the one that has been modified most recently. https://github.com/ccrma/chuck/tree/emscripten-pattern-c
Sorry for the lack of clear documentation! As with a lot of ChucK things, development is very sporadic.
~Jack
On Tue, Aug 25, 2020 at 2:53 PM M. Edward (Ed) Borasky
wrote: This is the first I've heard of WebChuck - is there a link to it? Google turned up nothing.
On Tue, Aug 25, 2020 at 11:39 AM Jack Atherton
wrote: It doesn't! Never quite figured out architecturally how this might
work. The workaround would be to use some JavaScript mechanism for communicating with outside programs, then use global variables to communicate between JS and ChucK.
~Jack
On Tue, Aug 25, 2020 at 5:02 AM Mícheál Ó Catháin <
hi there,
Webchuck is such an excellent development - thanks for all the work
micheal.ocathain@gmail.com> wrote: that has gone into this by Jack (and others I'm sure). Hopefully I'll be able to contribute in some way in future, after getting up the learning curve a bit more!
I have a question about using OSC with webchuck...
I have a .ck script running on my local machine, using OSC to emit
messages every X samples of a .wav file played by a SndBuf.
These OSC messages are received by a webpage on my local machine. For this receiver I am running the page using node.js, and... * https://github.com/automata/osc-web * socket.io
Locally, this works fine - as I play the .wav file via ChucK on MiniAudicle, the webpage at localhost:3000 displays the OSC messages as I'd expect.
However when I try to run this same .ck file using Webchuck, I get the following error message: chucknode.js:189 [osc-eibhlin.ck]:line(38): undefined type 'OscOut'...
Does Webchuck feature OSC messages yet?
Thanks Micheal
_______________________________________________ chuck-users mailing list 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
-- Borasky Research Journal https://www.znmeb.mobi
Markovs of the world, unite! You have nothing to lose but your chains! _______________________________________________ chuck-users mailing list 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