CN109584845A - Automatic dub in background music method and system, terminal and computer readable storage medium - Google Patents

Automatic dub in background music method and system, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109584845A
CN109584845A CN201811368904.4A CN201811368904A CN109584845A CN 109584845 A CN109584845 A CN 109584845A CN 201811368904 A CN201811368904 A CN 201811368904A CN 109584845 A CN109584845 A CN 109584845A
Authority
CN
China
Prior art keywords
audio file
rail
note
predetermined
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811368904.4A
Other languages
Chinese (zh)
Other versions
CN109584845B (en
Inventor
王义文
刘奡智
王健宗
肖京
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811368904.4A priority Critical patent/CN109584845B/en
Publication of CN109584845A publication Critical patent/CN109584845A/en
Application granted granted Critical
Publication of CN109584845B publication Critical patent/CN109584845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC 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/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • G10H1/0025Automatic or semi-automatic music composition, e.g. producing random music, applying rules from music theory or modifying a musical piece
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC 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/00Details of electrophonic musical instruments
    • G10H1/02Means for controlling the tone frequencies, e.g. attack or decay; Means for producing special musical effects, e.g. vibratos or glissandos
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC 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/00Aspects 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/031Musical analysis, i.e. isolation, extraction or identification of musical elements or musical parameters from a raw acoustic signal or from an encoded audio signal
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC 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/00Aspects 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/101Music Composition or musical creation; Tools or processes therefor
    • G10H2210/111Automatic composing, i.e. using predefined musical rules
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC 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/00Aspects 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/155Musical effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Auxiliary Devices For Music (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention proposes a kind of dub in background music automatically method and system, terminal and computer readable storage mediums, are related to researching and developing administrative skill field, this method comprises: obtaining audio file;The speed of the audio file is adjusted into predetermined speed corresponding to predetermined melody type, and adjusts rule according to the predetermined melody type corresponding time, adjusts the beginning and ending time of the predetermined note in the audio file;Violoncello rail and/or piano rail are created for the audio file adjusted;The audio file adjusted is merged with the violoncello rail and/or the piano rail, exports target audio file.According to the technical solution of the present invention, the purpose for building the effect of specific atmosphere automatically is realized, audio experience is improved, and reduces cost of labor and time cost during dubbing in background music for specific atmosphere, improves dub in background music efficiency and effect.

Description

Automatic dub in background music method and system, terminal and computer readable storage medium
[technical field]
The present invention relates to research and development administrative skill fields, more particularly to a kind of dub in background music automatically method and system, terminal and calculating Machine readable storage medium storing program for executing.
[background technique]
It is existing to dub in background music automatically or harmonization algorithm is automatically configured mainly for common traditional and popular harmony, so And when needing to dub in background music to extraordinary atmosphere (such as nervous atmosphere), above-mentioned dub in background music and is not suitable for method, then needs manually for spy Different atmosphere is carried out with happy harmonization.However, the workload manually dubbed in background music is very big, and easily occurs mistake, this allows for being special Efficiency and quality are low when atmosphere is dubbed in background music.
Therefore, how efficiently and accurately to dub in background music for special atmosphere, become a technical problem to be solved urgently.
[summary of the invention]
The embodiment of the invention provides a kind of dub in background music automatically method and system, terminal and computer readable storage medium, purports Efficiency and the low technical problem of quality when solving to dub in background music in the related technology for special atmosphere can efficiently and accurately be Special atmosphere is dubbed in background music automatically, promotes efficiency and effect of dubbing in background music that special atmosphere is dubbed in background music.
In a first aspect, the embodiment of the invention provides a kind of methods of dubbing in background music automatically, comprising: obtain audio file;It will be described The speed of audio file adjusts predetermined speed corresponding to predetermined melody type, and corresponding according to the predetermined melody type Time adjustment rule, adjusts the beginning and ending time of the predetermined note in the audio file;It is created for the audio file adjusted Build violoncello rail and/or piano rail;The audio file adjusted and the violoncello rail and/or the piano rail are closed And export target audio file.
In the above embodiment of the present invention, optionally, the predetermined melody type is nervous atmosphere type, light atmosphere class Type, sad and dreary atmosphere type or cheerful and light-hearted atmosphere type, wherein the case where the predetermined melody type is the nervous atmosphere type Under, the predetermined speed is 70bmp;Time adjustment rule are as follows: by note that time signature in the audio file is even number Time started shifts to an earlier date scheduled duration;It is described predetermined with the end time in preceding note for the note that the time signature is even number is shifted to an earlier date Duration.
In the above embodiment of the present invention, optionally, the scheduled duration is the beginning for the note that the time signature is even number The predetermined fraction of time and difference at the beginning of preceding note, the predetermined fraction include 1/2,1/3 and 1/4.
It is optionally, described to create violoncello rail and/or piano rail for the audio file in the above embodiment of the present invention The step of, comprising: obtain the trifle quantity of the audio file and the pitch value of each note;According to the trifle quantity, by institute It states audio file and is divided into multiple periods;According to period each under the predetermined melody type corresponding pitch value adjustment rule Then, the pitch value of each note in each period is adjusted.
In the above embodiment of the present invention, optionally, in the feelings that the predetermined melody type is the nervous atmosphere type It is described according to the trifle quantity under condition, the step of audio file is divided into multiple periods, comprising: according to described small Joint number amount determines first time node, the second timing node and third timing node, wherein the first time node is 0, Second timing node is at the 1/3 of the preceding total trifle quantity of trifle quantity Zhan, and the third timing node is in preceding trifle Quantity accounts at the 2/3 of total trifle quantity.
In the above embodiment of the present invention, optionally, the corresponding pitch value adjustment rule of the piano rail are as follows: every Between two timing nodes, selection target chord and target pitch value in corresponding chord-pitch value list;By each trifle The note that middle time signature is 1 according to the target chord and increases the target pitch value, and the correspondence position in the piano rail is written It sets.
In the above embodiment of the present invention, optionally, the corresponding pitch value adjustment rule of the violoncello rail are as follows: change Become predetermined note at the beginning of and the end time;It is small that the predetermined note place is set by the pitch value of the predetermined note The pitch value of first note in section.
Second aspect, the embodiment of the invention provides a kind of automatic scoring systems, comprising: audio file acquiring unit is used In acquisition audio file;Audio file adjustment unit, for adjusting the speed of the audio file to predetermined melody type pair The predetermined speed answered, and rule is adjusted according to the predetermined melody type corresponding time, it adjusts in the audio file The beginning and ending time of predetermined note;Rail creating unit, for creating violoncello rail and/or piano for the audio file adjusted Rail;Rail combining unit, it is defeated for merging the audio file adjusted with the violoncello rail and/or the piano rail Target audio file out.
In the above embodiment of the present invention, optionally, the predetermined melody type is nervous atmosphere type, light atmosphere class Type, sad and dreary atmosphere type or cheerful and light-hearted atmosphere type, wherein the case where the predetermined melody type is the nervous atmosphere type Under, the predetermined speed is 70bmp;Time adjustment rule are as follows: by note that time signature in the audio file is even number Time started shifts to an earlier date scheduled duration;It is described predetermined with the end time in preceding note for the note that the time signature is even number is shifted to an earlier date Duration.
In the above embodiment of the present invention, optionally, the scheduled duration is the beginning for the note that the time signature is even number The predetermined fraction of time and difference at the beginning of preceding note, the predetermined fraction include 1/2,1/3 and 1/4.
In the above embodiment of the present invention, optionally, the rail creating unit includes: parameter acquiring unit, for obtaining The trifle quantity of the audio file and the pitch value of each note;Time segments division unit is used for according to the trifle quantity, by institute It states audio file and is divided into multiple periods;Pitch value adjustment unit, for according to it is each described under the predetermined melody type when The corresponding pitch value adjustment rule of section, adjusts the pitch value of each note in each period.
In the above embodiment of the present invention, optionally, in the feelings that the predetermined melody type is the nervous atmosphere type Under condition, the Time segments division unit is used for: according to the trifle quantity, determining first time node, the second timing node and Three timing nodes, wherein the first time node is 0, and second timing node is in the total small joint number of preceding trifle quantity Zhan At the 1/3 of amount, the third timing node is to account at the 2/3 of total trifle quantity in preceding trifle quantity.
In the above embodiment of the present invention, optionally, the corresponding pitch value adjustment rule of the piano rail are as follows: every Between two timing nodes, selection target chord and target pitch value in corresponding chord-pitch value list;By each trifle The note that middle time signature is 1 according to the target chord and increases the target pitch value, and the correspondence position in the piano rail is written It sets.
In the above embodiment of the present invention, optionally, the corresponding pitch value adjustment rule of the violoncello rail are as follows: change Become predetermined note at the beginning of and the end time;It is small that the predetermined note place is set by the pitch value of the predetermined note The pitch value of first note in section.
The third aspect, the embodiment of the invention provides a kind of terminals, comprising: at least one processor;And with it is described extremely The memory of few processor communication connection;Wherein, the memory, which is stored with, to be executed by least one described processor Instruction, described instruction is arranged to be used for executing method described in any one of above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, and it is executable to be stored with computer Instruction, the computer executable instructions are for executing method flow described in any one of above-mentioned first aspect.
By above technical scheme, for the low technology of efficiency when dubbing in background music in the related technology for special atmosphere and quality Problem can efficiently and accurately be dubbed in background music for special atmosphere automatically, specifically, can determine whether to be matched required for audio file At predetermined melody type, wherein predetermined melody type includes but is not limited to nervous atmosphere type, light atmosphere type, sad and dreary Atmosphere type or cheerful and light-hearted atmosphere type, every kind of predetermined melody type is corresponding with respective melody processing scheme, according to predetermined rotation After type of law carries out melody processing to audio file, violoncello rail and/or piano rail can be created for the audio file, mentioned greatly There is cooperation on qin rail and/or piano rail and reinforce the audio of atmosphere in the predetermined melody type, finally, by violoncello rail and/ Or piano rail and the audio file merge, and have obtained the target audio that the atmosphere in predetermined melody type has been strengthened File, so as to complete the purpose dubbed in background music that audio file is processed into predetermined melody type.
By above technical scheme, the purpose for building the effect of specific atmosphere automatically is realized, improves audio experience, and Reduce the cost of labor and time cost during dubbing in background music for specific atmosphere, improves dub in background music efficiency and effect.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 shows the flow chart of the method for dubbing in background music automatically of one embodiment of the present of invention;
It is the rudimentary algorithm frame that nervous atmosphere type is dubbed in background music automatically Fig. 2 shows one embodiment of the present of invention Frame;
Fig. 3 shows the block diagram of the automatic scoring system of one embodiment of the present of invention;
Fig. 4 shows the block diagram of the terminal of one embodiment of the present of invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning.
Fig. 1 shows the flow chart of the method for dubbing in background music automatically of one embodiment of the present of invention.
As shown in Figure 1, the embodiment of the invention provides a kind of methods of dubbing in background music automatically, comprising:
Step 102, audio file is obtained.The audio file is the single-tone melody file of midi format.Use midi lattice Formula list melody file is as input, and according to the range feature of usual music rhythm, which should be in small character group G~small character two Between group G, midi melody file time signature can be clapped for 4/4,3/4 claps, 2/4 claps, arbitrary speed, any tonality;File is unsuitable too long, 16~24 trifles or so length is advisable.
Step 104, the speed of the audio file is adjusted into predetermined speed corresponding to predetermined melody type, and according to The corresponding time adjustment rule of the predetermined melody type, adjusts the beginning and ending time of the predetermined note in the audio file.
Wherein, predetermined melody type include but is not limited to nervous atmosphere type, light atmosphere type, sad and dreary atmosphere type or Cheerful and light-hearted atmosphere type, every kind of predetermined melody type are corresponding with respective melody processing scheme, wherein each predetermined melody type is corresponding The size of predetermined speed be followed successively by the atmosphere type > sad and dreary atmosphere type of cheerful and light-hearted atmosphere type > anxiety atmosphere type > easily.
The speed of audio file is adjusted into predetermined speed corresponding to the predetermined melody type, audio file can be made Broadcasting speed atmosphere corresponding with predetermined melody type is more close and adapts to;When by the start-stop of the predetermined note in audio file Between according to predetermined melody type corresponding time adjust rule adjustment, may make the predetermined note and predetermined melody in audio file The beginning and ending time of corresponding note is same or similar under type, thus but also predetermined note and predetermined melody class in audio file Corresponding note has same or similar ambiance effect under type.It may make entire audio file that there is predetermined melody class as a result, The corresponding atmosphere of type.
Wherein, in the case where the predetermined melody type is the nervous atmosphere type, the predetermined speed is 70bmp, certainly, the predetermined speed under nervous atmosphere type can also be any other value of adaptation actual demand.And described In the case that predetermined melody type is the nervous atmosphere type, the time adjustment rule are as follows: will be clapped in the audio file Number for even number note at the beginning of in advance scheduled duration;With the end in preceding note by the time signature for the note of even number Scheduled duration described in time advance.The duration that time signature is the note of even number may make to elongate as a result, to aggravate the time signature For the sense of hearing of the note of even number, nervous atmosphere is realized.
In addition, the scheduled duration be at the beginning of the note that the time signature is even number with the beginning in preceding note The predetermined fraction of the difference of time, the predetermined fraction include 1/2,1/3 and 1/4, can will be terminated in advance as a result, in preceding note, It will be shortened in preceding note, so that fast pace is in preceding note, to aggravate nervous atmosphere.
Step 106, violoncello rail and/or piano rail are created for the audio file adjusted.
Specifically, the trifle quantity of the audio file and the pitch value of each note can be obtained;According to the small joint number Amount, is divided into multiple periods for the audio file;According to period each under the predetermined melody type corresponding pitch Value adjustment rule, adjusts the pitch value of each note in each period.I.e. for different musical instrument rails, difference can be used Pitch value adjustment rule be adjusted.
Wherein, the step of audio file being divided into multiple periods includes: to determine first according to the trifle quantity Timing node, the second timing node and third timing node, wherein the first time node is 0, second timing node For at the 1/3 of the preceding total trifle quantity of trifle quantity Zhan, the third timing node is to account for total trifle in preceding trifle quantity At the 2/3 of quantity.As a result, convenient for developing in section in different time, it is followed successively by each note and randomly selects a kind of note combination Violoncello rail and/or piano rail is written.
In a kind of implementation of the invention, the corresponding pitch value adjustment rule of the piano rail are as follows: every two Between a timing node, selection target chord and target pitch value in corresponding chord-pitch value list;It will be in each trifle The note that time signature is 1 according to the target chord and increases the target pitch value, and the corresponding position in the piano rail is written.
For example, its initial time, end time and pitch pitch [n] are read since first note, equally at this In initial time and end time, randomly chooses in following table and subtract common chords or increasing common chords, needed simultaneously after selecting some chord Will number be 1 sound be all written, wherein pitch [n]+x refers in midi agreement pitch number plus analog value, will have pair Answer the note of pitch;1 indicates the sound in table 1, and 0 indicates without the sound.
In a kind of implementation of the invention, the corresponding pitch value adjustment rule of the violoncello rail are as follows: change At the beginning of predetermined note and the end time;Trifle where setting the predetermined note for the pitch value of the predetermined note In first note pitch value.
For example, violoncello rail pitch is limited between small character group #C to one group of C of small character, unlike piano rail, mention greatly Initial time and end time of the initial time and end time of qin note independently of melody note, different phase change duration Length, generate the sense of hearing of acceleration, increase tension musically.Pitch is then related with upper first sound is clapped, if a certain take Rest (not having note presence in midi file) is showed, has then continued the head note for continuing to use previous bat;When determining pitch, It needs to confirm the bat first note is which sound in C#CD#DEF#FG#GA#AB first, i.e. CM_pitch [n] finds and mentions greatly Corresponding sound area defined by qin carries out pitch write-in.
Step 108, the audio file adjusted is merged with the violoncello rail and/or the piano rail, is exported Target audio file.Melody in violoncello rail and piano rail is exactly the corresponding atmosphere of predetermined melody type, will be carried out at melody The audio file after reason merges with the violoncello rail and the piano rail, can further strengthen the pre- of the audio file The corresponding atmosphere of melody type is determined, so as to build the corresponding atmosphere of predetermined melody type automatically for the audio file.
Generally speaking, it by above technical scheme, can efficiently and accurately be dubbed in background music automatically for special atmosphere, specifically For, can determine whether the predetermined melody type being made into required for audio file, according to predetermined melody type to audio file into After the processing of row melody, violoncello rail and/or piano rail can be created for the audio file, on violoncello rail and/or piano rail With the audio for cooperating and reinforcing atmosphere in the predetermined melody type, finally, by violoncello rail and/or piano rail and the audio File merges, and has obtained the target audio file that the atmosphere in predetermined melody type has been strengthened, so as to complete inciting somebody to action Audio file is processed into the purpose of predetermined melody type dubbed in background music.
By above technical scheme, the purpose for building the effect of specific atmosphere automatically is realized, improves audio experience, and Reduce the cost of labor and time cost during dubbing in background music for specific atmosphere, improves dub in background music efficiency and effect.
It is the rudimentary algorithm frame that nervous atmosphere type is dubbed in background music automatically Fig. 2 shows one embodiment of the present of invention Frame.
As shown in Fig. 2, including four basic functions in the rudimentary algorithm frame dubbed in background music automatically:
1, the mono- melody file input of midi.
Use midi format list melody file as input, according to the range feature of usual music rhythm, the melody sound area Should be between small character group G~two groups of small character G, midi melody file time signature can be clapped for 4/4,3/4 claps, 2/4 claps, and arbitrary speed is appointed Meaning tonality;File is unsuitable too long, and 16~24 trifles or so length is advisable.
2, file pre-processes.File pretreatment link mainly adjusts the speed of file, melody note start time point It is whole, and three timing nodes are calculated in case using, specifically, include the following steps:
1) file time signature and speed are read.
2) by speed be revised as 70bpm (bpm is music essential term, refer to it is how many per minute clap, 70bpm refers to that speed is It claps within one minute 70).
3) document section number barmax and each note pitch pitch [n], initial time start [n] and end time are read end[n]。
4) in melody each note initial time and the end time be adjusted, specifically, can be by even number note Initial time start [n] shifts to an earlier date scheduled duration, and wherein scheduled duration randomly selects following three kinds of values:
1/2(start[n]-start[n-1])、1/3(start[n]-start[n-1])、1/4(start[n]-start [n-1])
At the same time, the end [n-1] of previous note is accordingly also reduced into scheduled duration.
It 5) is the midi document creation piano and violoncello rail, in case use when content of dubbing in background music is written.
6) three development time nodes are calculated, t0=0, t1=[1/3*barmax], t2=[2/3*barmax], [x] refers to Be round numbers part, successively the time develops section t0-t1, t1-t2, t2- ending phase to three development time nodes.
3, content of dubbing in background music write-in.For piano rail, can be developed in section according to the following table 1, table 2 and table 3 in different time, It is followed successively by each note and randomly selects a kind of note combination write-in piano rail.Wherein, table 1 shows piano rail in the t0-t1 stage Optional sound, table 2 show piano rail in t1-t2 stage optional sound, and it is optional in t2- ending phase that table 3 shows piano rail Sound.
In the t0-t1 stage, its starting, end time and pitch pitch [n] is read since first note, equally In the initial time and on the end time, randomly chooses in following table and subtract common chords or increasing common chords, needed after selecting some chord The sound that number is 1 is all written simultaneously, wherein pitch [n]+x refers to that pitch number, will plus analog value in midi agreement There is the note of corresponding pitch;1 indicates the sound in table 1, and 0 indicates without the sound.
Subtract common chords Increase common chords
pitch[n]+9 0 0
pitch[n]+8 0 1
pitch[n]+7 0 0
pitch[n]+6 1 0
pitch[n]+5 0 0
pitch[n]+4 0 1
pitch[n]+3 1 0
pitch[n]+2 0 0
pitch[n]+1 0 0
pitch[n] 1 1
Table 1
In the t1-t2 stage, the principle of content of dubbing in background music write-in is identical as the t0-t1 stage.
Table 2
It is identical as the t0-t1 stage in the principle of t2- ending phase, content of dubbing in background music write-in.
Diminished seventh chord Increase seventh chord
pitch[n]+14 0 1
pitch[n]+13 0 0
pitch[n]+12 1 0
pitch[n]+11 0 0
pitch[n]+10 0 1
pitch[n]+9 0 0
pitch[n]+8 1 0
pitch[n]+7 0 0
pitch[n]+6 0 1
pitch[n]+5 1 0
pitch[n]+4 0 0
pitch[n]+3 0 0
pitch[n]+2 1 1
pitch[n]+1 0 0
pitch[n] 0 0
Table 3
Violoncello rail is developed in section, violoncello randomly selects table according to the following table 4, table 5 and table 6 in different time Violoncello rail is written in pitch in 2.Table 4 shows violoncello rail in t0-t1 stage optional sound, and table 5 shows violoncello rail In t1-t2 stage optional sound, table 6 shows violoncello rail in the optional sound of t2- ending phase, wherein it is single for clapping with one The dated duration length in position and pitch.
Violoncello rail pitch is limited between small character group #C to one group of C of small character, unlike piano rail, violoncello note Initial time and end time independently of melody note of initial time and end time, different phase changes the length of duration It is short, the sense of hearing of acceleration is generated, tension musically is increased.Pitch is then related with upper first sound is clapped, if it is a certain take it is existing Rest (does not have note presence in midi file), then continues the head note for continuing to use previous bat;When determining pitch, first Need to confirm the bat first note is which sound in C#CD#DEF#FG#GA#AB, i.e. CM_pitch [n] finds violoncello institute The corresponding sound area limited carries out pitch write-in.
First half is clapped Later half bat
CM_pitch[n] 1 0
CM_pitch[n]-1 0 1
Table 4
Preceding 1/3 claps In 1/3 clap It 1/3 claps afterwards
CM_pitch[n]+1 0 0 1
CM_pitch[n] 1 0 0
CM_pitch[n]-1 0 1 0
Table 5
Preceding 1/4 claps In it is preceding 1/4 clap In after 1/4 clap It 1/4 claps afterwards
CM_pitch[n]+1 0 0 0 1
CM_pitch[n] 1 0 0 0
CM_pitch[n]-1 0 0 1 0
CM_pitch[n]-1 0 1 0 0
Table 6
In addition, CM_pitch [n] -1 or CM_pitch [n]+1 can be more than at this time if it is #C or C that melody, which claps first sound, Preset range thinks that such case is allowed herein.
It 4, is a midi file by melody rail, violoncello rail, the output of piano rail.
The melody rail of input, piano rail, violoncello rail are finally merged into output, former rotation is included with the output of midi document form There is rule the complete of nervous atmosphere to match music file.
Fig. 3 shows the block diagram of the automatic scoring system of one embodiment of the present of invention.
As shown in figure 3, the embodiment of the invention provides a kind of automatic scoring systems 300, comprising: audio file acquiring unit 302, for obtaining audio file;Audio file adjustment unit 304, for adjusting the speed of the audio file to predetermined rotation The corresponding predetermined speed of type of law, and rule is adjusted according to the predetermined melody type corresponding time, adjust the audio The beginning and ending time of predetermined note in file;Rail creating unit 306, for creating violoncello for the audio file adjusted Rail and/or piano rail;Rail combining unit 308, for by the audio file adjusted and the violoncello rail and/or described Piano rail merges, and exports target audio file.
The automatic scoring system 300 using Fig. 1 and Fig. 2 shows any one of embodiment described in scheme therefore have Above-mentioned all technical effects, details are not described herein.Automatic scoring system 300 also has following technical characteristic:
In the above embodiment of the present invention, optionally, the predetermined melody type is nervous atmosphere type, light atmosphere class Type, sad and dreary atmosphere type or cheerful and light-hearted atmosphere type, wherein the case where the predetermined melody type is the nervous atmosphere type Under, the predetermined speed is 70bmp;Time adjustment rule are as follows: by note that time signature in the audio file is even number Time started shifts to an earlier date scheduled duration;It is described predetermined with the end time in preceding note for the note that the time signature is even number is shifted to an earlier date Duration.
In the above embodiment of the present invention, optionally, the scheduled duration is the beginning for the note that the time signature is even number The predetermined fraction of time and difference at the beginning of preceding note, the predetermined fraction include 1/2,1/3 and 1/4.
In the above embodiment of the present invention, optionally, the rail creating unit 306 includes: parameter acquiring unit, for obtaining Take the trifle quantity of the audio file and the pitch value of each note;Time segments division unit is used for according to the trifle quantity, will The audio file is divided into multiple periods;Pitch value adjustment unit, for according to each described under the predetermined melody type Period corresponding pitch value adjustment rule, adjusts the pitch value of each note in each period.
In the above embodiment of the present invention, optionally, in the feelings that the predetermined melody type is the nervous atmosphere type Under condition, the Time segments division unit is used for: according to the trifle quantity, determining first time node, the second timing node and Three timing nodes, wherein the first time node is 0, and second timing node is in the total small joint number of preceding trifle quantity Zhan At the 1/3 of amount, the third timing node is to account at the 2/3 of total trifle quantity in preceding trifle quantity.
In the above embodiment of the present invention, optionally, the corresponding pitch value adjustment rule of the piano rail are as follows: every Between two timing nodes, selection target chord and target pitch value in corresponding chord-pitch value list;By each trifle The note that middle time signature is 1 according to the target chord and increases the target pitch value, and the correspondence position in the piano rail is written It sets.
In the above embodiment of the present invention, optionally, the corresponding pitch value adjustment rule of the violoncello rail are as follows: change Become predetermined note at the beginning of and the end time;It is small that the predetermined note place is set by the pitch value of the predetermined note The pitch value of first note in section.
Fig. 4 shows the block diagram of the terminal of one embodiment of the present of invention.
As shown in figure 4, the terminal 400 of one embodiment of the present of invention, including at least one processor 402;And with institute State the processor 404 of the communication connection of at least one processor 402;Wherein, the memory be stored with can by it is described at least one The instruction that processor 404 executes, described instruction are arranged to be used for executing described in any one of above-mentioned Fig. 1 and Fig. 2 embodiment Scheme.Therefore, which has and the identical technical effect of any one of Fig. 1 and Fig. 2 embodiment, and details are not described herein.
In addition, computer executable instructions are stored with the embodiment of the invention provides a kind of computer readable storage medium, The computer executable instructions are for executing method flow described in any one of above-mentioned Fig. 1 and Fig. 2 embodiment.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, according to the technical solution of the present invention, realizes certainly The purpose of the dynamic effect for building specific atmosphere, improves audio experience, and reduce artificial during dubbing in background music for specific atmosphere Cost and time cost improve dub in background music efficiency and effect.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement Or event) when " or " in response to detection (condition or event of statement) ".
It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to personal computer (Personal Computer, PC), personal digital assistant (Personal Digital Assistant, PDA), wireless handheld Equipment, tablet computer (Tablet Computer), mobile phone, MP3 player, MP4 player etc..
In several embodiments provided by the present invention, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of method of dubbing in background music automatically characterized by comprising
Obtain audio file;
The speed of the audio file is adjusted into predetermined speed corresponding to predetermined melody type, and according to the predetermined melody The corresponding time adjustment rule of type, adjusts the beginning and ending time of the predetermined note in the audio file;
Violoncello rail and/or piano rail are created for the audio file adjusted;
The audio file adjusted is merged with the violoncello rail and/or the piano rail, exports target audio file.
2. method according to claim 1 of dubbing in background music automatically, which is characterized in that
The predetermined melody type is nervous atmosphere type, light atmosphere type, sad and dreary atmosphere type or cheerful and light-hearted atmosphere type, In, in the case where the predetermined melody type is the nervous atmosphere type,
The predetermined speed is 70bmp;
The time adjustment rule are as follows:
Scheduled duration will be shifted to an earlier date at the beginning of note of the time signature in the audio file for even number;With
The end time in preceding note for the note that the time signature is even number is shifted to an earlier date into the scheduled duration.
3. method according to claim 2 of dubbing in background music automatically, which is characterized in that
The scheduled duration be at the beginning of the note that the time signature is even number with difference at the beginning of preceding note The predetermined fraction of value, the predetermined fraction include 1/2,1/3 and 1/4.
4. method according to claim 2 of dubbing in background music automatically, which is characterized in that described to create violoncello for the audio file The step of rail and/or piano rail, comprising:
Obtain the trifle quantity of the audio file and the pitch value of each note;
According to the trifle quantity, the audio file is divided into multiple periods;
According to period each under the predetermined melody type corresponding pitch value adjustment rule, adjust in each period Each note the pitch value.
5. according to claim 4 dub in background music method automatically, which is characterized in that in the predetermined melody type be the anxiety In the case where atmosphere type,
It is described according to the trifle quantity, the step of audio file is divided into multiple periods, comprising:
According to the trifle quantity, first time node, the second timing node and third timing node are determined, wherein described One timing node is 0, and second timing node is the third time at the 1/3 of the preceding total trifle quantity of trifle quantity Zhan Node is to account at the 2/3 of total trifle quantity in preceding trifle quantity.
6. according to claim 4 dub in background music method automatically, which is characterized in that the corresponding pitch value tune of the piano rail Whole rule are as follows:
Between every two timing node, selection target chord and target pitch value in corresponding chord-pitch value list;
The note that time signature in each trifle is 1 according to the target chord and is increased into the target pitch value, the steel is written Corresponding position in qin rail.
7. according to claim 4 dub in background music method automatically, which is characterized in that the corresponding pitch value of the violoncello rail Adjustment rule are as follows:
Change predetermined note at the beginning of and the end time;
The pitch value of first note where setting the predetermined note for the pitch value of the predetermined note in trifle.
8. a kind of automatic scoring system characterized by comprising
Audio file acquiring unit, for obtaining audio file;
Audio file adjustment unit, for the speed of the audio file to be adjusted pre- constant speed corresponding to predetermined melody type Degree, and rule is adjusted according to the predetermined melody type corresponding time, adjust the predetermined note in the audio file Beginning and ending time;
Rail creating unit, for creating violoncello rail and/or piano rail for the audio file adjusted;
Rail combining unit, it is defeated for merging the audio file adjusted with the violoncello rail and/or the piano rail Target audio file out.
9. a kind of terminal characterized by comprising at least one processor;And connect at least one described processor communication The memory connect;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, and described instruction is arranged to use Method flow described in any one of execution the claims 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer executable instructions, the computer can It executes instruction for executing the method flow as described in any one of claims 1 to 7.
CN201811368904.4A 2018-11-16 2018-11-16 Automatic music distribution method and system, terminal and computer readable storage medium Active CN109584845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811368904.4A CN109584845B (en) 2018-11-16 2018-11-16 Automatic music distribution method and system, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811368904.4A CN109584845B (en) 2018-11-16 2018-11-16 Automatic music distribution method and system, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109584845A true CN109584845A (en) 2019-04-05
CN109584845B CN109584845B (en) 2023-11-03

