annotate implementations/midi/constructors.lisp @ 318:c4e792b9b898

Add some ideas for charm constituents. Not particularly useful in its own right, but contains some possibly useful ideas related to the generalisation of db-compositions.
author Jamie Forth <j.forth@gold.ac.uk>
date Thu, 30 Sep 2010 15:35:15 +0100
parents 819277b20b98
children
rev   line source
m@25 1 (cl:in-package #:amuse-midi)
m@25 2
m@144 3 (defun make-midifile-identifier (pathname)
m@144 4 (make-instance 'midifile-identifier :path pathname))
m@144 5
m@25 6 (defun make-midi-pitched-event (pitch-number velocity patch
m@25 7 channel track onset duration)
j@308 8 "FIXME: This is never called."
m@25 9 (make-instance 'midi-pitched-event
m@25 10 :number pitch-number
m@25 11 :velocity velocity
m@25 12 :patch patch
m@25 13 :channel channel
m@25 14 :track track
m@25 15 :time onset
m@25 16 :interval duration))
m@25 17
m@25 18 (defun make-midi-percussive-event (pitch-number velocity patch
m@25 19 channel track onset duration)
j@308 20 "FIXME: This is never called."
m@25 21 (make-instance 'midi-percussive-event
m@25 22 :sound pitch-number
m@25 23 :velocity velocity
m@25 24 :patch patch
m@25 25 :channel channel
m@25 26 :track track
m@25 27 :time onset
m@25 28 :interval duration))
m@25 29
m@25 30