Mercurial > hg > ishara
annotate dsp/bin2freq.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 82075c94eed1 |
children |
rev | line source |
---|---|
samer@47 | 1 function f=bin2freq(k,N,fs) |
samer@47 | 2 % K2F: convert DFT freq bin to freq in Hz |
samer@47 | 3 % |
samer@47 | 4 % f=bin2freq(k,N,fs): |
samer@47 | 5 % k: index of frequency bin in DFT |
samer@47 | 6 % N: frame size of FT |
samer@47 | 7 % fs: sampling frequency |
samer@47 | 8 |
samer@47 | 9 f=k*fs/N; |