Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need MIDI example code, please...

Status
Not open for further replies.

TeknomanSlade

Programmer
May 19, 2002
5
0
0
US
How's it goin' guys?

I need some example code. I've been trying for weeks
to come up with either an application or an applet that
will play a MIDI and print a message every time a certain
track plays a certain note (example: "Track 1 has played
middle C 5 times so far..."). I've hunted all over the
net for code and what little I've found is way too
confusing. I just need something that zooms in on this
one task so I can figure things out and be on my way.

I thought I finally had it when I found out about
Code:
addControllerEventListener()
and
Code:
addMetaEventListener()
. I've
got code that responds to that, but they don't seem to
want to respond to individual notes being played within
tracks. Now I'm reading about VoiceEvts and MIDI "Events"
(which I guess are different from regular Java "Events"
as I'm used to knowing them...???) and Transmitters and
Receivers and...ugh...I'm sick of this endless reading.

Any suggestions?
 
Have you checked out the javax.media API ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top