Family

ID=65923078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811368904.4A Active CN109584845B (en) 2018-11-16 2018-11-16 Automatic music distribution method and system, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109584845B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6535462B1 (en) * 2001-05-15 2003-03-18 Hanpin Electron Co., Ltd. Digital sound-signal broadcaster
US6703549B1 (en) * 1999-08-09 2004-03-09 Yamaha Corporation Performance data generating apparatus and method and storage medium
CN102610222A (en) * 2007-02-01 2012-07-25 缪斯亚米有限公司 Music transcription method, system and device
CN105161087A (en) * 2015-09-18 2015-12-16 努比亚技术有限公司 Automatic harmony method, device, and terminal automatic harmony operation method
CN105702249A (en) * 2016-01-29 2016-06-22 北京精奇互动科技有限公司 A method and apparatus for automatic selection of accompaniment
CN107301857A (en) * 2016-04-15 2017-10-27 青岛海青科创科技发展有限公司 A kind of method and system to melody automatically with accompaniment
CN108417190A (en) * 2018-03-06 2018-08-17 安徽华熊科技有限公司 A kind of reliable generation method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6703549B1 (en) * 1999-08-09 2004-03-09 Yamaha Corporation Performance data generating apparatus and method and storage medium
US6535462B1 (en) * 2001-05-15 2003-03-18 Hanpin Electron Co., Ltd. Digital sound-signal broadcaster
CN102610222A (en) * 2007-02-01 2012-07-25 缪斯亚米有限公司 Music transcription method, system and device
CN105161087A (en) * 2015-09-18 2015-12-16 努比亚技术有限公司 Automatic harmony method, device, and terminal automatic harmony operation method
CN105702249A (en) * 2016-01-29 2016-06-22 北京精奇互动科技有限公司 A method and apparatus for automatic selection of accompaniment
CN107301857A (en) * 2016-04-15 2017-10-27 青岛海青科创科技发展有限公司 A kind of method and system to melody automatically with accompaniment
CN108417190A (en) * 2018-03-06 2018-08-17 安徽华熊科技有限公司 A kind of reliable generation method and device

