public enum Pedal extends Enum<Pedal>
Enum Constant and Description |
---|
PORTAMENTO
Portamento pedal.
|
SOFT
Soft pedal.
|
SOSTENUTO
Sostenuto pedal.
|
SUSTAIN
Sustain pedal.
|
Modifier and Type | Method and Description |
---|---|
int |
getData()
Returns the raw MIDI data value associated with a control change message.
|
static Optional<Pedal> |
lookup(int data)
Determines the pedal enum associated with a MIDI data value.
|
static Pedal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pedal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pedal SUSTAIN
While this pedal is pressed, played notes decay slowly. This sounds as if note off messages are ignored.
public static final Pedal SOSTENUTO
When this pedal is pressed, only the notes currently being played are sustained. Commonly abbreviated as S.P.
public static final Pedal PORTAMENTO
While this pedal is pressed, notes glide continuously in pitch from one to the next.
public static Pedal[] values()
for (Pedal c : Pedal.values()) System.out.println(c);
public static Pedal valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getData()
Copyright © 2015 Kreatious LLC. All rights reserved.