Java javax.sound.midi ShortMessage fields, constructors, methods, implement or subclass

Example usage for Java javax.sound.midi ShortMessage fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.sound.midi ShortMessage.

The text is from its open source code.

Field

intNOTE_OFF
Command value for Note Off message (0x80, or 128).
intNOTE_ON
Command value for Note On message (0x90, or 144).
intPOLY_PRESSURE
Command value for Polyphonic Key Pressure (Aftertouch) message (0xA0, or 160).
intCONTROL_CHANGE
Command value for Control Change message (0xB0, or 176).
intPROGRAM_CHANGE
Command value for Program Change message (0xC0, or 192).
intCHANNEL_PRESSURE
Command value for Channel Pressure (Aftertouch) message (0xD0, or 208).
intPITCH_BEND
Command value for Pitch Bend message (0xE0, or 224).

Constructor

ShortMessage()
Constructs a new ShortMessage .

Method

intgetChannel()
Obtains the MIDI channel associated with this event.
intgetCommand()
Obtains the MIDI command associated with this event.
intgetData1()
Obtains the first data byte in the message.
intgetData2()
Obtains the second data byte in the message.
voidsetMessage(int command, int channel, int data1, int data2)
Sets the short message parameters for a channel message which takes up to two data bytes.