view implementations/midi/constructors.lisp @ 115:cf198383852d

Re-instated get-applicable-x for midi-related implementations and added key-sigs to midi darcs-hash:20070726144704-f76cc-a24c9e6c07b43c4084a73218f76a0b345fac5369.gz
author David Lewis <d.lewis@gold.ac.uk>
date Thu, 26 Jul 2007 15:47:04 +0100
parents 5bec705db9d6
children 70c716a6eb72
line wrap: on
line source
(cl:in-package #:amuse-midi)

(defun make-midi-pitched-event (pitch-number velocity patch
				channel track onset duration)
  (make-instance 'midi-pitched-event
		 :number pitch-number
		 :velocity velocity
		 :patch patch
		 :channel channel
		 :track track
		 :time onset
		 :interval duration))

(defun make-midi-percussive-event (pitch-number velocity patch
				   channel track onset duration)
  (make-instance 'midi-percussive-event
		 :sound pitch-number
		 :velocity velocity
		 :patch patch
		 :channel channel
		 :track track
		 :time onset
		 :interval duration))