Mercurial > hg > adaptinstrspec
diff functions/partialIdx2FreqIdx.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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/functions/partialIdx2FreqIdx.m Tue Dec 04 13:57:15 2012 +0000 @@ -0,0 +1,7 @@ +function freqIdcs = partialIdx2FreqIdx(partialIdcs, numBinsPerSemitone) +% freqIdcs = partialIdx2FreqIdx(partialIdcs, numBinsPerSemitone) +% +% converts indices of harmonic partials into frequency indices of the +% basis functions of the svNMD framework + +freqIdcs = 12 * numBinsPerSemitone * log2(partialIdcs) + 1; \ No newline at end of file