package pokemiku; import javax.sound.midi.MidiDevice; import javax.sound.midi.MidiSystem; import javax.sound.midi.Receiver; import javax.sound.midi.ShortMessage; import javax.sound.midi.SysexMessage; import javax.xml.bind.DatatypeConverter; public class PokeMikuSample { public static void main(String... args) throws Exception{ try(MidiDevice d = getDevice()){ d.open(); Receiver r = d.getReceiver()