Prev: Security Policy to limit access to Printer or third party libraries
Next: Conversion from Unicode to character
From: Dirk Bruere at NeoPax on 8 Apr 2010 16:34 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. -- Dirk http://www.transcendence.me.uk/ - Transcendence UK http://www.blogtalkradio.com/onetribe - Occult Talk Show
From: EmeCas on 9 Apr 2010 05:20 On Apr 8, 10:34 pm, Dirk Bruere at NeoPax <dirk.bru...(a)gmail.com> wrote: > 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 > > -- > Dirk > > http://www.transcendence.me.uk/- Transcendence UKhttp://www.blogtalkradio..com/onetribe- Occult Talk Show
From: Dirk Bruere at NeoPax on 12 Apr 2010 11:34
On 10/04/2010 00:59, Roedy Green wrote: > On Thu, 08 Apr 2010 21:34:13 +0100, Dirk Bruere at NeoPax > <dirk.bruere(a)gmail.com> wrote, quoted or indirectly quoted someone who > said : > >> 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. > > for some background and links see > > http://mindprod.com/jgloss/midi.html > > Java has supported MIDI since 1.3 with > javax.media.sound.midi Thanks guys. I'll play around with the resources mentioned and come back if there's anything I don't understand. -- Dirk http://www.transcendence.me.uk/ - Transcendence UK http://www.blogtalkradio.com/onetribe - Occult Talk Show |