Semitone Spectrogram

Post any examples or modules that you want to share here
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Semitone Spectrogram

Post by martinvicanek »

Refer to Wikipedia's article on heterodyne. Basically what I do is the following;

1. For each note generate sine(wt) and cosine(wt) with the corresponding angular frequency w.
2. Multiply the input with sine and cosine, respectively.
3. Lowpass-filter products to remove the sum frequency and keep only the difference frequency components, call them x and y.
4. Evalueate x^2 + y^2 to get the squared amplitude of that semitone. Assumption is that within the semitone frequency band only one sinusoid is present else you get beats.

Note that in contrast to straight bandpass-filtering the input, with heterodyning you eliminate the need for an envelope follower. ;)
francoisreme
Posts: 29
Joined: Wed Feb 15, 2017 4:01 pm

Re: Semitone Spectrogram

Post by francoisreme »

Huge work as usual martin...
Post Reply