annotate implementations/meredith/classes.lisp @ 225:6f0881af3403

add composition slot to event (meredith) Ignore-this: d6b133f7d17684bf3f7c1ccde28c7d8a darcs-hash:20090828164631-16a00-1a25e46b8142401466f4a6ec7159a10d8e31de40.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 4eceac78e7c6
children
rev   line source
j@215 1 (cl:in-package #:amuse-meredith)
j@215 2
j@215 3 ;;; Top-level class
j@215 4
j@215 5 (defclass meredith-data-object (amuse:amuse-object) ())
j@215 6
j@215 7 ;;; Identifiers
j@215 8
j@215 9 (defclass meredith-identifier (meredith-data-object) ())
j@215 10
j@215 11 (defclass meredith-composition-identifier (composition-identifier
j@215 12 meredith-identifier)
j@215 13 ((composition-id
j@215 14 :initarg :composition-id
j@215 15 :reader composition-id)))
j@215 16
j@215 17 (defclass meredith-event-identifier (event-identifier
j@215 18 meredith-identifier)
j@215 19 ((event-id :initarg :event-id
j@215 20 :reader event-id)))
j@215 21
j@215 22 ;;; Music objects
j@215 23
j@215 24 (defclass meredith-music-object (meredith-data-object) ())
j@215 25
j@215 26 (defclass meredith-composition (amuse:standard-composition
j@215 27 meredith-music-object)
j@215 28 ((identifier :initarg :identifier :reader identifier)
j@215 29 (description :initarg :description :reader description)))
j@215 30
j@215 31 (defclass meredith-event (amuse:chromatic-pitched-event
j@215 32 amuse:diatonic-pitched-event
j@215 33 amuse:standard-anchored-period
j@225 34 amuse:linked-event
j@215 35 meredith-music-object)
j@215 36 ((identifier :initarg :identifier :accessor identifier)
j@215 37 (tatum-on :initarg :tatum-on :accessor tatum-on)
j@215 38 (tatum-dur :initarg :tatum-dur :accessor tatum-dur)
j@215 39 (tactus-on :initarg :tactus-on :accessor tactus-on)
j@215 40 (tactus-dur :initarg :tactus-dur :accessor tactus-dur)
j@215 41 (tatum-on-ms :initarg :tatum-on-ms :accessor tatum-on-ms)
j@215 42 (tatum-dur-ms :initarg :tatum-dur-ms :accessor tatum-dur-ms)
j@215 43 (beat-on-ms :initarg :beat-on-ms :accessor beat-on-ms)
j@215 44 (beat-dur-ms :initarg :beat-dur-ms :accessor beat-dur-ms)
j@215 45 (crot-on-ms :initarg :crot-on-ms :accessor crot-on-ms)
j@215 46 (crot-dur-ms :initarg :crot-dur-ms :accessor crot-dur-ms)
j@215 47 (pitch-name :initarg :pitch-name :accessor pitch-name)
j@215 48 (voice :initarg :voice :accessor voice)))
j@215 49
j@215 50