electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
export.ck not found
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [7 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
opabecker



Joined: Oct 23, 2011
Posts: 5
Location: Rochester, Michigan

PostPosted: 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
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
jkant



Joined: Dec 14, 2013
Posts: 14
Location: Milan, Italy

PostPosted: Tue May 13, 2014 8:42 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
opabecker



Joined: Oct 23, 2011
Posts: 5
Location: Rochester, Michigan

PostPosted: Tue May 13, 2014 9:34 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
jkant



Joined: Dec 14, 2013
Posts: 14
Location: Milan, Italy

PostPosted: Tue May 13, 2014 10:45 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
opabecker



Joined: Oct 23, 2011
Posts: 5
Location: Rochester, Michigan

PostPosted: Tue May 13, 2014 11:29 am    Post subject: Reply with quote  Mark this post and the followings unread

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 Wink.

Thanks!
Anthony
Back to top
View user's profile Send private message
opabecker



Joined: Oct 23, 2011
Posts: 5
Location: Rochester, Michigan

PostPosted: Thu May 29, 2014 10:30 am    Post subject: Reply with quote  Mark this post and the followings unread

bump?
Back to top
View user's profile Send private message
opabecker



Joined: Oct 23, 2011
Posts: 5
Location: Rochester, Michigan

PostPosted: Fri May 30, 2014 10:10 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [7 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use