-
Karaoke Player
Is it possible to create a karaoke player using Java?
I have a program already that plays midi and .kar(midi+lyrics) files, but my problem is how to display the lyrics.
Do you have an idea about this?
I really badly need your help.. :(
This is our thesis project.
Any help or assistance is highly appreciated.
-
Re: Karaoke Player
Which part of this is giving you trouble? Displaying a gui at all? Displaying an animation? Syncing up the lyrics to the music? Something else? What have you tried? What do you have so far?
-
Re: Karaoke Player
Thank you very much KevinWorkman for answering my thread.
Actually my program will only play a .kar file and midi file but i don't have a gui yet because i don't know how to start and how to make it.
Now, my problems are how to display the lyrics in the GUI with animation or video background and Syncing up the lyrics to the music. I am using the .kar file which has already a midi and lyrics.
This is the program i have so far, and i just got this from the internet.
package player;
import javax.sound.midi.*;
import java.io.FileInputStream;
public class SimpleMidiPlayer{
public static void main(String[] args) {
try {
Sequencer sequencer = MidiSystem.getSequencer();
if (sequencer == null)
throw new MidiUnavailableException();
sequencer.open();
FileInputStream is = new FileInputStream("C:/Programming files/James Blunt - Same Mistake.kar");
Sequence Seq = MidiSystem.getSequence(is);
sequencer.setSequence(Seq);
sequencer.start();
} catch (Exception e) {
e.printStackTrace();
}
}
}
-----------------------
Can you help me how to start?
i am new to this kind of program that's why i seek help for this.
Actually i already developed a system and it was "POS system" and i also developed a game and it was "Who wants to be a billionaire".
-
Re: Karaoke Player
I'd start by reading through this tutorial: Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
Break your problem up into small steps. How do you display a window? How do you display text? How do you animate something? Then try creating an SSCCE for each step, that way it'll be easier to help you when you get stuck.
-
Re: Karaoke Player
Thank you so much KevinWorkman.