Mercurial > hg > amuse
view implementations/midi/constructors.lisp @ 251:6a3adca16910
Refactor dataset stuff out of amuse-database-admin, and add midifile-dataset.
author | Jamie Forth <j.forth@gold.ac.uk> |
---|---|
date | Thu, 24 Feb 2011 11:23:18 +0000 |
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))