[music-dsp] audio file to ascii text convertor

Erik de Castro Lopo erikd-music-dsp at mega-nerd.com
Tue Aug 28 16:41:03 EDT 2001


On Tue, 28 Aug 2001 16:26:40 +0100
Adam Green <greena at tcd.ie> wrote:

> greetings folks,
> 
> i'm new to this list (first post anyway!) so hello all, and i 
> apologise in advance for my query which may be blindingly obvious or 
> stoopid to most.
> 
> i'm just getting started on a dsp project which requires me to be 
> able to read wavs into a sharc dsp for straightforward playback. the 
> approach is to convert a small wav into ascii text, header bytes, 
> sample bytes and all, so that i can reliably extract info from the 
> header subchunks in order to play back wavs / files of various sizes, 
> sample-rates, etc from different locations in memory. ideally i'll be 
> able to generate some kind of file allocation table for the address 
> pointers. All my audio will be 16 bit PCM and i'm writing this in 
> sharc assembler.
> 
> can anyone recommend an audio file to ascii text file converter that 
> will maintain and convert the header bytes?
> 
> i've found one called awave audio which converts the sample data to 
> ascii text but sticks in its own header text aswell.  ideally i want 
> a single 16-bit word per line of text.


Most of what is in the header of a wave file only makes sense for the binary
format. For instance what use is the 'fmt ' or 'fact' chunk when the file
is in some ASCI format.

Maybe if you gace us an example of how this ASCI format was supposed to look 
like we'd be able to help.

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo     nospam at mega-nerd.com      (Yes its valid)
-----------------------------------------------------------------
"I would rather spend 10 hours reading someone else's source 
code than 10 minutes listening to Musak waiting for technical 
support which isn't." 
   - Dr. Greg Wettstein, Roger Maris Cancer Center

dupswapdrop -- the music-dsp mailing list and website: subscription info,
FAQ, source code archive, list archive, book reviews, dsp links
http://shoko.calarts.edu/musicdsp/




More information about the music-dsp mailing list