view implementations/midi/constructors.lisp @ 314:937334f2bcd2

Add generic ID constructor to midi-db. Ignore-this: 91554466a43d64ee99fbf840985d7c6b darcs-hash:20100414185257-16a00-dcfa03eaa450cfdce842c64c3f49214c5c938181.gz
author j.forth <j.forth@gold.ac.uk>
date Wed, 14 Apr 2010 19:52:57 +0100
parents 819277b20b98
children
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)
  "FIXME: This is never called."
  (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)
  "FIXME: This is never called."
  (make-instance 'midi-percussive-event
		 :sound pitch-number
		 :velocity velocity
		 :patch patch
		 :channel channel
		 :track track
		 :time onset
		 :interval duration))