Mercurial > hg > ishara
annotate pitch/minor.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 y=minor(i) |
samer@47 | 2 % major - Return degrees of major scale in semitones relative to tonic |
samer@47 | 3 % |
samer@47 | 4 % major :: unit -> [[7]->natural]. |
samer@47 | 5 % major :: [[N]->natural] -> [[N]->natural]. |
samer@47 | 6 |
samer@47 | 7 y=[0,2,3,5,7,8,10]; |
samer@47 | 8 if nargin>0, y=y(i); end |