Read MIDI events from a MIDI keyboard connected to your Windows or Mac desktop. This class must be used with the prefab MidiInReader.
There is no need to writing a script. For a simple usage, all the job can be done in the prefab inspector. More information here https://paxstellar.fr/prefab-midiinreader/
More...
Properties | |
MPTKChannels | MPTK_Channels [get] |
Description and list of MIDI Channels associated to the MIDI synth. Each MIDI synth has 16 channels that carry all the relevant MIDI information. More... | |
Properties inherited from MidiPlayerTK.MidiSynth | |
int | MPTK_IndexSynthBuffSize [get, set] |
int | MPTK_IndexSynthRate [get, set] |
string | MPTK_InstrumentPlayed [get] |
bool | MPTK_IsSpatialSynthMaster [get] |
bool | MPTK_KeepPlayingNonLooped [get, set] |
float | MPTK_MaxDistance [get, set] |
bool | MPTK_PauseOnDistance [get, set] |
bool | MPTK_Spatialize [get, set] |
int | MPTK_SpatialSynthIndex [get] |
int | MPTK_SynthRate [get, set] |
int | MPTK_ThreadMidiPriority [get, set] |
string | MPTK_TrackName [get] |
int | MPTK_TransExcludedChannel [get, set] |
int | MPTK_Transpose [get, set] |
float | MPTK_Volume [get, set] |
Additional Inherited Members | |
Public Types inherited from MidiPlayerTK.MidiSynth | |
enum | ModeSpatializer { Channel , Track } |
Public Member Functions inherited from MidiPlayerTK.MidiSynth | |
void | MPTK_ClearAllSound (bool destroyAudioSource=false, int _idSession=-1) |
void | MPTK_InitSynth (int channelCount=16, bool preserveChannelInfo=false) |
void | MPTK_ResetStat () |
void | MPTK_StartSequencerMidi () |
void | MPTK_StartSynth () |
void | MPTK_StopSynth () |
IEnumerator | MPTK_WaitAllNotesOff (int _idSession=-1) |
delegate void | OnAudioFrameStartHandler (double synthTime) |
Static Public Member Functions inherited from MidiPlayerTK.MidiSynth | |
static StringBuilder | MPTK_BuildInfoSynth (MidiSynth synth) |
Build a string with performance and information about the MIDI reader and the MIDI synthesizer. DEBUG_PERF_AUDIO DEBUG_HISTO_DSPSIZE DEBUG_PERF_MIDI More... | |
Static Public Attributes inherited from MidiPlayerTK.MidiSynth | |
const float | FLUID_CHORUS_DEFAULT_DEPTH = 4.25f |
const float | FLUID_CHORUS_DEFAULT_LEVEL = 0.6f |
const int | FLUID_CHORUS_DEFAULT_N = 3 |
const float | FLUID_CHORUS_DEFAULT_SPEED = 0.2f |
const float | FLUID_CHORUS_DEFAULT_WIDTH = 10f |
const float | FLUID_REVERB_DEFAULT_DAMP = 0.3f |
const float | FLUID_REVERB_DEFAULT_LEVEL = 0.7f |
const float | FLUID_REVERB_DEFAULT_ROOMSIZE = 0.5f |
const float | FLUID_REVERB_DEFAULT_WIDTH = 0.8f |
static List< MidiFilePlayer > | SpatialSynths |
Events inherited from MidiPlayerTK.MidiSynth | |
OnAudioFrameStartHandler | OnAudioFrameStart |
Read MIDI events from a MIDI keyboard connected to your Windows or Mac desktop. This class must be used with the prefab MidiInReader.
There is no need to writing a script. For a simple usage, all the job can be done in the prefab inspector. More information here https://paxstellar.fr/prefab-midiinreader/
Example of script. See TestMidiInputScripting.cs for a more detailed usage.
Display each MIDI events from a MIDI device connected Need for a reference to the Prefab (can also be set from the hierarchy)
bool MidiPlayerTK.MidiInReader.MPTK_ReadMidiInput |
Read Midi input
EventMidiClass MidiPlayerTK.MidiInReader.OnEventInputMidi |
Define unity event to trigger when note available from the Midi file.
|
get |
Description and list of MIDI Channels associated to the MIDI synth.
Each MIDI synth has 16 channels that carry all the relevant MIDI information.
They serve to distinguish between instruments and provide independent control over each one.
By transmitting MIDI messages on their respective channels, you can alter the instrument, volume, pitch, and other parameters.
Within the Maestro Midi Player Toolkit, MIDI channels are designated numerically from 0 to 15. Notably, channel 9 is set aside specifically for drum sounds.