writing midi files from array

[email protected] (Drew Krause) Mon, 17 Sep 2001 18:02:12 -0700
Newsgroups perl.midi
Message-ID <[email protected]>
Hello, I have been using MIDI::Perl for a while and have found it to be
very powerful and useful. For some reason, I can't figure out how to
write a midi file from three same-sized sorted arrays of note
information:

@atkpts = attack points in ticks from the beginning
@pits = midi pitches (0-127)
@durs = durations in ticks for each note

So a three-event score might look like this:
@atkpts = (0, 480, 960);
@pits = (63, 35, 45);
@durs (480, 480, 240);

Note that these correspond to similar fields in the array @Notes
produced by a score dump. Any help appreciated -- Thanks!

Drew Krause