CN107844239B - Music file generation method and mobile terminal - Google Patents

Music file generation method and mobile terminal Download PDF

Info

Publication number
CN107844239B
CN107844239B CN201710909945.9A CN201710909945A CN107844239B CN 107844239 B CN107844239 B CN 107844239B CN 201710909945 A CN201710909945 A CN 201710909945A CN 107844239 B CN107844239 B CN 107844239B
Authority
CN
China
Prior art keywords
music
segment
target segment
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710909945.9A
Other languages
Chinese (zh)
Other versions
CN107844239A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710909945.9A priority Critical patent/CN107844239B/en
Publication of CN107844239A publication Critical patent/CN107844239A/en
Application granted granted Critical
Publication of CN107844239B publication Critical patent/CN107844239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a music file generation method and a mobile terminal, wherein the method comprises the following steps: intercepting a target segment from a music file according to the editing operation of a user on the selected music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The problem that the enthusiasm of the user and the production efficiency of the string fever music can be reduced for the user without music literacy and music accumulation is solved, and the production efficiency of the string fever music is improved by automatically retrieving the matched music segments.

Description

Music file generation method and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a music file generation method and a mobile terminal.
Background
With the rapid development of various application software, users can use the application software to perform various entertainment activities, thereby enriching the lives of the users. For example, a user uses software to perform music streaming, splicing different pieces of music together, thereby composing new distinctive music.
In the prior art, firstly, a user opens a media library in music string burning application software; then selecting a plurality of pieces of music and editing a target segment; finally, all the target segments are spliced according to the melody to generate the string music, and the production efficiency of the string music is low.
Disclosure of Invention
The music file generation method and the mobile terminal provided by the embodiment of the invention can improve the production efficiency of the string music.
On one hand, the embodiment of the invention discloses a music file generation method, which is applied to a mobile terminal and comprises the following steps:
intercepting a target segment from a music file according to the editing operation of a user on the selected music file;
when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set;
when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces;
and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment.
On the other hand, the embodiment of the invention also discloses a mobile terminal, which comprises:
the target segment intercepting module is used for intercepting a target segment from the music file according to the editing operation of a user on the selected music file;
the matching segment acquisition module is used for acquiring a preset number of music segments according to the matching degree with the tail part of the target segment when a matching instruction is received, so as to obtain a music segment set;
the matching segment adding module is used for generating a new target segment after adding the music segment to the target segment when receiving an adding operation instruction of the music segment in the music segment set;
and the stringed music storage module is used for storing the target segment when receiving an operation instruction of confirming the target segment by the user.
In another aspect, an embodiment of the present invention further discloses a mobile terminal, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the music file generation method according to any one of the above items.
In the embodiment of the invention, according to the editing operation of a user on a selected music file, a target segment is intercepted from the music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The above description is only an overview of the technical solutions of the present invention to make the technical means of the present invention more clearly understood, and the following detailed description of the present invention is given to make the above and other objects, features, and advantages of the present invention more obvious and understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a method for generating a music file according to a first embodiment of the present invention;
FIG. 1A shows a schematic interface diagram before a song is added in an embodiment of the invention;
FIG. 1B shows a schematic interface diagram after a song is added in an embodiment of the invention;
FIG. 1C illustrates a schematic interface diagram for editing songs in an embodiment of the present invention;
fig. 1D is a schematic display diagram illustrating the acquired matching music piece in the embodiment of the present invention;
FIG. 1E shows a schematic representation of a display of a barbeque effect in an embodiment of the invention;
FIG. 2 is a flowchart illustrating steps of a method for generating a music file according to a second embodiment of the present invention;
fig. 3 is a block diagram illustrating a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a block diagram illustrating a mobile terminal according to a fourth embodiment of the present invention;
fig. 5 is a block diagram illustrating a mobile terminal according to a fifth embodiment of the present invention;
fig. 6 shows a block diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes a music file generation method and a mobile terminal provided by the present invention in detail by taking several specific embodiments.
Example one
Referring to fig. 1, a flowchart illustrating steps of a method for generating a music file according to a first embodiment of the present invention is shown, which may specifically include the following steps:
step 101, according to the editing operation of the user on the selected music file, intercepting a target segment from the music file.
In practice, a user may select a music file from a media library. As shown in fig. 1A, after the user clicks the add song button, the background loads all music files from the media library for selection by the user. After the user selects a music file, jump to the interface shown in FIG. 1B. It will be appreciated that a search function may also be provided when adding songs, so that music files entered by the user are retrieved from the media library.
When a user selects a music file, the music file is displayed. As shown in fig. 1B, the music file is displayed in the form of a waveform diagram, and the music name and the music time length may also be displayed. Wherein the music duration is used to prompt the user to determine whether the current music length is appropriate. It can be seen that fig. 1B also shows an editing button, and after the user clicks the editing button to initiate an editing operation on the selected music file, the user jumps to the interface shown in fig. 1C.
As shown in FIG. 1C, the user may intercept the target segment by dragging the left and right controls K1, K2 to adjust the starting and ending positions, respectively. It is to be understood that the left and right controls are not limited in form by the embodiments of the present invention.
It can be seen that in the interfaces of fig. 1A, 1B, and 1C, prompt information is provided for guiding the operation of novice users, and a more friendly man-machine interaction interface is provided.
And 102, when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set.
The preset number may be set according to an actual application scenario, and is not limited in the embodiment of the present invention.
The length of the ending part can also be set according to practical application, and the embodiment of the invention does not limit the ending part. It can be understood that, when the length of the set ending part is longer, the number of music pieces obtained by matching is smaller; conversely, the shorter the length of the set ending part is, the greater the number of matched moral music pieces.
After the user clicks the matching button in fig. 1C, the background receives the matching instruction, so as to obtain the music segment matching the target segment from the media library. In practical application, the display is from large to small according to the matching degree. As shown in fig. 1D, the acquired three pieces of music are displayed on the lower side, and trial listening and addition buttons are provided. It can be understood that when the number of music pieces is large, the music pieces can be displayed in pages and provide the function of turning up and down the pages.
Step 103, when receiving an adding operation instruction of the music pieces in the music piece set, adding the music pieces to the target pieces, and then generating new target pieces.
As shown in fig. 1D, after clicking the plus sign, the user uses the corresponding music piece to perform the serial burning, so as to jump to the interface shown in fig. 1E. It will be appreciated that the user may first click on the listen on button and then decide which piece of music to select for cross-burning.
Of course, in practical applications, the maximum duration of the music string can also be set. When the user selects to add the music piece, if the current string burning result plus the duration of the music piece added by the user at this time exceeds the maximum duration, the user is prompted, and a function of editing the current music piece is provided, so that the music piece is cut to a proper length.
It is understood that in practical applications, one of the music pieces may also be deleted from the current string music.
And 104, when receiving the operation confirmation instruction of the user on the target segment, saving the target segment.
After at least one string burn is performed, the user can continue the string burn through the matching button or click to finish saving the current string burn result, as shown in fig. 1E.
Specifically, the information is saved to a designated position of the mobile terminal, so that the information can be uploaded to a circle of friends, shared to other clients through other applications, and the like.
It is understood that, in practical applications, if the total duration of the current stringed music exceeds a preset value, a matching button as in fig. 1E is not provided or grayed out.
In the embodiment of the invention, according to the editing operation of a user on a selected music file, a target segment is intercepted from the music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The problem that the enthusiasm of the user and the production efficiency of the string fever music can be reduced for the user without music literacy and music accumulation is solved, and the enthusiasm of the user and the production efficiency of the string fever music are improved by automatically searching the matched music segments.
Example two
Referring to fig. 2, a flowchart illustrating steps of a music file generation method according to a second embodiment of the present invention is shown, which may specifically include the following steps:
step 201, a segment between the starting position and the ending position selected by the user is intercepted from the music file to obtain a target segment.
According to the embodiment of the invention, the starting position and the ending position are determined by sliding the left control and the right control on the oscillogram. For example, as shown in FIG. 1C, the control K1 has a timestamp of 3 minutes and 24 seconds for the start position and a timestamp of 4 minutes and 05 seconds for the end position and K2.
Specifically, a segment between the timestamp corresponding to the start position and the timestamp corresponding to the end position is truncated. As shown in fig. 1C, a section between 3 minutes and 24 seconds and 4 minutes and 05 seconds of the music file is cut out.
Step 202, when receiving the audition instruction for the target segment, playing the target segment.
As shown in fig. 1C, click the audition button to audition the target segment, and if the audition is not satisfactory, continue to adjust the left and right controls until the audition is satisfactory. It can be understood that the user continuously switches between adjusting left and right controls and listening.
Step 203, extracting fingerprint information from the oscillogram of the target segment.
Algorithms such as echo print, chromaprint, and landmark may be used for extracting fingerprint information of music, and the extraction algorithm is not limited in the embodiment of the present invention.
Step 204, fingerprint information is extracted from the oscillogram corresponding to each music file in the media library.
It can be understood that step 203 extracts the fingerprint information of the target segment, and step 204 extracts the fingerprint information of each music file in the media library, so as to obtain the matched music file according to the fingerprint information.
Step 205, determining a preset number of music pieces with the highest matching degree with the end part of the target piece based on the fingerprint information, and obtaining the music piece set.
Specifically, firstly, comparing fingerprint information of each file in a media library with fingerprint information of a target segment to obtain matched music segments and calculating matching degree; then, arranging the music pieces in a descending order according to the matching degree; and finally, according to the preset number, taking the music pieces which are sequenced at the front as a music piece set.
Step 206, when receiving the listening trial instruction for the music segments in the music segment set, playing the music segments.
The embodiment of the invention further selects the most matched music piece in a listening trial mode, thereby combining the functions of a machine and a person and further improving the flexibility of the stringed music and the satisfaction degree of a user.
Step 207, when receiving an adding operation instruction of the music pieces in the music piece set, generating a new target piece after adding the music pieces to the target piece.
This step can refer to the detailed description of step 103, which is not repeated herein.
The embodiment of the invention allows multiple matching to be realized by repeating steps 204 to 207, so that multiple music pieces are subjected to serial burning. As shown in fig. 1E, a music piece matching the current string music can be repeatedly acquired through the matching button.
And step 208, when receiving the operation instruction of confirming the target segment by the user, saving the target segment.
This step can refer to the detailed description of step 104, and will not be described herein.
In the embodiment of the invention, according to the editing operation of a user on a selected music file, a target segment is intercepted from the music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The problem that the enthusiasm of the user and the production efficiency of the string fever music can be reduced for the user without music literacy and music accumulation is solved, and the enthusiasm of the user and the production efficiency of the string fever music are improved by automatically searching the matched music segments. In addition, matched music pieces can be obtained through fingerprints, a user can participate in audition, the satisfaction degree of the user on the barbeque result can be improved, and the enthusiasm and the production efficiency of the user are further improved.
EXAMPLE III
Referring to fig. 3, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal 300 includes: a target segment intercepting module 301, a matching segment acquiring module 302, a matching segment adding module 303, and a barbeque music saving module 304.
The functions of the modules and the interaction relationship between the modules are described in detail below.
And the target segment intercepting module 301 is configured to intercept a target segment from the music file according to an editing operation of the user on the selected music file.
A matching segment obtaining module 302, configured to, when a matching instruction is received, obtain a preset number of music segments according to the matching degree with the end portion of the target segment, so as to obtain a music segment set.
A matching segment adding module 303, configured to generate a new target segment after adding the music segment to the target segment when an adding operation instruction for the music segment in the music segment set is received.
And the stringed music saving module 304 is configured to save the target segment when receiving an operation instruction of confirming the target segment by the user.
In the embodiment of the invention, according to the editing operation of a user on a selected music file, a target segment is intercepted from the music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The problem that the enthusiasm of the user and the production efficiency of the string fever music can be reduced for the user without music literacy and music accumulation is solved, and the enthusiasm of the user and the production efficiency of the string fever music are improved by automatically searching the matched music segments.
The third embodiment is a corresponding apparatus embodiment to the first embodiment, and details thereof are not repeated herein.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal 400 includes: a target segment intercepting module 401, a first playing module 402, a matching segment acquiring module 403, a first playing module 404, a re-matching module 405, and a barbeque music saving module 406.
The functions of the modules and the interaction relationship between the modules are described in detail below.
And the target segment intercepting module 401 is configured to intercept a target segment from the music file according to an editing operation of the user on the selected music file. Optionally, in this embodiment of the present invention, the target segment intercepting submodule 401 includes:
the target segment intercepting submodule 4011 is configured to intercept a segment from the starting position to the ending position selected by the user from the music file to obtain a target segment.
A first playing module 402, configured to play the target segment when an instruction for trying to listen to the target segment is received.
A matching segment obtaining module 403, configured to, when a matching instruction is received, obtain a preset number of music segments according to the matching degree with the end portion of the target segment, so as to obtain a music segment set. Optionally, in an embodiment of the present invention, the matching segment obtaining module 403 includes:
a first fingerprint extraction sub-module 4031, configured to extract fingerprint information from the waveform map of the target segment.
And the second fingerprint extraction sub-module 4032 is configured to extract fingerprint information from the waveform map corresponding to each music file in the media library.
A matching segment obtaining sub-module 4033, configured to determine, based on the fingerprint information, a preset number of music segments with a highest matching degree with the end portion of the target segment, so as to obtain the music segment set.
The first playing module 404 is configured to play the music segments in the music segment set when receiving a listening trial instruction for the music segments.
A matching segment adding module 405, configured to, when an adding operation instruction for a music segment in the music segment set is received, generate a new target segment after the music segment is added to the target segment.
And a stringed music saving module 406, configured to save the target segment when receiving an operation instruction of confirming the target segment by the user.
In the embodiment of the invention, according to the editing operation of a user on a selected music file, a target segment is intercepted from the music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The problem that the enthusiasm of the user and the production efficiency of the string fever music can be reduced for the user without music literacy and music accumulation is solved, and the enthusiasm of the user and the production efficiency of the string fever music are improved by automatically searching the matched music segments. In addition, matched music pieces can be obtained through fingerprints, a user can participate in audition, the satisfaction degree of the user on the barbeque result can be improved, and the enthusiasm and the production efficiency of the user are further improved.
The fourth embodiment is a device embodiment corresponding to the second embodiment, and details can be found in reference to the second embodiment, which are not described herein again.
EXAMPLE five
Referring to fig. 5, a block diagram of a mobile terminal according to a fifth embodiment of the present invention is shown.
The mobile terminal 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced synchronous SDRAM (ESDRAM), synchronous link SDRAM (SLDRAM), and direct memory bus SDRAM (DRRAM). The memory 502 of the subject systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In an embodiment of the present invention, the mobile terminal 500 further comprises a computer program stored on the memory 502 and executable on the processor 501, the computer program implementing the following steps when executed by the processor 501: intercepting a target segment from a music file according to the editing operation of a user on the selected music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The processor 501 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 501 is further configured to extract fingerprint information from a waveform diagram of the target segment when a preset number of music segments are obtained according to the matching degree with the end portion of the target segment to obtain a music segment set; extracting fingerprint information from oscillograms corresponding to music files in a media library; and determining a preset number of music pieces with the highest matching degree with the tail part of the target piece based on the fingerprint information to obtain the music piece set.
Optionally, the processor 501 is further configured to, when a target segment is cut from the music file according to an editing operation of the user on the selected music file, cut a segment from a starting position to an ending position selected by the user from the music file to obtain the target segment.
Optionally, the processor 501 is further configured to, after a target segment is cut from the music according to an editing operation of the user on the selected music, play the target segment when a listening trial instruction for the target segment is received.
Optionally, the processor 501 is further configured to, after obtaining a preset number of music pieces according to the matching degree with the end portion of the target piece, obtain a music piece set, and when receiving a listening trial instruction for the music pieces in the music piece set, play the music pieces.
Therefore, in the embodiment of the invention, the target segment is intercepted from the music file according to the editing operation of the user on the selected music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The problem that the enthusiasm of the user and the production efficiency of the string fever music can be reduced for the user without music literacy and music accumulation is solved, and the enthusiasm of the user and the production efficiency of the string fever music are improved by automatically searching the matched music segments. In addition, matched music pieces can be obtained through fingerprints, a user can participate in audition, the satisfaction degree of the user on the barbeque result can be improved, and the enthusiasm and the production efficiency of the user are further improved.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention.
The mobile terminal of the embodiment of the invention can be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal in fig. 6 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a wifi (wireless fidelity) module 680, and a power supply 690.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 600. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 by using a finger, a stylus, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 640 may be used to display information input by a user or information provided to the user and various menu interfaces of the mobile terminal 600. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (OLED).
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby integrally monitoring the mobile terminal 600. Optionally, processor 660 may include one or more processing units.
In the embodiment of the present invention, the processor 660 is configured to intercept a target segment from a selected music file according to an editing operation of a user on the selected music file by calling a software program and/or a module stored in the first storage 621 and/or data stored in the second storage 622; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment.
Optionally, the processor 660 is further configured to extract fingerprint information from the waveform diagram of the target segment when a preset number of music segments are obtained according to the matching degree with the end portion of the target segment to obtain a music segment set; extracting fingerprint information from oscillograms corresponding to music files in a media library; and determining a preset number of music pieces with the highest matching degree with the tail part of the target piece based on the fingerprint information to obtain the music piece set.
Optionally, the processor 660 is further configured to, when the target segment is intercepted from the music file according to the editing operation of the user on the selected music file, intercept a segment from a starting position to an ending position selected by the user from the music file to obtain the target segment.
Optionally, the processor 660 is further configured to, after the target segment is intercepted from the music according to the editing operation of the user on the selected music, play the target segment when the audition instruction for the target segment is received.
Optionally, the processor 660 is further configured to, after obtaining a preset number of music pieces according to the matching degree with the end portion of the target piece, obtain a music piece set, and when receiving a listening trial instruction for the music pieces in the music piece set, play the music pieces.
Therefore, in the embodiment of the invention, the target segment is intercepted from the music file according to the editing operation of the user on the selected music file; when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set; when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces; and when receiving a confirmation operation instruction of the user on the target segment, saving the target segment. The problem that the enthusiasm of the user and the production efficiency of the string fever music can be reduced for the user without music literacy and music accumulation is solved, and the enthusiasm of the user and the production efficiency of the string fever music are improved by automatically searching the matched music segments. In addition, matched music pieces can be obtained through fingerprints, a user can participate in audition, the satisfaction degree of the user on the barbeque result can be improved, and the enthusiasm and the production efficiency of the user are further improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. A module or a unit or a group of components in the embodiments may be added to one module or unit or component and furthermore may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a mobile terminal device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A music file generation method is applied to a mobile terminal, and is characterized by comprising the following steps:
intercepting a target segment from a music file according to the editing operation of a user on the selected music file;
when a matching instruction is received, acquiring a preset number of music segments according to the matching degree with the tail part of the target segment to obtain a music segment set;
when an adding operation instruction of music pieces in the music piece set is received, after the music pieces are added to the target pieces, generating new target pieces;
when receiving a confirmation operation instruction of the user on the target segment, saving the target segment;
the step of obtaining a preset number of music pieces according to the matching degree with the ending part of the target piece to obtain a music piece set comprises the following steps:
extracting fingerprint information from the oscillogram of the target segment;
extracting fingerprint information from oscillograms corresponding to music files in a media library;
and determining a preset number of music pieces with the highest matching degree with the tail part of the target piece based on the fingerprint information to obtain the music piece set.
2. The method according to claim 1, wherein the step of intercepting the target segment from the music file according to the editing operation of the user on the selected music file comprises:
and intercepting the segment between the starting position and the ending position selected by the user from the music file to obtain a target segment.
3. The method according to claim 1, wherein after the step of intercepting the target segment from the music according to the editing operation of the user on the selected music, the method further comprises:
and when receiving an audition instruction of the target segment, playing the target segment.
4. The method according to claim 1, wherein after the step of obtaining a set of music pieces by obtaining a preset number of music pieces according to the matching degree with the end part of the target piece, the method further comprises:
and when receiving a trial listening instruction of the music segments in the music segment set, playing the music segments.
5. A mobile terminal, comprising:
the target segment intercepting module is used for intercepting a target segment from the music file according to the editing operation of a user on the selected music file;
the matching segment acquisition module is used for acquiring a preset number of music segments according to the matching degree with the tail part of the target segment when a matching instruction is received, so as to obtain a music segment set;
the matching segment adding module is used for generating a new target segment after adding the music segment to the target segment when receiving an adding operation instruction of the music segment in the music segment set;
the stringed music storage module is used for storing the target segment when receiving a confirmation operation instruction of the user on the target segment;
wherein, the matching segment obtaining module comprises:
the first fingerprint extraction submodule is used for extracting fingerprint information from the oscillogram of the target segment;
the second fingerprint extraction submodule is used for extracting fingerprint information from the oscillogram corresponding to each music file in the media library;
and the matching section obtaining sub-module is used for determining a preset number of music sections with the highest matching degree with the tail part of the target section based on the fingerprint information to obtain the music section set.
6. The mobile terminal of claim 5, wherein the target segment intercepting module comprises:
and the target segment intercepting submodule is used for intercepting the segment between the starting position and the ending position selected by the user from the music file to obtain the target segment.
7. The mobile terminal of claim 5, further comprising:
and the first playing module is used for playing the target segment when receiving the audition instruction of the target segment.
8. The mobile terminal of claim 5, further comprising:
and the second playing module is used for playing the music segments when receiving the audition instruction of the music segments in the music segment set.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the music file generation method according to any one of claims 1 to 4.
CN201710909945.9A 2017-09-29 2017-09-29 Music file generation method and mobile terminal Active CN107844239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710909945.9A CN107844239B (en) 2017-09-29 2017-09-29 Music file generation method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710909945.9A CN107844239B (en) 2017-09-29 2017-09-29 Music file generation method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107844239A CN107844239A (en) 2018-03-27
CN107844239B true CN107844239B (en) 2020-04-03

