![]() |
Maestro - Midi Player Tool Kit for Unity Version 2.18.2
|
MIDI loading/parsing services and scan helpers. More...
Classes | |
| class | MidiPlayerTK.MidiFileLoader |
| @Warning - will be soon deprecated, please rather use MidiFilePlayer prefab which have the same features + eventually MIDI sequencer and MIDI synth! Exemple for just loading a MIDI with MidiFilePlayer: More... | |
| class | MidiPlayerTK.MidiLoad |
| Base class for loading a MIDI file and reading MIDI event in a MIDI sequencer. It's not possible to instanciate directly this class. Rather, use MidiFilePlayer to load a MIDI This class is used by MidiFilePlayer, MidiListPlayer, MidiFileWrite2, MidiFileLoader (see members MPTK_MidiLoaded of these classes). . More... | |
Functions | |
| bool | MidiPlayerTK.MidiFileLoader.MPTK_SearchMidiToPlay (string name) |
| Finds a MIDI in the Unity Resources folder MidiDB whose name contains the specified text (case-sensitive). Beware: the name of this method is not appropriate because MidiFileLoader cannot play MIDI. Use MidiFilePlayer instead. It is kept only for compatibility and may be removed in a future major version. . | |
| void | MidiPlayerTK.MidiLoad.MPTK_CalculateTiming () |
| Calculate all timing in the MIDI file: | |
| MPTKEvent | MidiPlayerTK.MidiLoad.MPTK_FindLastNote () |
| Find the last MIDI event note-on. | |
| static int | MidiPlayerTK.MidiLoad.MPTK_SearchEventFromTick (List< MPTKEvent > midiEvents, long tickSearched) |
| Search for a MIDI event from a tick position. v2.9.0 . | |
| bool | MidiPlayerTK.MidiLoad.MPTK_LoadFile (string filename, bool strict=false) |
| Load MIDI file from a local file (Moved to PRO since version 2.89.5). | |
MIDI loading/parsing services and scan helpers.
| bool MidiPlayerTK.MidiFileLoader.MPTK_SearchMidiToPlay | ( | string | name | ) |
Finds a MIDI in the Unity Resources folder MidiDB whose name contains the specified text (case-sensitive).
Beware: the name of this method is not appropriate because MidiFileLoader cannot play MIDI. Use MidiFilePlayer instead.
It is kept only for compatibility and may be removed in a future major version.
.
| name | Case-sensitive part of a MIDI file name. |
| void MidiPlayerTK.MidiLoad.MPTK_CalculateTiming | ( | ) |
Calculate all timing in the MIDI file:
| MPTKEvent MidiPlayerTK.MidiLoad.MPTK_FindLastNote | ( | ) |
Find the last MIDI event note-on.
|
static |
Search for a MIDI event from a tick position. v2.9.0
.
| tickSearched | tick position |
| bool MidiPlayerTK.MidiLoad.MPTK_LoadFile | ( | string | filename, |
| bool | strict = false ) |
Load MIDI file from a local file (Moved to PRO since version 2.89.5).
| filename | Midi path and filename to load (OS dependant) |
| strict | if true the MIDI must strictely respect the midi norm |