How to play individual notes from a midi file in LibGDX?

The application has an image of a musical instrument on the screen. I want to play one note from a predefined midi file when the image touches. Therefore, if you constantly touch the image, you can hear pleasant music.

LibGDX music and sound classes do not allow you to play notes from MIDI files. A timer is not an option, as note lengths may vary.

So how to play individual notes from a midi file in LibGDX?

+4
source share

Source: https://habr.com/ru/post/1609802/


All Articles