MIDI inner loop setting available for MidiFilePlayer and MidiExternalPlayer [Pro].
Look at MidiFilePlayer.MPTK_InnerLoop and MidiExternalPlayer.MPTK_InnerLoop. See Example:
More...
Public Types | |
enum | InnerLoopPhase { Start , Resume , Exit } |
Public Member Functions | |
void | Clear () |
Public Attributes | |
int | Count |
bool | Enabled |
long | End |
bool | Finished |
bool | Log |
int | Max |
Func< InnerLoopPhase, long, long, int, bool > | OnEventInnerLoop |
long | Resume |
long | Start |
MIDI inner loop setting available for MidiFilePlayer and MidiExternalPlayer [Pro].
Look at 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 |
void MidiPlayerTK.MPTKInnerLoop.Clear | ( | ) |
Clear Inner Loop attributes. Enabled = false, Finished = false Start = 0, Resume = 0, End = 0 Count = 0
int MidiPlayerTK.MPTKInnerLoop.Count |
Current loop count. Default is 0.
bool MidiPlayerTK.MPTKInnerLoop.Enabled |
Enable or disable the loop. Default is false.
long MidiPlayerTK.MPTKInnerLoop.End |
Tick position to trigger the loop restart to the Resume position (when MidiLoad.MPTK_TickPlayer >= to End). Default is 0.
bool MidiPlayerTK.MPTKInnerLoop.Finished |
Becomes true when the loop is finished or OnEventInnerLoop returns false.
Can also be set to true to stop looping.
bool MidiPlayerTK.MPTKInnerLoop.Log |
Enable logging message
int MidiPlayerTK.MPTKInnerLoop.Max |
Func<InnerLoopPhase, long, long, int, bool> MidiPlayerTK.MPTKInnerLoop.OnEventInnerLoop |
Unity event triggered when a loop occurs. parameters:
long MidiPlayerTK.MPTKInnerLoop.Resume |
Tick position to resume the loop when MidiLoad.MPTK_TickPlayer >= to End. Default is 0. See also MidiFilePlayer.MPTK_RawSeek