annotate implementations/meredith/classes.lisp @ 215:4eceac78e7c6

add minimal backend for Dave Meredith's data Ignore-this: 91608f727967a4c5709bd41634ab9ae2 darcs-hash:20090524193956-16a00-038e6f7cb235dea4e7efcc70c4d1a7bc7fd402a6.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
children 6f0881af3403
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@215 34 meredith-music-object)
j@215 35 ((identifier :initarg :identifier :accessor identifier)
j@215 36 (tatum-on :initarg :tatum-on :accessor tatum-on)
j@215 37 (tatum-dur :initarg :tatum-dur :accessor tatum-dur)
j@215 38 (tactus-on :initarg :tactus-on :accessor tactus-on)
j@215 39 (tactus-dur :initarg :tactus-dur :accessor tactus-dur)
j@215 40 (tatum-on-ms :initarg :tatum-on-ms :accessor tatum-on-ms)
j@215 41 (tatum-dur-ms :initarg :tatum-dur-ms :accessor tatum-dur-ms)
j@215 42 (beat-on-ms :initarg :beat-on-ms :accessor beat-on-ms)
j@215 43 (beat-dur-ms :initarg :beat-dur-ms :accessor beat-dur-ms)
j@215 44 (crot-on-ms :initarg :crot-on-ms :accessor crot-on-ms)
j@215 45 (crot-dur-ms :initarg :crot-dur-ms :accessor crot-dur-ms)
j@215 46 (pitch-name :initarg :pitch-name :accessor pitch-name)
j@215 47 (voice :initarg :voice :accessor voice)))
j@215 48
j@215 49