InstrumentRegion class

Represents an instrument region. An instrument region contains all the parameters necessary to synthesize a note.

Constructors

InstrumentRegion({required SampleHeader sample, required Map<GeneratorType, int> gs})
InstrumentRegion.fromLists({required List<Generator> global, required List<Generator> local, required List<SampleHeader> samples})
factory

Properties

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

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. Retursn true if the region covers the given key and velocity.
decayModulationEnvelope() double
decayVolumeEnvelope() double
delayModulationEnvelope() double
delayModulationLfo() double
delayVibratoLfo() double
delayVolumeEnvelope() double
endAddressOffset() int
endLoopAddressOffset() int
exclusiveClass() int
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
rootKey() int
sampleEnd() int
sampleEndLoop() int
sampleModes() LoopMode
sampleStart() int
sampleStartLoop() int
scaleTuning() int
setParameter(Generator parameter) → void
startAddressOffset() int
startLoopAddressOffset() int
sustainModulationEnvelope() double
sustainVolumeEnvelope() double
toString() String
Gets the string representation of the region.
override
velocityRangeEnd() int
velocityRangeStart() int
vibratoLfoToPitch() int

Operators

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

Static Methods

create(List<Zone> zones, List<SampleHeader> samples) List<InstrumentRegion>