I need some advice of where to start...
I have a VST framework that needs to be pointed at a MIDI source, and I
want to feed it MIDI commands from a Java prog on the same machine.
JMUSIC is a great tool to create midi files form Java in a simple way
Homepage:
http://jmusic.ci.qut.edu.au/
Tutorial:
http://jmusic.ci.qut.edu.au/jmtutorial/t1.html
it can be easier as:
import jm.music.data.*;
import jm.util.Write;
//Score, part and phrase to contain the output
Score scr = new Score();
Part part = new Part();
Phrase phrase = new Phrase();
//Add the seed note to the phrase first
Note n = new Note();
n.setPitch(map[seed]);
phrase.addNote(n);
//Generate notes and add them to a phrase
for(int i=0;i<30;i++){
Note note = new Note();
note.setPitch("SOME RANDOM or COMPOSITIONAL PROCESS");
phrase.addNote(note);
}
//add phrase to a part
part.addPhrase(phrase);
//add partto a Score
scr.addPart(part);
//Write as a midi file
Write.midi(scr,"output.mid");
good luck!
EmeCas