view implementations/midi/constructors.lisp @ 101:c5f04eb31071

monody methods for implementations/geerdes darcs-hash:20070726085425-f76cc-09a061f19b87dfac247358f8c8d66f3b4e5317e6.gz
author David Lewis <d.lewis@gold.ac.uk>
date Thu, 26 Jul 2007 09:54:25 +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))