Page created by Yanmi Yu, May 2025
The Maestro MIDI Player Tool Kit (MPTK) offers prefabs that facilitate MIDI music playback and interaction within Unity applications.
MidiFilePlayer:
Function: Plays MIDI files from project assets.
Features: Supports looping, transposition, tempo adjustments, and channel control.
Use Case: Ideal for applications requiring straightforward MIDI file playback.
MidiStreamPlayer:
Function: Generates MIDI events in real-time via scripting.
Features: Allows dynamic music creation without pre-existing MIDI files.
Use Case: Suitable for generative music systems or interactive soundscapes.
MidiListPlayer:
Function: Plays a sequence of MIDI files.
Features: Supports overlapping playback and looping within and between MIDI files.
Use Case: Useful for applications needing playlist functionality or background music rotation.
MidiInReader:
Function: Captures MIDI input from external devices.
Features: Enables real-time MIDI input handling from keyboards or controllers.
Use Case: Essential for music education apps or live performance tools.
MidiSpatializer:
Function: Adds spatial audio effects to MIDI playback.
Features: Positions MIDI channels or instruments in 3D space for immersive audio experiences.
Use Case: Perfect for VR/AR applications requiring spatialized sound.
See tutoial link, up to UPLOAD YOUR OWN MIDI FILE
Add Prefab to Scene:
Drag the desired prefab into your scene.
Or in Hierarchy --> Meastro --> add desire prelab
Assign SoundFont: Ensure a SoundFont is assigned for instrument sounds.
Configure Playback: Use the Inspector to set parameters like volume, transpose, and loop settings.
Script Integration: For dynamic control, reference the prefab in your scripts and use methods like MPTK_PlayEvent() to play notes programmatically
SoundFont Integration: Utilizes SoundFont files to define instrument sounds, allowing for a wide range of timbres and qualities.
API Access: Provides scripting interfaces for advanced control over MIDI playback and event handling.
Compatibility: Supports both free and pro versions, with the pro version offering additional features like a MIDI editor and advanced spatialization options.