Here is a wrap of the JavaxMidi Library as a B4xLib.
It is a large library and I haven't tested all of the available methods, it you get any problems let me know and I'll take a look.
The code is in the b4xlib, but only supports B4j feel free to unzip it and use it as you wish.
The example attached is a simple midi player and dump viewer for the midi tracks and has no additional dependencies.
Depends on: JavaObject and ByteConverter.
Documentation for the library is in the attached XMLfile which you can open with one of the Document viewers available on the Forum. Documentation and examples for the JavaxMidi package are available on the internet,
As always, if you try it, let me know how you get on with it and please report any bugs or problems.
Update to V1.2
Amended to work with external midi devices. (see post #7)
Update to V1.3
Fixed bug in soundfont initialization (Thanks luca1967 for finding it)
Update to V 1.4
Update to V 1.6 - Breaking Change (if using a transmitter listener)
It is a large library and I haven't tested all of the available methods, it you get any problems let me know and I'll take a look.
The code is in the b4xlib, but only supports B4j feel free to unzip it and use it as you wish.
The example attached is a simple midi player and dump viewer for the midi tracks and has no additional dependencies.
Depends on: JavaObject and ByteConverter.
Documentation for the library is in the attached XMLfile which you can open with one of the Document viewers available on the Forum. Documentation and examples for the JavaxMidi package are available on the internet,
As always, if you try it, let me know how you get on with it and please report any bugs or problems.
Update to V1.2
Amended to work with external midi devices. (see post #7)
Update to V1.3
Fixed bug in soundfont initialization (Thanks luca1967 for finding it)
Update to V 1.4
- Added TransposeTrack2 to MidiUtils which allows ignoring transpose on certain midi channels.
- Fixed bug in MidiSynthesizer GetLoadedInstruments
- Added ChrSet where needed to allow use of different character encoding for text events in a midifile.
- Added VirtualMachinArgs and PackagerProperty to the example project as required to create a package on Java9+ (Uncomment the 2 lines)
Update to V 1.6 - Breaking Change (if using a transmitter listener)
- Amended MidiData_Event in MidiTransmitter class to return a MidiMessage instead of MidiShortMessage See this post for modifications required
- Modified MidiySytemStatic GetSequence2 and GetSequence3 to return wrapped Sequence Objects
- Fixed bug in MidiSystemGetMidiFileFormat3
- Bug Fixes
Attachments
Last edited: