Package net.paulhertz.pixelaudio.example
Enum Class Bagatelle.DBWF_PerformancePreset
java.lang.Object
java.lang.Enum<Bagatelle.DBWF_PerformancePreset>
net.paulhertz.pixelaudio.example.Bagatelle.DBWF_PerformancePreset
- All Implemented Interfaces:
Serializable,Comparable<Bagatelle.DBWF_PerformancePreset>,Constable
- Enclosing class:
- Bagatelle
Presets are applied to each new brush at the moment drawing is completed by
releasing the mouse button and calling makeBrush(), the bottleneck method for
all brush creation. Presets are best used just for brush modifications. If you
want to change application settings, use runPerformanceCue() with your own custom
code. You can address the host application with the
app parameter,
but keep in mind that is is called on every brush.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract Bagatelle.CueResultapply(GestureGranularConfig.Builder cfg, PACurveMaker curve, Bagatelle app) Abstract method for concrete apply() methods implemented by each enum constant.(package private) static Bagatelle.DBWF_PerformancePresetfromKey(char k) Returns the enum constant of this class with the specified name.static Bagatelle.DBWF_PerformancePreset[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRONE_RAINDROPS
-
VOICE_AND_MELODY
-
GLITCH_CORTO
-
GLITCH_LARGO
-
REPRISE
-
CLOSE
-
-
Field Details
-
key
final char key
-
-
Constructor Details
-
DBWF_PerformancePreset
private DBWF_PerformancePreset(char key)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromKey
-
apply
abstract Bagatelle.CueResult apply(GestureGranularConfig.Builder cfg, PACurveMaker curve, Bagatelle app) Abstract method for concrete apply() methods implemented by each enum constant. In the preset logic, each constant is in effect its own function, which can be invoked by reference.- Parameters:
cfg- configuration parameters for GestureGranularConfig, used to modify audio synthesiscurve- a PACurveMaker gesture, which can be modifed by the concrete apply() methodapp- a reference to the host application, use with caution- Returns:
- a reference to the concrete apply() method for an enum constant
-