view implementations/midi/classes.lisp @ 88:8ea75cc8bc2c

Basic geerdes functionality moved to implementations/geerdes from separate package darcs-hash:20070720161242-f76cc-fd256cbbb81d8c418a6c7c45844264184c5ed932.gz
author David Lewis <d.lewis@gold.ac.uk>
date Fri, 20 Jul 2007 17:12:42 +0100
parents 5bec705db9d6
children cf198383852d
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)
   (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)))