<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Graham:<div><br></div><div>Doh! &nbsp;I saw WvOut, but foolishly overlooked it. &nbsp;I'm embarrassed so say it didn't occur to me that&nbsp;<div><span class="Apple-tab-span" style="white-space:pre">        </span>adc => WvOut w&nbsp;</div><div>is really no different than&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SinOsc s => WvOut w.<div><br></div><div>Thank you for the enlightenment. &nbsp;Life is good in ChucKland.</div><div><br></div><div>- Rob</div><div><br></div><div><div><div>On 18 Feb 2009, at 08:22, Graham Coleman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Rob,<br><br>WvOut class should be what you are looking for...<br><br><a href="http://chuck.cs.princeton.edu/doc/program/ugen_full.html#WvOut">http://chuck.cs.princeton.edu/doc/program/ugen_full.html#WvOut</a><br><br>Graham<br> <br><div class="gmail_quote">On Wed, Feb 18, 2009 at 5:16 PM, Robert Poor <span dir="ltr">&lt;<a href="mailto:rdpoor@gmail.com">rdpoor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> fellow chukka's:<br> <br> I have not yet found an obvious way to record audio input under ChucK control. &nbsp;The SndBuf.write() method is documented as "not yet implemented", and test code appears to confirm that it isn't implemented.<br> <br> I want to use ChucK to record snippets during a live performance using MIDI input to control when the recording starts, then use ChucK to play back processed snippets. &nbsp;I *really* don't want to be switching apps (more specifically -- I don't want to be fiddling on a Mac keyboard), so I need Chuck to control it all.<br> <br> So my gambit -- yet to be tested -- is to use ChucK to spawn a command line function to do the recording, such as:<br> <br> &nbsp;def void recordSnippet(string toFilename) {<br> &nbsp; &nbsp;system ("sndrecord " + toFilename);<br> &nbsp;}<br> <br> ... where sndrecord is a command-line recorder (such as /Developer/Examples/CoreAudio/Services/AudioFileTools/afrecord).<br> <br> Questions, always questions:<br> <br> - Given my constrains (real-time recording must be controlled from a MIDI device, not from a Mac keyboard) is this a sensible approach? &nbsp;How have other people managed this?<br> <br> - in the ChucK system() call, is there a way to attach to stdin / stdout of a spawned process? &nbsp;In this particular case, I would like to send it a string to stdin of the spawned process to tell it when to stop recording.<br> <br> - Aside from the afrecord utility in Mac OS /Developer, are there other command-line recording apps that people use and like?<br> <br> Thanks.<br> <br> - Rob<br> <br> _______________________________________________<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> </blockquote></div><br> _______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br></blockquote></div><br></div></div></div></body></html>