view implementations/midi/constructors.lisp @ 87:19a263fb92d1

implementations/mtp/: faster implementations of GET-COMPOSITION and GET-DATASET darcs-hash:20070718151258-c0ce4-6431a2c8e4939fefeb0c7d6c9e2aa91d9474c232.gz
author Marcus Pearce <m.pearce@gold.ac.uk>
date Wed, 18 Jul 2007 16:12:58 +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))