©  Jan Newmarch 2017

Jan Newmarch, Linux Sound Programming, 10.1007/978-1-4842-2496-0_25

25. Karaoke Applications Using Java Sound

Jan Newmarch

(1)Oakleigh, Victoria, Australia

Java has no library support for karaoke. That is too application specific. In this chapter, I give you code for a karaoke player that can play KAR files. The player will show two lines of the lyrics to be played, with words already played being highlighted in red. Along the top, it shows a simple piano keyboard with the notes that are played in channel 1 of the MIDI file. In the middle, it shows the melody line, with a vertical line in the middle to show the currently playing note.

The player looks like Figure 25-1.

Figure 25-1. User interface of karaoke player

Figure 25-2 ...

Get Linux Sound Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.