APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.media.sound

public final Class SoftShortMessage

extends ShortMessage
Class Inheritance
Imports
javax.sound.midi.InvalidMidiDataException, .ShortMessage

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

Field Summary

Modifier and TypeField and Description
pack-priv int
Inherited from javax.sound.midi.ShortMessage:
ACTIVE_SENSINGCHANNEL_PRESSURECONTINUECONTROL_CHANGEEND_OF_EXCLUSIVEMIDI_TIME_CODENOTE_OFFNOTE_ONPITCH_BENDPOLY_PRESSUREPROGRAM_CHANGESONG_POSITION_POINTERSONG_SELECTSTARTSTOPSYSTEM_RESETTIMING_CLOCKTUNE_REQUEST

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides javax.sound.midi.ShortMessage.clone.

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

public int
getChannel()

Overrides javax.sound.midi.ShortMessage.getChannel.

Obtains the MIDI channel associated with this event.

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

Overrides javax.sound.midi.ShortMessage.setMessage.

Sets the short message parameters for a channel message which takes up to two data bytes.

Inherited from javax.sound.midi.ShortMessage:
getCommandgetData1getData2getDataLengthsetMessagesetMessage

Field Detail

channelback to summary
pack-priv int channel

Constructor Detail

SoftShortMessageback to summary
public SoftShortMessage()

Method Detail

cloneback to summary
public Object clone()

Overrides javax.sound.midi.ShortMessage.clone.

Doc from javax.sound.midi.ShortMessage.clone.

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

Annotations
@Override
getChannelback to summary
public int getChannel()

Overrides javax.sound.midi.ShortMessage.getChannel.

Doc from javax.sound.midi.ShortMessage.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.

Annotations
@Override
setMessageback to summary
public void setMessage(int command, int channel, int data1, int data2) throws InvalidMidiDataException

Overrides javax.sound.midi.ShortMessage.setMessage.

Doc from javax.sound.midi.ShortMessage.setMessage.

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.

Annotations
@Override
Exceptions
InvalidMidiDataException:
if the status byte or all data bytes belonging to the message, do not specify a valid MIDI message