Reputation: 2663
I have a project where I want to write midi files. Nothing too complicated as far as the notes go -- no pitch bends, no key signature, set tempo etc. Using just standard a,b,c notes. For example, I want to write 3 notes a,b,c as 16th notes.
This may not be an easy task.
But if not are there some good sites for midi structure?
Should also mention I do not want to use javax.sound.midi. I want to write the midi as a "string" then save it out.
Upvotes: 4
Views: 8265
Reputation: 790
I'm using http://www.jfugue.org for my MIDI-generating app http://github.com/okohll/TextSound. Example:
Player player = new Player();
File file = new File("out.mid")
String s = "A B C D E F G";
player.saveMidi(s, file);
player.play(s);
Upvotes: 4
Reputation: 12875
There's a Java implementation of MIDI up on Google Code if you want to browse/use it:
http://code.google.com/p/android-midi-lib/
Upvotes: 2