<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Oh that sounds great! &nbsp;Thank you.<div class=""><br class=""></div><div class="">I can write a script to create a single-file "minified" version of the LiCK library to use.<div class=""><br class=""></div><div class="">&nbsp; &nbsp;michael</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 20, 2020, at 12:08 PM, Jack Atherton &lt;<a href="mailto:lja@ccrma.stanford.edu" class="">lja@ccrma.stanford.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi Michael,</div><div class=""><br class=""></div><div class="">You can deploy a page in a way that loads a bunch of files into the file system and runs them when the VM is initialized. See preloadfiles.js and theChuckReady.then() (in host.js) below. One problem you might hit -- if I remember correctly, creating subdirectories in the ChucK virtual file system is broken. So, all your virtualFilenames will likely need to be at the top level of the directory. <br class=""></div><div class=""><br class=""></div><div class=""><a href="https://ccrma.stanford.edu/~lja/timbre-library/" class="">https://ccrma.stanford.edu/~lja/timbre-library/</a></div><div class=""><a href="https://ccrma.stanford.edu/~lja/timbre-library/js/preloadfiles.js" class="">https://ccrma.stanford.edu/~lja/timbre-library/js/preloadfiles.js</a></div><div class=""><a href="https://ccrma.stanford.edu/~lja/timbre-library/js/host.js" class="">https://ccrma.stanford.edu/~lja/timbre-library/js/host.js</a></div><div class=""><br class=""></div><div class="">(For an example of the directory shenanigans:)<br class=""></div><div class="">&nbsp;&nbsp;&nbsp; {<br class="">&nbsp; &nbsp; &nbsp; &nbsp; serverFilename: './chuck/voicebank/<a href="http://intqueue.ck/" class="">intqueue.ck</a>',&nbsp;&nbsp; // hierarchy ok on your webserver<br class="">&nbsp; &nbsp; &nbsp; &nbsp; virtualFilename: '<a href="http://intqueue.ck/" class="">intqueue.ck</a>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // hierarchy not ok in the virtual file system<br class="">&nbsp; &nbsp; },</div><div class=""><br class=""></div><div class="">~Jack<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 20, 2020 at 9:20 AM Michael Heuer &lt;<a href="mailto:heuermh@gmail.com" class="">heuermh@gmail.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hello Jack,<div class=""><br class=""></div><div class="">WebChucK is very cool!<div class=""><br class=""></div><div class="">Is there some way I could deploy a version of this with the LiCK library (a bunch of .ck files and an <a href="http://import.ck/" target="_blank" class="">import.ck</a> file that Machine.adds all of them) included in the virtual file system, or better yet loaded at ChucK VM initialization?</div><div class=""><br class=""></div><div class="">Thank you,</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp;michael</div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jul 20, 2020, at 10:06 AM, Jack Atherton &lt;<a href="mailto:lja@ccrma.stanford.edu" target="_blank" class="">lja@ccrma.stanford.edu</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div class="">Web ChucK has existed since last September, but only in Chrome: <a href="https://ccrma.stanford.edu/~lja/webchuck/" target="_blank" class="">https://ccrma.stanford.edu/~lja/webchuck/</a></div><div class="">For a while, Chrome was the only browser that had implemented the WebAudio Worklet standard.</div><div class=""><br class=""></div><div class="">It seems like Firefox has implemented the standard in May ( <a href="https://hacks.mozilla.org/2020/05/high-performance-web-audio-with-audioworklet-in-firefox/" target="_blank" class="">https://hacks.mozilla.org/2020/05/high-performance-web-audio-with-audioworklet-in-firefox/</a> ), but WebChucK hasn't started working in Firefox as a result of those changes. It's possible the implementation is subtly different and more development will need to happen for WebChucK to work in Firefox.</div><div class=""><br class=""></div><div class="">~Jack<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 20, 2020 at 7:58 AM Mícheál Ó Catháin &lt;<a href="mailto:micheal.ocathain@gmail.com" target="_blank" class="">micheal.ocathain@gmail.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class="">hi <br class=""></div><div class="">I'm developing an audiovisual installation to tour a number of arts centres in Ireland. I want to use ChucK to drive the audio elements, linking raspberry pi devices (up to 4) connected via hdmi to screens.&nbsp; The visuals I want to use browsers - probably firefox run off the RPi's.&nbsp; Each screen then displaying a different page from a javascript application run from one of the RPi's. <br class=""></div><div class=""><br class=""></div><div class="">I've done some initial check online of running ChucK wrapped in javascript, and this github page is the latest activity I can find <a href="https://github.com/aknuds1/chuck" target="_blank" class="">https://github.com/aknuds1/chuck</a>.&nbsp; <br class=""></div><div class=""><br class=""></div><div class="">I thought it best to check with the user community if <br class=""></div><div class="">1) there are further developments on running ChucK in the browser</div><div class="">2) if the av setup I'm considering has been done before so I could perhaps link in and learn from others</div><div class="">3) if there are better setups that I should be following...</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks and kind wishes</div><div class="">micheal</div><div class=""><br class=""></div><div class=""><a href="http://michealocathain.com/" target="_blank" class="">michealocathain.com</a><br class=""></div></div>
_______________________________________________<br class="">
chuck-users mailing list<br class="">
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank" class="">chuck-users@lists.cs.princeton.edu</a><br class="">
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank" class="">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br class="">
</blockquote></div>
_______________________________________________<br class="">chuck-users mailing list<br class=""><a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank" class="">chuck-users@lists.cs.princeton.edu</a><br class=""><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank" class="">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br class=""></div></blockquote></div><br class=""></div></div></div>_______________________________________________<br class="">
chuck-users mailing list<br class="">
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank" class="">chuck-users@lists.cs.princeton.edu</a><br class="">
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank" class="">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br class="">
</blockquote></div>
_______________________________________________<br class="">chuck-users mailing list<br class=""><a href="mailto:chuck-users@lists.cs.princeton.edu" class="">chuck-users@lists.cs.princeton.edu</a><br class="">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br class=""></div></blockquote></div><br class=""></div></div></body></html>