Audio Programming

By | 02/10/2009

I’ve not posted much over the last few months as I’ve been working on a game prototype. As part of that work I came across the Echo Nest APIs. Analyze seems really interesting as it can output data on the Rhythm, Pitch and Timbre of an audio file. I’ve tried getting the API to work with C# using the WebClient class but have not had any success, as you will see by the posts on the website forum! If anyone is after a small challenge, then let me know how you get on with using the API in C#!

As I had no success with the Analyze API I looked into XNA 3 CTP (Community Technical Preview) as I discovered this new version has a MediaPlayer class which provides access to frequency and sample data of the audio file which is currently playing, through the GetVisualizationData method. Of course, this didn’t work for me as the method is only available when compiling for ZUNE, not much help for me. This method may be available for in windows in the full release of XNA 3 at the end of the year, click here for more info.