fbpx


The MIDI Forum

  Monday, 03 October 2016
  2 Replies
  5.2K Visits
0
Votes
Undo
  Subscribe
Hello!

Ive been using midi for a while and just recently have begun learning how to write code in Java. Right now I'm attempting to write a simple program where my application prints out the three bytes from a note on message whenever I press middle C on my midi controller. Ive read a couple articles and know a little bit about midi specifics such as the hex a decimal system, types of messages etc but cannot find much about the protocol for receiving midi information when writing programs compatible with midi. Is there anyone who can help me out ? Thanks!

Best
Alex
5 years ago
·
#462
1
Votes
Undo
Java provides a package to interface with the MIDI subsystem. This package have some limitations (regarding sysex or realtime messages for examples), and is quite a departure from standard midi-as-a-serial-protocol because of its object-oriented nature, but it allows to quickly write MIDI enabled software.

https://docs.oracle.com/javase/7/docs/api/javax/sound/midi/package-summary.html
https://docs.oracle.com/javase/tutorial/sound/MIDI-messages.html
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!