Closed achimmihca closed 1 year ago
MIDI files inherently do not work well with operations like seeking, and it's challenging to implement a seek function that can meet the demands of many users. Therefore, the MidiFileSequencer in MeltySynth does not provide a seek method. If you need to seek, please consider implementing your own sequencer.
Thanks for the info. In this case, I will close this issue.
I have a Unity game and want to play user provided MIDI files on the fly.
Therefor, I want to synthesize samples when needed, not all at once. For example, my code may look similar to this:
I found the Render method of MeltySynth to be good. However, I did not find a way to change the playback position. Is this missing or am I looking in the wrong place?
So far, I use this other lib to play MIDI in Unity, but it has issues with some MIDI files.
Thanks for the help!