# HG changeset patch # User j.forth # Date 1251477377 -3600 # Node ID 6be947d9e7c3f72ce289cd6fb3c011375e4790fe # Parent 68aadc4eb96d3955c32596f4bbfb5d96c6d3a33b add composition slot to event (amuse base) Ignore-this: ef4ef09ad8e7c134e7e3cb5b70345b34 darcs-hash:20090828163617-16a00-eb532b34b175c446e804d90785ef18367ae85971.gz diff -r 68aadc4eb96d -r 6be947d9e7c3 base/classes.lisp --- a/base/classes.lisp Fri Aug 28 15:52:17 2009 +0100 +++ b/base/classes.lisp Fri Aug 28 17:36:17 2009 +0100 @@ -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 diff -r 68aadc4eb96d -r 6be947d9e7c3 base/package.lisp --- a/base/package.lisp Fri Aug 28 15:52:17 2009 +0100 +++ b/base/package.lisp Fri Aug 28 17:36:17 2009 +0100 @@ -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