CN106653071B - A kind of lyric display method and device - Google Patents

A kind of lyric display method and device Download PDF

Info

Publication number
CN106653071B
CN106653071B CN201611261456.9A CN201611261456A CN106653071B CN 106653071 B CN106653071 B CN 106653071B CN 201611261456 A CN201611261456 A CN 201611261456A CN 106653071 B CN106653071 B CN 106653071B
Authority
CN
China
Prior art keywords
lyrics
layer
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.)
Active
Application number
CN201611261456.9A
Other languages
Chinese (zh)
Other versions
CN106653071A (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

The embodiment of the invention discloses a kind of lyric display method and devices, and wherein method includes: the lyrics to be shown that terminal determines the song using the playback progress of song;The terminal generates the first character layer and the second character layer comprising the lyrics to be shown, and first character layer is the word segment not played in the lyrics to be shown, and second character layer is the word segment that played in the lyrics to be shown;The terminal controls first character layer using the first masking-out layer and shows, controls second character layer using the second masking-out layer and shows.Using the embodiment of the present invention, it can make when showing the lyrics, the lyrics of the first character layer are completely covered in the lyrics of the second character layer, avoid the antialiasing of display system from handling and cause variegated burr.

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 methods and device.
Background technique
Existing lyric display method is that every row lyrics are first shown in display interface with a kind of color (such as white) Bottom, then indicated currently with the upper layer that another color (such as red), identical font and content are shown in the white lyrics Lyrics por-tion through singing.But in practice, it has been found that since display system can do antialiasing processing to the edge that font is shown, The pixel of some excessive colors is inserted into according to primary colour in font edge, so that the lyrics that will lead to upper layer can not be complete All standing is stayed the lyrics of layer, will appear variegated burr in lyrics edge.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of message display method and device.It can avoid The antialiasing processing of display system causes variegated burr.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of lyric display methods, which comprises
The lyrics to be shown of the song are determined using the playback progress of song;
Generate include the lyrics to be shown the first character layer and the second character layer, first character layer be it is described to The word segment not played in the display lyrics, second character layer are the word segment that played in the lyrics to be shown;
First character layer is controlled using the first masking-out layer to show, controls second character layer using the second masking-out layer Display.
Correspondingly, the embodiment of the invention also provides a kind of lyric display equipment, described device includes:
Determining module determines the lyrics to be shown of the song for the playback progress using song;
Generation module, for generating the first character layer and the second character layer comprising the lyrics to be shown, described first Character layer is the word segment not played in the lyrics to be shown, and second character layer is to have broadcast in the lyrics to be shown The word segment put;
Control module is shown for controlling first character layer using the first masking-out layer, is controlled using the second masking-out layer Second character layer is shown.
The implementation of the embodiments of the present invention has the following beneficial effects:
The embodiment of the present invention determines the lyrics to be shown of the song by the playback progress using song, and generating includes institute The first character layer and the second character layer of the lyrics to be shown are stated, is not played in the first character layer lyrics to be shown Word segment, second character layer are the word segment that played in the lyrics to be shown, are controlled using the first masking-out layer First character layer is shown, is controlled second character layer using the second masking-out layer and is shown, can make when showing the lyrics, The lyrics of the first character layer are completely covered in the lyrics of second character layer.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these 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 is a kind of schematic block diagram of lyrics display interface provided in an embodiment of the present invention;
Fig. 2 b is the schematic block diagram of another lyrics display interface provided in an embodiment of the present invention;
Fig. 3 a is the schematic block diagram of another lyrics display interface provided in an embodiment of the present invention;
Fig. 3 b is the schematic block diagram of another lyrics display interface provided in an embodiment of the present invention;
Fig. 4 is the schematic flow diagram of another 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
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of lyric display method and devices, can be avoided the antialiasing processing of display system The problem of causing variegated burr.It is described in detail individually below.
In the embodiment of the present invention, the effect of masking-out layer is so that in the region covered on the character layer of its effect by masking-out Word segment shows that uncovered word segment is fully transparent completely.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 in the first character layer by the first masking-out layer The word segment of lid is shown completely;In first character layer not by the first masking-out layer cover word segment it is fully transparent i.e. do not show Show.Similarly, if the second masking-out layer covers the second character layer, the word segment covered in the second character layer by the second masking-out layer is complete Full display;In second character layer not by the second masking-out layer cover word segment it is fully transparent i.e. do not show.
Masking-out or masking-out layer generally indicate complete using pure white (R=255, G=255, B=255) in concrete practice Opaque, ater indicates fully transparent (R=0, G=0, B=0), and grey indicates translucent (128,128,128).Masking-out exists When for a target image, the alpha channel value of the masking-out overlay area of target image is modified by dynamic, for example, modification Pixel value afterwards is (R=target R, G=target G, B=target B, A=masking-out R or masking-out G or masking-out B, to keep target image aobvious Show, is translucent or hiding.
It is a kind of schematic flow diagram of lyric display method provided in an embodiment of the present invention, the lyrics referring to Fig. 1, Fig. 1 Display methods can be by smart phone (such as Android phone, iOS mobile phone, Windows Phone mobile phone), palm PC, pen Remember that this computer, tablet computer, mobile internet device (Mobile Internet Devices, MID) etc. have music function Can and the intelligent terminal of lyrics display functions realize.A kind of lyric display method as shown in Figure 1 can comprise the following steps that
S101, terminal determine the lyrics to be shown of the song using the playback progress of song.
In the embodiment of the present invention, which determines the lyrics not played in the song, so according to the playback progress of song Determined from the lyrics that this is not played afterwards with the matched lyrics of the playback progress, that determines matches with the playback progress A lyrics can be used as the lyrics display interface of the terminal for a lyrics to be shown, i.e., the lyrics to be shown.
S102, terminal generate the first character layer and the second character layer comprising the lyrics to be shown, first text Layer is the word segment not played in the lyrics to be shown, and second character layer is that played in the lyrics to be shown Word segment.
In the embodiment of the present invention, what the lyrics to be shown which includes and second character layer included should be to The display lyrics have identical font, size (font size) and position, but have different font colors.For example, first text The font color for the lyrics to be shown that word layer includes can be white, the word for the lyrics to be shown which includes 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 lyrics of white represent the lyrics not played, and font color is that the red lyrics represent the song played Word.It is understood that the font color for the lyrics to be shown that first character layer includes and second character layer include The font colors of the lyrics to be shown can also be the combinations of other different colours.
S103, terminal control first character layer using the first masking-out layer and show, using described in the control of the second masking-out layer Second character layer is shown.
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 be placed by sequence from the bottom to top.Before playing the lyrics to be shown, the terminal using the first masking-out layer cover this One character layer highlights to control the lyrics to be shown that first character layer includes;The terminal is by the second masking-out layer Right hand edge be aligned with the left edge of second character layer, should so that the second masking-out layer does not cover second character layer The lyrics to be shown that second character layer includes hide display.
S104, terminal control the first masking-out layer and institute when playing the lyrics to be shown, with the playback progress It is synchronously mobile to preset direction according to default broadcasting speed to state the second masking-out layer, in the first masking-out layer with the default side Into the corresponding edge of opposite direction and the second masking-out layer, edge corresponding with the preset direction is in same position.
In the embodiment of the present invention, according to the default broadcasting speed in the lyrics to be shown at the beginning of each word and End time and the speed set, in order to can be according to each word in the lyrics to be shown when playing the lyrics to be shown Speed carry out dynamic regulation broadcasting speed, so as to more accurately indicate the performance situation of each word.According to every in the lyrics At the beginning of a word record and broadcasting speed, i.e., the discoloration word average speed of the lyrics to be shown are preset in end time, determination. For example, if wide 20 pixels of word, word duration=end time-time started=1 second, screen refresh frequency 20 Frame/second, then every frame brushes forward 1 pixel.
In the embodiment of the present invention, which includes upper and lower, left and right, by taking the preset direction is right as an example, is being played When the lyrics to be shown, which controls the first masking-out layer and the second masking-out layer with the playback progress and plays speed according to default Degree synchronously moves right, the right edge of the left 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 make first character layer to include during moving right The word segment played in the lyrics to be shown hides display;The second masking-out layer can make during moving right The word segment played in the lyrics to be shown that second character layer includes is obtained to highlight.
For example, by taking the lyrics to be shown are by row display as an example, please also refer to Fig. 2 a, Fig. 2 b, Fig. 3 a and Fig. 3 b. Wherein, black letters part in Fig. 2 a and Fig. 3 a indicate that the first character layer and first character layer include this is to be shown The lyrics, grid shadow part indicate the first masking-out layer;Gray text part indicates the second character layer and the second character layer packet The lyrics to be shown contained, diagonal line hatches part indicate the second masking-out layer.Before Fig. 2 b indicates the terminal plays lyrics to be shown, Display state of the lyrics to be shown on the lyrics display interface of the terminal.Fig. 3 b indicates the terminal plays lyrics to be shown When, the display 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 indicate in the same plane, should in practical application First character layer, the first masking-out layer, second character layer, the second masking-out layer successively press the placement of sequence from the bottom to top.
As shown in Fig. 2 a, Fig. 2 b, which determines the lyrics to be shown of the song according to the playback progress of song first, And the first character layer and the second character layer comprising the lyrics to be shown 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 which includes and this second The lyrics to be shown that character layer includes 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 includes are highlighted with black font.Wherein, the first masking-out layer The left edge holding for the lyrics to be shown that left edge includes with first character layer is aligned, in some feasible embodiments In, the right hand edge of the first masking-out layer is aligned with the right hand edge holding for the lyrics to be shown that first character layer includes.The end The right hand edge of the second masking-out layer is aligned by end with the left edge of second character layer, so that the second masking-out layer does not cover Second character layer, the lyrics to be shown which includes hide display.Therefore play the lyrics to be shown it Before, display state of the lyrics to be shown on the display interface of the terminal is as shown in Figure 2 b, only shows first character layer The lyrics to be shown for the black font for including, black font indicate that the lyrics to be shown do not play also.
As shown in Figure 3a, 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 edge of the first masking-out layer and the second masking-out layer Remain alignment.The pre-set velocity be according to each word in the lyrics to be shown at the beginning of and the end time and set , so the movement 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 which includes will No longer covered by the first masking-out layer, so the text played in the lyrics to be shown that first character layer includes By hiding display, the word segment not played also in the lyrics to be shown which includes is still prominent aobvious for part Show;When the second masking-out layer moves right according to pre-set velocity, in the lyrics to be shown which includes Word segment through playing will be covered by the second masking-out layer, so in the lyrics to be shown that second character layer includes The word segment played will highlight, the text not played also in the lyrics to be shown which includes Character segment still hides display.The terminal is when playing the lyrics to be shown, display interface of the lyrics to be shown in the terminal On display state it is as shown in Figure 3b, gray text part indicates the word segment played in the lyrics to be shown, black Color word segment indicates the word segment not played also in the lyrics to be shown.It therefore, should when playing the lyrics to be shown The word segment played in the lyrics to be shown will hide display in first character layer, prominent aobvious in second character layer Show, first character layer will be completely covered in the word segment played in the lyrics to be shown which includes The word segment played in the lyrics to be shown for including, can be avoided display system antialiasing processing cause it is variegated The problem of burr.
The embodiment of the present invention determines the lyrics to be shown of the song by the playback progress using song, and generating includes institute The first character layer and the second character layer of the lyrics to be shown are stated, is not played in the first character layer lyrics to be shown Word segment, second character layer are the word segment that played in the lyrics to be shown, are controlled using the first masking-out layer First character layer is shown, is controlled second character layer using the second masking-out layer and is shown, can make when showing the lyrics, The lyrics of the first character layer are completely covered in the lyrics of second character layer.
Referring to fig. 4, Fig. 4 be another embodiment of the present invention provides a kind of lyric display method schematic flow diagram, it is described Lyric display method can be had by smart phone, palm PC, laptop, tablet computer, mobile internet device etc. Music playback function and the intelligent terminal of lyrics display function are realized.A kind of lyric display method as shown in Figure 4 can wrap Include following steps:
S201, terminal determine the lyrics to be shown of the song using the playback progress of song.
In the embodiment of the present invention, which determines the lyrics not played in the song, so according to the playback progress of song Determined from the lyrics that this is not played afterwards with the matched lyrics of the playback progress, that determines matches with the playback progress A lyrics can be used as the lyrics display interface of the terminal for a lyrics to be shown, i.e., the lyrics to be shown.
S202, terminal generate the first character layer and the second character layer comprising the lyrics to be shown, first text Layer is the word segment not played in the lyrics to be shown, and second character layer is that played in the lyrics to be shown Word segment.
In the embodiment of the present invention, what the lyrics to be shown which includes and second character layer included should be to The display lyrics have identical font, size (font size) and position, but have different font colors.For example, first text The font color for the lyrics to be shown that word layer includes can be white, the word for the lyrics to be shown which includes 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 lyrics of white represent the lyrics not played, and font color is that the red lyrics represent the song played Word.It is understood that the font color for the lyrics to be shown that first character layer includes and second character layer include The font colors of the lyrics to be shown can also be the combinations of other different colours.
S203, terminal control first character layer using the first masking-out layer and show, using described in the control of the second masking-out layer Second character layer is shown.
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 be placed by sequence from the bottom to top.Before playing the lyrics to be shown, the terminal using the first masking-out layer cover this One character layer highlights to control the lyrics to be shown that first character layer includes;The terminal is by the second masking-out layer Right hand edge be aligned with the left edge of second character layer, should so that the second masking-out layer does not cover second character layer The lyrics to be shown that second character layer includes hide display.
S204, terminal control the first masking-out layer and institute when playing the lyrics to be shown, with the playback progress It is synchronously mobile to preset direction to state the second masking-out layer, 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 playing the lyrics to be shown, with the playback progress It is synchronously mobile to preset direction according to default broadcasting speed with the second masking-out layer.Wherein, pre- with this in the first masking-out layer Edge corresponding with the preset direction is in same position in the corresponding edge of set direction opposite direction and the second masking-out layer, and Alignment is kept into preset direction moving process.The first masking-out layer into the preset direction moving process, can make this The word segment played in the lyrics to be shown that one character layer includes hides display;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 can be made to include is prominent It shows out.At the beginning of the default broadcasting speed can be according to each word in the lyrics to be shown and the end time and set Fixed speed, at the beginning of being also possible to the whole sentence lyrics according to the lyrics to be shown and end time and the speed that sets Degree.
Optionally, during playing the lyrics to be shown, which detects whether the second masking-out layer is completely covered The lyrics to be shown that second character layer includes, and detect that second text is completely covered in the second masking-out layer in the terminal When the lyrics to be shown that layer includes, the lyrics to be shown are redefined using the playback progress of current song, and based on again true The fixed lyrics to be shown execute step S202 to step S204.
The embodiment of the present invention determines the lyrics to be shown of the song by the playback progress using song, and generating includes institute The first character layer and the second character layer of the lyrics to be shown are stated, is not played in the first character layer lyrics to be shown Word segment, second character layer are the word segment that played in the lyrics to be shown, are controlled using the first masking-out layer First character layer is shown, is controlled second character layer using the second masking-out layer and is shown, can make when showing the lyrics, The lyrics of the first character layer are completely covered in the lyrics of second character layer.
It is a kind of schematic flow diagram for lyric display method that further embodiment of this invention provides referring to Fig. 5, Fig. 5, it is described Lyric display method can be had by smart phone, palm PC, laptop, tablet computer, mobile internet device etc. Music playback function and the intelligent terminal of lyrics display function are realized.A kind of lyric display method as shown in Figure 5 can wrap Include following steps:
S301, terminal determine the lyrics to be shown of the song using the playback progress of song.
In the embodiment of the present invention, which determines the lyrics not played in the song, so according to the playback progress of song Determined from the lyrics that this is not played afterwards with the matched lyrics of the playback progress, that determines matches with the playback progress A lyrics can be used as the lyrics display interface of the terminal for a lyrics to be shown, i.e., the lyrics to be shown.
S302, terminal generate the first character layer and the second character layer comprising the lyrics to be shown, first text Layer is the word segment not played in the lyrics to be shown, and second character layer is that played in the lyrics to be shown Word segment.
In the embodiment of the present invention, what the lyrics to be shown which includes and second character layer included should be to The display lyrics have identical font, size (font size) and position, but have different font colors.For example, first text The font color for the lyrics to be shown that word layer includes can be white, the word for the lyrics to be shown which includes 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 lyrics of white represent the lyrics not played, and font color is that the red lyrics represent the song played Word.It is understood that the font color for the lyrics to be shown that first character layer includes and second character layer include The font colors of the lyrics to be shown can also be the combinations of other different colours.
S303, terminal control first character layer using the first masking-out layer and show, using described in the control of the second masking-out layer Second character layer is shown.
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 be placed by sequence from the bottom to top.
Before playing the lyrics to be shown, which covers first character layer using the first masking-out layer, to control The lyrics to be shown that first character layer includes are made to highlight;The terminal by the right hand edge of the second masking-out layer and this second The left edge of character layer is aligned, so that the second masking-out layer does not cover second character layer, which includes The lyrics to be shown hide display.
During playing the lyrics to be shown, the terminal with the playback progress control the first masking-out layer and this second Masking-out layer is synchronously mobile to preset direction according to default broadcasting speed, in the first masking-out layer with the preset direction opposite direction pair 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 to this In preset direction moving process, the word segment that had been played in the lyrics to be shown that first character layer can be made to include Hide display;The second masking-out layer should be to aobvious into the preset direction moving process, can make that second character layer includes Show that the word segment played in the lyrics highlights.So that when showing the lyrics, in the second character layer The lyrics played in the first character layer are completely covered in the lyrics through playing.
In the embodiment of the present invention, at the beginning of which can be according to each word in the lyrics to be shown And end time and the speed that sets, at the beginning of being also possible to the whole sentence lyrics according to the lyrics to be shown and terminate Time and the speed set.
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 includes, and detect that second text is completely covered in the second masking-out layer in the terminal When the lyrics to be shown that layer includes, the lyrics to be shown are redefined using the playback progress of current song, and based on again true The fixed lyrics to be shown execute step S302 and step S303.
The embodiment of the present invention determines the lyrics to be shown of the song by the playback progress using song, and generating includes institute The first character layer and the second character layer of the lyrics to be shown are stated, is not played in the first character layer lyrics to be shown Word segment, second character layer are the word segment that played in the lyrics to be shown, are controlled using the first masking-out layer First character layer is shown, is controlled second character layer using the second masking-out layer and is shown, can make when showing the lyrics, The lyrics of the first character layer are completely covered in the lyrics of second character layer.
It is a kind of schematic block diagram of lyric display equipment provided in an embodiment of the present invention, described device referring to Fig. 6, Fig. 6 Such as it can be set in smart phone, palm PC, laptop, tablet computer, mobile internet device etc. with music On the intelligent terminal of playing function and lyrics display function.Wherein, 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 that the song is determined for the playback progress using song.
Generation module 602, for generating the first character layer and the second character layer comprising the lyrics to be shown, described One character layer is the word segment that does not play 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 to be shown and second character layer that first character layer includes include The lyrics to be shown have identical font and size, but have different font colors.
Control module 603 is shown for controlling first character layer using the first masking-out layer, utilizes the second masking-out layer control Second character layer is made 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 successively presses the placement of sequence from the bottom to top.Before playing the lyrics to be shown, the control module 603 using this first Masking-out layer covers first character layer, highlights to control the lyrics to be shown that first character layer includes;The control The right hand edge of the second masking-out layer is aligned by module 603 with the left edge of second character layer, so that the second masking-out layer Second character layer is not covered, and the lyrics to be shown which includes hide display.
The control module 603 is also used to when the lyrics to be shown play, with playback progress control described the One masking-out layer and the second masking-out layer are synchronously mobile 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, which controls the first masking-out layer and the second masking-out layer according to pre- with the playback progress If broadcasting speed is synchronously mobile 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 set.The first masking-out layer can make into the preset direction moving process The word segment played in the lyrics to be shown that first character layer includes hides display;The second masking-out layer to In the preset direction moving process, the character portion that had been played in the lyrics to be shown that second character layer can be made to include Divide and highlights.So that the lyrics played in the second character layer are completely covered first when showing the lyrics 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 specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this Place repeats no more.
The embodiment of the present invention determines the lyrics to be shown of the song by the playback progress using song, and generating includes institute The first character layer and the second character layer of the lyrics to be shown are stated, is not played in the first character layer lyrics to be shown Word segment, second character layer are the word segment that played in the lyrics to be shown, are controlled using the first masking-out layer First character layer is shown, is controlled second character layer using the second masking-out layer and is shown, can make when showing the lyrics, The lyrics of the first character layer are completely covered in the lyrics of second character layer.
It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention referring to Fig. 7, Fig. 7, described in the embodiment of the present invention The relevant technical details of terminal be referred to Fig. 1 to inventive embodiments content shown in fig. 6, I will not elaborate.The terminal It may include: input equipment 701, output equipment 702, processor 703, such as CPU;With memory 704, above-mentioned input equipment 701, 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 can be the display screen (Display) for output, touch screen, Earpiece and loudspeaker etc. for playing voice signal, input equipment 701 for example can be the keyboard for input (Keyboard) etc., it should be noted that display screen and touch screen herein can be the integrated design, and keyboard both can be Physical keyboard, or touch screen dummy keyboard can also be keyboard of the entity in conjunction with touch screen virtualphase.Memory 704 can To be high speed RAM memory, it is also possible to non-labile memory (non-volatile memory), for example, at least one Magnetic disk storage.Memory 704 optionally can also be that at least one is located remotely from the storage device of aforementioned processor 703.It deposits For storing instruction, processor 703 is used to execute the program of the storage of memory 704 to reservoir 704.Wherein:
Above-mentioned processor 703 determines the lyrics to be shown of the song for the playback progress using song.
Above-mentioned processor 703 is also used to generate the first character layer and the second character layer comprising the lyrics to be shown, institute Stating the first character layer is the word segment not played in the lyrics to be shown, and second character layer is the lyrics to be shown In played word segment.
In the embodiment of the present invention, the lyrics to be shown and second character layer that first character layer includes include The lyrics to be shown have identical font and size, but have different font colors.
Above-mentioned processor 703 is also used to be shown using the first masking-out layer control first character layer, utilizes the second masking-out Layer controls second character layer and shows.
In the embodiment of the present invention, first character layer, the first masking-out layer, second character layer, described second Masking-out layer successively presses the placement of sequence from the bottom to top.
Above-mentioned processor 703 is also used to when the lyrics to be shown play, with playback progress control described first Masking-out layer and the second masking-out layer are synchronously mobile to preset direction, in the first masking-out layer with the preset direction negative side Into corresponding edge and the second masking-out layer, edge corresponding with the preset direction is in same position.
Optionally, above-mentioned processor 703 is also used to when the lyrics to be shown play, with playback progress control The first masking-out layer and the second masking-out layer are synchronously to the concrete mode of preset direction movement are as follows:
The processor 703 controls the first masking-out layer and the second masking-out layer according to default broadcasting speed with the playback progress It is synchronously mobile to preset direction, the default broadcasting speed be according to each word in the lyrics to be shown at the beginning of and End time and the speed set.The first masking-out layer can make first character layer into the preset direction moving process The word segment played in the lyrics to be shown for including hides display;The second masking-out layer is moved to the preset direction During dynamic, the word segment played in the lyrics to be shown that second character layer can be made to include is highlighted. So that the lyrics played in the second character layer are completely covered in the first character layer when showing the lyrics The lyrics played.
The embodiment of the present invention determines the lyrics to be shown of the song by the playback progress using song, and generating includes institute The first character layer and the second character layer of the lyrics to be shown are stated, is not played in the first character layer lyrics to be shown Word segment, second character layer are the word segment that played in the lyrics to be shown, are controlled using the first masking-out layer First character layer is shown, is controlled second character layer using the second masking-out layer and is shown, can make when showing the lyrics, The lyrics of the first character layer are completely covered in the lyrics of second character layer.
It is provided for the embodiments of the invention lyric display method above and device is described in detail, it is used herein A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand Method and its core concept of the invention;At the same time, for those skilled in the art is having according to the thought of the present invention There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention Limitation.

Claims (10)

1. a kind of lyric display method, which is characterized in that the described method includes:
The lyrics to be shown of the song are determined using the playback progress of song;
The first character layer and the second character layer comprising the lyrics to be shown are generated, first character layer is described to be shown The word segment not played in the lyrics, second character layer are the word segment that played in the lyrics to be shown;
It controls first character layer using the first masking-out layer to show, it is aobvious to control second character layer using the second masking-out layer Show.
2. the method according to claim 1, wherein the method also includes:
When the lyrics to be shown play, the first masking-out layer is controlled with the playback progress and the second masking-out layer is same Step ground is mobile to preset direction, and edge corresponding with the preset direction opposite direction and described second covers in the first masking-out layer Edge corresponding with the preset direction is in same position in plate.
3. according to the method described in claim 2, it is characterized in that, described control the first masking-out layer with the playback progress It is synchronously mobile to preset direction with the second masking-out layer, comprising:
With the playback progress control the first masking-out layer and the second masking-out layer according to default broadcasting speed synchronously to Preset direction is mobile;
The default broadcasting speed be according to each word in the lyrics to be shown at the beginning of and the end time and set Speed.
4. method according to any one of claims 1 to 3, which is characterized in that
The lyrics to be shown that the lyrics to be shown and second character layer that first character layer includes include have Standby identical font and size, but have different font colors.
5. method according to any one of claims 1 to 3, which is characterized in that
First character layer, the first masking-out layer, second character layer, the second masking-out layer are successively pressed from the bottom to top Sequence place.
6. a kind of lyric display equipment, which is characterized in that described device includes:
Determining module determines the lyrics to be shown of the song for the playback progress using song;
Generation module, for generating the first character layer and the second character layer comprising the lyrics to be shown, first text Layer is the word segment not played in the lyrics to be shown, and second character layer is that played in the lyrics to be shown Word segment;
Control module is shown for controlling first character layer using the first masking-out layer, using described in the control of the second masking-out layer Second character layer is shown.
7. device according to claim 6, which is characterized in that
The control module is also used to control first masking-out when the lyrics to be shown are played with the playback progress Layer and the second masking-out layer are synchronously mobile to preset direction, in the first masking-out layer with the preset direction opposite direction pair Edge corresponding with the preset direction is in same position in the edge and the second masking-out layer answered.
8. device according to claim 7, which is characterized in that the control module when the lyrics to be shown play, It is synchronously mobile to preset direction with playback progress control the first masking-out layer and the second masking-out layer, specifically:
With the playback progress control the first masking-out layer and the second masking-out layer according to default broadcasting speed synchronously to Preset direction is mobile, the default broadcasting speed be according to each word in the lyrics to be shown at the beginning of and at the end of Between and set speed.
9. according to the described in any item devices of claim 6 to 8, which is characterized in that
The lyrics to be shown that the lyrics to be shown and second character layer that first character layer includes include have Standby identical font and size, but have different font colors.
10. according to the described in any item devices of claim 6 to 8, which is characterized in that
First character layer, the first masking-out layer, second character layer, the second masking-out layer are successively pressed from the bottom to top Sequence 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 CN106653071A (en) 2017-05-10
CN106653071B true 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)

Families Citing this family (5)

* 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
CN108419113B (en) * 2018-05-24 2021-01-08 广州酷狗计算机科技有限公司 Subtitle display method and device
CN108763182B (en) * 2018-05-25 2020-12-25 腾讯音乐娱乐科技(深圳)有限公司 Method and device 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

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歌词制作;卢争艳;《中国现代教育装备》;20111231;第54页 *

Also Published As

Publication number Publication date
CN106653071A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106653071B (en) A kind of lyric display method and device
CN109144382B (en) Handwriting display method and device based on dual systems, terminal equipment and storage medium
CN101930337B (en) Method for processing on-screen display and associated embedded system
KR101378493B1 (en) Synchronized text editing method and apparatus based on image data
US11249630B2 (en) Method, apparatus, terminal device, and storage medium for switching global special effects
CN108427589B (en) Data processing method and electronic equipment
CN109298912B (en) Theme color adjusting method and device, storage medium and electronic equipment
CN112399249A (en) Multimedia file generation method and device, electronic equipment and storage medium
CN106095229A (en) The display packing of a kind of mobile terminal and device
JP6903150B2 (en) Display device and its control method
US10339955B2 (en) Information processing device and method for displaying subtitle information
US20230244363A1 (en) Screen capture method and apparatus, and electronic device
KR20120076485A (en) Method and apparatus for providing e-book service in a portable terminal
CN110347459A (en) A kind of window minimizes method, apparatus, storage medium and interactive intelligent tablet computer
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
CN109656463B (en) Method, device and system for generating individual expressions
CN104219481A (en) Information processing method and electronic device
CN103780858A (en) Method and device for processing information, and electronic device
US20110193873A1 (en) Device and method for generating mosaic image including text
CN105635832A (en) Video processing method and device
CN113885828A (en) Sound effect display method and terminal equipment
US20200043144A1 (en) System and method for applying antialiasing to images
US20150128029A1 (en) Method and apparatus for rendering data of web application and recording medium thereof
CN111176596A (en) Image display area switching method and device, storage medium and electronic equipment
US20120313954A1 (en) Optimized on-screen video composition for mobile 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