How can I create a program to read and play a midi file? I need to find a method to play the file in Class Play and a method that loads the midi file into a score in Class Read and pass the score variable to View.sketch(). I was using this website to find the methods under class Read and class Play http://www.explodingart.com/jmusic/jmDocumentation/index.html. Here is what I have so far.
import jm.JMC; import jm.music.data.*; import jm.util.*; public class Main { public static void main ( String [] args ){ public static void midi(Score score){ Score score = new Score("my music score ");// Name your score View.sketch(score); } } } //1272439.1.mid this is my file name but I don't know how to include it in my code.
https://stackoverflow.com/questions/67048914/java-read-and-play-midi-file-using-public-static-void-midiscore-score-method April 12, 2021 at 02:45AM
没有评论:
发表评论