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

instrument BasicInstrument

The parent instrument.

sample BasicSample

The sample to use in this zone.

Fields

Basic

Basic zone information.

public readonly BasicZone Basic

Field Value

BasicZone

ParentInstrument

The instrument this zone belongs to.

public readonly BasicInstrument ParentInstrument

Field Value

BasicInstrument

Sample

Zone's sample.

public readonly BasicSample Sample

Field Value

BasicSample

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

int

Methods

GetWriteGenerators(SoundBank)

public List<Generator> GetWriteGenerators(SoundBank bank)

Parameters

bank SoundBank

Returns

List<Generator>