CN108389567A - A kind of music score method for splitting and device - Google Patents
A kind of music score method for splitting and device Download PDFInfo
- Publication number
- CN108389567A CN108389567A CN201810184621.8A CN201810184621A CN108389567A CN 108389567 A CN108389567 A CN 108389567A CN 201810184621 A CN201810184621 A CN 201810184621A CN 108389567 A CN108389567 A CN 108389567A
- Authority
- CN
- China
- Prior art keywords
- music score
- segment
- label
- repeatedly
- note
- 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
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H1/00—Details of electrophonic musical instruments
- G10H1/0008—Associated control or indicating means
- G10H1/0025—Automatic or semi-automatic music composition, e.g. producing random music, applying rules from music theory or modifying a musical piece
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2210/00—Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
- G10H2210/031—Musical analysis, i.e. isolation, extraction or identification of musical elements or musical parameters from a raw acoustic signal or from an encoded audio signal
- G10H2210/061—Musical analysis, i.e. isolation, extraction or identification of musical elements or musical parameters from a raw acoustic signal or from an encoded audio signal for extraction of musical phrases, isolation of musically relevant segments, e.g. musical thumbnail generation, or for temporal structure analysis of a musical piece, e.g. determination of the movement sequence of a musical work
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2210/00—Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
- G10H2210/101—Music Composition or musical creation; Tools or processes therefor
- G10H2210/145—Composing rules, e.g. harmonic or musical rules, for use in automatic composition; Rule generation algorithms therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Auxiliary Devices For Music (AREA)
Abstract
The invention discloses a kind of music score method for splitting and device, method to include:Obtain the label repeatedly for including in music score to be split;Traverse music score to be split;It is reversed to search beginning label repeatedly, beginning label repeatedly is not found, using music score starting point to the music score for terminating to mark repeatedly as the first music score segment;For hop-scotch label using the music score segment terminated from music score starting point to previous ovary as the first setting music score segment;To not include that the happy music score segment accorded with is as the second setting music score segment in previous ovary from music score starting point to latter ovary, using the first setting music score segment and the second setting music score segment as the second music score segment;Using the music score terminated from music score starting point to music score between label as the third music score segment after splitting;Using the music score terminated from preset mark to music score between label as the 4th music score segment after splitting;By the set of music score segment as the music score after splitting.Using the embodiment of the present invention, the fractionation efficiency of music score can be improved.
Description
Technical field
The present invention relates to a kind of music score processing method and processing device, it is more particularly to a kind of music score method for splitting and device.
Background technology
As the improvement of people's living standards, people are in terms of pursuing except material life and more and more to pursue spirit
It enjoys, especially in the enjoyment of connection music.Piano is also increasingly liked by people as the representative of classical musical instrument, learns steel
The people of qin is also more and more.
Due to difference of the different consumers in terms of age, schooling, experience, cause different consumers to steel
The hobby of qin music score also differs, for example, some consumers like classicism, the consumer that has likes children's melody, have
Consumer likes modish music score.In order to adapt to different consumer demands, need to write diversified music score.In editor's music score
When, the music score there are repeated fragment in music score can be encountered.Currently, usually music score repeatedly is torn open by musical input editor personnel
Point, then into edlin.
But the label repeatedly occurred when the note for including in music score is more or in music score relatively more leads to music score
When structure is complex, artificial fractionation music score is less efficient.
Invention content
Technical problem to be solved by the present invention lies in a kind of method for splitting and device of music score is provided, improved with realizing
The fractionation efficiency of music score.
The present invention is to solve above-mentioned technical problem by the following technical programs:
An embodiment of the present invention provides a kind of music score method for splitting, the method includes:
Obtain the label repeatedly for including in music score to be split, wherein it is described repeatedly label include:Terminate label, anti-repeatedly
Multiple beginning label, hop-scotch label, DC labels and DS labels;
Music score to be split described in traversal;
Reflexive multiple junction beam label starts reversed lookup beginning label repeatedly, if not finding the beginning label repeatedly,
Using from music score starting point to it is described repeatedly terminate label between music score as fractionation after the first music score segment;If finding institute
State beginning label repeatedly, using from the beginning label repeatedly to the music score terminated repeatedly between label as the after fractionation
One music score segment;
It, will be from the music score starting point to the current hop-scotch for each hop-scotch label in the hop-scotch label
Previous ovary in label terminate between music score segment numbered repeatedly as each in previous ovary it is corresponding
Each first setting music score segment;By from the music score starting point from it is described it is current hop-scotch label in latter ovary in, and
Music score segment including the happy symbol in previous ovary is corresponded to as each number repeatedly in latter ovary
It is each second setting music score segment, and by it is described first set music score segment and it is described second setting music score segment collection cooperation
Corresponding second music score segment is marked for the current hop-scotch;
It is marked repeatedly for each DC, after the music score between label will be terminated from music score starting point to music score as splitting
Third music score segment;
It is marked repeatedly for each DS, after the music score between label will be terminated from preset mark to music score as splitting
The 4th music score segment;
By the first music score segment, the second music score segment, the third music score segment and the described 4th of acquisition
The set of music score segment is as the music score after splitting.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, described obtain in music score to be split includes
It marks repeatedly, including:
Obtain the corresponding midi files of music score to be split;
The midi files are quantified using quantization algorithm, and it includes repeatedly to obtain in the midi files after quantization
Label.
It is optionally, described to be marked repeatedly for each DC in a kind of specific implementation mode of the embodiment of the present invention,
Using the music score terminated from music score starting point to music score between label as the third music score segment after splitting, including:
Marked repeatedly for each DC, by from music score starting point to music score terminate label between music score in include
Coda labels are numbered according to performance sequence;
It will terminate the music score between label or DC labels from music score starting point to music score, in addition to default music score segment
Music score is as third music score segment, wherein the default music score segment is the corresponding Coda of odd-times sequence and the odd-times ordered pair
Music score segment between next Coda of the Coda answered.
It is optionally, described to be marked repeatedly for each DS in a kind of specific implementation mode of the embodiment of the present invention,
Using the music score terminated from preset mark to music score between label as the 4th music score segment after splitting, including:
Marked repeatedly for each DS, by from preset mark to music score terminate label between music score in include
Coda labels are numbered according to performance sequence;
It will terminate the music score between label or DS labels from preset mark to music score, in addition to default music score segment
Music score is as the 4th music score segment, wherein the default music score segment is the corresponding Coda of odd-times sequence and the odd-times ordered pair
Music score segment between next Coda of the Coda answered.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, the method further includes:
According in the music score to be split, each note corresponding midi moment, for the music score segment after each fractionation,
Obtain music score segment corresponding start time and finish time after the fractionation;
It is corresponding with each moment in the music score to be split to close according to the start time and the finish time
System and each moment in the music score to be split and corresponding between each note identifications information in the music score to be split
Relationship obtains the start time to the identification information of each note between the finish time;According to the start time
The identification information of each note between to the finish time, corresponding note is obtained from the music score to be split;
According to each note pair in the music score segment after the playing sequence of the music score segment after the fractionation and the fractionation
The midi moment answered obtains the corresponding playing time of each note in the music score segment after the fractionation;
Each note corresponding midi moment in music score segment after the fractionation is updated to the playing time.
The embodiment of the present invention additionally provides a kind of music score detachment device, and described device includes:First acquisition module, traversal mould
Block, setup module, the second setup module, third setup module, the 4th setup module and the 5th setup module, wherein
First acquisition module, for obtaining the label repeatedly for including in music score to be split, wherein described to mark repeatedly
Including:Terminate label, repeatedly beginning label, hop-scotch label, DC labels and DS labels repeatedly;
The spider module, for traversing the music score to be split;
First setup module starts reversed lookup beginning label repeatedly, if do not looked into for reflexive multiple junction beam label
Find the beginning label repeatedly, using from music score starting point to the music score terminated repeatedly between label as first after fractionation
Music score segment;If finding the beginning label repeatedly, will terminate to mark it repeatedly from the beginning label repeatedly to described
Between music score as split after the first music score segment;
Second setup module will be from the pleasure for being marked for each hop-scotch in the hop-scotch label
Music score segment between previous ovary in spectrum starting point to the current hop-scotch label terminates is sub as the previous ovary
In it is each number repeatedly it is corresponding it is each first setting music score segment;It will be marked from the music score starting point from the current hop-scotch
Music score segment in latter ovary in note, and including the happy symbol in previous ovary is as latter ovary
In it is each number repeatedly it is corresponding it is each second setting music score segment, and will it is described first setting music score segment and described second
The set for setting music score segment marks corresponding second music score segment as the current hop-scotch;
The third setup module marks for being directed to each DC, will terminate to mark from music score starting point to music score repeatedly
Music score between note is as the third music score segment after splitting;
4th setup module marks for being directed to each DS, will terminate to mark from preset mark to music score repeatedly
Music score between note is as the 4th music score segment after splitting;
5th setup module, the first music score segment, the second music score segment for that will obtain, described the
The set of three music score segments and the 4th music score segment is as the music score after splitting.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, first acquisition module is additionally operable to
Obtain the corresponding midi files of music score to be split;
The midi files are quantified using quantization algorithm, and it includes repeatedly to obtain in the midi files after quantization
Label.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, the third setup module is additionally operable to:
Marked repeatedly for each DC, by from music score starting point to music score terminate label between music score in include
Coda labels are numbered according to performance sequence;
It will terminate the music score between label or DC labels from music score starting point to music score, in addition to default music score segment
Music score is as third music score segment, wherein the default music score segment is the corresponding Coda of odd-times sequence and the odd-times ordered pair
Music score segment between next Coda of the Coda answered.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, the third setup module is additionally operable to:
Marked repeatedly for each DS, by from preset mark to music score terminate label between music score in include
Coda labels are numbered according to performance sequence;
It will terminate the music score between label or DS labels from preset mark to music score, in addition to default music score segment
Music score is as the 4th music score segment, wherein the default music score segment is the corresponding Coda of odd-times sequence and the odd-times ordered pair
Music score segment between next Coda of the Coda answered.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, described device further includes:Second obtains mould
Block, third acquisition module, the 4th acquisition module and update module, wherein
Second acquisition module, for according in music score to be split, each note corresponding midi moment, for
Music score segment after each fractionation obtains music score segment corresponding start time and finish time after the fractionation;
The third acquisition module is used for according to the start time and the finish time, with the music score to be split
In each moment correspondence and each moment in the music score to be split and each sound in the music score to be split
The correspondence between identification information is accorded with, the mark for obtaining the start time to each note between the finish time is believed
Breath;According to the start time to the identification information of each note between the finish time, from the music score to be split
Obtain corresponding note;
4th acquisition module, after according to the playing sequence of the music score segment after the fractionation and the fractionation
Music score segment in each note corresponding midi moment, each note obtained in the music score segment after the fractionation is corresponding
Playing time;
The update module, for updating each note corresponding midi moment in the music score segment after the fractionation
For the playing time.
The present invention has the following advantages compared with prior art:
Using the embodiment of the present invention, music score is split according to the label repeatedly for including in music score, when user needs to tear open
When dividing music score, the corresponding position for being added to music score will be marked repeatedly, you can split automatically to music score, compared with the existing technology
In by manually carrying out music score fractionation, improve music score and split efficiency.
Description of the drawings
Fig. 1 is a kind of flow diagram of music score method for splitting provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of hop-scotch label provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another music score method for splitting provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of music score detachment device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another music score detachment device provided in an embodiment of the present invention.
Specific implementation mode
It elaborates below to the embodiment of the present invention, the present embodiment is carried out lower based on the technical solution of the present invention
Implement, gives detailed embodiment and specific operating process, but protection scope of the present invention is not limited to following implementation
Example.
To solve prior art problem, an embodiment of the present invention provides a kind of music score method for splitting and devices, first below
A kind of music score method for splitting provided in an embodiment of the present invention is introduced.
Fig. 1 is a kind of flow diagram of music score method for splitting provided in an embodiment of the present invention, as shown in Figure 1, the side
Method includes:
S101:Obtain the label repeatedly for including in music score to be split, wherein it is described repeatedly label include:Terminate to mark repeatedly
Note, repeatedly beginning label, hop-scotch label, DC labels and DS labels.
Illustratively, music score to be split can be midi (Musical Instrument Digital Interface, pleasure
Device digital interface) file can also be the file to be split after quantization.If music score to be split is midi files, need pair
Midi files are quantified, the midi files after being quantified.Further according to midi protocol analysis midi files, and then identify
Include in midi files terminates label, repeatedly beginning label, hop-scotch label, DC labels and DS labels repeatedly.
It should be noted that terminate repeatedly labeled as ":|┃”;Repeatedly beginning label be " ┃ |:”.In practical applications, DC
Label can also be denoted as D.C labels;DS labels can also be denoted as D.S labels.It is understood that above-mentioned DC is labeled as from music score
Starting point starts label repeatedly, typically " DC al Fine ", repeatedly to " Fine " mark since music score starting point;Also
Can be " DC al Coda " repeatedly and to skip the label repeatedly of the music score segment between Coda since music score starting point, and anti-
Terminate again to music score.
S102:Music score to be split described in traversal.
Illustratively, the midi files after splitting the corresponding quantization of music score can be begun stepping through from music score starting point.
S103:Reflexive multiple junction beam label starts reversed lookup beginning label repeatedly, if started repeatedly described in not finding
Label, using from music score starting point to it is described repeatedly terminate label between music score as fractionation after the first music score segment;If looked into
Find the beginning label repeatedly, using from the beginning label repeatedly to the music score terminated repeatedly between label as fractionation
The first music score segment afterwards.
Illustratively, terminate to be labeled as A repeatedly, beginning label is B repeatedly;Music score to be split is 111A3142B12527,
Start at note " 1 " from the outset, traverses music score to be split backward along the playing sequence of note, traverse at " A ", due to
" A " is to terminate to mark repeatedly, is traversed forward along the negative direction of the playing sequence of note at " A ", and beginning label repeatedly is searched,
Due to without beginning label repeatedly, regarding note " 111 " as the first music score segment before " A ".
Illustratively, music score to be split is 42B1111A312527, is started at note " 4 " from the outset, along note
Playing sequence traverses music score to be split backward, traverses at " A ", terminates to mark repeatedly since " A " is, along note at " A "
The direction of playing sequence traverse backward, beginning label repeatedly is searched, due to having beginning label repeatedly after " A ", by sound
It accords with " 1111 " and is used as the first music score segment.
S104:It, will be from the music score starting point to described current for each hop-scotch label in the hop-scotch label
Music score segment between previous ovary in hop-scotch label terminates is numbered repeatedly as each in previous ovary
Corresponding each first setting music score segment;Latter ovary in from the music score starting point from the current hop-scotch label is sub
In, and do not include happy symbol in the previous ovary label music score segment as in latter ovary it is each repeatedly
Corresponding each second setting music score segment is numbered, and music score segment and the second setting music score segment are set by described first
Set mark corresponding second music score segment as the current hop-scotch.
Illustratively, Fig. 2 is the schematic diagram of hop-scotch label provided in an embodiment of the present invention;As shown in Fig. 2, waiting splitting pleasure
It is marked comprising a hop-scotch in spectrum 200, first hop-scotch label includes the first previous ovary 201, the first latter ovary
Terminate label 205 repeatedly in 202 and Fig. 2 of son.It is marked comprising a hop-scotch in music score 300 to be split, hop-scotch label
Including terminating label 206 repeatedly in the second previous ovary 203, second 204 and Fig. 2 of latter ovary.
When carrying out when splitting the fractionation of music score 200, as shown in Fig. 2, starting at note " A " from the outset, along note
Playing sequence traverse music score to be split backward, traverse to the first previous ovary 201 in first hop-scotch label and terminate
When terminating label 205 repeatedly of place, will be from music score starting point to the music score segment " ABCD " terminated repeatedly between label 205 as the
One setting music score segment.Continue to traverse music score 200 to be split, it, will be from music score starting point when traversal to the first latter ovary 202
Music score segment " AANBD " to happy symbol D sets music score segment as second.Again by music score segment " ABCD " and music score segment
" AANBD " is used as 200 corresponding second music score segment of music score to be split.
It is understood that in music score 200 to be split, happy symbol " D " is the last one pleasure symbol, that is to say, that waits splitting pleasure
The music score terminal of spectrum 200 is happy symbol " D ".If between happy symbol " D " and the first latter ovary 202, there are music score to terminate to mark
Note, such as " terminate repeatedly labeled as ":| it, should be by music score segment " AANB " as the second setting music score segment when ┃ ".
When carrying out when splitting the fractionation of music score 300, as shown in Fig. 2, starting at note " A " from the outset, along note
Playing sequence traverse music score to be split backward, traverse to the second previous ovary 203 in first hop-scotch label and terminate
When terminating label 206 repeatedly of place." 1. " and " 2. " are numbered due to existing in the second previous ovary 203 repeatedly, that is to say, that
Second previous ovary 203 exists twice repeatedly, corresponding two settings music score segment.It will be from music score starting point to terminating to mark repeatedly
Music score segment " ABCD " between 205 sets music score segment as the corresponding third of number " 1. " repeatedly.In addition, due to compiling repeatedly
Therefore number " 1. " and " 2. " corresponding same ovary numbers " 2. " the 4th and sets music score segment as " ABCD " repeatedly.Continuation time
Music score 300 to be split is gone through, it, will be from music score starting point to the music score segment of happy symbol D when traversal to the second latter ovary 204
" AANBD " sets music score segment as number " 3. " the 5th repeatedly.Again by music score segment " ABCD ", music score segment " ABCD " and pleasure
Spectral slice section " AANBD " is used as 300 corresponding second music score segment of music score to be split.
It should be noted that hop-scotch is labeled as the bracket detained downwards, and also there is hop-scotch label in bracket
The paragraph marks of affiliated paragraph.In practical applications, the hop-scotch with paragraph marks 1 is labeled as a house;With paragraph
The hop-scotch of label 2 is labeled as two houses.Happy symbol in first previous ovary is " BCD ".Pleasure in second previous ovary
Symbol is " BCD ".
S105:Marked repeatedly for each DC, will from music score starting point to music score terminate label between music score as
Third music score segment after fractionation.
Illustratively, music score to be split is " 142121Fine11DC3527 ", is started at note " 1 " from the outset, along
The playing sequence of note traverses music score to be split backward, traverses at " DC ", is marked repeatedly since " DC " is, by music score starting point
" 1 " to the music score " 142121 " between " Fine " is used as third music score segment.
S106:Marked repeatedly for each DS, will from preset mark to music score terminate label between music score as
The 4th music score segment after fractionation.
Illustratively, music score to be split is " 1421X21Fine11DS3527 ", is begun stepping through from happy symbol " 1 " and waits splitting pleasure
Spectrum, traversal to DS marks repeatedly reversely traverse music score to be split, at traversal to preset mark " X ", by preset mark " X " and
Music score terminates to mark the music score segment " 21 " between " Fine " to be used as the 4th music score segment.
Add "/" it should be noted that preset mark is S, and there are one the labels put respectively for S the right and lefts.In addition, music score
Terminate the ending that label can be " Fine " label or music score to be split.
S107:By the first music score segment of acquisition, the second music score segment, the third music score segment and described
The set of 4th music score segment is as the music score after splitting.
Illustratively, the music score segment that obtains is processed in S103 steps to S106 steps as music score to be split is corresponding to tear open
Music score after point.
It is understood that split after music score in should also include:It is being traversed for the first time when splitting music score, from music score
Starting position is to the music score between music score end position.
Using embodiment illustrated in fig. 1 of the present invention, music score is split according to the label repeatedly for including in music score, works as user
When needing to split music score, label repeatedly is added to the corresponding position of music score, you can split automatically to music score, relative to existing
Have in technology by manually carrying out music score fractionation, improves music score and split efficiency.
In a kind of specific implementation mode of the embodiment of the present invention, S101 steps, including:
S101A (not shown)s:Obtain the corresponding midi files of music score to be split.
Illustratively, music score to be split can be midi files, can also be the file to be split after quantization.If waiting tearing open
It is midi files to divide music score, needs to quantify midi files, the midi files after being quantified.
S101B (not shown)s:The midi files are quantified using quantization algorithm, and obtain quantization after
The label repeatedly for including in midi files.
Illustratively, further according to midi protocol analysis midi files, and then the knot repeatedly for including in midi files is identified
Beam label, repeatedly beginning label, hop-scotch label, DC labels and DS labels.
Using the above embodiment of the present invention, the label repeatedly in music score to be split can be obtained.
In a kind of specific implementation mode of the embodiment of the present invention, S105 steps, including:
S105A (not shown)s:It is marked repeatedly for each DC, will terminate to mark it from music score starting point to music score
Between music score in include Coda label be numbered according to performance sequence.
Illustratively, if Coda is labeled as " Y ".
Music score to be split is " 12Y11Y11Y35Y24Fine2DC7 ", by music score starting point " 1 " to the music score between " Fine "
In include " Y " be numbered according to the sequence that music score is played.
In practical applications, Coda labels are also known as " tortoise label ".
It is understood that the sequence that music score plays is, from the sequence of the starting point of music score successively backward;In addition, Coda is marked
It is denoted as the label occurred in pairs, that is to say, that the number of the Coda labels occurred in music score is even number.
S105B (not shown)s:It will terminate the music score between label or DC labels from music score starting point to music score,
Music score in addition to default music score segment is as third music score segment, wherein the default music score segment is that odd-times sequence is corresponding
Music score segment between next Coda of Coda Coda corresponding with the odd-times sequence.
Illustratively, " 12Y11Y1135242DC7 " will terminate in the music score between label from music score starting point to music score, the
Music score segment between one Coda and second Coda excludes;Since happy symbol " 7 " is the last one pleasure in music score to be split
Symbol, therefore, remaining music score segment is 11352427, then regard music score " 11352427 " as third music score segment.
In addition, when DC is labeled as being located at when splitting the end position of music score, i.e. it, will be from pleasure when DC labels are located at " 7 " afterwards
It composes in starting point to the music score between DC labels, the music score segment between first Coda and second Coda excludes, remaining pleasure
Spectral slice section is as third music score segment.
Moreover, illustrative, wait split marked there are more than two Coda in music score when, for example, music score to be split is
" 12Y11Y11Y35Y242DC7 " will terminate in the music score between label, first Coda and second from music score starting point to music score
Music score segment between a Coda excludes, and the music score segment between third Coda and the 4th Coda is excluded;Remaining pleasure
Spectral slice section is 12112427, then regard music score " 12112427 " as the 5th music score segment.
It is understood that Coda is properly termed as Coda labels.
Using the above embodiment of the present invention, third music score segment can be obtained.
In a kind of specific implementation mode of the embodiment of the present invention, S106 steps, including:
S106A (not shown)s:It is marked repeatedly for each DS, will terminate to mark it from preset mark to music score
Between music score in include Coda label be numbered according to performance sequence.
Illustratively, if Coda is labeled as " Y ", preset mark is " X ".
Music score to be split is " 124X82Y11Y56DS7 ", " Y " that will include in preset mark " X " to the music score between " 7 "
The sequence played according to music score is numbered.
In practical applications, Coda labels are also known as " tortoise label ".
It is understood that the sequence that music score plays is, from the sequence of the starting point of music score successively backward;In addition, Coda is marked
It is denoted as the label occurred in pairs, that is to say, that the number of the Coda labels occurred in music score is even number.
S106B (not shown)s:It will terminate the music score between label or DS labels from preset mark to music score,
Music score in addition to default music score segment is as the 4th music score segment, wherein the default music score segment is that odd-times sequence is corresponding
Music score segment between next Coda of Coda Coda corresponding with the odd-times sequence.
Illustratively, " 124X82Y11Y56DS7 " will terminate from preset mark " X " to music score in the music score between label,
Music score segment between first Coda and second Coda excludes;Remaining music score segment is 82567, then by music score
" 82567 " are used as the 4th music score segment.
In addition, when DS is labeled as being located at when splitting the end position of music score, i.e. it, will be from pre- when DS labels are located at " 7 " afterwards
In bidding note to the music score between DS labels, the music score segment between first Coda and second Coda excludes, remaining pleasure
Spectral slice section is as the 4th music score segment.
Moreover, illustrative, wait split marked there are more than two Coda in music score when, for example, music score to be split is
" 124X82Y11Y11Y35Y242DS7 " will terminate the pleasure between label or DS labels from preset mark " X " to music score
In spectrum, the music score segment between first Coda and second Coda excludes, will be between third Coda and the 4th Coda
Music score segment excludes;Remaining music score segment is 82112427, then regard music score " 82112427 " as the 4th music score segment.
It is understood that Coda is properly termed as Coda labels.
Using the above embodiment of the present invention, the 4th music score segment can be obtained.
Fig. 3 is the flow diagram of another music score method for splitting provided in an embodiment of the present invention, as shown in figure 3, this hair
Bright embodiment illustrated in fig. 3 increases on the basis of embodiment illustrated in fig. 1 of the present invention:
S108:According in the music score to be split, each note corresponding midi moment, for the music score after each fractionation
Segment obtains music score segment corresponding start time and finish time after the fractionation.
Illustratively, each note for including in midi files is all corresponding with the midi times, midi agreements can be utilized to read
The midi moment of each note is taken, for example, note " 1 " the corresponding midi times are 900.
It should be noted that the midi times are a kind of timing mode for moment at the time of starting to play midi files.
S109:According to pair at each moment in the start time and the finish time, with the music score to be split
Should be related to and each moment in the music score to be split and the music score to be split between each note identifications information
Correspondence obtains the start time to the identification information of each note between the finish time;According to the beginning
Moment, to the identification information of each note between the finish time, corresponding note was obtained from the music score to be split.
It is according to the correspondence of system time and midi times, when obtaining midi when intelligent piano plays midi files
Between, and then the corresponding note of every midi moment in the midi times is obtained according to the midi times, and then obtain in system time
Each moment corresponding note.Again after system time runs to a certain moment, the moment corresponding note is played out.
Illustratively, it is note " 1 " to be carved at the beginning of music score to be split, and note " 1 " the corresponding midi times are 900;
The midi times are that 900 corresponding note identifications information are mmm.Further according to play carved at the beginning of splitting music score when it is corresponding
The midi times 900 obtain the corresponding note identifications information mmm of start time corresponding note, and then can be according to note identifications
Information mmm obtains note " 1 ".
S1010:According to each in the music score segment after the playing sequence of the music score segment after the fractionation and the fractionation
The note corresponding midi moment obtains the corresponding playing time of each note in the music score segment after the fractionation.
Illustratively, splitting the music score segment split out when splitting music score has sequencing when playing.According to pleasure
The duration of spectral slice section calculates the corresponding midi moment of each note in all music score segments.
For example, the 1139 corresponding midi moment of A music score segment is 100-200;Each note corresponding midi times are
25;Therefore, the B music score segment 1752 after A music score segments, there are four note, the B music score segments corresponding midi moment to be tool
200-300.And so on, calculate all music score segments corresponding midi moment.And then according to midi moment and playing time
Correspondence obtains the playing time of each note, for example, being 12 at the time of in 100 corresponding system time of midi moment:00:
00, if with 10 midi chronomeres for one second, it is 12 at the time of in 200 corresponding system time of midi moment:00:
10, similar, the midi moment is 12 at the time of being in 300 corresponding system times:00:20.
S1011:Each note corresponding midi moment in music score segment after the fractionation is updated to the broadcasting
Moment.
Illustratively, the playing time of the note obtained in S108 steps is updated to the broadcasting obtained in S1009 steps
Moment.
For example, it is " 1 " that the midi moment 100, which corresponds to note, when the system obtained in 100 corresponding S109 steps of midi moment
Carve is 12:00:00, the playing time of note " 1 " is updated to 12:00:00.
Using embodiment illustrated in fig. 3 of the present invention, the system time of the music score segment obtained after fractionation can be corrected,
And then the music score after fractionation can be played out according to correct system time.
Corresponding with embodiment illustrated in fig. 1 of the present invention, the embodiment of the present invention additionally provides a kind of music score detachment device.
Fig. 4 is a kind of structural schematic diagram of music score detachment device provided in an embodiment of the present invention, as shown in figure 4, the dress
Set including:Mould is arranged in first acquisition module 401, spider module 402, the first setup module 403, the second setup module 404, third
Block 405, the 4th setup module 406 and the 5th setup module 407, wherein
First acquisition module 401, for obtaining the label repeatedly for including in music score to be split, wherein it is described repeatedly
Label includes:Terminate label, repeatedly beginning label, hop-scotch label, DC labels and DS labels repeatedly;
The spider module 402, for traversing the music score to be split;
First setup module 403 starts reversed lookup beginning label repeatedly, if not for reflexive multiple junction beam label
Find the beginning label repeatedly, using from music score starting point to the music score terminated repeatedly between label as the after fractionation
One music score segment;If finding the beginning label repeatedly, will terminate to mark repeatedly from the beginning label repeatedly to described
Between music score as split after the first music score segment;
Second setup module 404 will be described in for being marked for each hop-scotch in the hop-scotch label
Music score starting point to it is described it is current hop-scotch label in previous ovary terminate between music score segment as the previous ovary
Each in son numbers corresponding each first setting music score segment repeatedly;It will be from the music score starting point from the current hop-scotch
Music score segment in latter ovary in label, and including the happy symbol in previous ovary is as the latter ovary
Each in son numbers corresponding each second setting music score segment repeatedly, and will the first setting music score segment and described the
The set of two setting music score segments marks corresponding second music score segment as the current hop-scotch;
The third setup module 405 marks for being directed to each DC, will terminate from music score starting point to music score repeatedly
Music score between label is as the third music score segment after splitting;
4th setup module 406 marks for being directed to each DS, will terminate from preset mark to music score repeatedly
Music score between label is as the 4th music score segment after splitting;
5th setup module 407, the first music score segment, the second music score segment, institute for that will obtain
The set of third music score segment and the 4th music score segment is stated as the music score after splitting.
In a kind of specific implementation mode of the embodiment of the present invention, first acquisition module 401 is additionally operable to
Obtain the corresponding midi files of music score to be split;
The midi files are quantified using quantization algorithm, and it includes repeatedly to obtain in the midi files after quantization
Label.
Using the above embodiment of the present invention, the label repeatedly in music score to be split can be obtained.
Using embodiment illustrated in fig. 4 of the present invention, music score is split according to the label repeatedly for including in music score, works as user
When needing to split music score, label repeatedly is added to the corresponding position of music score, you can split automatically to music score, relative to existing
Have in technology by manually carrying out music score fractionation, improves music score and split efficiency.
In a kind of specific implementation mode of the embodiment of the present invention, the third setup module 405 is additionally operable to:
Marked repeatedly for each DC, by from music score starting point to music score terminate label between music score in include
Coda labels are numbered according to performance sequence;
It will terminate the music score between label or DC labels from music score starting point to music score, in addition to default music score segment
Music score is as third music score segment, wherein the default music score segment is the corresponding Coda of odd-times sequence and the odd-times ordered pair
Music score segment between next Coda of the Coda answered.
Using the above embodiment of the present invention, third music score segment can be obtained.
In a kind of specific implementation mode of the embodiment of the present invention, the 4th setup module 406 is additionally operable to:
Marked repeatedly for each DS, by from preset mark to music score terminate label between music score in include
Coda labels are numbered according to performance sequence;
It will terminate the music score between label or DS labels from preset mark to music score, in addition to default music score segment
Music score is as the 4th music score segment, wherein the default music score segment is the corresponding Coda of odd-times sequence and the odd-times ordered pair
Music score segment between next Coda of the Coda answered.
Using the above embodiment of the present invention, the 4th music score segment can be obtained.
Corresponding with embodiment illustrated in fig. 3 of the present invention, the embodiment of the present invention additionally provides another music score detachment device.
Fig. 5 is the structural schematic diagram of another music score detachment device provided in an embodiment of the present invention, as shown in figure 5, this hair
Bright embodiment illustrated in fig. 5 increases the second acquisition module 408 on the basis of embodiment illustrated in fig. 4 of the present invention, third obtains mould
Block 409, the 4th acquisition module 4010 and update module 4011, wherein
Second acquisition module 408, for according in music score to be split, each note corresponding midi moment,
For the music score segment after each fractionation, music score segment corresponding start time and finish time after the fractionation are obtained;
The third acquisition module 409, for according to the start time and the finish time, waiting splitting pleasure with described
Each moment in the correspondence at each moment in spectrum and the music score to be split with it is each in the music score to be split
Correspondence between note identifications information obtains the start time to the mark of each note between the finish time
Information;According to the start time to the identification information of each note between the finish time, from the music score to be split
It is middle to obtain corresponding note;
4th acquisition module 4010, for according to the playing sequence of the music score segment after the fractionation and described tearing open
At each note corresponding midi moment, obtain each note pair in the music score segment after the fractionation in music score segment after point
The playing time answered;
The update module 4011 was used for each note corresponding midi moment in the music score segment after the fractionation
It is updated to the playing time.
Using embodiment illustrated in fig. 3 of the present invention, the system time of the music score segment obtained after fractionation can be corrected,
And then the music score after fractionation can be played out according to correct system time.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.
Claims (10)
1. a kind of music score method for splitting, which is characterized in that the method includes:
Obtain the label repeatedly for including in music score to be split, wherein it is described repeatedly label include:Terminate label repeatedly, open repeatedly
Begin label, hop-scotch label, DC labels and DS labels;
Music score to be split described in traversal;
Reflexive multiple junction beam label start it is reversed search beginning label repeatedly, will be from if not finding the beginning label repeatedly
Music score starting point is to the music score terminated repeatedly between label as the first music score segment after splitting;If found described anti-
Multiple beginning label is found pleasure in from the beginning label repeatedly to the music score terminated repeatedly between label as first after splitting
Spectral slice section;
For each hop-scotch label in the hop-scotch label, will be marked from the music score starting point to the current hop-scotch
In previous ovary terminate between music score segment numbered repeatedly as each in previous ovary it is corresponding each
First setting music score segment;By in latter ovary in from the music score starting point from the current hop-scotch label, and do not wrap
Include the music score segment of the happy symbol in previous ovary numbered repeatedly as each in latter ovary it is corresponding each
A second setting music score segment, and the set of music score segment and the second setting music score segment is set as institute using described first
It states current hop-scotch and marks corresponding second music score segment;
It is marked repeatedly for each DC, the music score between label will be terminated from music score starting point to music score as the after fractionation
Three music score segments;
It is marked repeatedly for each DS, the music score between label will be terminated from preset mark to music score as the after fractionation
Four music score segments;
By the first music score segment of acquisition, the second music score segment, the third music score segment and the 4th music score
The set of segment is as the music score after splitting.
2. a kind of music score method for splitting according to claim 1, which is characterized in that described obtain in music score to be split include
Label repeatedly, including:
Obtain the corresponding midi files of music score to be split;
The midi files are quantified using quantization algorithm, and obtain the mark repeatedly for including in the midi files after quantization
Note.
3. a kind of music score method for splitting according to claim 1, which is characterized in that described to be marked repeatedly for each DC
Note, using the music score terminated from music score starting point to music score between label as the third music score segment after splitting, including:
Marked repeatedly for each DC, by from music score starting point to music score terminate label between music score in include Coda mark
Note is numbered according to performance sequence;
It will terminate the music score between label or DC labels, the music score in addition to default music score segment from music score starting point to music score
As third music score segment, wherein the default music score segment is that the corresponding Coda of odd-times sequence is corresponding with the odd-times sequence
Music score segment between next Coda of Coda.
4. a kind of music score method for splitting according to claim 1, which is characterized in that described to be marked repeatedly for each DS
Note, using the music score terminated from preset mark to music score between label as the 4th music score segment after splitting, including:
Marked repeatedly for each DS, by from preset mark to music score terminate label between music score in include Coda mark
Note is numbered according to performance sequence;
It will terminate the music score between label or DS labels, the music score in addition to default music score segment from preset mark to music score
As the 4th music score segment, wherein the default music score segment is that the corresponding Coda of odd-times sequence is corresponding with the odd-times sequence
Music score segment between next Coda of Coda.
5. a kind of music score method for splitting according to claim 1, which is characterized in that the method further includes:
According in the music score to be split, each note corresponding midi moment obtains for the music score segment after each fractionation
Music score segment corresponding start time after the fractionation and finish time;
According to the correspondence at each moment in the start time and the finish time, with the music score to be split, with
And the correspondence in each moment in the music score to be split and the music score to be split between each note identifications information,
The start time is obtained to the identification information of each note between the finish time;According to the start time to described
The identification information of each note between finish time obtains corresponding note from the music score to be split;
It is corresponding according to each note in the music score segment after the playing sequence of the music score segment after the fractionation and the fractionation
The midi moment obtains the corresponding playing time of each note in the music score segment after the fractionation;
Each note corresponding midi moment in music score segment after the fractionation is updated to the playing time.
6. a kind of music score detachment device, which is characterized in that described device includes:First acquisition module, spider module, the first setting
Module, the second setup module, third setup module, the 4th setup module and the 5th setup module, wherein
First acquisition module, for obtaining the label repeatedly for including in music score to be split, wherein the label packet repeatedly
It includes:Terminate label, repeatedly beginning label, hop-scotch label, DC labels and DS labels repeatedly;
The spider module, for traversing the music score to be split;
First setup module starts reversed lookup beginning label repeatedly, if do not found for reflexive multiple junction beam label
The beginning label repeatedly, using from music score starting point to it is described repeatedly terminate label between music score as fractionation after the first music score
Segment;If finding the beginning label repeatedly, will repeatedly terminate between marking from the beginning label repeatedly to described
Music score is as the first music score segment after splitting;
Second setup module will be from the music score for being marked for each hop-scotch in the hop-scotch label
Point to it is described it is current hop-scotch label in previous ovary terminate between music score segment as in previous ovary
It is each to number corresponding each first setting music score segment repeatedly;It will be from the music score starting point from the current hop-scotch label
Latter ovary in, and do not include the music score segment of happy symbol in previous ovary as in latter ovary
It is each to number corresponding each second setting music score segment repeatedly, and set music score segment and second setting by described first
The set of music score segment marks corresponding second music score segment as the current hop-scotch;
The third setup module marks repeatedly for being directed to each DC, will terminate to mark it from music score starting point to music score
Between music score as split after third music score segment;
4th setup module marks for being directed to each DS, will terminate to mark it from preset mark to music score repeatedly
Between music score as split after the 4th music score segment;
5th setup module, the first music score segment, the second music score segment, the third pleasure for that will obtain
The set of spectral slice section and the 4th music score segment is as the music score after splitting.
7. a kind of music score detachment device according to claim 6, which is characterized in that first acquisition module is additionally operable to
Obtain the corresponding midi files of music score to be split;
The midi files are quantified using quantization algorithm, and obtain the mark repeatedly for including in the midi files after quantization
Note.
8. a kind of music score detachment device according to claim 6, which is characterized in that the third setup module is additionally operable to:
Marked repeatedly for each DC, by from music score starting point to music score terminate label between music score in include Coda mark
Note is numbered according to performance sequence;
It will terminate the music score between label or DC labels, the music score in addition to default music score segment from music score starting point to music score
As third music score segment, wherein the default music score segment is that the corresponding Coda of odd-times sequence is corresponding with the odd-times sequence
Music score segment between next Coda of Coda.
9. a kind of music score detachment device according to claim 6, which is characterized in that the 4th setup module is additionally operable to:
Marked repeatedly for each DS, by from preset mark to music score terminate label between music score in include Coda mark
Note is numbered according to performance sequence;
It will terminate the music score between label or DS labels, the music score in addition to default music score segment from preset mark to music score
As the 4th music score segment, wherein the default music score segment is that the corresponding Coda of odd-times sequence is corresponding with the odd-times sequence
Music score segment between next Coda of Coda.
10. a kind of music score detachment device according to claim 6, which is characterized in that described device further includes:Second obtains
Module, third acquisition module, the 4th acquisition module and update module, wherein
Second acquisition module, for according in music score to be split, each note corresponding midi moment, for each
Music score segment after fractionation obtains music score segment corresponding start time and finish time after the fractionation;
The third acquisition module, for according in the start time and the finish time, with the music score to be split
Each moment in the correspondence at each moment and the music score to be split and each note mark in the music score to be split
Know the correspondence between information, obtains the start time to the identification information of each note between the finish time;
According to the start time to the identification information of each note between the finish time, obtained from the music score to be split
Corresponding note;
4th acquisition module, for according to the pleasure after the playing sequence of the music score segment after the fractionation and the fractionation
At each note corresponding midi moment, obtain the corresponding broadcasting of each note in the music score segment after the fractionation in spectral slice section
Moment;
The update module, for each note corresponding midi moment in the music score segment after the fractionation to be updated to institute
State playing time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810184621.8A CN108389567A (en) | 2018-03-06 | 2018-03-06 | A kind of music score method for splitting and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810184621.8A CN108389567A (en) | 2018-03-06 | 2018-03-06 | A kind of music score method for splitting and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108389567A true CN108389567A (en) | 2018-08-10 |
Family
ID=63066566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810184621.8A Pending CN108389567A (en) | 2018-03-06 | 2018-03-06 | A kind of music score method for splitting and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108389567A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1125009A (en) * | 1993-05-21 | 1996-06-19 | 库达音乐技术公司 | Intelligent accompaniment apparatus and method |
CN102682752A (en) * | 2011-03-07 | 2012-09-19 | 卡西欧计算机株式会社 | Musical-score information generating apparatus, musical-score information generating method, music-tone generation controlling apparatus, and music-tone generation controlling method |
CN103956156A (en) * | 2014-03-17 | 2014-07-30 | 熊世林 | MIDI data processing method in intelligent electronic musical instrument |
CN107039024A (en) * | 2017-02-10 | 2017-08-11 | 美国元源股份有限公司 | Music data processing method and processing device |
CN107067876A (en) * | 2016-12-23 | 2017-08-18 | 广州丰谱信息技术有限公司 | The Spliced type colour packet electronic music and device of a kind of sound of musical instrument control split |
-
2018
- 2018-03-06 CN CN201810184621.8A patent/CN108389567A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1125009A (en) * | 1993-05-21 | 1996-06-19 | 库达音乐技术公司 | Intelligent accompaniment apparatus and method |
CN102682752A (en) * | 2011-03-07 | 2012-09-19 | 卡西欧计算机株式会社 | Musical-score information generating apparatus, musical-score information generating method, music-tone generation controlling apparatus, and music-tone generation controlling method |
CN103956156A (en) * | 2014-03-17 | 2014-07-30 | 熊世林 | MIDI data processing method in intelligent electronic musical instrument |
CN107067876A (en) * | 2016-12-23 | 2017-08-18 | 广州丰谱信息技术有限公司 | The Spliced type colour packet electronic music and device of a kind of sound of musical instrument control split |
CN107039024A (en) * | 2017-02-10 | 2017-08-11 | 美国元源股份有限公司 | Music data processing method and processing device |
Non-Patent Citations (1)
Title |
---|
汪纪军等: "《木吉他完全手册暨考级指南》", 31 December 2011, 长春:吉林出版集团有限责任公司 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Farbood et al. | Hyperscore: a graphical sketchpad for novice composers | |
EP1959427A1 (en) | Music edit device, music edit information creating method, and recording medium where music edit information is recorded | |
Cliff | Hang the DJ: Automatic sequencing and seamless mixing of dance-music tracks | |
CN101414322A (en) | Exhibition method and system for virtual role | |
CN107430849A (en) | Sound control apparatus, audio control method and sound control program | |
CN108182227B (en) | Accompanying audio recommendation method and device and computer-readable storage medium | |
CN108389567A (en) | A kind of music score method for splitting and device | |
JP2008225117A (en) | Pitch display control device | |
CN110088831A (en) | Performance assistant apparatus and method | |
WO2008014268A2 (en) | Interactive music interface for music production | |
JP2014010275A (en) | Information processing device, information processing method, and program | |
CN104794179B (en) | A kind of the video fast indexing method and device of knowledge based tree | |
CN113870820A (en) | Spectrum and voice synchronization method and terminal | |
CN113676772A (en) | Video generation method and device | |
CN108022604A (en) | The method and apparatus of amended record audio content | |
CN106550111B (en) | Method for setting ring tone in music playing and intelligent terminal | |
CN103093651A (en) | Interaction storybook device and processing method thereof based on mobile terminal application | |
CN108766474A (en) | Vehicle-mounted music playback method and mobile unit | |
CN201260223Y (en) | Ring editor | |
JP2007086571A (en) | Music information display device and program | |
JP3778175B2 (en) | Chord information display device and method, and recording medium therefor | |
JPH10143151A (en) | Conductor device | |
JP3722035B2 (en) | Performance signal processing apparatus, method and program, and storage medium | |
Rietveld | Voodoo rage: Blacktronica from the North | |
JP4123242B2 (en) | Performance signal processing apparatus and program |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180810 |