LRC file structure analysis

Source: Internet
Author: User

 LRC Overview

LRC lyrics are specialized text-based lyrics that contain "tags" in the form. It was first proposed and applied in the program by Mr. Guo Xiangxiang (djohan. This type of lyrics file can be used to implement karaoke functions (special programs are required), and can be viewed and edited using common text processing software. Of course, in actual operations, special LRC lyrics editing software is often used for efficient editing. The following describes the "tags" in LRC format ".

The LRC lyrics contain two types of labels: the tag and the time tag.

After using notepad in the above format, you can change the extension name to LRC to make the file. LRC lyrics are a way to press the lyrics by the editor

The time when the song lyrics appear is edited into a file, which is displayed in sequence during the playing of the song. Break the song and LRC lyrics

Put the same file name in the same directory. When playing a song with a player with the show lyrics function, the lyrics can be displayed synchronously for easy query.

Watch and learn songs.

Time-tag)

The format is "[mm: SS]" or "[mm: Ss. fff]" (Minutes: seconds. milliseconds ). The number in the Time Label Must be a non-negative integer, Ratio

For example, "[. 5]" is valid, and "[0x0c:-34.5]" is invalid.
A time tag must be at the beginning of a line of lyrics. A line of lyrics can contain multiple time tags (for example, multiple sentences in the lyrics ). When

When a song is played at a certain time point, MP3 will find the corresponding time tag and display the lyrics behind the tag, so that the "song

Word synchronization.

Note:

1. Try not to empty rows, or only time labels without content.
2. A line of lyrics can contain multiple time tags.
3. Pay attention to the encoding format and line feed format. The carriage return and line feed for Windows and Linux are different. Use Windows notepad to open it and check that there is no exception.

For example, there are black boxes, empty rows, and crowded rows.

ID-tags)

The format is "[Identification name: value]". Case-insensitive. The following are predefined labels.

[AR: artist name]
[Ti: Qu name]
[Al: album name]
[By: Editor (the person who edits the LRC lyrics)]
[Offset: time compensation value] The unit is millisecond. A positive value indicates the overall advance, and a negative value indicates the opposite. This is used to adjust the overall display speed.

Example

[AR: Unknown]
[Ti: Sample]
[Al: None]
[By: Me]
[. 355] [] This line shocould be too twice
[00:05. 7] And this one... Once only.

Development Standards (for programmers to read)

The following lists the standards that should be followed when developing software that supports LRC format.

Whether or not it is the beginning of the line, any line in the form of "[*: *]" should be considered as a label. (Note: The colon is not the full-width character ":")

No labels should be displayed.
All labels separated by colons are non-negative. Therefore, time labels in non-standard format (not "[mm: SS]") should also be recognized (for example, "[0: 0]").
Any label that is not a time label should be considered as an identifier label.
Uppercase/lowercase letters are equivalent to lowercase letters.
For backward compatibility, undefined new labels should be ignored. Ignore the content of the same row after the annotation label.
Multiple tags in a row should be allowed and can be correctly processed.
Unordered tags should be correctly processed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.