Family

ID=61661531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710909945.9A Active CN107844239B (en) 2017-09-29 2017-09-29 Music file generation method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107844239B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418243B (en) * 2019-07-25 2021-02-26 深圳华强电子网集团股份有限公司 Intelligent sound box control system and control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016015181A1 (en) * 2014-07-26 2016-02-04 华为技术有限公司 Method and apparatus for editing audio files
CN105825850A (en) * 2016-04-29 2016-08-03 腾讯科技(深圳)有限公司 Audio processing method and device
CN106528706A (en) * 2016-10-26 2017-03-22 北京邮电大学 Music retrieval method and apparatus
CN106708990A (en) * 2016-12-15 2017-05-24 腾讯音乐娱乐(深圳)有限公司 Music clip extraction method and device
CN106971749A (en) * 2017-03-30 2017-07-21 联想(北京)有限公司 Audio-frequency processing method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016015181A1 (en) * 2014-07-26 2016-02-04 华为技术有限公司 Method and apparatus for editing audio files
CN105825850A (en) * 2016-04-29 2016-08-03 腾讯科技(深圳)有限公司 Audio processing method and device
CN106528706A (en) * 2016-10-26 2017-03-22 北京邮电大学 Music retrieval method and apparatus
CN106708990A (en) * 2016-12-15 2017-05-24 腾讯音乐娱乐(深圳)有限公司 Music clip extraction method and device
CN106971749A (en) * 2017-03-30 2017-07-21 联想(北京)有限公司 Audio-frequency processing method and electronic equipment

