| Modifier and Type | Field and Description |
|---|---|
| private MidiChannel |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | allNotesOff()
Implements javax. Turns off all notes that are currently sounding on this channel. |
| public void | allSoundOff()
Implements javax. Immediately turns off all sounding notes on this channel, ignoring the
state of the Hold Pedal and the internal decay rate of the current
|
| public void | controlChange(int controller, int value)
Implements javax. Reacts to a change in the specified controller's value. |
| public MidiChannel | |
| public int | getChannelPressure()
Implements javax. Obtains the channel's keyboard pressure. |
| public int | getController(int controller)
Implements javax. Obtains the current value of the specified controller. |
| public boolean | |
| public boolean | getMute()
Implements javax. Obtains the current mute state for this channel. |
| public boolean | |
| public int | getPitchBend()
Implements javax. Obtains the upward or downward pitch offset for this channel. |
| public int | getPolyPressure(int noteNumber)
Implements javax. Obtains the pressure with which the specified key is being depressed. |
| public int | getProgram()
Implements javax. Obtains the current program number for this channel. |
| public boolean | getSolo()
Implements javax. Obtains the current solo state for this channel. |
| public boolean | localControl(boolean on)
Implements javax. Turns local control on or off. |
| public void | noteOff(int noteNumber)
Implements javax. Turns the specified note off. |
| public void | noteOff(int noteNumber, int velocity)
Implements javax. Turns the specified note off. |
| public void | noteOn(int noteNumber, int velocity)
Implements javax. Starts the specified note sounding. |
| public void | programChange(int program)
Implements javax. Changes a program (patch). |
| public void | programChange(int bank, int program)
Implements javax. Changes the program using bank and program (patch) numbers. |
| public void | resetAllControllers()
Implements javax. Resets all the implemented controllers to their default values. |
| public void | |
| public void | setChannelPressure(int pressure)
Implements javax. Reacts to a change in the keyboard pressure. |
| public void | |
| public void | setMute(boolean mute)
Implements javax. Sets the mute state for this channel. |
| public void | |
| public void | setPitchBend(int bend)
Implements javax. Changes the pitch offset for all notes on this channel. |
| public void | setPolyPressure(int noteNumber, int pressure)
Implements javax. Reacts to a change in the specified note's key pressure. |
| public void | setSolo(boolean soloState)
Implements javax. Sets the solo state for this channel. |
| channel | back to summary |
|---|---|
| private MidiChannel channel | |
| SoftChannelProxy | back to summary |
|---|---|
| public SoftChannelProxy() | |
| allNotesOff | back to summary |
|---|---|
| public void allNotesOff() Implements javax. Doc from javax. Turns off all notes that are currently sounding on this channel. The
notes might not die away instantaneously; their decay rate is determined
by the internals of the
| |
| allSoundOff | back to summary |
|---|---|
| public void allSoundOff() Implements javax. Doc from javax. Immediately turns off all sounding notes on this channel, ignoring the
state of the Hold Pedal and the internal decay rate of the current
| |
| controlChange | back to summary |
|---|---|
| public void controlChange(int controller, int value) Implements javax. Doc from javax. Reacts to a change in the specified controller's value. A controller is
some control other than a keyboard key, such as a switch, slider, pedal,
wheel, or breath-pressure sensor. The MIDI 1.0 Specification provides
standard numbers for typical controllers on MIDI devices, and describes
the intended effect for some of the controllers. The way in which an
The MIDI 1.0 Specification defines both 7-bit controllers and 14-bit controllers. Continuous controllers, such as wheels and sliders, typically have 14 bits (two MIDI bytes), while discrete controllers, such as switches, typically have 7 bits (one MIDI byte). Refer to the specification to see the expected resolution for each type of control.
Controllers 64 through 95 (0x40 - 0x5F) allow 7-bit precision. The value
of a 7-bit controller is set completely by the
It is possible that the underlying synthesizer does not support a
specific controller message. In order to verify that a call to
| |
| getChannel | back to summary |
|---|---|
| public MidiChannel getChannel() | |
| getChannelPressure | back to summary |
|---|---|
| public int getChannelPressure() Implements javax. Doc from javax. Obtains the channel's keyboard pressure.
If the device does not support setting channel pressure, this method
always returns 0. Calling
| |
| getController | back to summary |
|---|---|
| public int getController(int controller) Implements javax. Doc from javax. Obtains the current value of the specified controller. The return value is represented with 7 bits. For 14-bit controllers, the MSB and LSB controller value needs to be obtained separately. For example, the 14-bit value of the volume controller can be calculated by multiplying the value of controller 7 (0x07, channel volume MSB) with 128 and adding the value of controller 39 (0x27, channel volume LSB).
If the device does not support setting a specific controller, this method
returns 0 for that controller. Calling
| |
| getMono | back to summary |
|---|---|
| public boolean getMono() Implements javax. Doc from javax. Obtains the current mono/poly mode. Synthesizers that do not allow
changing mono/poly mode will always return the same value, regardless of
calls to
| |
| getMute | back to summary |
|---|---|
| public boolean getMute() Implements javax. Doc from javax. Obtains the current mute state for this channel. If the underlying
synthesizer does not support muting this channel, this method always
returns
| |
| getOmni | back to summary |
|---|---|
| public boolean getOmni() Implements javax. Doc from javax. Obtains the current omni mode. Synthesizers that do not allow changing
the omni mode will always return the same value, regardless of calls to
| |
| getPitchBend | back to summary |
|---|---|
| public int getPitchBend() Implements javax. Doc from javax. Obtains the upward or downward pitch offset for this channel. If the
device does not support setting pitch bend, this method always returns
8192. Calling
| |
| getPolyPressure | back to summary |
|---|---|
| public int getPolyPressure(int noteNumber) Implements javax. Doc from javax. Obtains the pressure with which the specified key is being depressed.
If the device does not support setting poly pressure, this method always
returns 0. Calling
| |
| getProgram | back to summary |
|---|---|
| public int getProgram() Implements javax. Doc from javax. Obtains the current program number for this channel.
| |
| getSolo | back to summary |
|---|---|
| public boolean getSolo() Implements javax. Doc from javax. Obtains the current solo state for this channel. If the underlying
synthesizer does not support solo on this channel, this method always
returns
| |
| localControl | back to summary |
|---|---|
| public boolean localControl(boolean on) Implements javax. Doc from javax. Turns local control on or off. The default is for local control to be on. The "on" setting means that if a device is capable of both synthesizing sound and transmitting MIDI messages, it will synthesize sound in response to the note-on and note-off messages that it itself transmits. It will also respond to messages received from other transmitting devices. The "off" setting means that the synthesizer will ignore its own transmitted MIDI messages, but not those received from other devices.
It is possible that the underlying synthesizer does not support local
control. In order to verify that a call to
| |
| noteOff | back to summary |
|---|---|
| public void noteOff(int noteNumber) Implements javax. Doc from javax. Turns the specified note off.
| |
| noteOff | back to summary |
|---|---|
| public void noteOff(int noteNumber, int velocity) Implements javax. Doc from javax. Turns the specified note off. The key-up velocity, if not ignored, can be
used to affect how quickly the note decays. In any case, the note might
not die away instantaneously; its decay rate is determined by the
internals of the
| |
| noteOn | back to summary |
|---|---|
| public void noteOn(int noteNumber, int velocity) Implements javax. Doc from javax. Starts the specified note sounding. The key-down velocity usually
controls the note's volume and/or brightness. If
| |
| programChange | back to summary |
|---|---|
| public void programChange(int program) Implements javax. Doc from javax. Changes a program (patch). This selects a specific instrument from the currently selected bank of instruments. The MIDI specification does not dictate whether notes that are already sounding should switch to the new instrument (timbre) or continue with their original timbre until terminated by a note-off. The program number is zero-based (expressed from 0 to 127). Note that MIDI hardware displays and literature about MIDI typically use the range 1 to 128 instead.
It is possible that the underlying synthesizer does not support a
specific program. In order to verify that a call to
| |
| programChange | back to summary |
|---|---|
| public void programChange(int bank, int program) Implements javax. Doc from javax. Changes the program using bank and program (patch) numbers.
It is possible that the underlying synthesizer does not support a
specific bank, or program. In order to verify that a call to
int bank = (getController(0) * 128) + getController(32);
| |
| resetAllControllers | back to summary |
|---|---|
| public void resetAllControllers() Implements javax. Doc from javax. Resets all the implemented controllers to their default values.
| |
| setChannel | back to summary |
|---|---|
| public void setChannel(MidiChannel channel) | |
| setChannelPressure | back to summary |
|---|---|
| public void setChannelPressure(int pressure) Implements javax. Doc from javax. Reacts to a change in the keyboard pressure. Channel pressure indicates
how hard the keyboard player is depressing the entire keyboard. This can
be the maximum or average of the per-key pressure-sensor values, as set
by
It is possible that the underlying synthesizer does not support this MIDI
message. In order to verify that
| |
| setMono | back to summary |
|---|---|
| public void setMono(boolean on) Implements javax. Doc from javax. Turns mono mode on or off. In mono mode, the channel synthesizes only one note at a time. In poly mode (identical to mono mode off), the channel can synthesize multiple notes simultaneously. The default is mono off (poly mode on). "Mono" is short for the word "monophonic," which in this context is opposed to the word "polyphonic" and refers to a single synthesizer voice per MIDI channel. It has nothing to do with how many audio channels there might be (as in "monophonic" versus "stereophonic" recordings).
It is possible that the underlying synthesizer does not support mono
mode. In order to verify that a call to
| |
| setMute | back to summary |
|---|---|
| public void setMute(boolean mute) Implements javax. Doc from javax. Sets the mute state for this channel. A value of
Unlike
It is possible that the underlying synthesizer does not support muting
channels. In order to verify that a call to
| |
| setOmni | back to summary |
|---|---|
| public void setOmni(boolean on) Implements javax. Doc from javax. Turns omni mode on or off. In omni mode, the channel responds to messages sent on all channels. When omni is off, the channel responds only to messages sent on its channel number. The default is omni off.
It is possible that the underlying synthesizer does not support omni
mode. In order to verify that
| |
| setPitchBend | back to summary |
|---|---|
| public void setPitchBend(int bend) Implements javax. Doc from javax. Changes the pitch offset for all notes on this channel. This affects all currently sounding notes as well as subsequent ones. (For pitch bend to cease, the value needs to be reset to the center position.) The MIDI specification stipulates that pitch bend be a 14-bit value, where zero is maximum downward bend, 16383 is maximum upward bend, and 8192 is the center (no pitch bend). The actual amount of pitch change is not specified; it can be changed by a pitch-bend sensitivity setting. However, the General MIDI specification says that the default range should be two semitones up and down from center.
It is possible that the underlying synthesizer does not support this MIDI
message. In order to verify that
| |
| setPolyPressure | back to summary |
|---|---|
| public void setPolyPressure(int noteNumber, int pressure) Implements javax. Doc from javax. Reacts to a change in the specified note's key pressure. Polyphonic key pressure allows a keyboard player to press multiple keys simultaneously, each with a different amount of pressure. The pressure, if not ignored, is typically used to vary such features as the volume, brightness, or vibrato of the note.
It is possible that the underlying synthesizer does not support this MIDI
message. In order to verify that
| |
| setSolo | back to summary |
|---|---|
| public void setSolo(boolean soloState) Implements javax. Doc from javax. Sets the solo state for this channel. If
It is possible that the underlying synthesizer does not support solo
channels. In order to verify that a call to
| |