Posted by hooeezit on August 18th, 2009
I am currently working on WAV file playback in an embedded device. To store WAV (PCM) sounds on an embedded device, you need to strip the headers and extract the uncompressed PCM data from the file. My previous post shows how to convert the binary data from the WAV file into a C array that can be included in a project as a source file. In this post, I show you how to figure out where the PCM data lies within the WAV file.
Read the rest of this entry »
Posted by hooeezit on August 18th, 2009
Most small embedded devices do not have enough storage to justify a file system abstraction. So, if you have to store binary data like an image or a sound waveform, the most common method is to embed it in the code as a linear array. In this article, I show you a Python script that can convert any binary file into a C array encoded in hex.
Read the rest of this entry »
Posted by hooeezit on August 16th, 2009
The interactivity of Excel makes it a very handy tool for data analysis. But Excel excels only at numeric analysis. Unfortunately, tabular/set analysis is not inherently supported in Excel and you have to jump through hoops to do that. I’m posting the source code for a VBA subroutine (Excel Macro) that performs one of the most common tabular operations – a Table Join. The subroutine here takes 2 tables in the form of ranges, and the name of the join field as input and produces a new worksheet with the joined table as output.
Read the rest of this entry »
Recent Comments