Also Published As

Publication number Publication date
CN109584845B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
CN107123415B (en) Automatic song editing method and system
US11687315B2 (en) Audio content production, audio sequencing, and audio blending system and method
CN104347080B (en) The medium of speech analysis method and device, phoneme synthesizing method and device and storaged voice analysis program
US9672800B2 (en) Automatic composer
CN105740394B (en) Song generation method, terminal and server
CN108766407B (en) Audio connection method and device
US20200410968A1 (en) Method of combining audio signals
JP2019219638A (en) Music synthesis method, system, terminal and computer-readable storage medium
CN101667422A (en) Method and device for adjusting mode of song accompaniment
Arzt et al. Artificial intelligence in the concertgebouw
US10497347B2 (en) Singing voice edit assistant method and singing voice edit assistant device
CN108711415B (en) Method, apparatus and storage medium for correcting time delay between accompaniment and dry sound
US11087727B2 (en) Auto-generated accompaniment from singing a melody
CN111667803A (en) Audio processing method and related product
CN101930732B (en) Music producing method and device based on user input voice and intelligent terminal
US9830895B2 (en) Method for offsetting pitch data in an audio file
CN105718486A (en) Online query by humming method and system
JP2014174205A (en) Musical sound information processing device and program
CN109584845A (en) Automatic dub in background music method and system, terminal and computer readable storage medium
CN112825244B (en) Music audio generation method and device
CN105630831A (en) Humming retrieval method and system
CN110111813B (en) Rhythm detection method and device
DK202170064A1 (en) An interactive real-time music system and a computer-implemented interactive real-time music rendering method
CN108281130B (en) Audio correction method and device
CN113096624A (en) Method, device, equipment and storage medium for automatically creating symphony music

Legal Events

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