<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Grace MIDI import / multiple message types</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I'm in a situation where I am importing from a MIDI file. I will need to be able to access note messages and ctrl messages -- interleaved and in time order -- in order to perform my task.<BR>
<BR>
So<BR>
<BR>
(midifile-import midi-file 2 '(time key)))<BR>
<BR>
will get me the keynums<BR>
<BR>
and<BR>
<BR>
(midifile-import midi-file 2 '(time ctrl1 ctrl2)))<BR>
<BR>
will get me the controller messages<BR>
<BR>
But now I will have to code a sort mechanism to combine the two lists in time order.<BR>
<BR>
Is there a way to import the two message types directly into one list, enabling me to avoid having to code a sort?<BR>
<BR>
(midifile-import midi-file 2 '(time key ctrl1 ctrl2)))&nbsp; =&gt; Error: no midi message with values: (time key ctrl1 ctrl2)<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>