Mercurial > hg > amuse
comparison base/classes.lisp @ 57:f308c2b7b796
base/classes.lisp: add print-object for midi-key-signature
darcs-hash:20070621141636-c0ce4-0b635e10218ab7bb492f2fc46f48bf672de13eb8.gz
author | Marcus Pearce <m.pearce@gold.ac.uk> |
---|---|
date | Thu, 21 Jun 2007 15:16:36 +0100 |
parents | cace0cf82aee |
children | 95dce8c7f08c |
comparison
equal
deleted
inserted
replaced
56:13033824fa7d | 57:f308c2b7b796 |
---|---|
79 ;; Is mode ever used in real life? Is it ever accurately used in | 79 ;; Is mode ever used in real life? Is it ever accurately used in |
80 ;; real life? | 80 ;; real life? |
81 ((mode :accessor %midi-key-signature-mode | 81 ((mode :accessor %midi-key-signature-mode |
82 :initarg :mode))) | 82 :initarg :mode))) |
83 | 83 |
84 (defmethod print-object ((mks midi-key-signature) stream) | |
85 (format stream "#<~A ~A ~A>" | |
86 (symbol-name (class-name (class-of mks))) | |
87 (%basic-key-signature-sharp-count mks) | |
88 (%midi-key-signature-mode mks))) | |
89 | |
84 (defclass tempo (anchored-period) | 90 (defclass tempo (anchored-period) |
85 ;; accel and rit in symbolic encoding will need other structures, as | 91 ;; accel and rit in symbolic encoding will need other structures, as |
86 ;; will textual tempo markings. | 92 ;; will textual tempo markings. |
87 ((bpm :accessor %tempo-bpm | 93 ((bpm :accessor %tempo-bpm |
88 :initarg :bpm))) | 94 :initarg :bpm))) |