Mercurial > hg > ishara
view pitch/ivals2pitches.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 pm=ivals2pitches(n,i) % ivals2pitches - make array of pitches in semitones from intervals in scale % % ivals2pitchs :: % N:natural ~'number of notes in scale to return', % [[1,M]] ~'intervals defining scale' % -> [[1,N]] ~'pitches in semitones'. pm=cumsum(gathern(2,n,cycle(window(i))));