playing a midi file in java
I want to be able to play stop and loop a midi file. However the code i have accepts a url object but I cant find a way to get that to point to the file on my hdd. it's a java program and not an applet
|
Since you did not post any code and I don't feel like writing a midi player (you need threads, sequencers, etc), I will give you the basic idea. If you are going for a command line player (For example, to start your application like this: midiplayer <song.mid>), then do something like this:
Code:
public class Main { If you post some code I could give you a hand :) |
All times are GMT -5. The time now is 01:56 PM. |