Mercurial > hg > amuse
changeset 223:fb27101cde2b
add composition slot to event (amuse base)
Ignore-this: ef4ef09ad8e7c134e7e3cb5b70345b34
darcs-hash:20090828163617-16a00-eb532b34b175c446e804d90785ef18367ae85971.gz
committer: Jamie Forth <j.forth@gold.ac.uk>
author | j.forth <j.forth@gold.ac.uk> |
---|---|
date | Thu, 24 Feb 2011 11:23:18 +0000 |
parents | ead979ad3b28 |
children | 7afb8cfdcdcf |
files | base/classes.lisp base/package.lisp |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/base/classes.lisp Thu Feb 24 11:23:18 2011 +0000 +++ b/base/classes.lisp Thu Feb 24 11:23:18 2011 +0000 @@ -80,6 +80,11 @@ (defclass event (anchored-period) () (:documentation "Notelike object")) +(defclass linked-event (amuse-object) + ((composition :reader composition + :writer %set-composition + :initarg :composition)) + (:documentation "This provides a composition slot for events.")) (defclass pitched-event (event pitch) () (:documentation "Event with pitch information")) (defclass standard-pitched-event (pitched-event
--- a/base/package.lisp Thu Feb 24 11:23:18 2011 +0000 +++ b/base/package.lisp Thu Feb 24 11:23:18 2011 +0000 @@ -8,6 +8,8 @@ #:monody #:standard-monody #:identifier + #:composition + #:%set-composition #:composition-identifier #:constituent-identifier #:moment @@ -23,6 +25,7 @@ #:diatonic-pitch #:chromatic-pitch-interval #:diatonic-pitch-interval + #:linked-event #:pitched-event #:standard-pitched-event #:chromatic-pitched-event