Mercurial > hg > amuse
view implementations/midi/classes.lisp @ 128:46c2ea86650f
implementations/mtp/: add mtp-music-object
darcs-hash:20070730142311-c0ce4-739cab39d35e6b8e480c67aef8f9469727d089ab.gz
author | Marcus Pearce <m.pearce@gold.ac.uk> |
---|---|
date | Mon, 30 Jul 2007 15:23:11 +0100 |
parents | cf198383852d |
children | b849c4fc4c26 |
line wrap: on
line source
(cl:in-package #:amuse-midi) (defclass midi-composition (amuse:composition) ((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))) (defclass midi-message () ;? ((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))) (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)))