Re: Percussion and delta-time?

[email protected] ("Sean M. Burke") Fri, 18 May 2001 19:03:38 -0600
Newsgroups perl.midi
Message-ID <[email protected]>
At 10:58 AM 2001-05-18 +0100, Lee Goddard wrote:
>[...]
>1. how can I get percussion?  Changing the channel to ten doesn't seem to do
>the trick: is this my lack of MIDI or lack of Perl MIDI::*?

It's track 9.  "9" is pronounced "tenth".
Cf. the fact that $foo[3] is item 3, i.e., the "fourth".

Many descriptions of MIDI go and number from 1 (so, they call channel 0
"channel 1", and so on up) because it's too "confusing" to number from 0.
But the file specification and the raw protocol both start at 0 (for note
numbers as well as channels), so that's what I do.

See, for example, code in
http://www.speech.cs.cmu.edu/~sburke/midi-perl/tpj_13_midi.html
like:
 noop c9, ff, n41, qn;  # The setup...
 n; r; n; r;            # ...and the work.

See also the examples in
http://www.speech.cs.cmu.edu/~sburke/midi-perl/scripts/


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