Mercurial > hg > ishara
annotate graphics/tfscale.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 [t,f]=tfscale(fs,N,m,size); |
samer@47 | 2 % TFSCALE: time and frequency scales for tfds |
samer@47 | 3 % [t,f]=tfscale(fs,block,hop,size) |
samer@47 | 4 % fs: sampling rate in Hz |
samer@47 | 5 % block: frame size for FFT - determines frequency resolution |
samer@47 | 6 % hop: hop size - determines time resolution |
samer@47 | 7 % size: [height width] of tfd matrix - determines extents |
samer@47 | 8 |
samer@47 | 9 w=size(2); |
samer@47 | 10 h=size(1); |
samer@47 | 11 t=[0 (w-1)*m/fs]; |
samer@47 | 12 f=[0 (h-1)*fs/N]; |
samer@47 | 13 |