Re: Negative [?] note duration? h-h-huh?

[email protected] ("Sean M. Burke") Wed, 10 Jan 2001 18:44:22 -0700
Newsgroups perl.midi
Message-ID <[email protected]>
At 03:06 PM 2001-01-10 -0600, David L. Nelson wrote:
>[...]
>The first complex (overlapping notes) MIDI I tried it on resulted in
>some notes (as inferred by MIDI-Perl routines) being of "negative" 
>duration.
>
>In fact, it so happened that the Very First Note was:
> ['note', 0, '-0', 1, 67, 80]  # quotes in orig.; if you guessed this was
>			       #   taken from a zip of German folk tunes,
>			       #   you ARE scary... 
>[...]

That's quite strange.
Could you email me, privately, the code that produces those values?

I've always had the theoretical goal in MIDI::Simple and elsewhere that it
should not be possible to produce notes at negative start-times or with
negative durations.  But I've not built terribly many checks to keep it
from happening, particularly in the case of altering an existing MIDI
track/score.


--
Sean M. Burke  [email protected]  http://www.spinn.net/~sburke/