CN102436838A - Lyric displaying method and device executed by computer - Google Patents
Lyric displaying method and device executed by computer Download PDFInfo
- Publication number
- CN102436838A CN102436838A CN2011102534122A CN201110253412A CN102436838A CN 102436838 A CN102436838 A CN 102436838A CN 2011102534122 A CN2011102534122 A CN 2011102534122A CN 201110253412 A CN201110253412 A CN 201110253412A CN 102436838 A CN102436838 A CN 102436838A
- Authority
- CN
- China
- Prior art keywords
- lyrics
- character cell
- progress bar
- viewing area
- character
- 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.)
- Pending
Links
Images
Landscapes
- Reverberation, Karaoke And Other Acoustics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention provides a lyric displaying method and a device executed by a computer. The method comprises the following steps: obtaining the starting time of each row of lyrics in lyrics; moreover, obtaining the time value, the actual displaying size and the position of each character unit; to each row of lyrics, displaying background lyrics in a lyric displaying area according to the starting time of each row of lyrics and the time value, the actual displaying size and the position of each character unit; meanwhile, respectively establishing progress bars matched with the character shape, the actual displaying size, the position and the time value of each character unit of the lyrics of a row played currently; and moreover, sequentially displaying the progress bars matched with each character unit at the lyric displaying area. According to the method and the device which are provided by the invention, the accurate word-for-word display of the lyrics can be realized.
Description
Technical field
The present invention relates to display technique, relate in particular to a kind of computer-implemented lyrics display packing and device.
Background technology
At present, during a lot of music player played songs, adopt the mode that shows the lyrics line by line, for example, when playback of songs during to certain delegation lyrics, with the whole high bright demonstration of these row lyrics, the user just can follow the lyrics of singing current line like this.
For this lyrics display mode, owing to be the high bright demonstrations of the full line lyrics, the user need could follow well under the situation of the rhythm of being familiar with the full line lyrics and sing delegation's lyrics.If the user is unfamiliar with for certain some word in delegation's lyrics or the rhythm of word, then can't be well with singing.
Thus it is clear that, provide a kind of and can show word for word that the lyrics display packing of the lyrics is problem demanding prompt solutions in the prior art.
Summary of the invention
The present invention is directed to the problem that prior art exists, a kind of computer-implemented lyrics display packing and device are provided, can realize the word for word demonstration of the lyrics.
The invention provides a kind of computer-implemented lyrics display packing, comprising:
Obtain the zero-time of every capable lyrics in the lyrics, and obtain time value, actual displayed size and the position of each character cell;
For every capable lyrics; According to the zero-time of every capable lyrics and time value, actual displayed size and the position of each character cell; The display background lyrics in lyrics viewing area; Create the progress bar that character shape, actual displayed size, position and time value with each character cell of the current broadcast row lyrics are complementary simultaneously respectively, and show the progress bar that is complementary with each character cell successively in lyrics viewing area.
The present invention also provides a kind of lyric display equipment, comprising:
Acquisition module is used for obtaining the zero-time of the every capable lyrics of the lyrics, and obtains time value, actual displayed size and the position of each character cell;
Processing module; Be used for for every capable lyrics; According to the zero-time of every capable lyrics and time value, actual displayed size and the position of each character cell; The display background lyrics in lyrics viewing area are created the progress bar that character shape, actual displayed size, position and time value with each character cell of the current broadcast row lyrics are complementary simultaneously respectively, and are shown the progress bar that is complementary with each character cell successively in lyrics viewing area.
Lyrics display packing provided by the invention and device; Be provided with respectively and be used for the static lyrics viewing area and the progress bar that dynamically shows that shows the lyrics; When lyrics viewing area shows the delegation or the multirow lyrics, the progress bar that character shape, size and the position of each character cell of demonstration and current broadcast row are complementary in lyrics viewing area successively.The time value of the lyrics of lyrics viewing area, actual displayed size and position are corresponding with demonstration time, actual displayed size and the position of progress bar respectively; Like this; For the current broadcast row lyrics; The filling action of progress bar has embodied the dynamic play effect of each character cell in the lyrics, thereby has realized that the lyrics word for word show accurately.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the present invention, feature and advantage will be more obvious through following.
Description of drawings
Fig. 1 schematically shows the process flow diagram of the computer-implemented lyrics display packing embodiment one of the present invention;
Fig. 2 schematically shows the method for obtaining the position of each character cell among Fig. 1 in the step 101;
Fig. 3 schematically shows a kind of display effect of the present invention;
Fig. 4 schematically shows another kind of display effect of the present invention;
Fig. 5 schematically shows a kind of flow process of step 101 among Fig. 1;
Fig. 6 has schematically shown the synoptic diagram of confirming each character cell position in the embodiment of the invention;
The position view of each character cell after Fig. 7-Fig. 9 schematically shows in the embodiment of the invention horizontal ordinate of each character cell and ordinate adjusted;
Figure 10 schematically shows the position view of virtual region and lyrics viewing area in the embodiment of the invention;
Figure 11 schematically shows the process flow diagram of the computer-implemented lyrics display packing embodiment two of the present invention;
Figure 12 and Figure 13 show the effect synoptic diagram that the lyrics word for word show in the embodiment of the invention;
Figure 14 schematically shows the realization flow figure that progress bar disappears automatically in the embodiment of the invention;
Figure 15 schematically shows the structural representation of lyric display equipment embodiment of the present invention.
Embodiment
Fig. 1 schematically shows the process flow diagram of the computer-implemented lyrics display packing embodiment one of the present invention, comprising:
Step 101, obtain the zero-time of every capable lyrics in the lyrics, and obtain time value, actual displayed size and the position of each character cell.In step 101, also can obtain the concluding time of the lyrics.
In the embodiment of the invention, character cell can be a Chinese words, an English word or a punctuation mark.
Lyrics viewing area is meant a background area that is used to show the lyrics.Can in step 101, at first obtain the position of each character cell, can comprise horizontal ordinate and ordinate, in step 102, just can show each character cell then according to these positions.
Step 102, for every capable lyrics; According to the zero-time of every capable lyrics and time value, actual displayed size and the position of each character cell; The display background lyrics in lyrics viewing area; Create the progress bar that character shape, size, position and time value with each character cell of current broadcast row are complementary simultaneously respectively, show the progress bar that is complementary with each character cell successively in lyrics viewing area.
In step 102; In lyrics viewing area, show the delegation or the multirow lyrics (these lyrics can be referred to as the background lyrics), create progress bar simultaneously, this progress bar is the progress bar with character shape; The character shape of each progress bar, size, demonstration time and position are corresponding with character shape, actual displayed size, time value and the position of each character cell respectively; Thereby, when progress displaying bar successively, just formed the effect that the lyrics word for word show.For the situation of the multirow lyrics, the background lyrics in lyrics viewing area can roll display.
Because progress bar itself can be carried out the control of from left to right dynamically filling action exactly; Thereby; Progress bar with character shape is carried out when filling action; Just can form the effect that word for word shows, and the filling speed of progress bar is identical with the broadcasting speed of character cell, the effect that the lyrics show is more vivid.
In order to embody current in progress character cell significantly; Preferably; The font color of the background lyrics of lyrics viewing area can be different with the font color of progress bar, and more precisely, the font color of the background lyrics can be different with the Fill Color of progress bar.
In step 102, each progress bar can be provided with stand-by period and demonstration time.The stand-by period of the progress bar that j character cell of the capable lyrics of i is corresponding can be j-1 character cell before in zero-time and the capable lyrics of i of the capable lyrics of i the time value sum and, the demonstration time of the progress bar of each character cell correspondence can be the time value of corresponding characters unit in the capable lyrics of i.
Wherein, the stand-by period of the progress bar of j character cell correspondence can use following formula (1) to represent:
Wherein, Lasttime is the stand-by period of the corresponding progress bar of j character cell of the capable lyrics of i; Starttime is the zero-time of the capable lyrics of i,
the time value sum of j-1 character cell before the expression.
In step 102, show in lyrics viewing area that successively the progress bar that is complementary with each character cell can comprise: the progress bar that is complementary with each character cell that shows successively in lyrics viewing area that the stand-by period expires.
In an embodiment of the present invention; Be provided with respectively and be used for the static lyrics viewing area and the progress bar that dynamically shows that shows the lyrics; When lyrics viewing area shows the delegation or the multirow lyrics, the progress bar that character shape, size and the position of each character cell of demonstration and current broadcast row are complementary in lyrics viewing area successively.The time value of the lyrics of lyrics viewing area, actual displayed size and position are corresponding with demonstration time, actual displayed size and the position of progress bar respectively; Like this; For the current broadcast row lyrics; The filling of progress bar action has embodied the dynamic play effect of each character cell in the lyrics, thereby has realized accurately word for word display effect of the lyrics.
Lyrics viewing area shows that demonstration time, size and the position of (being equivalent to dynamic demonstration) when time value, actual displayed size and the position in lyrics viewing area and the progress bar of each character cell of the lyrics that the lyrics were used when (being equivalent to static the demonstration) show all are based on step 101 and obtain from same data source, thereby can guarantee staticly to show that size, shape, position and the time of the character cell when dynamically showing are on all four.
Introduce implementation procedure of the present invention in detail below in conjunction with concrete example.
In a lot of display techniques, need use the lyrics word for word shows.For example, draw in the scene, when smart a singing, can word for word show the smart lyrics of being sung a fine motion.In an embodiment of the present invention, mainly be shown as example introduction with the lyrics in the fine motion picture.Animation is the arrangement via the creator, makes originally not have the thing of life as the activity that obtains life.So animation is to let all activities of picture in its entirety.And so-called fine motion is drawn, and is different from animation product, is the animation product that certain local location in animation moves.
Can obtain some presupposed informations that the lyrics show through the XML configuration file.Following is the example of XML configuration file:
<labels>
Label type=" LRC " name=" xiaosongshu " position=" 516; 40} " color=" 255; 0; 0,255} " fontSize=" 30 " font=" JQZhongYuanJT " alignment=" center " demension=" 690,100} " opacity=" 255 " tag=" 1000 " zIndex=" 0 " content=" /> karaoke :=CreateKaraokeObject; 
 
 Karaoke.rows :=2; 
 
 Karaoke.clear; 
 
 
 
 Karaoke.add (' 00:00.390 ', ' 00:06.078 ', ' little squirrel, tail is big, and jump onto gently and jump off, ', ' 199,287,354,768,272,224,248,824,215,328,272,672,256,272,255,242 '); 
 
 Karaoke.add (' 00:06.685 ', ' 00:12.454 ', ' I help you, and you help me, adopt pine nut and send back home.′,′216,240,239,649,303,232,257,895,361,288,297,799,288,264,225,216′);
;
;
;
;″
</labels>
In above-mentioned this section XML configuration file, the attribute of < label>label comprises: type, position, color, fontSize, font, alignment, demension, opacity, tag, zIndex and content.These attributes have defined type, position, color, font size, font, alignment thereof, size, transparency, label, show levels and the lyrics content etc. of lyrics viewing areas respectively.For example, the width of lyrics viewing area is 690, highly is 100.The font size of the lyrics is No. 30 words.In an embodiment of the present invention, the unit with width and height is that pixel is that example is introduced.
Wherein the value of content is represented the content of the lyrics, and the content of the lyrics adopts the descriptor format of Karaoke lyrics script.
Karaoke lyrics script describing form is: karaoke.add (' 99:99.999 ', ' 88:88.888 ', ' lyrics ', ' duration ', [' prompting word ']).
Wherein, karaoke.add is a Karaoke lyrics tools definition delegation lyrics beginning sign.' 99:99.999 ' is an one's own profession lyrics zero-times.' 88:88.888 ' is the one's own profession lyrics concluding time.' the lyrics ' be all character cells of the one's own profession lyrics, English as ' [Its] [my] [life] ' define a word integral body with square bracket and account for a time value, a word is a character cell.' time value ' be to be a word of the demonstration duration from left to right of unit with the millisecond.' prompting word ' be optional.
For example, for the lyrics in the above-mentioned XML configuration file, " little squirrel, tail is big, and jump onto gently and jump off, " zero-time of these lyrics is 00:00.390; Concluding time is 00:06.078, comprises 16 character cells, and the time value of each character cell is respectively: 199ms, 287ms, 354ms, 768ms; 272ms, 224ms, 248ms, 824ms, 215ms, 328ms; 272ms, 672ms, 256ms, 272ms, 255ms, 242ms.
Promptly can obtain to show some relevant presupposed informations through the analyzing XML configuration file with the lyrics.Can adopt various analytic method of the prior art to come the analyzing XML configuration file, this paper repeats no more.
After from the XML configuration file, obtaining the presupposed information that the lyrics show, every lyrics are split as time value four parts of each character cell in zero-time, concluding time, lyrics content and the lyrics, this four part after splitting is stored in the array respectively.For example, can be after finding the position of karaoke.add, the lyrics are divided into these four parts of time value of zero-time, concluding time, lyrics content and each character cell according to " ', ".For the English lyrics, remove wherein " [" and "] ", the character string between " [" and "] " is stored as a character cell.For the lyrics of Chinese and English mixing, can a Chinese text be stored as a character cell, an English word is stored as a character cell.
In an embodiment of the present invention, also need obtain the actual displayed size of each character cell, i.e. each character cell width and height during actual displayed in lyrics viewing area.Because, be No. 30 words although in the XML configuration file, defined font size,, when actual displayed, can not guarantee the width of each character cell and highly must be No. 30 words width and the height.For example, for two character cells " I " and " T ", although all be No. 30 words, the width of " I " is less than the width of " T " during actual displayed.For example, the size in the time of can adopting getContentSize method among the cocos2d-x to obtain each character cell actual displayed about among the implementation CCProgressTimer of progress bar.
In step 101, the method for obtaining the position of each character cell in lyrics viewing area in the lyrics is as shown in Figure 2, can comprise:
Through the position that above-mentioned steps 201-204 promptly can obtain each character cell of the capable lyrics of i, also can adopt such method to obtain for other row lyrics.
When the width sum of each character cell in the capable lyrics of i is less than or equal to the width of lyrics viewing area; The width that lyrics viewing area is described is not enough to hold the capable lyrics of i; In step 203; Through the capable lyrics of i are split into a plurality of fragments, each character cell width sum all is less than or equal to the width of lyrics viewing area in feasible each fragment that splits into, and so just can realize that the branch of the lyrics shows.
For example, for " little squirrel, tail is big; jump onto gently and jump off, " these row lyrics, if the font size that disposes in the XML configuration file is No. 30 words; And the actual displayed width of each character cell is 30 (unit is a pixel); Then the overall width of the lyrics content of these row lyrics is 30*16=480, and the width W of lyrics viewing area 11 is 400 (height H is 100), and the overall width of lyrics content is greater than the width 400 of lyrics viewing area 11.In this case, need " little squirrel, tail is big; jump onto gently and jump off, " these row lyrics are split at least two fragments, first fragment that for example splits into can comprise 13 character cells; Second fragment that splits into comprises 3 character cells, and display effect can be as shown in Figure 3.If the width W of lyrics viewing area 11 is 690, height H is 100, then need not to split, and the width of lyrics viewing area 11 is enough to hold delegation's lyrics, and display effect is as shown in Figure 4.
Fig. 5 schematically shows a kind of realization flow of step 101 among Fig. 1, comprising:
All time values in step 304, the traversal current line lyrics are separated with ", ", and the time value of each character cell is stored in the array relevant with time value.
For example, can come performing step 307 through one section following code:
In above-mentioned this section code, through CCSize s2=left->getContentSize () promptly can obtain the actual displayed size of the lyrics.
The width sum of the character cell in step 311, the width of judging the current character unit and this row lyrics before the current character unit and whether less than the width of lyrics viewing area.If confirm need not split the current line lyrics, execution in step 312; If not, confirm to need to split the current line lyrics, execution in step 313.
In the formula (2), x
kBe the horizontal ordinate of k character cell,
Be the width sum of k character cell k-1 character cell before in k the character cell place fragment, w
kThe width of representing k character cell.
In the formula (3), y
kBe the ordinate of k character cell,
Be the height sum of fragment each fragment before at k character cell place, h
kThe height of representing k character cell, n are the fragment at k character cell place.
In step 312, owing to need the current line lyrics not split, thereby when confirming horizontal ordinate and the ordinate of character cell in application of formula (2) and (3), can the current line lyrics be thought to have only a fragment.
Fig. 6 has schematically shown the synoptic diagram of confirming each character cell position in the embodiment of the invention; The lyrics of drawing in the scene with fine motion in the embodiments of the invention are shown as example introduction; Scene areas is drawn for fine motion in zone 10; Virtual region 14 is width (W) and a height (H) and an identical zone, lyrics viewing area, and virtual region 14 is zones that are used for virtual lyrics viewing area, is arranged on regional 10 belows temporarily.Among Fig. 6, the lower left corner with regional 10 is true origin (0,0), for example for certain delegation's lyrics, comprises 12 character cells (character cell is with circular signal) altogether, and the width of each character cell is w, highly is h.
Shown in Fig. 6 is the situation of the character cell width of the current line lyrics greater than the width (being the width of virtual region 14) of lyrics viewing area.The current line lyrics are divided into two fragments, and first fragment comprises 8 character cells, and second fragment comprises 4 character cells.
For first fragment, the ordinate of each character cell is identical, and the horizontal ordinate of each character cell is with respect to the horizontal ordinate of the previous character cell w that moved to right.
For second fragment, the ordinate of each character cell has all moved down h with respect to each character cell in first fragment.
As can be seen from Figure 6; Through after the above-mentioned steps; Determined horizontal ordinate and the ordinate of each character cell with respect to regional 10 lower left corners, each character cell of confirming in this way is left-Aligned in the horizontal direction, is the top alignment in vertical direction.Next also need adjust the horizontal ordinate and the ordinate of each character cell according to the preset alignment thereof of lyrics viewing area.
For example, if the preset alignment thereof on the horizontal direction of lyrics viewing area is left-justify, then the horizontal ordinate of each character cell remains unchanged.
If the preset alignment thereof on the horizontal direction of lyrics viewing area is placed in the middle, then with the horizontal ordinate of character cell in n the fragment Δ x that moves to right
n/ 2, Δ x
nFor the distance between the right margin of last the character unit of n fragment among Fig. 6 and virtual region 14, as shown in Figure 7.
If the preset alignment thereof on the horizontal direction of lyrics viewing area is a Right Aligns, then with the horizontal ordinate of character cell in n the fragment Δ x that moves to right
n, as shown in Figure 8.
For example, if the preset alignment thereof on the vertical direction of lyrics viewing area is the top alignment, then the ordinate of each character cell remains unchanged.
If the preset alignment thereof on the vertical direction of lyrics viewing area is an align center, then the ordinate of each character cell moves down (H-h
t)/2, wherein h
tFor the height sum of each fragment, as shown in Figure 9.
Passed through after the above-mentioned step 316, according to each horizontal ordinate and the ordinate that obtain, each character cell can show in virtual region 14 according to predetermined manner.But,, thereby also need adjust the coordinate of each character cell through step 317 because the position of lyrics viewing area in zone 10 is different with the position of virtual region 14.
Shown in figure 10; The coordinate of central point in zone 10 of supposing lyrics viewing area 11 is (X; Y), then can the horizontal ordinate that pass through step 316 each character cell afterwards be moved to right (X-W/2), move on the ordinate with each character cell (Y-H/2); W is the width of lyrics viewing area, and H is the height of lyrics viewing area.Horizontal ordinate and ordinate after the employing adjustment just can be so that each character cell be presented in the lyrics viewing area 11 exactly.
Need to prove; In an embodiment of the present invention, the lyrics of drawing in the scene with fine motion are shown as example introduction, in order to make whole fine motion draw each origin unification in the scene; So all coordinates all are to be that initial point gets with 10 the lower left corner, zone; In addition, in order to make character cell in lyrics viewing area 11, to show, carried out coordinate adjustment repeatedly according to preset display mode.Certainly, lyrics display mode provided by the invention is not limited to fine motion and draws in the scene, can be the position that true origin is calculated each character cell with the lower left corner or the central point of lyrics viewing area 11 also.According to the needs of actual displayed, can carry out various adjustment to character cell.Generally speaking, no matter be to put as initial point with which, no matter adopt which kind of mode to adjust, all require the position of each character cell can make each character cell in lyrics viewing area 11, show according to preset display mode.
Figure 11 schematically shows the process flow diagram of lyrics display packing embodiment two of the present invention, comprising:
Step 404, in lyrics viewing area, show the current line lyrics; Create the progress bar that character shape, size, position and time value with each character cell of the current line lyrics are complementary simultaneously respectively, show the progress bar that is complementary with each character cell successively in lyrics viewing area.The stand-by period of each progress bar, the duration of each progress bar was the time value of corresponding characters unit shown in formula (1).
Figure 12 and Figure 13 show the effect synoptic diagram that the lyrics word for word show in the embodiment of the invention; When the stand-by period of the corresponding progress bar 12 of first character cell " little " expires; Progress bar 12 begins to carry out filling action from left to right, and the Fill Color in the progress bar is different from the font color (shown in Figure 12) in the lyrics viewing area 11.Likewise, when the time that the corresponding progress bar 13 of character cell " pine " is waited for expired, progress bar 13 began to carry out filling action (shown in Figure 13) from left to right.
In Figure 12 and Figure 13,, progress bar is separated from lyrics viewing area 11 in order more clearly to illustrate the display effect of lyrics viewing area 11 and progress bar.In fact, progress bar should be arranged in lyrics viewing area 11.
Progress bar with character shape can adopt the CCProgressTimer among the cocos2d-x to realize, lyrics viewing area can be realized with a label among the cocos2d-x.Concrete realization code can be following:
The progress bar of in above-mentioned code, creating; Has text.c_str (); FontName.c_str (); These three parameters of fontSize are represented character shape, font type and the font size of progress bar respectively, and these three variablees can assignment be character shape, font type and the font size of corresponding character cell.
Progress bar has two action to0 and to1; To0 representes to wait for action; The T.T. value and the zero-time sum of the capable lyrics of i of the character cell of stand-by period lastTime before being, the demonstration time, (be progress bar be filled into for 100% required filling time from 0%) currTime was the time value of this progress bar corresponding characters unit.In above-mentioned code, defined progress bar and carried out the wait action earlier, display action is carried out in the back.For each progress bar, after its stand-by period expires, can show promptly that after demonstration finished, progress bar was filled to 100%.Through the stand-by period of each progress bar accurately is set, make each progress bar carry out display action in regular turn, just can realize exactly word for word showing.
According to one embodiment of present invention, can also comprise: obtain from lyrics demonstration beginning elapsed time; When elapsed time equals to preset reproduction time, remove lyrics viewing area and each progress bar.
Through above-mentioned steps, can when preset reproduction time expires, cancel the lyrics automatically and show, realize that the lyrics cooperate the dynamic disappearance effect of audio.
Figure 14 schematically shows the realization flow figure that progress bar disappears automatically in the embodiment of the invention, can comprise:
In step 503, specifically can obtain the current time and the lyrics and show difference between the zero-time as the elapsed time, when elapsed time during, remove lyrics viewing area and each progress bar automatically more than or equal to preset reproduction time.
Can realize through following code:
In the above-mentioned code, m_startTime is the zero-time that the lyrics show, m_now is the current time, and timeInterval is preset reproduction time.
In the various embodiments of the present invention, introduced the method that adopts cocos2d-x to provide and made up a kind of implementation method that lyrics viewing area and progress bar are realized lyrics display effect.The lyrics display packing that adopts cocos2d-x to provide can realize lyrics display effect in the windows system, speed is fast, and performance is good.
Figure 15 schematically shows the structural representation of lyric display equipment embodiment of the present invention, comprising: acquisition module 21 and processing module 22.Wherein, acquisition module 21 is used for obtaining the zero-time of the every capable lyrics of the lyrics, and obtains time value, actual displayed size and the position of each character cell.Processing module 22 is used for for every capable lyrics; The zero-time of the every capable lyrics that obtain according to acquisition module 21 and time value, actual displayed size and the position of each character cell; The display background lyrics in lyrics viewing area; Create the progress bar that character shape, actual displayed size, position and time value with each character cell of the current broadcast row lyrics are complementary simultaneously respectively, and show the progress bar that is complementary with each character cell successively in lyrics viewing area.
Processing module 22 specifically is used for showing successively in the lyrics viewing area progress bar that the stand-by period expires is complementary with each character cell; The stand-by period of the progress bar that j character cell of the capable lyrics of i is corresponding be in zero-time and the capable lyrics of i of the capable lyrics of i before j-1 character cell the time value sum and, the demonstration time of the progress bar of each character cell correspondence is the time value of corresponding characters unit in the capable lyrics of i; Wherein, i and j are the natural number more than or equal to 1.
Wherein, the font color of the said background lyrics is different with the Fill Color of said progress bar.The demonstration of said progress bar comprises from left to right fills progress bar.
Lyrics display packing provided by the invention and step thereof can be realized by the for example one or more computer run computer executable instructions of the one or more treatment facilities with data-handling capacity (this computer executable instructions has reflected the thought of the lyrics display packing that the present invention proposes).This treatment facility can comprise the storage medium of storing aforementioned computer executable instructions.
Thereby lyric display equipment of the present invention can be one or more treatment facilities that the aforementioned computer executable instructions of operation has lyrics Presentation Function.
Though described the present invention with reference to exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.Because the present invention's practical implementation and do not break away from the spirit or the essence of invention in a variety of forms; So be to be understood that; The foregoing description is not limited to any aforesaid details; And should in enclose spirit that claim limited and scope, explain widely, therefore fall into whole variations and remodeling in claim or its equivalent scope and all should be the claim of enclosing and contain.
Claims (10)
1. computer-implemented lyrics display packing comprises:
Obtain the zero-time of every capable lyrics in the lyrics, and obtain time value, actual displayed size and the position of each character cell;
For every capable lyrics; According to the zero-time of every capable lyrics and time value, actual displayed size and the position of each character cell; The display background lyrics in lyrics viewing area; Create the progress bar that character shape, actual displayed size, position and time value with each character cell of the current broadcast row lyrics are complementary simultaneously respectively, and show the progress bar that is complementary with each character cell successively in lyrics viewing area.
2. method according to claim 1 wherein, shows in lyrics viewing area that successively the progress bar that is complementary with each character cell comprises: the progress bar that is complementary with each character cell that shows successively in lyrics viewing area that the stand-by period expires; The stand-by period of the progress bar that j character cell of the capable lyrics of i is corresponding be in zero-time and the capable lyrics of i of the capable lyrics of i before j-1 character cell the time value sum and, the demonstration time of the progress bar of each character cell correspondence is the time value of corresponding characters unit in the capable lyrics of i;
Wherein, i and j are the natural number more than or equal to 1.
3. method according to claim 1 and 2, wherein, the font color of the said background lyrics is different with the Fill Color of said progress bar.
4. method according to claim 1 and 2, wherein, the demonstration of said progress bar comprises from left to right fills progress bar.
5. method according to claim 1 and 2 wherein, is obtained the method for the position of each character cell, comprising:
Judge whether the width sum of capable each character cell of the lyrics of i is less than or equal to the width of lyrics viewing area;
If the width sum of each character cell of the capable lyrics of i is less than or equal to the width of lyrics viewing area, then confirm the position of each character cell of the capable lyrics of i; If the width sum of capable each character cell of the lyrics of i is greater than the width of lyrics viewing area; Then the capable lyrics of i are split into a plurality of fragments; The width sum of each character cell all is less than or equal to the width of lyrics viewing area in each fragment that splits into, and the position of each character cell in each fragment of confirming to split into;
Adjust the position of each character cell of determined every capable lyrics according to presetting alignment thereof, and the position of adjusted each character cell is saved in the array relevant with the position.
6. method according to claim 1 also comprises:
Obtain from lyrics demonstration beginning elapsed time;
When elapsed time equals to preset reproduction time, remove lyrics viewing area and each progress bar.
7. lyric display equipment comprises:
Acquisition module is used for obtaining the zero-time of the every capable lyrics of the lyrics, and obtains time value, actual displayed size and the position of each character cell;
Processing module; Be used for for every capable lyrics; According to the zero-time of every capable lyrics and time value, actual displayed size and the position of each character cell; The display background lyrics in lyrics viewing area are created the progress bar that character shape, actual displayed size, position and time value with each character cell of the current broadcast row lyrics are complementary simultaneously respectively, and are shown the progress bar that is complementary with each character cell successively in lyrics viewing area.
8. device according to claim 7, wherein, said processing module is used for showing successively in the lyrics viewing area progress bar that the stand-by period expires is complementary with each character cell; The stand-by period of the progress bar that j character cell of the capable lyrics of i is corresponding be in zero-time and the capable lyrics of i of the capable lyrics of i before j-1 character cell the time value sum and, the demonstration time of the progress bar of each character cell correspondence is the time value of corresponding characters unit in the capable lyrics of i;
Wherein, i and j are the natural number more than or equal to 1.
9. device according to claim 7, wherein, the font color of the said background lyrics is different with the Fill Color of said progress bar.
10. device according to claim 7, wherein, the demonstration of said progress bar comprises from left to right fills progress bar.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102534122A CN102436838A (en) | 2011-08-30 | 2011-08-30 | Lyric displaying method and device executed by computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102534122A CN102436838A (en) | 2011-08-30 | 2011-08-30 | Lyric displaying method and device executed by computer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102436838A true CN102436838A (en) | 2012-05-02 |
Family
ID=45984851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102534122A Pending CN102436838A (en) | 2011-08-30 | 2011-08-30 | Lyric displaying method and device executed by computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102436838A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106098088A (en) * | 2016-06-01 | 2016-11-09 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus showing the lyrics |
CN106297847A (en) * | 2016-08-12 | 2017-01-04 | 青岛海信移动通信技术股份有限公司 | The reminding method of a kind of lyrics playing duration and equipment |
CN106652983A (en) * | 2016-09-18 | 2017-05-10 | 福建网龙计算机网络信息技术有限公司 | Subtitling method and subtitling system |
CN107170471A (en) * | 2017-03-24 | 2017-09-15 | 联想(北京)有限公司 | The processing method and electronic equipment of a kind of music background |
CN107221348A (en) * | 2017-05-26 | 2017-09-29 | 北京酷我科技有限公司 | A kind of lyric display method |
CN107220339A (en) * | 2017-05-26 | 2017-09-29 | 北京酷我科技有限公司 | A kind of lyrics word for word display methods |
CN108206029A (en) * | 2016-12-16 | 2018-06-26 | 北京酷我科技有限公司 | A kind of method and system for realizing the word for word lyrics |
CN108563484A (en) * | 2018-04-18 | 2018-09-21 | 彩讯科技股份有限公司 | A kind of lyric display method, device, equipment and storage medium |
CN109788335A (en) * | 2019-03-06 | 2019-05-21 | 珠海天燕科技有限公司 | Video caption generation method and device |
CN110087122A (en) * | 2019-05-06 | 2019-08-02 | 北京字节跳动网络技术有限公司 | For handling system, the method and apparatus of information |
CN111597360A (en) * | 2020-05-15 | 2020-08-28 | 广州酷狗计算机科技有限公司 | Information display method and device, computer equipment and storage medium |
CN112231607A (en) * | 2020-10-15 | 2021-01-15 | 百度(中国)有限公司 | Document processing method, apparatus, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101567184A (en) * | 2009-03-24 | 2009-10-28 | 广州酷狗计算机科技有限公司 | Method for producing dynamic karaoke lyrics |
CN101719366A (en) * | 2009-12-16 | 2010-06-02 | 德恩资讯股份有限公司 | Method for editing and displaying musical notes and music marks and accompanying video system |
CN101840727A (en) * | 2010-04-28 | 2010-09-22 | 深圳市五巨科技有限公司 | Mobile terminal music playing method and device for synchronously displaying lyrics |
CN102148048A (en) * | 2011-05-12 | 2011-08-10 | 北京瑞信在线系统技术有限公司 | Lyric display method and device |
-
2011
- 2011-08-30 CN CN2011102534122A patent/CN102436838A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101567184A (en) * | 2009-03-24 | 2009-10-28 | 广州酷狗计算机科技有限公司 | Method for producing dynamic karaoke lyrics |
CN101719366A (en) * | 2009-12-16 | 2010-06-02 | 德恩资讯股份有限公司 | Method for editing and displaying musical notes and music marks and accompanying video system |
CN101840727A (en) * | 2010-04-28 | 2010-09-22 | 深圳市五巨科技有限公司 | Mobile terminal music playing method and device for synchronously displaying lyrics |
CN102148048A (en) * | 2011-05-12 | 2011-08-10 | 北京瑞信在线系统技术有限公司 | Lyric display method and device |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106098088B (en) * | 2016-06-01 | 2018-09-04 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus of the display lyrics |
CN106098088A (en) * | 2016-06-01 | 2016-11-09 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus showing the lyrics |
CN106297847B (en) * | 2016-08-12 | 2019-06-04 | 青岛海信移动通信技术股份有限公司 | A kind of reminding method and equipment of lyrics playing duration |
CN106297847A (en) * | 2016-08-12 | 2017-01-04 | 青岛海信移动通信技术股份有限公司 | The reminding method of a kind of lyrics playing duration and equipment |
CN106652983A (en) * | 2016-09-18 | 2017-05-10 | 福建网龙计算机网络信息技术有限公司 | Subtitling method and subtitling system |
CN108206029A (en) * | 2016-12-16 | 2018-06-26 | 北京酷我科技有限公司 | A kind of method and system for realizing the word for word lyrics |
CN107170471A (en) * | 2017-03-24 | 2017-09-15 | 联想(北京)有限公司 | The processing method and electronic equipment of a kind of music background |
CN107221348A (en) * | 2017-05-26 | 2017-09-29 | 北京酷我科技有限公司 | A kind of lyric display method |
CN107220339A (en) * | 2017-05-26 | 2017-09-29 | 北京酷我科技有限公司 | A kind of lyrics word for word display methods |
CN108563484A (en) * | 2018-04-18 | 2018-09-21 | 彩讯科技股份有限公司 | A kind of lyric display method, device, equipment and storage medium |
CN109788335A (en) * | 2019-03-06 | 2019-05-21 | 珠海天燕科技有限公司 | Video caption generation method and device |
CN110087122A (en) * | 2019-05-06 | 2019-08-02 | 北京字节跳动网络技术有限公司 | For handling system, the method and apparatus of information |
CN111597360A (en) * | 2020-05-15 | 2020-08-28 | 广州酷狗计算机科技有限公司 | Information display method and device, computer equipment and storage medium |
CN111597360B (en) * | 2020-05-15 | 2023-11-07 | 广州酷狗计算机科技有限公司 | Information display method, information display device, computer equipment and storage medium |
CN112231607A (en) * | 2020-10-15 | 2021-01-15 | 百度(中国)有限公司 | Document processing method, apparatus, electronic device and storage medium |
CN112231607B (en) * | 2020-10-15 | 2023-11-21 | 百度(中国)有限公司 | Document processing method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102436838A (en) | Lyric displaying method and device executed by computer | |
ES2866798T3 (en) | Systems, methods, and interfaces for displaying online content and block-level content on an access device | |
Underberg et al. | Digital ethnography: Anthropology, narrative, and new media | |
CN102148048A (en) | Lyric display method and device | |
US20150097767A1 (en) | System for virtual experience book and method thereof | |
WO2008042660A3 (en) | Method, system, apparatus and computer program product for creating, editing, and publishing video with dynamic content | |
DE60325982D1 (en) | 3-D TEXT IN A PLAYING MACHINE | |
CN102881192A (en) | Chinese character writing learning system | |
CN102419742A (en) | Subtitle processing method and device applied to electronic equipment | |
CN102820027B (en) | Accompaniment subtitle display system and method | |
CN101604486A (en) | Musical instrument playing and practicing method based on speech recognition technology of computer | |
KR20160106970A (en) | Method and Apparatus for Generating Optimal Template of Digital Signage | |
US10339955B2 (en) | Information processing device and method for displaying subtitle information | |
KR20100058843A (en) | Method and system for teaching hangeul using augmented reality | |
CN103049430A (en) | Page display method based on IDF (interactive document format) files | |
Chiang et al. | Augmented reality supported learning for cultural heritage of Taiwan in on-site and off-site environments: The case of a Daxi old street | |
CN114007098B (en) | Method and device for generating 3D holographic video in intelligent classroom | |
KR101550346B1 (en) | Method of Reproducing Content-App based Picture Book Contents for Prenatal Education for Pregnant Women in Multi-cultural Families | |
CA2912324A1 (en) | System to generate a mixed media experience | |
CN102708907B (en) | Linear multimedia positioning method based on picture segmentation and synchronous labeling | |
CN103745710B (en) | Word message playing device and method | |
US20140289654A1 (en) | Interactive method and apparatus for mixed media interactive method and apparatus for mixed media | |
KR101576563B1 (en) | Method of editing multi-language comic contents | |
CN114327170B (en) | Alternating current group generation method and device, medium and electronic equipment | |
KR101279704B1 (en) | Method for playing contents of e-learning and recording medium storing program thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120502 |