view implementations/midi/constructors.lisp @ 27:a2cc2a093a27

implementations/midi/package.lisp: the base package is called AMUSE (rather AMUSE-BASE) for now. Any thoughts on this? darcs-hash:20061215162849-aa3d6-413a87cc1ddc3f9ebc663f1ec29ddb0c63a79580.gz
author m.pearce <m.pearce@gold.ac.uk>
date Fri, 15 Dec 2006 16:28:49 +0000
parents fe73cc3f1605
children 5bec705db9d6
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))

(defun make-midi-key-signature (sharp-count mode onset duration)
  (make-instance 'midi-key-signature
		 :sharp-count sharp-count
		 :mode mode
		 :time onset
		 :interval duration))