Introduction
A KAR file is a Standard MIDI File with the words of the song added, so a karaoke player can show and highlight the lyrics in time with the music. The convention was started by the company Tune 1000 in the 1990s and spread through shared karaoke collections. Any MIDI player can play the music; only a karaoke-aware player shows the words.
Structure
The file is an ordinary Standard MIDI
File: an MThd header chunk and
MTrk track chunks. The lyrics are text meta events (FF 01),
usually in their own track, each placed at the tick where that syllable is sung. Text
starting with @ carries information rather than lyrics, such as
@KMIDI KARAOKE FILE, @T for the title and @L
for the language. Within the lyrics, a / starts a new line and a
\ starts a new paragraph.
The format was never formally specified, and players differ in the details. Some
files use the standard MIDI lyric event (FF 05) instead.
Karaoke events gives the track
layout, the tags and the line breaks in detail.
Not described
Karaoke files are Standard MIDI Files, so the explorer opens them with the MIDI plugin. This page follows player documentation, because the convention was never formally specified; see the MIDI page for the file format itself.
Known, not yet covered
- Viewer: the MIDI viewer assembles the lyrics of Soft Karaoke (text events) and Tune 1000 format 0 (lyric events) into lines with the time of each syllable, lists the
@tags and checks the conventions on this page. It does not read the other karaoke forms described under “Other karaoke conventions”: Solton (<lines and controller 31 highlighting), MidiSoft (system exclusive lyrics) and Yamaha XF chords, which show only as the raw events and system exclusive messages. A convention finding is a note about the file, not an error: the file is still a valid MIDI file.
Unknown
- Reference: no public Tune 1000 specification exists; every rule for that form comes from player documentation.
- Reference: what the tags
@W,|C:|and[P2]mean; the question was asked on the midi.org forum and not answered. - Reference: whether the convention’s “first track” counts the tempo track of a type 1 file.
Links
Software
- vanBasco’s Karaoke Player – free karaoke player that shows the lyrics as the song plays (Windows)
- TiMidity++ – software synthesiser that plays MIDI and KAR files (Windows, macOS, Linux)
Developers
- Mido – library that reads the MIDI events, lyrics included (Python)
Reference
- Karaoke formats – Mixage Software’s description of Soft Karaoke, Tune 1000 and other MIDI karaoke conventions