MIDI import bug? / midifile-print doc bug
Tobias Kunze
tkunze@ulysses.Stanford.EDU
Tue, 2 Sep 1997 16:40:40 -0700 (PDT)
> Hi, I'd just like to report that it seems like the CM MIDI file import
> command gets the timebase wrong; A file with a division of 120 gets
> imported as if the division was 24; that is to say, I need to "scale
> rhythm 24/120 duration 24/120" to get things to come out right.
Not for me:
| > (midifile-print "c-major.midi")
|
| File: /usr/people/tkunze/c-major.midi
| Format: 0
| Tracks: 1
| Division: 120
|
| Track 0, length 84
| 0 #<NoteOn: 0, 0, 60, 64>
| 120 #<NoteOff: 0, 0, 60, 127>
| 0 #<NoteOn: 0, 0, 62, 64>
| 60 #<NoteOff: 0, 0, 62, 127>
| 0 #<NoteOn: 0, 0, 64, 64>
| 60 #<NoteOff: 0, 0, 64, 127>
| 0 #<NoteOn: 0, 0, 65, 64>
| 60 #<NoteOff: 0, 0, 65, 127>
| 0 #<NoteOn: 0, 0, 67, 64>
| 60 #<NoteOff: 0, 0, 67, 127>
| 0 #<NoteOn: 0, 0, 69, 64>
| 60 #<NoteOff: 0, 0, 69, 127>
| 0 #<NoteOn: 0, 0, 71, 64>
| 60 #<NoteOff: 0, 0, 71, 127>
| 0 #<NoteOn: 0, 0, 72, 64>
| 240 #<NoteOff: 0, 0, 72, 127>
|
| > (stella)
| Hang on a second...
|
| Type ? for help.
|
| Stella [Top-Level]: import c-major.midi
|
| Stella [Top-Level]: list 1
| From-C-Major:
| 1. #<MIDI-NOTE | C4| 0.500| 0.500| 0.504| 0|>
| 2. #<MIDI-NOTE | D4| 0.250| 0.250| 0.504| 0|>
| 3. #<MIDI-NOTE | E4| 0.250| 0.250| 0.504| 0|>
| 4. #<MIDI-NOTE | F4| 0.250| 0.250| 0.504| 0|>
| 5. #<MIDI-NOTE | G4| 0.250| 0.250| 0.504| 0|>
| 6. #<MIDI-NOTE | A4| 0.250| 0.250| 0.504| 0|>
| 7. #<MIDI-NOTE | B4| 0.250| 0.250| 0.504| 0|>
| 8. #<MIDI-NOTE | C5| 1.000| 1.000| 0.504| 0|>
|
| Stella [Top-Level]:
Maybe you wrote the file with a tempo of 24bpm but without
writing out a corresponding tempo-change message ;)
-Tobias