![]() |
Maestro - Midi Player Tool Kit for Unity Version 2.18.2
|
Understand channel collection vs. per-channel runtime state in Maestro MPTK.
The source file MPTKChannels.cs defines two complementary classes:
Together they expose the channel model used by MPTK playback systems.
Standard MIDI defines 16 channels per port. In MPTK, channel indices are zero-based (0 to 15). General MIDI conventionally uses channel 9 (10 in 1-based notation) for percussion.
MPTKChannels is the container and entry point for channel-level operations:
This class is mainly used when you need to inspect or configure channels as a group.
MPTKChannel stores and applies one channel's playback state:
This class is used when you need per-instrument/per-part behavior.
Typical flow: