![]() |
Maestro - Midi Player Tool Kit for Unity Version 2.22.0
|
MIDI inner-loop settings for MidiFilePlayer and MidiExternalPlayer [Pro].
See MidiFilePlayer.MPTK_InnerLoop and MidiExternalPlayer.MPTK_InnerLoop. See example:
.
More...
Public Types | |
| enum | InnerLoopPhase { Start , Resume , Exit } |
| Loop phase action sent to OnEventInnerLoop. More... | |
Public Member Functions | |
| void | Clear () |
| Resets inner-loop state. Enabled = false, Finished = false Start = 0, Resume = 0, End = 0 Count = 0. | |
Public Attributes | |
| bool | Log |
| Enable log messages. | |
| Func< InnerLoopPhase, long, long, int, bool > | OnEventInnerLoop |
| Callback triggered when an inner-loop event occurs. Parameters: | |
| bool | Enabled |
| Enable or disable the loop. Default is false. | |
| bool | Finished |
| Becomes true when the loop has finished or when OnEventInnerLoop returns false. Can also be set to true to stop looping. | |
| long | Start |
| Tick position where the loop begins when MIDI starts. The sequencer jumps immediately to this position. If Start > Resume, the loop begins at Resume. Default is 0. | |
| long | Resume |
| Tick position where the loop resumes when MidiLoad.MPTK_TickPlayer >= End. Default is 0. See also MidiFilePlayer.MPTK_RawSeek. | |
| long | End |
| Tick position that triggers a restart at Resume (when MidiLoad.MPTK_TickPlayer >= End). Default is 0. | |
| int | Max |
| Maximum number of loop iterations, including the first pass. When Count >= Max, the sequencer continues with MIDI events after tick End. Set to 0 for an infinite loop. Default is 0. | |
| int | Count |
| Current loop count. Default is 0. | |
MIDI inner-loop settings for MidiFilePlayer and MidiExternalPlayer [Pro].
See MidiFilePlayer.MPTK_InnerLoop and MidiExternalPlayer.MPTK_InnerLoop. See example:
.
Loop phase action sent to OnEventInnerLoop.
| Enumerator | |
|---|---|
| Start | Start the loop. |
| Resume | Resume the loop. |
| Exit | Exit the loop. |
| Func<InnerLoopPhase, long, long, int, bool> MidiPlayerTK.MPTKInnerLoop.OnEventInnerLoop |
Callback triggered when an inner-loop event occurs. Parameters: