Mercurial > hg > amuse
changeset 296:68aadc4eb96d
add chromatic-pitch reader method
Ignore-this: 1aba35b7d196e0994a817609337746e1
darcs-hash:20090828145217-16a00-312e63170f50f0bf2834b8959a72e5c857cba9b8.gz
author | j.forth <j.forth@gold.ac.uk> |
---|---|
date | Fri, 28 Aug 2009 15:52:17 +0100 |
parents | ced696bd9871 |
children | 6be947d9e7c3 |
files | base/classes.lisp |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/base/classes.lisp Thu Aug 20 19:19:49 2009 +0100 +++ b/base/classes.lisp Fri Aug 28 15:52:17 2009 +0100 @@ -53,9 +53,12 @@ (defclass frequency-pitch (pitch) ()) (defclass chromatic-pitch (pitch) - ((number :accessor %chromatic-pitch-number :initarg :number)) - (:documentation "A pitch represented as a number, with - chromatic pitches having distinct values.")) + ((number :accessor %chromatic-pitch-number + :reader chromatic-pitch-number :initarg :number)) + (:documentation "A pitch represented as a number, with chromatic + pitches having distinct values. FIXME: We should not be using the cl + symbol NUMBER.")) + (defclass diatonic-pitch (pitch) ((cp :initarg :cp :accessor %p-pc :reader diatonic-pitch-cp) (mp :initarg :mp :accessor %p-pm :reader diatonic-pitch-mp))