Page 2 of 2

Re: Semitone Spectrogram

PostPosted: Thu Dec 31, 2015 11:29 am
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. ;)

Re: Semitone Spectrogram

PostPosted: Fri Mar 19, 2021 10:16 am
by francoisreme
Huge work as usual martin...