View Full Version : KAR file explanation
King_N0thing
01-05-2003, 04:39 AM
Does anybody know where can i get a sort of Kar files white paper?
My project is to create a program that could convert a kar file into a mpeg (suitable for playing in a home dvd player)...
An open source karaoke player whould also do...
THANKS!
midiprog2000
01-07-2003, 04:14 AM
Well, first you need to make a midi parser. A text or lyric event has a certain place in the midifile.
To know the exact timing of your text string, you need to calculate the midiclock (or tick) length by reading the tempo data and to devide this by the sequencer resolution (ppqn). Then just count the pulses, by adding all previous delta times together. Remember, delta times are in variable lenght format. Then multiply the number of pulses with the pulse lenght.
More info on this: http://www.borg.com/~jglatt/
If you have extracted the lyrics with their timing, you could embed them as ID3v2 tags or as Lyrics3v2 tags in an MP3 file.
More info on this: http://www.id3.org
Good luck
Alain
www.mididesign.be
bigBOSS97
12-03-2003, 07:38 PM
Open Source in C:
http://www.libsdl.org/projects/SDL_mixer/
Where you can see how a MIDI file is decoded.
Good luck
Phuoc Can HUA
vBulletin® v3.7.0 Release Candidate 2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.