Stealth Distortion

Sat, 21 Jul 2007

I'm playing around with a simple program to synthesize sounds, and I've managed to make a sound which looks just like a perfect sine wave, but sounds like a sine wave with some dirt (maybe a bit like a harmonica). I call it stealth distortion. This is what the wave looks like:

Looks like a sine wave

This is what it sounds like (FLAC. ~100KB)

I put an envelope around it, so you get half a second of fade in (no distortion), one second of distorted sound and half a second of fade out (no distortion). I'm pretty confused by the whole thing, because I didn't intend for it to sound like this at all.

You might think that I've snuck in some odd harmonics that are subtle so you can't see them. Well, I'd like to think so too - but here is the spectrum of the distorted bit (narrowband filter of 8192 samples, using a Hanning window):

Looks normal enough

It is late, so I'm assuming tomorrow I will realise that I'm an idiot.

I listened to the sound on my laptop, and it sounded totally different. I think this might be a bug in my soundcard or something like that (it happens with and without headphones). I'll try to put up a recording of it one day.
Andy
6 days after story
It took a while for me to work it out, but the reason was that the volume control was set to something above unity gain (at one stage in the signal path), so the louder samples were being clipped by that.

This means it is just plain old boring distortion.
Andy
21 days after story
Name & email are optional. Email will not be obfuscated.
HTML tags will be removed except hyperlinks.
 

About

I'm a nerd living in Sydney. This is a place where I can write stuff about my interests and not care that no one else is reading.

I like music, maths, programming, pretty pictures, filters and other good things.

(more info)

It should be fairly obvious that this isn't connected to my employer at all.

Email me (not a catchpa)

Email policy

Subscribe

RSS Feed RSS

Get an aggregator

Liferea (Linux)

Vienna (OSX)

Feedreader (Windows)

Google Reader (Web based)

I've only used Liferea, so I can't vouch for the other ones.

About this site

This site runs a (modified) version of blosxom.

The host is GeekISP, and they seem to do an excellent job.