PresetRegion class

Represents a preset region. A preset region indicates how the parameters of the instrument should be modified in the preset.

Constructors

PresetRegion({required Instrument instrument, required Map<GeneratorType, int> gs})
PresetRegion.defaultPresetRegion()
factory
PresetRegion.fromLists({required List<Generator> global, required List<Generator> local, required List<Instrument> instruments})
factory

Properties

gs Map<GeneratorType, int>
final
hashCode int
The hash code for this object.
no setterinherited
instrument Instrument
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attackModulationEnvelope() double
attackVolumeEnvelope() double
chorusEffectsSend() double
coarseTune() int
contains(int key, int velocity) bool
Checks if the region covers the given key and velocity. arg: The key of a note. arg: The velocity of a note return true if the region covers the given key and velocity.
decayModulationEnvelope() double
decayVolumeEnvelope() double
delayModulationEnvelope() double
delayModulationLfo() double
delayVibratoLfo() double
delayVolumeEnvelope() double
fineTune() int
frequencyModulationLfo() double
frequencyVibratoLfo() double
getGen(GeneratorType type) int
holdModulationEnvelope() double
holdVolumeEnvelope() double
initialAttenuation() double
initialFilterCutoffFrequency() double
initialFilterQ() double
keyNumberToModulationEnvelopeDecay() int
keyNumberToModulationEnvelopeHold() int
keyNumberToVolumeEnvelopeDecay() int
keyNumberToVolumeEnvelopeHold() int
keyRangeEnd() int
keyRangeStart() int
modulationEnvelopeToFilterCutoffFrequency() int
modulationEnvelopeToPitch() int
modulationLfoToFilterCutoffFrequency() int
modulationLfoToPitch() int
modulationLfoToVolume() double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pan() double
releaseModulationEnvelope() double
releaseVolumeEnvelope() double
reverbEffectsSend() double
scaleTuning() int
sustainModulationEnvelope() double
sustainVolumeEnvelope() double
toString() String
A string representation of this object.
override
velocityRangeEnd() int
velocityRangeStart() int
vibratoLfoToPitch() int

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create(List<Zone> zones, List<Instrument> instruments) List<PresetRegion>