Add Jitpack to settings.gradle, inside the repositories section:
maven { url 'https://jitpack.io' }
Add the library import to the corresponding module build.gradle file, inside the dependencies section:
implementation 'com.github.pdrogfer:MidiDroid:1.3'