comparison implementations/midi/midifile-import.lisp @ 249:bba5e8571b92

Hack in linked-events for the midi package. Some refactoring of the constructors for this and geerdes might be helpful, since neither lend themselves to using initialize-instance for performing the linking.
author Jamie Forth <j.forth@gold.ac.uk>
date Thu, 24 Feb 2011 11:23:18 +0000
parents de60993404c1
children 30b6b848ec75
comparison
equal deleted inserted replaced
248:e5ff7d53f084 249:bba5e8571b92
126 :key-signatures (sort key-sigs #'time<) 126 :key-signatures (sort key-sigs #'time<)
127 :identifier identifier 127 :identifier identifier
128 :midi-timebase division))) 128 :midi-timebase division)))
129 (sequence:adjust-sequence composition 129 (sequence:adjust-sequence composition
130 (length notes) 130 (length notes)
131 :initial-contents (sort notes #'time<))))) 131 :initial-contents (sort notes #'time<))
132 (sequence:dosequence (e composition t)
133 (%set-composition composition e))
134 composition)))
132 135
133 (defun make-event-from-on-off-pair (note-on cut-off divisions track patch) 136 (defun make-event-from-on-off-pair (note-on cut-off divisions track patch)
134 (cond 137 (cond
135 ((or (= (midi:message-channel note-on) 9) 138 ((or (= (midi:message-channel note-on) 9)
136 (> patch 111)) 139 (> patch 111))