Mercurial > hg > adaptinstrspec
view functions/freqIdx2PartialIdx.m @ 0:b4e26b53072f tip
Initial commit.
author | Holger Kirchhoff <holger.kirchhoff@eecs.qmul.ac.uk> |
---|---|
date | Tue, 04 Dec 2012 13:57:15 +0000 |
parents | |
children |
line wrap: on
line source
function partialIdcs = freqIdx2PartialIdx(freqIdcs, numBinsPerSemitone) % converts frequency indices of the basis functions of the svNMD framework % into indices of harmonic partials (! not tested !) partialIdcs = 2.^( (freqIdcs-1)/(12*numBinsPerSemitone) );