To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / _chroma / semitonedistance.m @ 8:b5b38998ef3b

History | View | Annotate | Download (167 Bytes)

1
function df = semitonedistance(f,varargin)
2
if nargin == 1
3
    df = log(2)/12*f;
4
else
5
    bins_per_semitone = varargin{1};
6
    df = log(2)/(12*bins_per_semitone)*f;
7
end