<div dir="ltr"><b>Michael</b> - totally cool with me; feel free to fork and have at it! :) I am not familiar with how Docker interacts with host USB audio devices. My image uses the --silent flag to avoid hitting (non-existent) audio devices in the Docker container. Fortunately you can run rebuild Docker images pretty quickly locally so it&#39;s easy to tweak and mess around with stuff. Also, you can technically run Docker images on any computer so it may be possible to run Docker containers on a box you have with said USB audio hosts and you can expose those hosts so that your image can use them.<div><br></div><div><b>Stuart</b> - I think you could accomplish your idea with some work over my Docker image. AFAIK, the --silent flag does not mean no sound is produced; it just means no audio is outputted during the running of the program. You could set something up like:</div><div><br></div><div>1. Let ChucK produce 30 seconds of audio (with --silent it should take less than 30 seconds to produce 30 seconds of audio) and save it to an audio file. Look at <a href="http://export.ck">export.ck</a> in the chuck-renderer repo for how to do this. </div><div>2. Streaming clients grab this 30 seconds of audio and start playing it. </div><div>3. While the above is occurring, you produce another 30 seconds of audio.</div><div>4. Send the next audio file to clients and they queue it up after the first segment ends. </div><div>5. Rinse, repeat.</div><div><br></div><div>This has the added benefit of letting ChucK shut down between producing segments to do garbage collection. :) You might need some annealing to get the separate audio to sound &quot;together&quot; but this should get you a &quot;Hello, World ChucK stream.&quot; </div><div><br></div><div>Good luck!</div><div><br></div><div>mc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 16, 2017 at 8:27 AM, Michael Heuer <span dir="ltr">&lt;<a href="mailto:heuermh@gmail.com" target="_blank">heuermh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello Mark,<br><br></div>This is a very cool idea!<br><br>Would be great for ChucK one-liners (see e.g. <a href="http://electro-music.com/forum/topic-13512.html" target="_blank">http://electro-music.com/<wbr>forum/topic-13512.html</a>).<br><br></div>I&#39;ve been meaning to build up Docker image(s) with ChucK + LiCK + LADSPA plugins so that I have everything available in one container to use on different platforms.  I&#39;m not so sure how Docker interacts with host USB audio devices though.  In any case, would you mind if I beg/borrow/steal from your Dockerfile to get started?<br><br></div>Thanks,<br><br></div>   michael<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 13, 2017 at 7:16 PM, Mark Cerqueira <span dir="ltr">&lt;<a href="mailto:mark.cerqueira@gmail.com" target="_blank">mark.cerqueira@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I set up a Docker image this week that lets you pass it ChucK source code or file, it runs it for up to 30 seconds (with --silent flag so it does this step much faster than 30 seconds), saves the output to .wav, converts the .wav to .m4a to make the file smaller, and then hosts the file for download/streaming.</div><div><br></div><div>Demo container running Docker image: <a href="http://chuck-renderer.4860ca31.svc.dockerapp.io:9000/debug" target="_blank">http://chuck-renderer.4<wbr>860ca31.svc.dockerapp.io:9000/<wbr>debug</a></div><div><br></div>Source code: <a href="https://github.com/markcerqueira/chuck-renderer" target="_blank">https://github.com/markc<wbr>erqueira/chuck-renderer</a><div><br><div>Image on Docker hub: <a href="https://hub.docker.com/r/markcerqueira/chuck-renderer/" target="_blank">https://hub.docker.com/r/<wbr>markcerqueira/chuck-renderer/</a><br></div><div><br></div><div>Cheers!</div><span class="m_-6013748902637972126HOEnZb"><font color="#888888"><div><br></div><div>mc</div></font></span></div></div><div class="m_-6013748902637972126HOEnZb"><div class="m_-6013748902637972126h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 10, 2017 at 11:18 AM, Mark Cerqueira <span dir="ltr">&lt;<a href="mailto:mark.cerqueira@gmail.com" target="_blank">mark.cerqueira@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Would love to hear if you get this working so please report back with any findings. I&#39;m trying to do something similar with a Docker container. <div><br></div><div>Good luck and happy chucking!</div><span class="m_-6013748902637972126m_2139673309676118489HOEnZb"><font color="#888888"><div><br></div><div>mc</div></font></span></div><div class="m_-6013748902637972126m_2139673309676118489HOEnZb"><div class="m_-6013748902637972126m_2139673309676118489h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 7, 2017 at 11:29 PM, Stuart McDonald <span dir="ltr">&lt;<a href="mailto:stuartcmcd@gmail.com" target="_blank">stuartcmcd@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks to those who responded; will look at Jack, DarkIce and<br>
Liquidsoap. What I was ideally hoping to do is running chuck =&gt;<br>
DarkIce/Liquidsoap =&gt; Icecast on an Amazon EC2 appliance, but a lack<br>
of soundcard on these machines complicates things.<br>
<br>
Cheers ears,<br>
<br>
<br>
Stuart<br>
<div class="m_-6013748902637972126m_2139673309676118489m_-8165606876111410289HOEnZb"><div class="m_-6013748902637972126m_2139673309676118489m_-8165606876111410289h5">______________________________<wbr>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton<wbr>.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu<wbr>/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton<wbr>.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu<wbr>/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.<wbr>princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.<wbr>edu/mailman/listinfo/chuck-<wbr>users</a><br>
<br></blockquote></div><br></div>