Mercurial > hg > amuse
view implementations/midi/classes.lisp @ 135:188fe5ea837f
Miscellaneous patching. Fixing exports, etc.
darcs-hash:20070828101727-f76cc-9e3b1f75cff6f43212f8862153db9ca806f606b8.gz
author | David Lewis <d.lewis@gold.ac.uk> |
---|---|
date | Tue, 28 Aug 2007 11:17:27 +0100 |
parents | 5e362d998f29 |
children | fd85f52d9f9d |
line wrap: on
line source
(cl:in-package #:amuse-midi) (defclass midi-object (amuse:amuse-object) () (:documentation "MIDI base class")) (defclass midi-composition (amuse:composition midi-object) ((time-signatures :initarg :time-signatures :initform 'nil :accessor %midi-time-signatures) (tempi :initarg :tempi :initform 'nil :accessor %midi-tempi) (key-signatures :initarg :key-signatures :initform 'nil :accessor %midi-key-signatures) (misc-controllers :initarg :controllers :initform 'nil :accessor %midi-misc-controllers)) (:documentation "Class for midi compositions, with time signatures, tempi, key signatures and other controllers as lists in slots")) (defclass midi-message (midi-object) ;? ((channel :accessor %midi-message-channel :initarg :channel) (track :accessor %midi-message-track :initarg :track))) (defclass midi-pitched-event (chromatic-pitched-event midi-message) ((velocity :initarg :velocity :accessor %midi-pitched-event-velocity) (patch :initarg :patch :accessor %midi-pitched-event-patch)) (:documentation "Adds MIDI information to chromatic-pitched-event")) (defclass midi-percussive-event (percussive-event midi-message) ((velocity :initarg :velocity :accessor %midi-percussive-event-velocity) (patch :initarg :patch :accessor %midi-percussive-event-patch) (sound :initarg :sound :accessor %midi-percussive-event-sound)) (:documentation "Adds MIDI information to percussive-event"))