fellow chukka's: I have not yet found an obvious way to record audio input under ChucK control. The SndBuf.write() method is documented as "not yet implemented", and test code appears to confirm that it isn't implemented. 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. 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. So my gambit -- yet to be tested -- is to use ChucK to spawn a command line function to do the recording, such as: def void recordSnippet(string toFilename) { system ("sndrecord " + toFilename); } ... where sndrecord is a command-line recorder (such as /Developer/ Examples/CoreAudio/Services/AudioFileTools/afrecord). Questions, always questions: - Given my constrains (real-time recording must be controlled from a MIDI device, not from a Mac keyboard) is this a sensible approach? How have other people managed this? - in the ChucK system() call, is there a way to attach to stdin / stdout of a spawned process? 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. - Aside from the afrecord utility in Mac OS /Developer, are there other command-line recording apps that people use and like? Thanks. - Rob
Rob,
WvOut class should be what you are looking for...
http://chuck.cs.princeton.edu/doc/program/ugen_full.html#WvOut
Graham
On Wed, Feb 18, 2009 at 5:16 PM, Robert Poor
fellow chukka's:
I have not yet found an obvious way to record audio input under ChucK control. The SndBuf.write() method is documented as "not yet implemented", and test code appears to confirm that it isn't implemented.
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. 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.
So my gambit -- yet to be tested -- is to use ChucK to spawn a command line function to do the recording, such as:
def void recordSnippet(string toFilename) { system ("sndrecord " + toFilename); }
... where sndrecord is a command-line recorder (such as /Developer/Examples/CoreAudio/Services/AudioFileTools/afrecord).
Questions, always questions:
- Given my constrains (real-time recording must be controlled from a MIDI device, not from a Mac keyboard) is this a sensible approach? How have other people managed this?
- in the ChucK system() call, is there a way to attach to stdin / stdout of a spawned process? 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.
- Aside from the afrecord utility in Mac OS /Developer, are there other command-line recording apps that people use and like?
Thanks.
- Rob
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
or LiSa? On Feb 18, 2009, at 11:22 AM, Graham Coleman wrote:
Rob,
WvOut class should be what you are looking for...
http://chuck.cs.princeton.edu/doc/program/ugen_full.html#WvOut
Graham
On Wed, Feb 18, 2009 at 5:16 PM, Robert Poor
wrote: fellow chukka's: I have not yet found an obvious way to record audio input under ChucK control. The SndBuf.write() method is documented as "not yet implemented", and test code appears to confirm that it isn't implemented.
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. 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.
So my gambit -- yet to be tested -- is to use ChucK to spawn a command line function to do the recording, such as:
def void recordSnippet(string toFilename) { system ("sndrecord " + toFilename); }
... where sndrecord is a command-line recorder (such as /Developer/ Examples/CoreAudio/Services/AudioFileTools/afrecord).
Questions, always questions:
- Given my constrains (real-time recording must be controlled from a MIDI device, not from a Mac keyboard) is this a sensible approach? How have other people managed this?
- in the ChucK system() call, is there a way to attach to stdin / stdout of a spawned process? 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.
- Aside from the afrecord utility in Mac OS /Developer, are there other command-line recording apps that people use and like?
Thanks.
- Rob
_______________________________________________ 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
Graham: Doh! I saw WvOut, but foolishly overlooked it. I'm embarrassed so say it didn't occur to me that adc => WvOut w is really no different than SinOsc s => WvOut w. Thank you for the enlightenment. Life is good in ChucKland. - Rob On 18 Feb 2009, at 08:22, Graham Coleman wrote:
Rob,
WvOut class should be what you are looking for...
http://chuck.cs.princeton.edu/doc/program/ugen_full.html#WvOut
Graham
On Wed, Feb 18, 2009 at 5:16 PM, Robert Poor
wrote: fellow chukka's: I have not yet found an obvious way to record audio input under ChucK control. The SndBuf.write() method is documented as "not yet implemented", and test code appears to confirm that it isn't implemented.
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. 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.
So my gambit -- yet to be tested -- is to use ChucK to spawn a command line function to do the recording, such as:
def void recordSnippet(string toFilename) { system ("sndrecord " + toFilename); }
... where sndrecord is a command-line recorder (such as /Developer/ Examples/CoreAudio/Services/AudioFileTools/afrecord).
Questions, always questions:
- Given my constrains (real-time recording must be controlled from a MIDI device, not from a Mac keyboard) is this a sensible approach? How have other people managed this?
- in the ChucK system() call, is there a way to attach to stdin / stdout of a spawned process? 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.
- Aside from the afrecord utility in Mac OS /Developer, are there other command-line recording apps that people use and like?
Thanks.
- Rob
_______________________________________________ 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
Hi Rob,
I might look into what Dan mentioned. LiSa is perfect for the
application you're looking into, if I understand it correctly. You
can record sounds into LiSa's buffer, then play it back whenever you
want without having to load another file. It even manages its own
memory, so you won't have memory gobbling problems if you change
samples.
Cheers,
Rogan
On Wed, Feb 18, 2009 at 10:43 AM, Robert Poor
Graham: Doh! I saw WvOut, but foolishly overlooked it. I'm embarrassed so say it didn't occur to me that adc => WvOut w is really no different than SinOsc s => WvOut w. Thank you for the enlightenment. Life is good in ChucKland. - Rob On 18 Feb 2009, at 08:22, Graham Coleman wrote:
Rob,
WvOut class should be what you are looking for...
http://chuck.cs.princeton.edu/doc/program/ugen_full.html#WvOut
Graham
On Wed, Feb 18, 2009 at 5:16 PM, Robert Poor
wrote: fellow chukka's:
I have not yet found an obvious way to record audio input under ChucK control. The SndBuf.write() method is documented as "not yet implemented", and test code appears to confirm that it isn't implemented.
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. 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.
So my gambit -- yet to be tested -- is to use ChucK to spawn a command line function to do the recording, such as:
def void recordSnippet(string toFilename) { system ("sndrecord " + toFilename); }
... where sndrecord is a command-line recorder (such as /Developer/Examples/CoreAudio/Services/AudioFileTools/afrecord).
Questions, always questions:
- Given my constrains (real-time recording must be controlled from a MIDI device, not from a Mac keyboard) is this a sensible approach? How have other people managed this?
- in the ChucK system() call, is there a way to attach to stdin / stdout of a spawned process? 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.
- Aside from the afrecord utility in Mac OS /Developer, are there other command-line recording apps that people use and like?
Thanks.
- Rob
_______________________________________________ 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
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (4)
-
dan trueman
-
Graham Coleman
-
Robert Poor
-
Rogan Carr