Struct BasicInstrument.Zone
- Namespace
- SpessaSharp.SoundBank
- Assembly
- SpessaSharp.dll
public readonly record struct BasicInstrument.Zone : IEquatable<BasicInstrument.Zone>
- Implements
- Inherited Members
Constructors
Zone(BasicInstrument, BasicSample)
Creates a new instrument zone.
public Zone(BasicInstrument instrument, BasicSample sample)
Parameters
instrumentBasicInstrumentThe parent instrument.
sampleBasicSampleThe sample to use in this zone.
Fields
Basic
Basic zone information.
public readonly BasicZone Basic
Field Value
ParentInstrument
The instrument this zone belongs to.
public readonly BasicInstrument ParentInstrument
Field Value
Sample
Zone's sample.
public readonly BasicSample Sample
Field Value
Properties
UseCount
For tracking on the individual zone level, since multiple presets can refer to the same instrument.
public int UseCount { get; init; }
Property Value
Methods
GetWriteGenerators(SoundBank)
public List<Generator> GetWriteGenerators(SoundBank bank)
Parameters
bankSoundBank