MIDI

  • Thread starter Dirk Bruere at NeoPax
  • Start date
D

Dirk Bruere at NeoPax

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.
 
E

EmeCas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top