view pitch/chromatic.m @ 47:82075c94eed1

adding a bunch of stuff, including graphics and pitch toolboxes.
author samer
date Sat, 17 Jan 2015 15:20:35 +0000
parents
children
line wrap: on
line source
function y=chromatic(i)
% chromatic - Return degrees of chromatic scale in semitones relative to tonic
%
% chromatic :: unit -> [[12]->natural].
% chromatic :: [[N]->natural] -> [[N]->natural].

y=0:11;
if nargin>0, y=y(i); end