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...
Additional Inherited Members | |
![]() | |
enum | ModeSpatializer { Channel , Track } |
![]() | |
int | MPTK_ChannelBankGetIndex (int channel) |
int | MPTK_ChannelControllerGet (int channel, int controller) |
int | MPTK_ChannelCount () |
bool | MPTK_ChannelEnableGet (int channel) |
void | MPTK_ChannelEnableSet (int channel, bool enable) |
int | MPTK_ChannelForcedPresetGet (int channel) |
bool | MPTK_ChannelForcedPresetSet (int channel, int preset, int bank=-1) |
string | MPTK_ChannelInfo (int channel) |
int | MPTK_ChannelNoteCount (int channel) |
bool | MPTK_ChannelPresetChange (int channel, int preset, int bank=-1) |
int | MPTK_ChannelPresetGetIndex (int channel) |
string | MPTK_ChannelPresetGetName (int channel) |
float | MPTK_ChannelVolumeGet (int channel) |
void | MPTK_ChannelVolumeSet (int channel, float volume) |
void | MPTK_ChorusSetDefault () |
void | MPTK_ClearAllSound (bool destroyAudioSource=false, int _idSession=-1) |
void | MPTK_InitSynth (int channelCount=16, bool resetActiveVoices=false) |
void | MPTK_ResetStat () |
void | MPTK_ReverbSetDefault () |
void | MPTK_SFChorusSetDefault () |
void | MPTK_SFFilterSetDefault () |
void | MPTK_SFReverbSetDefault () |
void | MPTK_StartSequencerMidi () |
void | MPTK_StopSynth () |
IEnumerator | MPTK_WaitAllNotesOff (int _idSession=-1) |
delegate void | OnAudioFrameStartHandler (double synthTime) |
![]() | |
static List< MidiFilePlayer > | SpatialSynths |
![]() | |
bool | MPTK_ApplySFChorus [get, set] |
Apply chorus effect as defined in the SoundFont. This effect is processed with the fluidsynth algo independently on each voices but with a small decrease of performace(10%). More... | |
bool | MPTK_ApplySFFilter [get, set] |
bool | MPTK_ApplySFReverb [get, set] |
Apply reverberation effect as defined in the SoundFont. This effect is processed with the fluidsynth algo independently on each voices but with a small decrease of performace(40%). More... | |
bool | MPTK_ApplyUnityChorus [get, set] |
bool | MPTK_ApplyUnityReverb [get, set] |
float | MPTK_ChorusDelay [get, set] |
float | MPTK_ChorusDepth [get, set] |
float | MPTK_ChorusDryMix [get, set] |
float | MPTK_ChorusRate [get, set] |
float | MPTK_ChorusWetMix1 [get, set] |
float | MPTK_ChorusWetMix2 [get, set] |
float | MPTK_ChorusWetMix3 [get, set] |
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] |
float | MPTK_ReverbDecayHFRatio [get, set] |
float | MPTK_ReverbDecayTime [get, set] |
float | MPTK_ReverbDelay [get, set] |
float | MPTK_ReverbDensity [get, set] |
float | MPTK_ReverbDiffusion [get, set] |
float | MPTK_ReverbDryLevel [get, set] |
float | MPTK_ReverbHFReference [get, set] |
float | MPTK_ReverbLevel [get, set] |
float | MPTK_ReverbLFReference [get, set] |
float | MPTK_ReverbReflectionDelay [get, set] |
float | MPTK_ReverbReflectionLevel [get, set] |
float | MPTK_ReverbRoom [get, set] |
float | MPTK_ReverbRoomHF [get, set] |
float | MPTK_ReverbRoomLF [get, set] |
float | MPTK_SFChorusDepth [get, set] |
float | MPTK_SFChorusLevel [get, set] |
float | MPTK_SFChorusSpeed [get, set] |
float | MPTK_SFChorusWidth [get, set] |
float | MPTK_SFFilterQModOffset [get, set] |
float | MPTK_SFReverbDamp [get, set] |
float | MPTK_SFReverbLevel [get, set] |
float | MPTK_SFReverbRoomSize [get, set] |
float | MPTK_SFReverbWidth [get, set] |
bool | MPTK_Spatialize [get, set] |
int | MPTK_SpatialSynthIndex [get] |
int | MPTK_SynthRate [get, set] |
string | MPTK_TrackName [get] |
int | MPTK_TransExcludedChannel [get, set] |
int | MPTK_Transpose [get, set] |
float | MPTK_Volume [get, set] |
![]() | |
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.