view implementations/midi/constructors.lisp @ 186:03be243f9003

implementations/mtp/classes.lisp: Add BIOI (Basic IOI) as a basic viewpoint. darcs-hash:20081103124142-c0ce4-272df768ca2816412f1a4f89297e68d4ef35b4fd.gz
author Marcus Pearce <m.pearce@gold.ac.uk>
date Mon, 03 Nov 2008 12:41:42 +0000
parents 70c716a6eb72
children 1f3873585a5d 819277b20b98
line wrap: on
line source
(cl:in-package #:amuse-midi)

(defun make-midifile-identifier (pathname)
  (make-instance 'midifile-identifier :path pathname))

(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))