Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Karaoke Player

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy 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.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,166
    My Mood
    Hungover
    Thanks
    141
    Thanked 597 Times in 512 Posts

    Default 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?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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".

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,166
    My Mood
    Hungover
    Thanks
    141
    Thanked 597 Times in 512 Posts

    Default 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.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Karaoke Player

    Thank you so much KevinWorkman.

Similar Threads

  1. media player
    By neeraj bhatt in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 17th, 2012, 02:38 AM
  2. How can i make my Player attack another Player?
    By Graser in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 31st, 2012, 05:01 PM
  3. java game bullets hit player 1 but not player 2
    By ajakking789 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 22nd, 2011, 08:19 AM
  4. java game, both players move for player 2 but not player 1
    By ajakking789 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 21st, 2011, 12:52 PM
  5. Java Mp3 player.
    By alex901 in forum Object Oriented Programming
    Replies: 4
    Last Post: November 18th, 2010, 08:12 AM