# HG changeset patch # User Marcus Pearce # Date 1189507144 -3600 # Node ID b753a56c373b2031e3ea38064c5c348dd8eb5312 # Parent 7ed6a263f844207dd39740acfcd9db118dc69c85 base/: add standard-monody darcs-hash:20070911103904-c0ce4-972b12d9521d0c75143ef9d81fdb7f33dbc3e8e4.gz diff -r 7ed6a263f844 -r b753a56c373b base/classes.lisp --- a/base/classes.lisp Tue Sep 11 11:17:57 2007 +0100 +++ b/base/classes.lisp Tue Sep 11 11:39:04 2007 +0100 @@ -179,4 +179,4 @@ (defclass standard-composition (composition standard-time-ordered-constituent) ()) (defclass monody (composition) ()) - +(defclass standard-monody (monody standard-composition) ()) diff -r 7ed6a263f844 -r b753a56c373b base/methods.lisp --- a/base/methods.lisp Tue Sep 11 11:17:57 2007 +0100 +++ b/base/methods.lisp Tue Sep 11 11:39:04 2007 +0100 @@ -2,7 +2,7 @@ ;;; monody -(defmethod ensure-monody ((m monody)) +(defmethod ensure-monody ((m standard-monody)) (let ((result t)) (dotimes (i (1- (length m)) result) ;; assumes the events are time ordered which (since monody is a @@ -453,4 +453,4 @@ (make-standard-period duration-value)) (defmethod make-anchored-period ((onset-value real) (duration-value real)) "Returns STANDARD-ANCHORED-PERIOD given a real" - (make-standard-anchored-period onset-value duration-value)) \ No newline at end of file + (make-standard-anchored-period onset-value duration-value)) diff -r 7ed6a263f844 -r b753a56c373b base/package.lisp --- a/base/package.lisp Tue Sep 11 11:17:57 2007 +0100 +++ b/base/package.lisp Tue Sep 11 11:39:04 2007 +0100 @@ -6,6 +6,7 @@ #:standard-constituent #:standard-composition #:monody + #:standard-monody #:identifier #:moment #:period diff -r 7ed6a263f844 -r b753a56c373b implementations/mtp/classes.lisp --- a/implementations/mtp/classes.lisp Tue Sep 11 11:17:57 2007 +0100 +++ b/implementations/mtp/classes.lisp Tue Sep 11 11:39:04 2007 +0100 @@ -37,7 +37,7 @@ (composition-id :initarg :composition-id :accessor composition-id) (description :initarg :description :accessor description))) -(defclass mtp-monody (amuse:monody mtp-composition) +(defclass mtp-monody (amuse:standard-monody mtp-composition) ()) (defclass mtp-event (amuse:standard-pitched-event mtp-music-object)