Do you mean MidiSystemStatic.GetMidiFileFormat?
GetMidiFileFormat2 is working, It works from a directory on the disk. but it can't read files from the Assets folder either, it appears it may require write permissions the Assets directory is read only. See the documentation here:
https://docs.oracle.com/javase/8/do...m.html#getMidiFileFormat-java.io.InputStream-:
GetMidiFileFormat3 is fixed for the next release and works with the Assets directory, if you want to drop it in the code is here:
'Obtains the MIDI file format of the data in the specified URL.
'Pass a FileUri obtained with File.GetUri(Dir, FileName)
Public Sub GetMidiFileFormat3(Url As String) As MidiFileFormat
Dim MidiSystem1 As JavaObject
MidiSystem1.InitializeStatic("javax.sound.midi.MidiSystem")
Dim jURL As JavaObject
jURL.InitializeNewInstance("java.net.URL",Array(Url))
Dim Wrapper As MidiFileFormat
Wrapper.Initialize
Wrapper.SetObject(MidiSystem1.RunMethod("getMidiFileFormat",Array As Object(jURL)))
Return Wrapper
End Sub
Pass a FileUri obtained with File.GetUri(Dir, FileName)