Category Archives: Programming

A Public, Cross-Platform DSP API?

Porting DSP code to take advantage of platform-specific ‘native’ DSP libraries is a pain. Surely there’s a better way. Over the years, I’ve worked on DSP projects for many different platforms. As much as possible I try to find a … Continue reading

Posted in Audio, DSP, FFT, iOS, Programming | 6 Comments

Using Apple’s vDSP/Accelerate FFT

If you want to write code for signal processing on the Mac or iOS, you really should take advantage of Apple’s Accelerate framework. It provides an extensive library of highly optimized mathematical functions suitable for a wide range of signal processing … Continue reading

Posted in Audio, FFT, iOS, Programming | 15 Comments

Playing background audio in iOS app

One of the most frequent requests I get for my AudioStretch for iOS app is the ability to continue playing when the phone is locked.  For some users it’s because their phone auto-locks after a minute or two; if you’re playing along … Continue reading

Posted in Audio, iOS, iPhone, Programming | 2 Comments

Web Audio Sine Tone Generator

I’ve seen some very impressive examples of what can be done with the Web Audio API. Great for inspiration, but for learning a new API, personally I prefer examples that are stripped down to the bare essentials. With that in … Continue reading

Posted in Audio, Programming | Tagged | 9 Comments

A Flash audio output for real-time Javascript audio generation

In the not-too-distant future, it seems likely that all major browsers will provide built in support for real-time audio generation in Javascript. Standardization for the Web Audio API is well under way. It’s already supported in shipping versions of Chrome. … Continue reading

Posted in Audio, Flash, Programming | 4 Comments

An FFT in C#

A few weeks ago, I wrote a post comparing the performance of Flash/AS3 vs. Silverlight/C#. I used a very simple test, element-by-element addition of two vectors of numbers. The C# version was about 5 times faster. I was curious whether … Continue reading

Posted in Audio, C#, Programming | 87 Comments

Reading and writing local files in Silverlight/C#

In a Silverlight app running in a web page, it’s possible to read and write local files with one restriction: the end-user needs to select the files. The following code is an ultra-simple example of how it’s done. LocalFileReadWrite is … Continue reading

Posted in Programming | 20 Comments