Also Published As

Publication number Publication date
CN107844239A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN106131650B (en) Video processing method and mobile terminal
CN107526492B (en) Interface display method of application program and mobile terminal
CN107357574B (en) Operation method and mobile terminal
CN106372110B (en) Recommendation method of application program and mobile terminal
CN106095250B (en) Application icon layout method and mobile terminal
CN107219988B (en) Interface operation guiding method and mobile terminal
CN107741820B (en) Input method keyboard display method and mobile terminal
CN106446180B (en) Song identification method and mobile terminal
CN107221347B (en) Audio playing method and terminal
CN106453953B (en) Wireless access point connection method and mobile terminal
CN106993097B (en) Music playing method and mobile terminal
CN107609374B (en) Unlocking method and mobile terminal
CN107506130B (en) Character deleting method and mobile terminal
CN106789348B (en) Network acceleration method, server and client
CN106468987B (en) Information processing method and client
CN106874046B (en) Application program operation method and mobile terminal
CN107463644B (en) Music recommendation method and mobile terminal
CN107784071B (en) Message pushing method and device and mobile terminal
CN106873874B (en) Application program starting method and mobile terminal
WO2018166469A1 (en) Method for multi-path copying and pasting, and mobile terminal
CN107678813B (en) Desktop icon theme switching method and mobile terminal
CN105794155A (en) Method, apparatus and device for displaying message
CN107632854A (en) A kind of screenshotss processing method and mobile terminal
CN107181871B (en) Volume adjusting method and mobile terminal
CN107124656B (en) Multimedia file playing method and mobile terminal

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