CN106653071A - Lyric display method and apparatus - Google Patents

Lyric display method and apparatus Download PDF

Info

Publication number
CN106653071A
CN106653071A CN201611261456.9A CN201611261456A CN106653071A CN 106653071 A CN106653071 A CN 106653071A CN 201611261456 A CN201611261456 A CN 201611261456A CN 106653071 A CN106653071 A CN 106653071A
Authority
CN
China
Prior art keywords
layer
lyrics
masking
character
character layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611261456.9A
Other languages
Chinese (zh)
Other versions
CN106653071B (en
Inventor
宋波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201611261456.9A priority Critical patent/CN106653071B/en
Publication of CN106653071A publication Critical patent/CN106653071A/en
Application granted granted Critical
Publication of CN106653071B publication Critical patent/CN106653071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel

Abstract

Embodiments of the invention disclose a lyric display method and apparatus. The method comprises the steps that a terminal determines a to-be-displayed lyric of a song by utilizing a playing progress of the song; the terminal generates a first text layer and a second text layer containing the to-be-displayed lyric, wherein the first text layer is a non-played text part in the to-be-displayed lyric, and the second text layer is a played text part in the to-be-displayed lyric; and the terminal controls the first text layer to be displayed by utilizing a first mask layer and controls the second text layer to be displayed by utilizing a second mask layer. By adopting the method and the apparatus, the lyric of the second text layer can completely cover the lyric of the first text layer during lyric display, so that varicolored glitches caused by anti-aliasing processing of a display system are avoided.

Description

A kind of lyric display method and device
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of lyric display method and device.
Background technology
Existing lyric display method is first every row lyrics to be displayed in display interface with a kind of color (such as white) Bottom, then the upper strata for being displayed in the white lyrics with another kind of color (such as red), identical font and content represent it is current The lyrics por-tion that Jing sang.But in practice, it has been found that due to display system the edge that font shows can be done antialiasing process, The pixel of some excessive colors is inserted according to primary colour in font edge, so as to the lyrics that can cause upper strata can not be complete All standing is stayed the lyrics of layer, and variegated burr occurs in lyrics edge.
The content of the invention
Embodiment of the present invention technical problem to be solved is, there is provided a kind of message display method and device.Can avoid The antialiasing of display system is processed and causes variegated burr.
In order to solve above-mentioned technical problem, a kind of lyric display method is embodiments provided, methods described includes:
Determine the lyrics to be shown of the song using the playing progress rate of song;
The first character layer comprising the lyrics to be shown and the second character layer are generated, first character layer is treated for described The word segment do not played in the lyrics is shown, second character layer is the word segment played in the lyrics to be shown;
First character layer is controlled using the first masking-out layer to show, using the second masking-out layer second character layer is controlled Show.
Correspondingly, the embodiment of the present invention additionally provides a kind of lyric display equipment, and described device includes:
Determining module, for determining the lyrics to be shown of the song using the playing progress rate of song;
Generation module, for generate comprising the lyrics to be shown the first character layer and the second character layer, described first Character layer is the word segment do not played in the lyrics to be shown, and second character layer is to broadcast in the lyrics to be shown The word segment put;
Control module, shows for controlling first character layer using the first masking-out layer, is controlled using the second masking-out layer Second character layer shows.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention determines the lyrics to be shown of the song by using the playing progress rate of song, generates and includes institute State first character layer and the second character layer of the lyrics to be shown, do not play in first character layer lyrics to be shown Word segment, second character layer is the word segment played in the lyrics to be shown, is controlled using the first masking-out layer First character layer shows, controls second character layer using the second masking-out layer and shows, can cause in the display lyrics, The lyrics of the second character layer are completely covered the lyrics of the first character layer.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of lyric display method provided in an embodiment of the present invention;
Fig. 2 a are a kind of schematic block diagrams of lyrics display interface provided in an embodiment of the present invention;
Fig. 2 b are the schematic block diagrams of another kind of lyrics display interface provided in an embodiment of the present invention;
Fig. 3 a are the schematic block diagrams of another lyrics display interface provided in an embodiment of the present invention;
Fig. 3 b are the schematic block diagrams of another lyrics display interface provided in an embodiment of the present invention;
Fig. 4 is the schematic flow diagram of another kind of lyric display method provided in an embodiment of the present invention;
Fig. 5 is the schematic flow diagram of another lyric display method provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic block diagram of lyric display equipment provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of lyric display method and device, the antialiasing that can avoid display system is processed Cause the problem of variegated burr.Describe in detail individually below.
In the embodiment of the present invention, the effect of masking-out layer is so that in the region covered by masking-out on the character layer of its effect Word segment shows that completely uncovered word segment is fully transparent.First masking-out layer acts on the first character layer, and second covers Plate acts on the second character layer.If the first masking-out layer covers the first character layer, covered by the first masking-out layer in the first character layer The word segment of lid shows completely;Fully transparent do not shown by the word segment that the first masking-out layer is covered in first character layer Show.In the same manner, if the second masking-out layer covers the second character layer, the word segment covered by the second masking-out layer in the second character layer is complete It is complete to show;Fully transparent do not shown by the word segment that the second masking-out layer is covered in second character layer.
Masking-out or masking-out layer generally use pure white (R=255, G=255, B=255) and represent complete in concrete practice Opaque, ater is represented fully transparent (R=0, G=0, B=0), grey represent it is translucent (128,128,128).Masking-out exists During for a target image, by the alpha channel values of the masking-out overlay area of dynamic modification target image, for example, modification Pixel value afterwards is for (R=targets R, G=targets G, B=targets B, A=masking-outs R or masking-out G or masking-out B show making target image Show, it is translucent or hiding.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of lyric display method provided in an embodiment of the present invention, the lyrics Display methods can be by smart mobile phone (such as Android phone, iOS mobile phones, Windows Phone mobile phones), palm PC, pen Remember that this computer, panel computer, mobile internet device (Mobile Internet Devices, MID) etc. have music work( Can and lyrics display function intelligent terminal realizing.A kind of lyric display method as shown in Figure 1 may include following steps:
S101, terminal determine the lyrics to be shown of the song using the playing progress rate of song.
In the embodiment of the present invention, the terminal determines the lyrics do not played in the song, so according to the playing progress rate of song Determine the lyrics matched with the playing progress rate from the lyrics that this is not played afterwards, that what is determined matches with the playing progress rate The lyrics be able to will showing as the lyrics display interface of the terminal of a lyrics, i.e., the lyrics to be shown.
S102, terminal generate the first character layer comprising the lyrics to be shown and the second character layer, first word Layer is the word segment do not played in the lyrics to be shown, is played in second character layer lyrics to be shown Word segment.
In the embodiment of the present invention, the lyrics to be shown that first character layer is included and second character layer include this treat Show that the lyrics possess identical font, size (font size) and position, but possess different font colors.For example, this is first literary The font color of the lyrics to be shown that word layer is included can be white, the word of the lyrics to be shown that second character layer is included Body color can be red.Optionally, the different broadcast states of the different lyrics, example can be represented with different fonts color state Such as, font color is that the white lyrics represent the lyrics do not played, and font color is that the red lyrics represent the song played Word.It is understood that the font color of the lyrics to be shown that includes of first character layer and second character layer are included The font color of the lyrics to be shown can also be the combination of other different colours.
S103, terminal control first character layer and show using the first masking-out layer, described using the control of the second masking-out layer Second character layer shows.
In the embodiment of the present invention, first character layer, the first masking-out layer, second character layer, the second masking-out layer according to It is secondary to place by order from the bottom to top.Before the lyrics to be shown are played, the terminal using the first masking-out layer cover this One character layer, lyrics to be shown included so as to control first character layer are highlighted;The terminal is by the second masking-out layer Right hand edge align with the left hand edge of second character layer so that the second masking-out layer does not cover second character layer, should The lyrics to be shown that second character layer is included are hidden and are shown.
S104, terminal control the first masking-out layer and institute when the lyrics to be shown are played with the playing progress rate State the second masking-out layer synchronously to be moved to preset direction according to default broadcasting speed, with the default side in the first masking-out layer Same position is in edge corresponding with the preset direction in the corresponding edge of opposite direction and the second masking-out layer.
In the embodiment of the present invention, according to the default broadcasting speed in the lyrics to be shown the time started of each word and End time and the speed that sets, in order to can be according to each word in the lyrics to be shown when the lyrics to be shown are played Speed carry out dynamic regulation broadcasting speed, such that it is able to more accurately represent the performance situation of each word.According to every in the lyrics The time started and end time of individual word record, it is determined that default broadcasting speed, i.e., the discoloration word average speed of the lyrics to be shown. For example, if wide 20 pixels of word, word duration=end time-time started=1 second, screen refresh frequency is 20 Frame/second, then per frame 1 pixel of brush forward.
In the embodiment of the present invention, the preset direction includes upper and lower, left and right, so that the preset direction is as the right side as an example, is playing During the lyrics to be shown, the terminal controls the first masking-out layer and the second masking-out layer and plays speed according to default with the playing progress rate Degree synchronously moves right, the right edge of the left hand edge of the first masking-out layer and the second masking-out layer in same position, and Alignment is kept during moving right.The first masking-out layer can cause first character layer to include during moving right The word segment played in the lyrics to be shown is hidden and is shown;The second masking-out layer can make during moving right Obtain the word segment played in the lyrics to be shown that second character layer is included to highlight.
For example, so that the lyrics to be shown are shown by row as an example, please also refer to Fig. 2 a, Fig. 2 b, Fig. 3 a and Fig. 3 b. Wherein, the black letters part in Fig. 2 a and Fig. 3 a represent that the first character layer and first character layer include this is to be shown The lyrics, grid shadow part represents the first masking-out layer;Gray text part represents the second character layer and the second character layer bag The lyrics to be shown for containing, diagonal line hatches part represents the second masking-out layer.Fig. 2 b are represented before the terminal plays lyrics to be shown, Dispaly state of the lyrics to be shown on the lyrics display interface of the terminal.Fig. 3 b represent the terminal plays lyrics to be shown When, the dispaly state of the lyrics to be shown.It should be noted that the embodiment of the present invention for convenience of observe and illustrate by this first Character layer, the first masking-out layer, second character layer, the second masking-out layer are represented in approximately the same plane, in practical application, should First character layer, the first masking-out layer, second character layer, the second masking-out layer are placed successively by order from the bottom to top.
As shown in Fig. 2 a, Fig. 2 b, the terminal determines first the lyrics to be shown of the song according to the playing progress rate of song, And the first character layer comprising the lyrics to be shown and the second character layer are generated on the lyrics display interface of the terminal, such as scheme Shown in black letters part and gray text part in 2a, the lyrics to be shown that first character layer is included with this second The lyrics to be shown that character layer is included are co-located.The terminal covers first character layer using the first masking-out layer, So that the lyrics to be shown that first character layer is included are highlighted with black font.Wherein, the first masking-out layer The left hand edge of the lyrics to be shown that left hand edge is included with first character layer keeps aliging, in some feasible embodiments In, the right hand edge of the lyrics to be shown that the right hand edge of the first masking-out layer is included with first character layer keeps aliging.The end End aligns the right hand edge of the second masking-out layer with the left hand edge of second character layer, so that the second masking-out layer is not covered Second character layer, lyrics to be shown that second character layer is included are hidden and are shown.Therefore play the lyrics to be shown it Before, the dispaly state of the lyrics to be shown on the display interface of the terminal shows as shown in Figure 2 b, only first character layer Comprising black font the lyrics to be shown, black font represents that the lyrics to be shown are not also played.
As shown in Figure 3 a, in the terminal plays lyrics to be shown, the terminal control the first masking-out layer and this Two masking-out layers synchronously move right according to pre-set velocity, the right hand edge of the left hand edge of the first masking-out layer and the second masking-out layer Remain alignment.The pre-set velocity was set according to the time started and end time of each word in the lyrics to be shown , so the translational speed of the first masking-out layer and the second masking-out layer is dynamic change.When the first masking-out layer according to When the pre-set velocity moves right, the word segment played in the lyrics to be shown that first character layer is included will No longer covered by the first masking-out layer, so the word played in the lyrics to be shown that include of first character layer Part is by hiding display, and the word segment also do not played in the lyrics to be shown that first character layer is included is still prominent aobvious Show;When the second masking-out layer moves right according to pre-set velocity, in the lyrics to be shown that second character layer is included The word segment that Jing was played will be covered by the second masking-out layer, so in the lyrics to be shown that include of second character layer The word segment played will be highlighted, the text also do not played in the lyrics to be shown that second character layer is included Character segment is still hidden and is shown.The terminal play the lyrics to be shown when, display interface of the lyrics to be shown in the terminal On dispaly state as shown in Figure 3 b, gray text part represents the word segment played in the lyrics to be shown, black Color word segment represents the word segment also do not played in the lyrics to be shown.Therefore when the lyrics to be shown are played, should The word segment played in the lyrics to be shown will be hidden in first character layer and show, project aobvious in second character layer Show, the word segment played in the lyrics to be shown that second character layer is included will be completely covered first character layer Comprising the lyrics to be shown in the word segment played, the antialiasing that can avoid display system processes and causes variegated The problem of burr.
The embodiment of the present invention determines the lyrics to be shown of the song by using the playing progress rate of song, generates and includes institute State first character layer and the second character layer of the lyrics to be shown, do not play in first character layer lyrics to be shown Word segment, second character layer is the word segment played in the lyrics to be shown, is controlled using the first masking-out layer First character layer shows, controls second character layer using the second masking-out layer and shows, can cause in the display lyrics, The lyrics of the second character layer are completely covered the lyrics of the first character layer.
Referring to Fig. 4, Fig. 4 is a kind of schematic flow diagram of lyric display method that another embodiment of the present invention is provided, described Lyric display method can be had by smart mobile phone, palm PC, notebook computer, panel computer, mobile internet device etc. The intelligent terminal of music playback function and lyrics display function is realizing.A kind of lyric display method as shown in Figure 4 can be wrapped Include following steps:
S201, terminal determine the lyrics to be shown of the song using the playing progress rate of song.
In the embodiment of the present invention, the terminal determines the lyrics do not played in the song, so according to the playing progress rate of song Determine the lyrics matched with the playing progress rate from the lyrics that this is not played afterwards, that what is determined matches with the playing progress rate The lyrics be able to will showing as the lyrics display interface of the terminal of a lyrics, i.e., the lyrics to be shown.
S202, terminal generate the first character layer comprising the lyrics to be shown and the second character layer, first word Layer is the word segment do not played in the lyrics to be shown, is played in second character layer lyrics to be shown Word segment.
In the embodiment of the present invention, the lyrics to be shown that first character layer is included and second character layer include this treat Show that the lyrics possess identical font, size (font size) and position, but possess different font colors.For example, this is first literary The font color of the lyrics to be shown that word layer is included can be white, the word of the lyrics to be shown that second character layer is included Body color can be red.Optionally, the different broadcast states of the different lyrics, example can be represented with different fonts color state Such as, font color is that the white lyrics represent the lyrics do not played, and font color is that the red lyrics represent the song played Word.It is understood that the font color of the lyrics to be shown that includes of first character layer and second character layer are included The font color of the lyrics to be shown can also be the combination of other different colours.
S203, terminal control first character layer and show using the first masking-out layer, described using the control of the second masking-out layer Second character layer shows.
In the embodiment of the present invention, first character layer, the first masking-out layer, second character layer, the second masking-out layer according to It is secondary to place by order from the bottom to top.Before the lyrics to be shown are played, the terminal using the first masking-out layer cover this One character layer, lyrics to be shown included so as to control first character layer are highlighted;The terminal is by the second masking-out layer Right hand edge align with the left hand edge of second character layer so that the second masking-out layer does not cover second character layer, should The lyrics to be shown that second character layer is included are hidden and are shown.
S204, terminal control the first masking-out layer and institute when the lyrics to be shown are played with the playing progress rate State the second masking-out layer synchronously to move to preset direction, side corresponding with the preset direction opposite direction in the first masking-out layer Edge corresponding with the preset direction is in same position in edge and the second masking-out layer.
In the embodiment of the present invention, terminal controls the first masking-out layer when the lyrics to be shown are played with the playing progress rate Synchronously moved to preset direction according to default broadcasting speed with the second masking-out layer.Wherein, it is pre- with this in the first masking-out layer In the corresponding edge of set direction opposite direction and the second masking-out layer edge corresponding with the preset direction be in same position, and Alignment is kept in preset direction moving process.The first masking-out layer in the preset direction moving process, can cause this The word segment played in the lyrics to be shown that one character layer is included is hidden and is shown;The second masking-out layer is pre- to this In set direction moving process, the word segment played in the lyrics to be shown that second character layer includes can be caused to dash forward Go out to show.The default broadcasting speed can be set according to the time started and end time of each word in the lyrics to be shown Fixed speed, or the speed set according to the time started and end time of the whole sentence lyrics of the lyrics to be shown Degree.
Optionally, during the lyrics to be shown are played, the terminal detects whether the second masking-out layer is completely covered The lyrics to be shown that second character layer is included, and detect the second masking-out layer in the terminal second word is completely covered During the lyrics to be shown that layer is included, the lyrics to be shown are redefined using the playing progress rate of current song, and based on again true The fixed lyrics to be shown, execution step S202 is to step S204.
The embodiment of the present invention determines the lyrics to be shown of the song by using the playing progress rate of song, generates and includes institute State first character layer and the second character layer of the lyrics to be shown, do not play in first character layer lyrics to be shown Word segment, second character layer is the word segment played in the lyrics to be shown, is controlled using the first masking-out layer First character layer shows, controls second character layer using the second masking-out layer and shows, can cause in the display lyrics, The lyrics of the second character layer are completely covered the lyrics of the first character layer.
Referring to Fig. 5, Fig. 5 is a kind of schematic flow diagram of lyric display method that further embodiment of this invention is provided, described Lyric display method can be had by smart mobile phone, palm PC, notebook computer, panel computer, mobile internet device etc. The intelligent terminal of music playback function and lyrics display function is realizing.A kind of lyric display method as shown in Figure 5 can be wrapped Include following steps:
S301, terminal determine the lyrics to be shown of the song using the playing progress rate of song.
In the embodiment of the present invention, the terminal determines the lyrics do not played in the song, so according to the playing progress rate of song Determine the lyrics matched with the playing progress rate from the lyrics that this is not played afterwards, that what is determined matches with the playing progress rate The lyrics be able to will showing as the lyrics display interface of the terminal of a lyrics, i.e., the lyrics to be shown.
S302, terminal generate the first character layer comprising the lyrics to be shown and the second character layer, first word Layer is the word segment do not played in the lyrics to be shown, is played in second character layer lyrics to be shown Word segment.
In the embodiment of the present invention, the lyrics to be shown that first character layer is included and second character layer include this treat Show that the lyrics possess identical font, size (font size) and position, but possess different font colors.For example, this is first literary The font color of the lyrics to be shown that word layer is included can be white, the word of the lyrics to be shown that second character layer is included Body color can be red.Optionally, the different broadcast states of the different lyrics, example can be represented with different fonts color state Such as, font color is that the white lyrics represent the lyrics do not played, and font color is that the red lyrics represent the song played Word.It is understood that the font color of the lyrics to be shown that includes of first character layer and second character layer are included The font color of the lyrics to be shown can also be the combination of other different colours.
S303, terminal control first character layer and show using the first masking-out layer, described using the control of the second masking-out layer Second character layer shows.
In the embodiment of the present invention, first character layer, the first masking-out layer, second character layer, the second masking-out layer according to It is secondary to place by order from the bottom to top.
Before the lyrics to be shown are played, the terminal covers first character layer using the first masking-out layer, so as to control Make the lyrics to be shown that first character layer includes to highlight;The terminal by the right hand edge of the second masking-out layer and this second The left hand edge alignment of character layer, so that the second masking-out layer does not cover second character layer, what second character layer was included The lyrics to be shown are hidden and are shown.
Play the lyrics to be shown during, the terminal with the playing progress rate control the first masking-out layer and this second Masking-out layer is synchronously moved according to default broadcasting speed to preset direction, with the preset direction opposite direction pair in the first masking-out layer Edge corresponding with the preset direction is in same position in the edge answered and the second masking-out layer.The first masking-out layer is to this In preset direction moving process, the word segment played in the lyrics to be shown that first character layer includes can be caused Hide and show;The second masking-out layer in the preset direction moving process, wait to show by this that can cause that second character layer includes Show that the word segment played in the lyrics is highlighted.So that when the lyrics are shown, in the second character layer The lyrics that Jing was played are completely covered the lyrics played in the first character layer.
In the embodiment of the present invention, the default broadcasting speed can be the time started according to each word in the lyrics to be shown And end time and the speed that sets, or the time started according to the whole sentence lyrics of the lyrics to be shown and end Time and the speed that sets.
Optionally, during the terminal plays lyrics to be shown, detect whether the second masking-out layer is completely covered The lyrics to be shown that second character layer is included, and detect the second masking-out layer in the terminal second word is completely covered During the lyrics to be shown that layer is included, the lyrics to be shown are redefined using the playing progress rate of current song, and based on again true The fixed lyrics to be shown, execution step S302 and step S303.
The embodiment of the present invention determines the lyrics to be shown of the song by using the playing progress rate of song, generates and includes institute State first character layer and the second character layer of the lyrics to be shown, do not play in first character layer lyrics to be shown Word segment, second character layer is the word segment played in the lyrics to be shown, is controlled using the first masking-out layer First character layer shows, controls second character layer using the second masking-out layer and shows, can cause in the display lyrics, The lyrics of the second character layer are completely covered the lyrics of the first character layer.
Referring to Fig. 6, Fig. 6 is a kind of schematic block diagram of lyric display equipment provided in an embodiment of the present invention, described device Smart mobile phone, palm PC, notebook computer, panel computer, mobile internet device etc. can be for example arranged on music On the intelligent terminal of playing function and lyrics display function.Wherein, the lyric display equipment shown in Fig. 6 can include determining that mould Block 601, generation module 602, control module 603.
Determining module 601, the lyrics to be shown for determining the song using the playing progress rate of song.
Generation module 602, for generating the first character layer comprising the lyrics to be shown and the second character layer, described the One character layer is the word segment do not played in the lyrics to be shown, second character layer be in the lyrics to be shown The word segment of broadcasting.
In the embodiment of the present invention, the lyrics described to be shown that first character layer is included are included with second character layer The lyrics described to be shown possess identical font and size, but possess different font colors.
Control module 603, show for controlling first character layer using the first masking-out layer, using the second masking-out layer control Make second character layer to show.
In the embodiment of the present invention, first character layer, the first masking-out layer, second character layer, described second Masking-out layer is placed successively by order from the bottom to top.Play the lyrics to be shown before, the control module 603 using this first Masking-out layer covers first character layer, and the lyrics to be shown included so as to control first character layer are highlighted;The control Module 603 aligns the right hand edge of the second masking-out layer with the left hand edge of second character layer, so that the second masking-out layer Second character layer is not covered, the lyrics to be shown that second character layer is included are hidden and shown.
The control module 603, is additionally operable to when the lyrics to be shown are played, with playing progress rate control described the One masking-out layer and the second masking-out layer are synchronously moved to preset direction, anti-with the preset direction in the first masking-out layer Edge corresponding with the preset direction is in same position in the corresponding edge in direction and the second masking-out layer.
Optionally, the control module 603 controls the first masking-out layer and the second masking-out layer according to pre- with the playing progress rate If broadcasting speed is synchronously moved to preset direction, the default broadcasting speed is according to each word in the lyrics to be shown Time started and end time and the speed that sets.The first masking-out layer can be caused in the preset direction moving process The word segment played in the lyrics to be shown that first character layer is included is hidden and is shown;The second masking-out layer to In the preset direction moving process, the character portion played in the lyrics to be shown that second character layer includes can be caused Divide and highlight.So that when the lyrics are shown, the lyrics played in the second character layer are completely covered first The lyrics played in character layer.
It should be noted that a kind of function of each functional module of lyric display equipment of the embodiment of the present invention can be according to upper Method in embodiment of the method is implemented, and it implements the associated description that process is referred to said method embodiment, this Place repeats no more.
The embodiment of the present invention determines the lyrics to be shown of the song by using the playing progress rate of song, generates and includes institute State first character layer and the second character layer of the lyrics to be shown, do not play in first character layer lyrics to be shown Word segment, second character layer is the word segment played in the lyrics to be shown, is controlled using the first masking-out layer First character layer shows, controls second character layer using the second masking-out layer and shows, can cause in the display lyrics, The lyrics of the second character layer are completely covered the lyrics of the first character layer.
Referring to Fig. 7, Fig. 7 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention, described in the embodiment of the present invention Terminal the relevant technical details inventive embodiments content that is referred to shown in Fig. 1 to Fig. 6, I will not elaborate.The terminal Can include:Input equipment 701, output equipment 702, such as processor 703, CPU;With memory 704, above-mentioned input equipment 701st, output equipment 702, processor 703 and memory 704 are connected by bus 705.
In the embodiment of the present invention, output equipment 702 for example could be for export display screen (Display), touch screen, For playing the receiver and loudspeaker etc. of voice signal, input equipment 701 for example could be for the keyboard being input into (Keyboard) etc., it should be noted that display screen and touch screen herein can be the integrated design, keyboard both can be Physical keyboard, or touch screen dummy keyboard, the keyboard that can also be combined with touch screen virtualphase for entity.Memory 704 can To be high-speed RAM memory, or non-labile memory (non-volatile memory), for example, at least one Magnetic disc store.Memory 704 optionally can also be at least one storage device for being located remotely from aforementioned processor 703.Deposit Reservoir 704 is used for store instruction, and processor 703 is used to perform the program of the storage of memory 704.Wherein:
Above-mentioned processor 703, for determining the lyrics to be shown of the song using the playing progress rate of song.
Above-mentioned processor 703, is additionally operable to generate the first character layer comprising the lyrics to be shown and the second character layer, institute It is the word segment do not played in the lyrics to be shown to state the first character layer, and second character layer is the lyrics to be shown In the word segment played.
In the embodiment of the present invention, the lyrics described to be shown that first character layer is included are included with second character layer The lyrics described to be shown possess identical font and size, but possess different font colors.
Above-mentioned processor 703, is additionally operable to be shown using the first masking-out layer control first character layer, using the second masking-out Layer control second character layer shows.
In the embodiment of the present invention, first character layer, the first masking-out layer, second character layer, described second Masking-out layer is placed successively by order from the bottom to top.
Above-mentioned processor 703, is additionally operable to, when the lyrics to be shown are played, with the playing progress rate described first be controlled Masking-out layer and the second masking-out layer are synchronously moved to preset direction, with the preset direction negative side in the first masking-out layer Same position is in edge corresponding with the preset direction in corresponding edge and the second masking-out layer.
Optionally, above-mentioned processor 703, is additionally operable to when the lyrics to be shown are played, with playing progress rate control The first masking-out layer and the second masking-out layer synchronously to preset direction movement concrete mode be:
The processor 703 controls the first masking-out layer and the second masking-out layer according to default broadcasting speed with the playing progress rate Synchronously move to preset direction, the default broadcasting speed be according to the time started of each word in the lyrics to be shown and End time and the speed that sets.The first masking-out layer can cause first character layer in the preset direction moving process Comprising the lyrics to be shown in the word segment played hide and show;The second masking-out layer is being moved to the preset direction During dynamic, the word segment played in the lyrics to be shown that second character layer includes can be caused to highlight. So that when the lyrics are shown, the lyrics played in the second character layer are completely covered in the first character layer The lyrics played.
The embodiment of the present invention determines the lyrics to be shown of the song by using the playing progress rate of song, generates and includes institute State first character layer and the second character layer of the lyrics to be shown, do not play in first character layer lyrics to be shown Word segment, second character layer is the word segment played in the lyrics to be shown, is controlled using the first masking-out layer First character layer shows, controls second character layer using the second masking-out layer and shows, can cause in the display lyrics, The lyrics of the second character layer are completely covered the lyrics of the first character layer.
The lyric display method and device for being provided the embodiment of the present invention above is described in detail, used herein Specific case is set forth to the principle and embodiment of the present invention, and the explanation of above example is only intended to help and understands The method of the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, in tool Will change in body embodiment and range of application, in sum, this specification content should not be construed as to the present invention Restriction.

Claims (10)

1. a kind of lyric display method, it is characterised in that methods described includes:
Determine the lyrics to be shown of the song using the playing progress rate of song;
The first character layer comprising the lyrics to be shown and the second character layer are generated, first character layer is described to be shown The word segment do not played in the lyrics, second character layer is the word segment played in the lyrics to be shown;
First character layer is controlled using the first masking-out layer to show, control second character layer using the second masking-out layer and show Show.
2. method according to claim 1, it is characterised in that methods described also includes:
When the lyrics to be shown are played, the first masking-out layer is controlled with the playing progress rate and the second masking-out layer is same To preset direction movement, edge corresponding with the preset direction opposite direction and described second is covered in the first masking-out layer on step ground Edge corresponding with the preset direction is in same position in plate.
3. method according to claim 2, it is characterised in that described that the first masking-out layer is controlled with the playing progress rate Synchronously move to preset direction with the second masking-out layer, including:
With the playing progress rate control the first masking-out layer and the second masking-out layer according to default broadcasting speed synchronously to Preset direction is moved;
The default broadcasting speed according to the time started and end time of each word in the lyrics to be shown to set Speed.
4. the method according to any one of claims 1 to 3, it is characterised in that
The lyrics described to be shown that first character layer is included have with the lyrics described to be shown that second character layer is included Standby identical font and size, but possess different font colors.
5. the method according to any one of claims 1 to 3, it is characterised in that
First character layer, the first masking-out layer, second character layer, the second masking-out layer are successively by from the bottom to top Order place.
6. a kind of lyric display equipment, it is characterised in that described device includes:
Determining module, for determining the lyrics to be shown of the song using the playing progress rate of song;
Generation module, for generating the first character layer comprising the lyrics to be shown and the second character layer, first word Layer is the word segment do not played in the lyrics to be shown, is played in second character layer lyrics to be shown Word segment;
Control module, shows for controlling first character layer using the first masking-out layer, described using the control of the second masking-out layer Second character layer shows.
7. device according to claim 6, it is characterised in that
The control module, is additionally operable to, when the lyrics to be shown are played, with the playing progress rate first masking-out be controlled Layer and the second masking-out layer are synchronously moved to preset direction, with the preset direction opposite direction pair in the first masking-out layer Edge corresponding with the preset direction is in same position in the edge answered and the second masking-out layer.
8. device according to claim 7, it is characterised in that the control module when the lyrics to be shown are played, The first masking-out layer is controlled with the playing progress rate and the second masking-out layer is synchronously moved to preset direction, specially:
With the playing progress rate control the first masking-out layer and the second masking-out layer according to default broadcasting speed synchronously to Preset direction move, the default broadcasting speed be according to the time started of each word in the lyrics to be shown and at the end of Between and set speed.
9. the device according to any one of claim 6 to 8, it is characterised in that
The lyrics described to be shown that first character layer is included have with the lyrics described to be shown that second character layer is included Standby identical font and size, but possess different font colors.
10. the device according to any one of claim 6 to 8, it is characterised in that
First character layer, the first masking-out layer, second character layer, the second masking-out layer are successively by from the bottom to top Order place.
CN201611261456.9A 2016-12-30 2016-12-30 A kind of lyric display method and device Active CN106653071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611261456.9A CN106653071B (en) 2016-12-30 2016-12-30 A kind of lyric display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611261456.9A CN106653071B (en) 2016-12-30 2016-12-30 A kind of lyric display method and device

Publications (2)

Publication Number Publication Date
CN106653071A true CN106653071A (en) 2017-05-10
CN106653071B CN106653071B (en) 2019-11-22

Family

ID=58838027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611261456.9A Active CN106653071B (en) 2016-12-30 2016-12-30 A kind of lyric display method and device

Country Status (1)

Country Link
CN (1) CN106653071B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108419113A (en) * 2018-05-24 2018-08-17 广州酷狗计算机科技有限公司 Caption presentation method and device
CN108563484A (en) * 2018-04-18 2018-09-21 彩讯科技股份有限公司 A kind of lyric display method, device, equipment and storage medium
CN108763182A (en) * 2018-05-25 2018-11-06 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus for rendering the lyrics
CN110996167A (en) * 2019-12-20 2020-04-10 广州酷狗计算机科技有限公司 Method and device for adding subtitles in video
CN112347298A (en) * 2020-11-13 2021-02-09 广州酷狗计算机科技有限公司 Character information display method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648012A (en) * 2013-12-23 2014-03-19 杨海 English video teaching method with color gradient display of captions
CN104423840A (en) * 2013-09-04 2015-03-18 腾讯科技(深圳)有限公司 Progress bar implementing method and device
CN105845160A (en) * 2016-02-01 2016-08-10 乐视移动智能信息技术(北京)有限公司 Method and apparatus for providing lyrics, and user terminal
CN105957544A (en) * 2016-04-21 2016-09-21 腾讯科技(深圳)有限公司 Lyric display method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423840A (en) * 2013-09-04 2015-03-18 腾讯科技(深圳)有限公司 Progress bar implementing method and device
CN103648012A (en) * 2013-12-23 2014-03-19 杨海 English video teaching method with color gradient display of captions
CN105845160A (en) * 2016-02-01 2016-08-10 乐视移动智能信息技术(北京)有限公司 Method and apparatus for providing lyrics, and user terminal
CN105957544A (en) * 2016-04-21 2016-09-21 腾讯科技(深圳)有限公司 Lyric display method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卢争艳: "简单的Flash歌词制作", 《中国现代教育装备》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563484A (en) * 2018-04-18 2018-09-21 彩讯科技股份有限公司 A kind of lyric display method, device, equipment and storage medium
CN108419113A (en) * 2018-05-24 2018-08-17 广州酷狗计算机科技有限公司 Caption presentation method and device
CN108763182A (en) * 2018-05-25 2018-11-06 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus for rendering the lyrics
US11604919B2 (en) 2018-05-25 2023-03-14 Tencent Music Entertainment Technology [Shenzhen] Co., Ltd. Method and apparatus for rendering lyrics
CN110996167A (en) * 2019-12-20 2020-04-10 广州酷狗计算机科技有限公司 Method and device for adding subtitles in video
CN112347298A (en) * 2020-11-13 2021-02-09 广州酷狗计算机科技有限公司 Character information display method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN106653071B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106653071A (en) Lyric display method and apparatus
KR102199355B1 (en) A method and apparatus to reduce display lag using image overlay
CN110597444B (en) Handwriting display method and device, terminal device and storage medium
CN104951129A (en) Method and system of combining overlay data with video image, and display system
CN108279964A (en) The implementation method and device that text control, mask for copy editor render
KR20150114434A (en) System generating display overlay parameters utilizing touch inputs and method thereof
KR102304891B1 (en) Method and system for generating mask overlay for display panel corresponding to touch path
CN104765528A (en) Display method and device of virtual keyboard
CN103702220A (en) Video playing method and device
JP5211070B2 (en) Method for visualizing changes caused by scrolling in the scroll direction of a section of text and / or graphics displayed on an optical display means
CN104142776A (en) Icon processing method and device
CN105183420B (en) A kind of information processing method and electronic equipment
CN106297477A (en) A kind of method and device generating digitized copybook
KR102171327B1 (en) Method for proving translation service and terminal device using the same
CN111428455B (en) Form management method, device, equipment and storage medium
CN107645591A (en) A kind of display adjusting method, device and folding terminal
CN102184094B (en) Method used for realizing auxiliary operation in PPT courseware playing process
JP2008243025A (en) Information processor, method and computer program
US11017505B2 (en) System and method for applying antialiasing to images
CN102902534A (en) Transparent OSD (Optical Scanning Device) software realization method
CN103092463B (en) The implementation method that mouse wave is floated followed by button based on transparent form
CN104699374A (en) Control method and electronic device
US20160284050A1 (en) Display apparatus and display method thereof
CN112579024B (en) Courseware display method, system, equipment and storage medium
CN117111798A (en) Display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant