Update Main.java

Moving to midi independenc.