Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A simple free MIDI implementation in Java besides javax.sound.midi: Are there any?

Tags:

java

android

midi

The problem is: Android doesn't implement javax.sound.midi.

I need a simple free library that allows me to create simple 1-track midi files. I searched the net for it, but can't really find anything, since everything uses javax.sound.midi .

The license needs to be one where I don't need to opensource my linked app.

Any ideas?

I also looked into the fileformat itself. However, I am totally not familiar with working with bytes, hexidecimal stuff etc.

So, other option is: are there any simple midi implementations that I can use as reference?

like image 231
Peterdk Avatar asked May 03 '10 13:05

Peterdk


3 Answers

Well, for all you midi needing android devs: check out this Dutch university assignment that contains a very very basic midi file writer. Together with this reference doc you can easily expand it into playing chords, selecting instrument etc.

It worked for me!

I do have opened a feature request for direct streaming access to the synthesizer. If you are interested in streaming midi, please rate, star, comment there.

like image 131
Peterdk Avatar answered Nov 13 '22 09:11

Peterdk


http://kevinboone.net/javamidi.html

like image 1
francesco Avatar answered Nov 13 '22 10:11

francesco


I've recently uploaded a MIDI library written in Java to Google Code:

http://code.google.com/p/android-midi-lib/

like image 1
LeffelMania Avatar answered Nov 13 '22 10:11

LeffelMania