fbpx
Skip to main content

MIDI Forum

I need help with a ...
 
Notifications
Clear all

I need help with a simple program i wish to write in Java

3 Posts
3 Users
0 Reactions
7,174 Views
AlexAcree
Posts: 1
New Member
Topic starter
 

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

 
Posted : 03/10/2016 6:35 pm
Clemens Ladisch
Posts: 323
Reputable Member
Adrien Plisson
Posts: 4
New Member
 

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

 
Posted : 10/11/2016 6:39 am
Share: