![]() |
Maestro - Midi Player Tool Kit for Unity Version 2.18.2
|
Load MIDI content and inspect its event data before or during playback. More...
MIDI Loading and Reading | |
| MidiLoad | MidiPlayerTK.MidiFilePlayer.MPTK_MidiLoaded [get] |
| Gets detailed information about MIDI playback. This readonly property is available only when a MIDI has been loaded. | |
| bool | MidiPlayerTK.MidiFilePlayer.MPTK_KeepNoteOff [get, set] |
| A MIDI file is a kind of keyboard simulation: in general, a key pressed generates a 'note-on' and a key release generates a 'note-off'. But there is an other possibility in a MIDI file: create a 'note-on' with a velocity=0 which must act as a 'midi-off' By default, MPTK create only one MPTK event with the command NoteOn and a duration. But in some cases, you could want to keep the note-off events if they exist in the MIDI file. Sets to false if there is no need (could greatly increases the MIDI list events). Sets to true to keep 'note-off' events. | |
| bool | MidiPlayerTK.MidiFilePlayer.MPTK_KeepEndTrack [get, set] |
| When set to true, meta MIDI event End Track are keep. Default is false. If set to true, the End Track Event are taken into account for calculate the full duration of the MIDI. See MPTK_DurationMS. | |
| bool | MidiPlayerTK.MidiFilePlayer.MPTK_ExtendedText [get, set] |
| If the value is true, text read from Text META (e.g. lyrics) will be read with UTF8 encoding. The default is false. The MIDI standard only allows ASCII characters for this META, but with this extension you will be able to read and display characters like Korean, Chinese, Japanese and even French accented letters ;-). | |
| LoadingStatusMidiEnum | MidiPlayerTK.MidiFilePlayer.MPTK_StatusLastMidiLoaded |
| Status of the last midi loaded. The status is updated in a coroutine, so the status can change at each frame. | |
| bool | MidiPlayerTK.MidiFilePlayer.MPTK_LogLoadEvents |
| If true display in console all midi events when a MIDI file is loaded. . | |
| string | MidiPlayerTK.MidiFilePlayer.MPTK_WebRequestError |
| Contains the error from the web request when loading MIDI from an URL. | |
| MidiLoad | MidiPlayerTK.MidiFilePlayer.MPTK_Load () |
| Loads the midi file defined with MPTK_MidiName or MPTK_MidiIndex. It's an optional action before playing a midi file with MPTK_Play() Use this method to get all MIDI events before start playing. | |
| List< MPTKEvent > | MidiPlayerTK.MidiFilePlayer.MPTK_ReadMidiEvents (long fromTicks=0, long toTicks=long.MaxValue) |
| Read the list of midi events available in the MIDI from a ticks tick to an end tick. | |
| void | MidiPlayerTK.MidiFilePlayer.MPTK_SortEvents () |
| MIDI list events must be sorted by ticks before playing. It's mandatory if the list is modified. | |
| MidiLoad | MidiPlayerTK.MidiFilePlayer.MPTK_Load (string uri) |
| Loads a MIDI file from a local desktop file. Example paths: | |
Load MIDI content and inspect its event data before or during playback.
| MidiLoad MidiPlayerTK.MidiFilePlayer.MPTK_Load | ( | ) |
Loads the midi file defined with MPTK_MidiName or MPTK_MidiIndex. It's an optional action before playing a midi file with MPTK_Play()
Use this method to get all MIDI events before start playing.
| List< MPTKEvent > MidiPlayerTK.MidiFilePlayer.MPTK_ReadMidiEvents | ( | long | fromTicks = 0, |
| long | toTicks = long::MaxValue ) |
Read the list of midi events available in the MIDI from a ticks tick to an end tick.
| fromTicks | ticks start, default 0 |
| toTicks | ticks end, default end of MIDI file |
| void MidiPlayerTK.MidiFilePlayer.MPTK_SortEvents | ( | ) |
MIDI list events must be sorted by ticks before playing. It's mandatory if the list is modified.
| MidiLoad MidiPlayerTK.MidiFilePlayer.MPTK_Load | ( | string | uri | ) |
Loads a MIDI file from a local desktop file. Example paths:
| uri | URI or path to the MIDI file. |
| bool MidiPlayerTK.MidiFilePlayer.MPTK_LogLoadEvents |
If true display in console all midi events when a MIDI file is loaded.
.
|
getset |
If the value is true, text read from Text META (e.g. lyrics) will be read with UTF8 encoding. The default is false.
The MIDI standard only allows ASCII characters for this META, but with this extension you will be able to read and display
characters like Korean, Chinese, Japanese and even French accented letters ;-).