Re: ShortMessage.setmessage arguments
From: joe zobkiw (google_at_triplesoft.com)
Date: 11/03/03
- Previous message: webmaster_at_in2reach.com: "Free Internal Search Engine in Java with source code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Nov 2003 13:48:10 -0800
james.shipton@bbc.co.uk (James) wrote in message news:<7822003a.0310290208.62bd2f55@posting.google.com>...
> Hi
> I am creating a new ShortMessage object with the following arguments:
>
> ShortMessage a = new ShortMessage();
> a.setMessage(144, 9, 35, 100);
>
> This is for a noteOn for a Bass Drum using channel 9. I am not sure
> what the final argument does? What does 100 refer to? The Java API is
> not very clear.
In this case the Java API does not need to be clear because the
parameter is based on the MIDI spec. Depending on what channel message
you are sending, it may require one or two data bytes. The Java API
states: If the message only takes one data byte, the second data byte
value passed should be 0. Look to the MIDI spec to find out what you
need to set the second data byte to.
- Previous message: webmaster_at_in2reach.com: "Free Internal Search Engine in Java with source code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]