Author |
Message |
opabecker
Joined: Oct 23, 2011 Posts: 8 Location: Rochester, Michigan
|
Posted: Fri May 02, 2014 8:32 am Post subject:
export.ck not found Subject description: Unable to export wav file in miniAudicle 1.3.2 |
 |
|
Hi,
I just updated to the latest version of ChucK (1.3.4.0) and miniAudicle (1.3.2) for MacOSX. Now, when I try to export to a WAV file, I get the error message "[export.ck]: no such file or directory". I had never gotten this message before - can anyone point me toward a solution?
Thanks!
Anthony |
|
Back to top
|
|
 |
jkant
Joined: Dec 14, 2013 Posts: 14 Location: Milan, Italy
|
Posted: Tue May 13, 2014 8:42 am Post subject:
|
 |
|
Sometimes happens to me too...
Spork this (along with what you want to export):
Code: |
dac => WvOut2 w => blackhole;
"chuck-session" => w.autoPrefix;
"special:auto" => w.wavFilename;
<<<"writing to file: ", w.filename()>>>;
.5 => w.fileGain;
null @=> w;
while( true ) 1::second => now;
|
Best _________________ Random Bitz |
|
Back to top
|
|
 |
opabecker
Joined: Oct 23, 2011 Posts: 8 Location: Rochester, Michigan
|
Posted: Tue May 13, 2014 9:34 am Post subject:
|
 |
|
Hi jkant,
Thanks for taking the time to respond.
Should I be saving that code snippet as export.ck somewhere (and if so, where)? I've tried saving it in the directory with my other files and sporking it from one of them - I've also tried just adding it to my main driver.ck file instead of sporking it directly - I've also tried manually sporking it before starting the export - but none of those helped.
Thanks!
Anthony |
|
Back to top
|
|
 |
jkant
Joined: Dec 14, 2013 Posts: 14 Location: Milan, Italy
|
Posted: Tue May 13, 2014 10:45 am Post subject:
|
 |
|
Quote: |
Should I be saving that code snippet as export.ck somewhere (and if so, where)? |
No you have to spork it before the thing you want to record. That shred will record in realtime your stuff in a stereo wav file.
Best _________________ Random Bitz |
|
Back to top
|
|
 |
opabecker
Joined: Oct 23, 2011 Posts: 8 Location: Rochester, Michigan
|
Posted: Tue May 13, 2014 11:29 am Post subject:
|
 |
|
I appreciate your willingness to help, but perhaps there is a misunderstanding here. To restate my problem:
Under the previous version of miniAudicle/ChucK, I *had* a working shred that I would spork to record my audio in realtime (this shred was very much like the one you suggested to me). This shred was sporked from a driver file (using a call to Machine.add()). At least, this shred had worked *some* of the time: occasionally, it would just produce an empty .wav file, in which case I'd have to shut miniAudicle down and restart it, and then it would create a proper .wav file. As an alternative, I could export from my driver file, which would also create a proper .wav file.
Since upgrading to the latest version of miniAudicle and ChucK, my once-working shred for recording does not work at all anymore (it *always* creates an empty .wav file), and when I try to export, I get the error message, so that does not work anymore either.
In short, the problem is NOT related to my not having a shred to initiate the sound recording; the problem is more related to what changed between ChucK 1.3.3.0 and ChucK 1.3.4.0, and what adjustments I need to make to my programs because of that (or what changes need to be made to ChucK 1.3.5.0 to fix it .
Thanks!
Anthony |
|
Back to top
|
|
 |
opabecker
Joined: Oct 23, 2011 Posts: 8 Location: Rochester, Michigan
|
Posted: Thu May 29, 2014 10:30 am Post subject:
|
 |
|
bump? |
|
Back to top
|
|
 |
opabecker
Joined: Oct 23, 2011 Posts: 8 Location: Rochester, Michigan
|
Posted: Fri May 30, 2014 10:10 am Post subject:
|
 |
|
Hi everyone,
Well, panic mode is averted for now.
It turns out that my recording shred is not producing an empty wav file as I'd thought; instead, it produces a file that Audacity cannot import as a wav file. So, I tried importing it as a raw 16 bit pcm file, and I see now that the file contains the sound that ChucK had produced, and I can play it back. Whew!
Perhaps there is some header information that ChucK should be putting into the file when it records a wav file (and maybe something I need to do to my recording shred to make that happen?). Here is my recording shred, which is sporked from another thread and controlled from that thread:
Code: | // aufnahme.ck
// This script will record the output of the calling program.
// access globals
Globals glob;
// get name of output file
"mech_"+glob.seedValue => string outputFile;
// pull samples from the dac
dac => Mix2 g => WvOut2 w => blackhole;
me.dir()+"/"+outputFile+".wav" => w.wavFilename;
// start recording
1 => w.record => glob.recFlag;
// keep recording until told to stop
while (glob.recFlag)
{
1000::ms => now;
}
// stop recording
0 => w.record;
w.closeFile();
|
I still have the "export.ck not found" error, and would really like to fix that. However, it looks like I can stop thinking about reverting back to the previous version of ChucK/miniAudicle to record. |
|
Back to top
|
|
 |
|