electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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
Recording Gaps
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Thu Jun 26, 2008 11:24 am    Post subject: Recording Gaps
Subject description: Frustrations in making a decent vocoder
Reply with quote  Mark this post and the followings unread

I'm having trouble using ChucK to do voice recordings. It seems that no matter how much I free the computer's resources, gaps occur in the recording. This happens for any microphone input, regardless of whether I am doing compute-intensive FFTs or nothing except the recording.

For busy programs generating music there may be audible gaps but the written file is just fine, no doubt a result of ChucK's "strong timing" feature. But for microphone input gaps record as gaps.

The problem is further compounded by the fact that I can't seem to get WvIn to read *.wav files output by Audacity. Is there a file size limit on WvIn? Or could the problem be caused by a hacker monitoring my system somehow? Is this normal behavior?

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24676
Location: The Netherlands, Enschede
Audio files: 330
G2 patch files: 320

PostPosted: Thu Jun 26, 2008 11:52 am    Post subject: Reply with quote  Mark this post and the followings unread

I don't know about he gaps ... some performance issue somewhere ... can be very tough to find ... Crying or Very sad

The wavs not being readable could be because of a non compatible wav sub-format ... in Audacity you can set the sub-format to use through the preferences (see file menu, or use ctrl+p), the go to the file formats page. You could also try a different lossless format like AIFF or AU.

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
9 3 4 .. erm .. not 13 then? .. hmm, ah eight! .. yeah yeah as in 8647 .. 47 is an 88 .. pwew .. numbles!
Back to top
View user's profile Send private message Visit poster's website
Frostburn



Joined: Dec 12, 2007
Posts: 255
Location: Finland
Audio files: 9

PostPosted: Thu Jun 26, 2008 1:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

You can also try SndBuf instead of WvIn.
_________________
To boldly go where no man has bothered to go before.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Jun 26, 2008 1:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
You could also try a different lossless format like AIFF or AU.


AIFF would be a very bad idea if there are performance issues already, assuming we are talking about a x86-based architecture. The order of the bits is the other way around, resulting in extra cpu cost for the conversion. For the G series of processors (basically; older Mac's) the reverse holds true; there you are better off with AIFF then with WAV.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24676
Location: The Netherlands, Enschede
Audio files: 330
G2 patch files: 320

PostPosted: Thu Jun 26, 2008 1:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

Kassen wrote:
The order of the bits is the other way around


I take it you mean the byte order?

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
9 3 4 .. erm .. not 13 then? .. hmm, ah eight! .. yeah yeah as in 8647 .. 47 is an 88 .. pwew .. numbles!
Back to top
View user's profile Send private message Visit poster's website
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Jun 26, 2008 1:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry, yes, you are right. My bad.

PowerPC and AIFF sort the order of the bytes used to represent a number in the opposite order from x86 and WAV so it's preferable to use AIFF on older Mac's and WAV elsewhere... unless you are running something really weird... in which case you'll likely not be running ChucK anyway.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24676
Location: The Netherlands, Enschede
Audio files: 330
G2 patch files: 320

PostPosted: Thu Jun 26, 2008 1:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Just looked it up, there also is a byte reversed version of AIFF now, presumably to get a better match with the apple intel pcs.
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
9 3 4 .. erm .. not 13 then? .. hmm, ah eight! .. yeah yeah as in 8647 .. 47 is an 88 .. pwew .. numbles!
Back to top
View user's profile Send private message Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Thu Jun 26, 2008 2:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

I found the file setting in Audacity's preferences menu and I can play with that, plus I can try SndBuf. Thanks for the suggestions. I may get motivated tonight or perhaps tomorrow, I need some chill-out time as I just completed a lot of work in the past two weeks!

I never understood Big-Endian and Little-Endian. I thought most Indians were kind of medium anyway.

Ooooh, such verbal pun-ishment! I'm going back to my Judas Priest album now!

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 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


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