1. I've got a MIDI file and need to convert it into noteblock code. How should I do that?
  2. I believe that NoteBlock studio may be able to help.
  3. Dance

    Dance Well-Known Member

    I have no experience with MIDI files, but if you're looking to create your music player from scratch, javax.sound.midi.spi.MidiFileReader looks promising. I believe you could get the file's sequence from the reader, and from that sequence get the timing and note from each NOTE_ON (0x90) event in the sequence's tracks. Then, it would be up to you to create a player than properly times and plays the notes that you read from each track.

    If you would rather look at existing implementations, then help is only a Google search away ("spigot midi player").

Share This Page