EvilLyrics forum
September 19, 2019, 09:24:28 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1
  Print  
Author Topic: .kas file format  (Read 2706 times)
stz
Guest
« on: January 03, 2004, 12:25:39 AM »

Take these three lines:
Everyone
Everyone around here
Everyone is so near

They are encoded as:
GaEvGuEvHOEv

I assume that the timestamps are recorded as pairs of characters from AA to AZ, then Aa to Az, then BA to BZ, Ba to Bz, etc...  But how long is the delay between each one.  Please could someone explain how it all works?  I want to manually edit and fine tune the timestamps so that I don't have to mess about remaking the file, but it seems a bit difficult when I have to use powers of 2*26 instead of the usual decimal counting system!
Logged
EvilLyrics forum
« on: January 03, 2004, 12:25:39 AM »

 Logged
stz
Guest
« Reply #1 on: January 03, 2004, 01:54:49 AM »

OK, I've had a look at tiBc?.kas file formatstz81.129.43.181 127 (40 to 7F in hex) are used (in pairs) for the timestamps.  The value appears to be incremented five times per second so here is my assupmtion:

00:00:00.0 = "@@", decimal {64,64}, hex {0x40,0x40}
00:00:00.2 = "@A", decimal {64,65}, hex {0x40,0x41}
00:00:00.4 = "@B", decimal {64,66}, hex {0x40,0x42}
00:00:00.6 = "@C", decimal {64,67}, hex {0x40,0x43}
00:00:00.8 = "@D", decimal {64,68}, hex {0x40,0x44}
00:00:01.0 = "@E", decimal {64,69}, hex {0x40,0x45}
00:00:11.0 = "@w", decimal {64,119}, hex {0x40,0x77}
00:00:12.6 = "@<DEL>", decimal {64,127}, hex {0x40,0x7F}
00:00:12.8 = "A@", decimal {65,64}, hex {0x41,0x40}
00:00:13.0 = "AA", decimal {65,65}, hex {0x41,0x41}
00:00:30.0 = "BV", decimal {66,86}, hex {0x42,0x56}
00:01:00.0 = "Dl", decimal {68,108}, hex {0x44,0x6C}
00:10:00.0 = "nx", decimal {110,120}, hex {0x6E,0x78}

etc... (where <DEL> represents the 'Delete' keystroke).

This seems to allow for about 20 minutes of karaoke, which is probably more than enough in most cases!  Not sure what happens when it gets to {127,127} though.  Wraps around? huh

Sorry if anyone doesn't understand all that  Cheesy
Logged
Anonymous
Guest
« Reply #2 on: January 03, 2004, 03:38:02 PM »

Quote from: stz

They are encoded as:
GaEvGuEvHOEv


I always assumed that the kas file is made up of "records" of length 4 characters each.

The first and second characters in a "record" are the timestamp.

The third and fourth characters are the first two letters of the line of lyrics that is sung when that time is reached in the song.

HTH
Logged
Marek
Administrator
Hero Member
*****

Karma: 8
Posts: 795


« Reply #3 on: January 04, 2004, 03:57:42 PM »

stz, very nice decoding. it is exactly as you wrote. actually overflow (127,127) isn't dealt with yet as i assimed there won't be song longer than 20 minutes. but as the value can only increase, it can be easily fixed

i was thinking about some simple .kas file editor where you could fix a timestamp, offset all timestamps by some period of time or "stretch" whole timestamp file.

but i'm not sure if fixing error in karaoke file would take less time than rerecording whole karaoke. especially when error is in teh end of file and after fixing the error you have to replay the song almost until the end

but anyway, some kind of karaoke editor is in our to-do list
Logged

EvilLyrics Developer
stz
Guest
« Reply #4 on: January 04, 2004, 05:28:57 PM »

An editor would be a cool feature to add to EvilLyrics!  I look forward to it.  Keep up the good work, EvilLyrics is a great program Cheesy
Logged
EvilLyrics forum
   

 Logged
Pages: 1
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines | Calendar EvilLyrics