Don't make the overlap a parameter, it's too fiddly to handle. Just choose the smallest step size that gives an integral input-frames-per-output-bin
author |
Chris Cannam |
date |
Wed, 12 Mar 2014 12:01:54 +0000 |
parents |
4a777e3b515e |
children |
|
rev |
line source |
Chris@7
|
1
|
Chris@7
|
2 Low-frequency spectrogram
|
Chris@7
|
3 =========================
|
Chris@7
|
4
|
Chris@7
|
5 This is a Vamp plugin that produces a spectrogram from only the
|
Chris@7
|
6 low-frequency content of a signal.
|
Chris@7
|
7
|
Chris@7
|
8 You supply a frequency range and a number of bins, and it returns a
|
Chris@7
|
9 magnitude spectrum containing the requested number of bins, spanning
|
Chris@7
|
10 the frequency range you asked for. It does this by first downsampling
|
Chris@7
|
11 the signal to an integer multiple of the maximum requested frequency,
|
Chris@7
|
12 then calculating a Hann-windowed FFT of an appropriate size and
|
Chris@7
|
13 returning a subset of its magnitudes.
|
Chris@7
|
14
|
Chris@7
|
15 Chris Cannam, March 2014
|