Instrument class
Represents an instrument in the SoundFont.
Constructors
-
Instrument({required String name, required List<
InstrumentRegion> regions}) - Instrument.defaultInstrument()
-
factory
-
Instrument.fromInfo(InstrumentInfo info, List<
Zone> zones, List<SampleHeader> samples) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
-
regions
→ List<
InstrumentRegion> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Gets the name of the instrument.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
List< InstrumentInfo> infos, List<Zone> zones, List<SampleHeader> samples) → List<Instrument>