Mercurial > hg > ishara
view pitch/pitch2hz.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 82075c94eed1 |
children |
line wrap: on
line source
function f=pitch2hz(n) % PITCH2HZ - convert pitch in semitones rel A440 to frequency % freq=pitch2hz(n) % f: frequency in Hz % n: pitch in semitones relative to A 440Hz. f=440*exp(log(2)*n/12);