public class

SoftShortMessage

extends ShortMessage
java.lang.Object
   ↳ javax.sound.midi.MidiMessage
     ↳ javax.sound.midi.ShortMessage
       ↳ com.sun.media.sound.SoftShortMessage

Class Overview

A short message class that support for than 16 midi channels.

Summary

[Expand]
Inherited Constants
From class javax.sound.midi.ShortMessage
[Expand]
Inherited Fields
From class javax.sound.midi.MidiMessage
Public Constructors
SoftShortMessage()
Public Methods
Object clone()
Creates a new object of the same class and with the same contents as this object.
int getChannel()
Obtains the MIDI channel associated with this event.
void setMessage(int command, int channel, int data1, int data2)
Sets the short message parameters for a channel message which takes up to two data bytes.
[Expand]
Inherited Methods
From class javax.sound.midi.ShortMessage
From class javax.sound.midi.MidiMessage
From class java.lang.Object

Public Constructors

public SoftShortMessage ()

Public Methods

public Object clone ()

Creates a new object of the same class and with the same contents as this object.

Returns
  • a clone of this instance.

public int getChannel ()

Obtains the MIDI channel associated with this event. This method assumes that the event is a MIDI channel message; if not, the return value will not be meaningful.

Returns
  • MIDI channel associated with the message.

public void setMessage (int command, int channel, int data1, int data2)

Sets the short message parameters for a channel message which takes up to two data bytes. If the message only takes one data byte, the second data byte is ignored; if the message does not take any data bytes, both data bytes are ignored.

Parameters
command the MIDI command represented by this message
channel the channel associated with the message
data1 the first data byte
data2 the second data byte