events_r_to_score_r
[email protected] (Jean-Pierre Vidal) Sat, 4 Jan 2003 20:40:51 +0100
| Newsgroups | perl.midi |
|---|---|
| Message-ID | <[email protected]> |
Hello, happy new year ! I'm trying to convert several tracks from a MIDI file into an alone one. (The ultimate goal is to convert MIDI file to MDA files for my old yamaha DRC-20) My question : why "events_r_to_score_r" doesn't work in the code below: ---------------- #!perl -w use strict; use MIDI; my $event_r = ['note_on', 0, 0, 60, 64]; print "$_, " for @$event_r; print "\n"; # ok: note_on, 0, 0, 60, 64, my $score_r = MIDI::Score::events_r_to_score_r( $event_r ); print ref $score_r, "\n"; # ARRAY print scalar @$score_r, "\n"; # 0 ---------------- Subsidiary question: is there another way to convert a multi-track MIDI file to a one-track one? Thanks for help, Jean-Pierre