摘要 |
PURPOSE: A method for synchronizing MP3 song data and midi lyrics data is provided to play synchronized data regardless of lyrics, songs, keys, and tempos. CONSTITUTION: An audio play device calculates an FPT(Frame Per Time) time of MP3 data and a tick interval time of lyrics data. The device calculates the number of current play frames and the number of ticks(130). The device calculates the total play time and a lyrics time(140). When tempos of a MP3 song or the lyrics are changed, the device compares a play time of the song with a play time of the lyrics(150,160). If the play time of the song is different from the play time of the lyrics, the device modifies a position of a file pointer as much as the play time of the lyrics(170). [Reference numerals] (110) Reading MP3 songs and MIDI lyrics data; (120) Calculating the FTP of MP3 song data and the tick time of lyrics data; (130) Calculating the numbers of frames and ticks currently being played; (140) Calculating the total play time of MP3 songs and lyrics; (150) Changing tempo?; (160) MP3 play time = MIDI play time; (170) Correcting the position of a file pointer as much as the play time of MIDI; (180) MPEG audio decoder→PCM data play; (AA) Start; (BB,DD,FF) No; (CC,EE,GG) Yes; (HH) End
|