<div dir="ltr"><div>Hi Michael,</div><div><br></div><div>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></div><div><br></div><div><a href="https://ccrma.stanford.edu/~lja/timbre-library/">https://ccrma.stanford.edu/~lja/timbre-library/</a></div><div><a href="https://ccrma.stanford.edu/~lja/timbre-library/js/preloadfiles.js">https://ccrma.stanford.edu/~lja/timbre-library/js/preloadfiles.js</a></div><div><a href="https://ccrma.stanford.edu/~lja/timbre-library/js/host.js">https://ccrma.stanford.edu/~lja/timbre-library/js/host.js</a></div><div><br></div><div>(For an example of the directory shenanigans:)<br></div><div>    {<br>        serverFilename: &#39;./chuck/voicebank/<a href="http://intqueue.ck">intqueue.ck</a>&#39;,   // hierarchy ok on your webserver<br>        virtualFilename: &#39;<a href="http://intqueue.ck">intqueue.ck</a>&#39;                                  // hierarchy not ok in the virtual file system<br>    },</div><div><br></div><div>~Jack<br></div></div><br><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">heuermh@gmail.com</a>&gt; wrote:<br></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;">Hello Jack,<div><br></div><div>WebChucK is very cool!<div><br></div><div>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">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><br></div><div>Thank you,</div><div><br></div><div>   michael</div><div><br><div><br><blockquote type="cite"><div>On Jul 20, 2020, at 10:06 AM, Jack Atherton &lt;<a href="mailto:lja@ccrma.stanford.edu" target="_blank">lja@ccrma.stanford.edu</a>&gt; wrote:</div><br><div><div dir="ltr"><div>Web ChucK has existed since last September, but only in Chrome: <a href="https://ccrma.stanford.edu/~lja/webchuck/" target="_blank">https://ccrma.stanford.edu/~lja/webchuck/</a></div><div>For a while, Chrome was the only browser that had implemented the WebAudio Worklet standard.</div><div><br></div><div>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">https://hacks.mozilla.org/2020/05/high-performance-web-audio-with-audioworklet-in-firefox/</a> ), but WebChucK hasn&#39;t started working in Firefox as a result of those changes. It&#39;s possible the implementation is subtly different and more development will need to happen for WebChucK to work in Firefox.</div><div><br></div><div>~Jack<br></div></div><br><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">micheal.ocathain@gmail.com</a>&gt; wrote:<br></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"><div>hi <br></div><div>I&#39;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.  The visuals I want to use browsers - probably firefox run off the RPi&#39;s.  Each screen then displaying a different page from a javascript application run from one of the RPi&#39;s. <br></div><div><br></div><div>I&#39;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">https://github.com/aknuds1/chuck</a>.  <br></div><div><br></div><div>I thought it best to check with the user community if <br></div><div>1) there are further developments on running ChucK in the browser</div><div>2) if the av setup I&#39;m considering has been done before so I could perhaps link in and learn from others</div><div>3) if there are better setups that I should be following...</div><div><br></div><div><br></div><div>Thanks and kind wishes</div><div>micheal</div><div><br></div><div><a href="http://michealocathain.com/" target="_blank">michealocathain.com</a><br></div></div>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div>
_______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br></div></blockquote></div><br></div></div></div>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div>