comparison base/generics.lisp @ 108:b445959f4cc1

MIPS generic functions and methods for diatonic pitches Define and implement DIATONIC-PITCH-MP and DIATONIC-PITCH-CP for mips-pitches (soon to be diatonic-pitches). Supersedes MEREDITH-FOO darcs-hash:20070726131018-dc3a5-3421fb2c4beceae2370932768fefa1115050cfdd.gz
author c.rhodes <c.rhodes@gold.ac.uk>
date Thu, 26 Jul 2007 14:10:18 +0100
parents 8528c316fbcc
children 034ef8412ddb
comparison
equal deleted inserted replaced
107:6bc5542fa9fa 108:b445959f4cc1
55 (defgeneric diatonic-pitch-accidental (pitch-designator) 55 (defgeneric diatonic-pitch-accidental (pitch-designator)
56 (:documentation "Return an integer representing the inflection of a 56 (:documentation "Return an integer representing the inflection of a
57 diatonic pitch where where negative values indicate numbers of flats, 57 diatonic pitch where where negative values indicate numbers of flats,
58 0 indicates natural and positive values indicate numbers of sharps.")) 58 0 indicates natural and positive values indicate numbers of sharps."))
59 59
60 (defgeneric diatonic-pitch-mp (pitch-designator)
61 (:documentation "Return an integer representing the morphetic pitch
62 \(in MIPS terms) of a diatonic pitch."))
63 (defgeneric diatonic-pitch-cp (pitch-designator)
64 (:documentation "Return an integer representing the chromatic pitch
65 \(in MIPS terms) of a diatonic pitch."))
66
60 (defgeneric middle-c (pitch-designator) 67 (defgeneric middle-c (pitch-designator)
61 (:documentation "Returns the value of middle C in the particular 68 (:documentation "Returns the value of middle C in the particular
62 representation of pitch used by PITCH-DESIGNATOR.")) 69 representation of pitch used by PITCH-DESIGNATOR."))
63 (defgeneric midi-pitch-number (pitch-designator) 70 (defgeneric midi-pitch-number (pitch-designator)
64 (:documentation "Takes a pitch-designator (usually a pitched 71 (:documentation "Takes a pitch-designator (usually a pitched