To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / _chordtools / contents.m
History | View | Annotate | Download (3.37 KB)
| 1 |
% C4DM Chord Symbols Toolkit |
|---|---|
| 2 |
% |
| 3 |
% Version 1.0 November 05 |
| 4 |
% |
| 5 |
%TYPES |
| 6 |
% types - help describes types, structures and enumerations used in toolbox |
| 7 |
% |
| 8 |
%SYMBOL MANIPULATION FUNCTIONS |
| 9 |
% parsechord - Parse chord symbol to its constituent string elements |
| 10 |
% parsenote - Parse a note string to a natural plus accidentals |
| 11 |
% parsedegree - Parse a degree to an interval plus accidentals |
| 12 |
% parsedegreelist - Parse a degree list to intervals and accidentals |
| 13 |
% degree2semitone - Convert a degree to equivalent number of semitones |
| 14 |
% interval2semitone - Convert interval + accidentals to semitone value |
| 15 |
% interval2degree - Convert interval + accidentals to a degree string |
| 16 |
% degrees2semitones - Convert a degree list to an array of semitone values |
| 17 |
% degree2note - Convert a degree to correctly spelled note w.r.t. a root |
| 18 |
% degrees2quality - Return the quality of a given degreelist |
| 19 |
% note2pitchclass - Convert a note to a pitchclass value w.r.t middle C |
| 20 |
% notes2pitchclasses - Convert a note list to an array pitchclasses |
| 21 |
% note2fifthinfo - Find line of fifths natural-position and accidentals |
| 22 |
% note2fifthposition - Find note position on the line of fifths w.r.t. C=0 |
| 23 |
% notes2fifthpositions - Convert notes list to positions on line of fifths |
| 24 |
% note2degree - Convert a note to a degree w.r.t. a given root |
| 25 |
% shorthand2degrees - Convert a shorthand string to equivalent degreelist |
| 26 |
% short2quality - Return the quality of a given shorthand string |
| 27 |
% |
| 28 |
% |
| 29 |
%HIGHER LEVEL FUNCTIONS |
| 30 |
% getchordinfo - Check chord symbol validity and return constituent parts |
| 31 |
% syntaxcheck - Check the syntax and validity of a chord symbol |
| 32 |
% addshort2list - Combine degrees of a shorthand with another degree list |
| 33 |
% chord2quality - Returns the chord quality of a given chord symbol |
| 34 |
% chord2notes - Convert chord symbol to list of constituent notes |
| 35 |
% chord2midinotes - Generate MIDI note values for a given chord symbol |
| 36 |
% chord2pitchclasses - Convert chord symbol to array of pitch classes |
| 37 |
% chord2fifthpositions - Convert chord symbol to pitch positions on line of fifths |
| 38 |
% |
| 39 |
%LAB FILE FUNCTIONS |
| 40 |
% labread - Read in times and symbols from a lab file |
| 41 |
% labwrite - Write times and symbols to a lab file |
| 42 |
% mlf2lab - Convert an mlf transcription file to a lab file |
| 43 |
% checklabsyntax - Check the syntax of all chords in a lab file |
| 44 |
% checklabs - Check chord syntax in all lab files in a directory |
| 45 |
% |
| 46 |
% Author: Christopher Harte, September 05 |
| 47 |
% |
| 48 |
% Copyright: Centre for Digital Music, Queen Mary University of London 2005 |
| 49 |
% |
| 50 |
% This file is part of the C4DM Chord Toolkit. |
| 51 |
% |
| 52 |
% The C4DM Chord Toolkit is free software; you can redistribute it and/or |
| 53 |
% modify it under the terms of the GNU General Public License as published |
| 54 |
% by the Free Software Foundation; either version 2 of the License, or |
| 55 |
% (at your option) any later version. |
| 56 |
% |
| 57 |
% The C4DM Chord Toolkit is distributed in the hope that it will be useful, |
| 58 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 59 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 60 |
% GNU General Public License for more details. |
| 61 |
% |
| 62 |
% You should have received a copy of the GNU General Public License |
| 63 |
% along with the C4DM Toolkit; if not, write to the Free Software |
| 64 |
% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |