view implementations/midi/constructors.lisp @ 206:1f3873585a5d

Change midifile-import to call event constructors, not make-instance directly.
author Jamie Forth <j.forth@gold.ac.uk>
date Wed, 26 Jan 2011 11:30:28 +0000
parents 70c716a6eb72
children e3353261523e
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 (sound velocity patch
				   channel track onset duration)
  (make-instance 'midi-percussive-event
		 :sound sound
		 :velocity velocity
		 :patch patch
		 :channel channel
		 :track track
		 :time onset
		 :interval duration))