Mercurial > hg > amuse
view implementations/midi/constructors.lisp @ 267:89c20fd8abc0
make sure ioi-from-bar is normalised to crotchet duration
author | Jamie Forth <j.forth@gold.ac.uk> |
---|---|
date | Mon, 11 Apr 2011 12:14:49 +0100 |
parents | bba5e8571b92 |
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 &optional composition) (make-instance 'midi-pitched-event :number pitch-number :velocity velocity :patch patch :channel channel :track track :time onset :interval duration :composition composition)) (defun make-midi-percussive-event (sound velocity patch channel track onset duration &optional composition) (make-instance 'midi-percussive-event :sound sound :velocity velocity :patch patch :channel channel :track track :time onset :interval duration :composition composition))