[go: up one dir, main page]

CN111506765B - Method, device, electronic equipment and storage medium for controlling music playing rhythm - Google Patents

Method, device, electronic equipment and storage medium for controlling music playing rhythm Download PDF

Info

Publication number
CN111506765B
CN111506765B CN202010260995.0A CN202010260995A CN111506765B CN 111506765 B CN111506765 B CN 111506765B CN 202010260995 A CN202010260995 A CN 202010260995A CN 111506765 B CN111506765 B CN 111506765B
Authority
CN
China
Prior art keywords
music
adjustment
rhythm
playing
playback
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
CN202010260995.0A
Other languages
Chinese (zh)
Other versions
CN111506765A (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.)
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture Technology 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 China Mobile Communications Group Co Ltd, MIGU Music Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010260995.0A priority Critical patent/CN111506765B/en
Publication of CN111506765A publication Critical patent/CN111506765A/en
Application granted granted Critical
Publication of CN111506765B publication Critical patent/CN111506765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/63Querying
    • G06F16/638Presentation of query results
    • G06F16/639Presentation of query results using playlists
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for controlling music playing rhythm; the method comprises the following steps: determining the beat time length of a music piece; determining an adjustment mode of a music playing rhythm; determining an adjustment object in the musical composition; and adjusting the playing rhythm of the adjustment object according to the music single-beat time length and the adjustment mode. According to the method, the device, the electronic equipment and the storage medium for controlling the music playing rhythm, which are provided by the embodiment of the invention, the playing rhythm of the music can be accurately controlled by setting the three elements of the music single-beat time length, the adjustment mode and the adjustment object, so that a listener is not a passive listener of music any more, and the interactivity between the listener and the music is enhanced.

Description

控制乐曲播放节奏的方法、装置、电子设备及存储介质Method, device, electronic device and storage medium for controlling music playing rhythm

技术领域technical field

本发明涉及音频技术领域,尤其涉及一种控制乐曲播放节奏的方法、装置、电子设备及存储介质。The invention relates to the field of audio technology, in particular to a method, device, electronic equipment and storage medium for controlling the playing rhythm of music.

背景技术Background technique

音乐是由有组织的乐音来表达人们思想感情、反映人类现实生活情感的艺术。音乐与人们的生活息息相关,是人们日常生活中不可或缺的一部分。Music is an art that expresses people's thoughts and feelings and reflects the emotions of human real life by organized music. Music is closely related to people's life and is an indispensable part of people's daily life.

随着技术的发展,音乐播放设备发生了翻天覆地的变化。目前以安装在智能移动设备(如手机、平板电脑)上的音乐播放软件(音乐APP)最为流行。With the development of technology, music playback equipment has undergone tremendous changes. Currently the most popular music player software (music APP) installed on smart mobile devices (such as mobile phones, tablet computers).

目前的音乐播放软件功能越来越丰富。以音乐播放领域为例,某些音乐播放软件提供了“流行”、“爵士”、“摇滚”等多种音乐风格供用户选择,用户可以根据自己的喜好,选择自己喜欢的风格,以使得音乐APP按照用户选择的音乐风格来播放音乐,从而为用户带来更好的听歌体验。但用户对音乐的需求并不局限于对音乐风格的选择,用户希望在音乐播放方面能够有更多的选择权。例如,对乐曲播放节奏的控制。The current music player software has more and more functions. Taking the field of music playback as an example, some music playback software provides a variety of music styles such as "pop", "jazz", and "rock" for users to choose from. Users can choose their favorite style according to their preferences, so that the music The APP plays music according to the music style selected by the user, so as to bring users a better listening experience. However, the user's demand for music is not limited to the choice of music style, and the user hopes to have more choices in music playback. For example, the control of the rhythm of music playback.

现有技术中,对乐曲播放节奏的控制方法十分有限。较为常见的有通过调节播放速度来改变乐曲播放节奏,如早期卡带录音机的快进键或现有音乐播放软件中对播放速度的调节。这种乐曲播放节奏控制方法十分粗糙,用户只能以估计的方式对整首或一段乐曲的播放速度进行调节,且调节后的播放速度通常也是固定的一种或几种,用户不能做进一步的精准控制。In the prior art, the method for controlling the playing rhythm of music is very limited. It is more common to change the music playback rhythm by adjusting the playback speed, such as the fast forward key of the early cassette tape recorder or the adjustment of the playback speed in the existing music player software. This music playback rhythm control method is very rough, the user can only adjust the playback speed of the whole song or a piece of music in an estimated manner, and the adjusted playback speed is usually fixed or several, and the user cannot do further. Precise control.

发明内容Contents of the invention

本发明实施例提供一种控制乐曲播放节奏的方法、装置、电子设备及存储介质,用以解决现有技术中对乐曲播放节奏的控制精准度不足的缺陷。Embodiments of the present invention provide a method, device, electronic device, and storage medium for controlling the playing rhythm of music to solve the defect of insufficient precision in controlling the playing rhythm of music in the prior art.

本发明第一方面实施例提供一种控制乐曲播放节奏的方法,包括:The embodiment of the first aspect of the present invention provides a method for controlling the playing rhythm of music, including:

确定乐曲单节拍时长;Determine the single beat duration of the music;

确定乐曲播放节奏的调整模式;Determines the adjustment mode of the rhythm of the music playback;

确定乐曲中的调整对象;Determine the adjustment object in the music;

根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏;其中,According to the single beat duration of the music and the adjustment mode, adjust the playback rhythm of the adjustment object; wherein,

所述调整模式反映了乐曲中需要调整播放节奏的内容的范围;所述调整对象反映了乐曲中需要调整播放节奏的内容。The adjustment mode reflects the scope of the content in the music that needs to adjust the playing rhythm; the adjustment object reflects the content in the music that needs to adjust the playing rhythm.

上述技术方案中,所述确定乐曲单节拍时长包括:In the above technical solution, the determination of the single beat duration of the music includes:

采集用户两个指定操作之间的间隔时长;Collect the interval between two user-specified operations;

将所采集的间隔时长作为乐曲单节拍时长。Use the collected interval duration as the single beat duration of the music.

上述技术方案中,所述指定操作是手指在移动终端屏幕上的操作。In the above technical solution, the specified operation is an operation of a finger on the screen of the mobile terminal.

上述技术方案中,所述确定乐曲播放节奏的调整模式包括:In the above technical solution, the adjustment mode for determining the playing rhythm of the music includes:

选取乐曲内容的一部分或全部作为选取结果;Select part or all of the music content as the selection result;

根据所述选取结果确定对应的调整模式。A corresponding adjustment mode is determined according to the selection result.

上述技术方案中,所述确定乐曲播放节奏的调整模式包括:In the above technical solution, the adjustment mode for determining the playing rhythm of the music includes:

通过对预先设定的多个调整模式的选择确定乐曲的调整模式。The adjustment mode of the music is determined by selecting a plurality of preset adjustment modes.

上述技术方案中,所述调整模式包括:单字调节、单句调节和整首调节;其中,In the above technical solution, the adjustment mode includes: single character adjustment, single sentence adjustment and whole poem adjustment; wherein,

所述单字调节用于对乐曲中的单个乐曲基本单位的播放节奏进行调节,所述单句调节用于对乐曲中的多个连续的乐曲基本单位的播放节奏进行调节,所述整首调节用于对整首乐曲的播放节奏进行调节。The single word adjustment is used to adjust the playback rhythm of a single basic unit of music in the music, the single sentence adjustment is used to adjust the playback rhythm of multiple continuous basic units of music in the music, and the whole song adjustment is used for Adjust the playback tempo of the entire song.

上述技术方案中,所述确定乐曲中的调整对象包括:In the above technical solution, the determination of the adjustment object in the music includes:

选取乐曲内容的一部分或全部作为选取结果;Select part or all of the music content as the selection result;

根据所述选取结果确定调整对象。The adjustment object is determined according to the selection result.

上述技术方案中,所述确定乐曲中的调整对象包括:In the above technical solution, the determination of the adjustment object in the music includes:

根据乐曲的播放进度与所述调整模式,确定调整对象。The adjustment object is determined according to the playing progress of the music and the adjustment mode.

本发明第二方面实施例提供一种控制乐曲播放节奏的装置,包括:The embodiment of the second aspect of the present invention provides a device for controlling the playing rhythm of music, including:

乐曲单节拍时长确定模块,用于确定乐曲单节拍时长;A music single beat duration determination module is used to determine the music single beat duration;

调整模式确定模块,用于确定乐曲播放节奏的调整模式;An adjustment mode determination module, which is used to determine the adjustment mode of the music playback rhythm;

调整对象确定模块,用于确定乐曲中的调整对象;Adjustment object determination module, used to determine the adjustment object in the music;

播放节奏调整模块,用于根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏;其中,The playing rhythm adjustment module is used to adjust the playing rhythm of the adjustment object according to the single beat duration of the music and the adjustment mode; wherein,

所述调整模式反映了乐曲中需要调整播放节奏的内容的范围;所述调整对象反映了乐曲中需要调整播放节奏的内容。The adjustment mode reflects the scope of the content in the music that needs to adjust the playing rhythm; the adjustment object reflects the content in the music that needs to adjust the playing rhythm.

本发明第三方面实施例提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如本发明第一方面实施例所述控制乐曲播放节奏的方法的步骤。The embodiment of the third aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the first aspect of the present invention is implemented. The steps of the method for controlling the music playing rhythm described in the embodiment.

本发明第四方面实施例提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如本发明第一方面实施例所述控制乐曲播放节奏的方法的步骤。The embodiment of the fourth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the control of the playing rhythm of the music is realized as described in the embodiment of the first aspect of the present invention. method steps.

本发明实施例提供的控制乐曲播放节奏的方法、装置、电子设备及存储介质,通过设置乐曲单节拍时长、调整模式和调整对象这三个要素,能够对乐曲的播放节奏进行精准地控制,使得听众不再是音乐的被动接听者,增强了听众与音乐间的交互性。The method, device, electronic device, and storage medium for controlling the playing rhythm of the music provided by the embodiments of the present invention can precisely control the playing rhythm of the music by setting the three elements of the single beat duration of the music, the adjustment mode and the adjustment object, so that The audience is no longer the passive listener of the music, which enhances the interaction between the audience and the music.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的控制乐曲播放节奏的方法的流程图;Fig. 1 is the flow chart of the method for controlling the playing rhythm of music provided by the embodiment of the present invention;

图2为本发明实施例提供的控制乐曲播放节奏的装置的示意图;2 is a schematic diagram of a device for controlling the playing rhythm of music provided by an embodiment of the present invention;

图3为本发明实施例提供的控制乐曲播放节奏的方法在一个具体实例中实现时的流程图;Fig. 3 is the flow chart when the method for controlling the music playing rhythm provided by the embodiment of the present invention is implemented in a specific example;

图4示例了一种电子设备的实体结构示意图。Fig. 4 illustrates a schematic diagram of a physical structure of an electronic device.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

图1为本发明实施例提供的控制乐曲播放节奏的方法的流程图,如图1所示,本发明实施例提供的控制乐曲播放节奏的方法包括:Fig. 1 is the flow chart of the method for controlling the music playing rhythm provided by the embodiment of the present invention, as shown in Fig. 1, the method for controlling the music playing rhythm provided by the embodiment of the present invention comprises:

步骤101、确定乐曲单节拍时长。Step 101, determine the duration of a single beat of the music.

乐曲单节拍时长与曲速有关,例如,曲速是120拍每分钟,那么单节拍时长就是60/120=0.5秒,如果曲速是80拍每分钟,那么单节拍时长就是60/80=0.75秒。因此在不同乐曲间乃至同一首乐曲中,乐曲单节拍时长并不是固定的。但无论乐曲单节拍时长是多少,一旦乐曲创造完成,乐曲中的一个节拍在正常播放时的时长可视为固定的,不会因为演绎者的不同而有太大变化。The duration of a single beat of the music is related to the tempo. For example, if the tempo is 120 beats per minute, then the duration of a single beat is 60/120=0.5 seconds. If the tempo is 80 beats per minute, then the duration of a single beat is 60/80=0.75 Second. Therefore, between different pieces of music or even in the same piece of music, the duration of a single beat of a piece of music is not fixed. But no matter how long the single beat of the music is, once the music is created, the duration of a beat in the music can be regarded as fixed during normal playback, and will not change much due to different performers.

在本发明实施例中,在调整乐曲播放节奏时,不改变乐曲中的节拍数,通过改变单节拍时长来达到调整乐曲播放节奏的目的,因此在本步骤中需要确定乐曲的单节拍时长。例如,假设在《爱我中华》这首歌曲中,“爱我中华”这句歌词中的“爱”字在正常播放时为一个节拍,在调整播放节奏后,“爱”字仍然是一个节拍,但这一节拍的时长发生了变化。如正常播放时,“爱”字对应节拍的时长是0.75秒,经调整后该节拍的时长变为1秒。本领域技术人员应当了解,调整后的乐曲单节拍时长既可以比正常的乐曲单节拍时长要长,也可以比正常的乐曲单节拍时长要短。In the embodiment of the present invention, when adjusting the playing rhythm of the music, the number of beats in the music is not changed, and the purpose of adjusting the playing rhythm of the music is achieved by changing the duration of a single beat. Therefore, in this step, the duration of a single beat of the music needs to be determined. For example, suppose in the song "Love My China", the word "love" in the lyrics of "Love My China" is one beat during normal playback, but after adjusting the playback rhythm, the word "love" is still one beat , but the duration of the beat changes. For example, during normal playback, the duration of the beat corresponding to the word "love" is 0.75 seconds, and after adjustment, the duration of the beat becomes 1 second. Those skilled in the art should understand that the adjusted duration of a single beat of a music piece can be longer or shorter than the duration of a single beat of a normal tune.

调整后的乐曲单节拍时长可通过用户操作获取。用户操作的类型可以有多种形式,如以智能移动终端作为音乐播放设备,则用户连续两次点击智能移动终端屏幕上的某一指定区域之间的间隔时长可作为调整后的乐曲单节拍时长。又如,运行于智能移动终端上的音乐播放软件提供一个交互界面,用户可在交互界面上输入时间长度数值的方式设定调整后的乐曲单节拍时长。再如,通过传感器对用户的身体运动情况进行采集,进而根据采集到的步速、抖腿频率等,设定调整后的乐曲单节拍时长。The adjusted single beat duration of the music can be obtained through user operations. The type of user operation can have various forms. For example, if a smart mobile terminal is used as a music playback device, the interval between two consecutive clicks of a specified area on the screen of the smart mobile terminal by the user can be used as the adjusted single beat duration of the music. . As another example, the music playing software running on the smart mobile terminal provides an interactive interface, and the user can set the adjusted single-beat duration of the music by inputting a time length value on the interactive interface. Another example is to collect the user's body movement through the sensor, and then set the adjusted single beat duration of the music according to the collected pace, leg shaking frequency, etc.

步骤102、确定乐曲播放节奏的调整模式。Step 102, determine the adjustment mode of the playing rhythm of the music.

调整模式决定了在多大范围内调整乐曲播放节奏。在本发明实施例中,调整模式包括:单字调节、单句调节和整首调节。单字调节用于对乐曲中的单个乐曲基本单位的播放节奏进行调节。所述单句调节用于对乐曲中的多个连续的乐曲基本单位的播放节奏进行调节。所述整首调节用于对整首乐曲的播放节奏进行调节。The adjustment mode determines how far to adjust the tempo of the song playback. In the embodiment of the present invention, the adjustment modes include: single-character adjustment, single-sentence adjustment and whole-song adjustment. Single word adjustment is used to adjust the playback rhythm of a single basic unit of music in the music. The single-sentence adjustment is used to adjust the playback rhythm of multiple continuous basic units of music in the music. The whole song adjustment is used to adjust the playing rhythm of the whole song.

以常见的带有歌词的乐曲为例,单字调节是指对乐曲歌词中的一个字(本发明实施例中所描述的字并不局限于中文的字,还可以是外文中的单词)调整播放节奏;单句调节是指对乐曲歌词中的一句话调整播放节奏;整首调节是指对整首乐曲的歌词都调整播放节奏。本领域技术人员应当了解,在本发明的其他实施例中,对于带有歌词的乐曲,还可以有其他类型的调整模式,如单段调节、多段调节等。Taking common music with lyrics as an example, single-character adjustment refers to adjusting and playing a word in the music lyrics (the words described in the embodiments of the present invention are not limited to Chinese words, but can also be words in foreign languages). Rhythm; single-sentence adjustment refers to adjusting the playback rhythm of a sentence in the lyrics of a song; whole song adjustment refers to adjusting the playback rhythm of the lyrics of the entire song. Those skilled in the art should understand that in other embodiments of the present invention, there may also be other types of adjustment modes for music with lyrics, such as single-segment adjustment, multi-segment adjustment, and the like.

本领域技术人员还应当了解,并非所有乐曲都会有对应的歌词,对于只有曲调、没有歌词的乐曲,单字调节的调整模式是对曲调中的单个音符调整播放节奏,单句调整的调整模式是对曲调中的多个有关联的音符调整播放节奏,整首调节是对整个曲调调整播放节奏。Those skilled in the art should also understand that not all melodies will have corresponding lyrics. For melodies with only melodies and no lyrics, the adjustment mode of single-word adjustment is to adjust the playback rhythm to a single note in the melody, and the adjustment mode of single-sentence adjustment is to adjust the rhythm of the melody. Adjust the playing rhythm of multiple associated notes in the song, and the whole song adjustment is to adjust the playing rhythm of the whole tune.

调整模式可通过用户操作获取。用户操作的类型可以有多种形式。如运行于智能移动终端上的音乐播放软件提供一个交互界面,用户可在交互界面上点击相应按键的方式选取某一具体的调整模式。The adjustment mode can be acquired through user operation. The type of user action can take many forms. For example, the music player software running on the smart mobile terminal provides an interactive interface, and the user can click a corresponding button on the interactive interface to select a specific adjustment mode.

又如运行于智能移动终端上的音乐播放软件展示歌词,用户通过在屏幕上的滑动操作选取歌词中的一个字或一句话或所有歌词,根据这一选取结果可得到相应的调整模式。例如,用户选取歌词中的一个字,则意味着用户选取了“单字调节”这一调整模式,用户选取歌词中的一句话,则意味着用户选取了“单句调节”这一调整模式,用户选取一首歌的所有歌词,则意味着用户选取了“整首调节”这一调整模式。本领域技术人员应当了解,对于只有曲调、没有歌词的乐曲,用户可通过对曲调中的音符的选取来得到相应的调整模式。Another example is that the music player software running on the smart mobile terminal displays the lyrics. The user selects a word or a sentence or all the lyrics in the lyrics by sliding on the screen, and the corresponding adjustment mode can be obtained according to the selection result. For example, if the user selects a word in the lyrics, it means that the user has selected the adjustment mode of "single word adjustment", and if the user selects a sentence in the lyrics, it means that the user has selected the adjustment mode of "single sentence adjustment". All the lyrics of a song means that the user has selected the adjustment mode of "whole song adjustment". Those skilled in the art should understand that for a melody with only a melody and no lyrics, the user can obtain a corresponding adjustment mode by selecting notes in the melody.

步骤103、确定乐曲中的调整对象。Step 103, determining the adjustment object in the music.

调整对象决定了需要对乐曲中的哪些内容调整播放节奏。The adjustment object determines which content in the song needs to adjust the playback rhythm.

在前一步骤中确定了调整模式,在本步骤中需要结合调整模式确定调整对象。例如,在前一步骤中,用户确定调整模式为“单字调节”,在确定调整模式后并不清楚对乐曲中哪些内容的播放节奏进行调整,因此需要在本步骤中确定调整对象。The adjustment mode is determined in the previous step, and the adjustment object needs to be determined in combination with the adjustment mode in this step. For example, in the previous step, the user determines that the adjustment mode is "single word adjustment". After determining the adjustment mode, it is not clear which content in the music to adjust the playback rhythm of. Therefore, it is necessary to determine the adjustment object in this step.

调整对象可通过用户操作获取。例如,在之前描述的用户通过在屏幕上的滑动操作选取歌词中的一个字或一句话或所有歌词的例子中,描述了如何根据用户滑动操作所生成的选取结果获得调整模式。实际上,用户的滑动操作同时也完成了对调整对象的选取。如用户选取歌词中的一个字,则意味着用户选取这个字作为调整对象,用户选取歌词中的一句话,则意味着用户选取这句话作为调整对象,用户选取一首歌的所有歌词,则意味着用户选取整首歌作为调整对象。在实际应用中,并不局限于上述描述,可根据实际需要进行调整,如可通过用户在选取的歌词的头部、尾部分别做标记的方式来获取调整对象。本领域技术人员应当了解,还可通过对乐曲中音符的操作来获取一个或多个音符作为调整对象。Adjustment objects can be obtained through user operations. For example, in the example described above where the user selects a word, a sentence, or all the lyrics in the lyrics through a sliding operation on the screen, it is described how to obtain an adjustment mode according to the selection result generated by the user's sliding operation. In fact, the user's sliding operation also completes the selection of the adjustment object. If the user selects a word in the lyrics, it means that the user selects this word as the adjustment object; if the user selects a sentence in the lyrics, it means that the user selects this sentence as the adjustment object; if the user selects all the lyrics of a song, then It means that the user selects the entire song as the adjustment object. In practical applications, it is not limited to the above description, and adjustments can be made according to actual needs. For example, adjustment objects can be acquired by marking the head and tail of selected lyrics by the user. Those skilled in the art should understand that one or more musical notes can also be obtained as an adjustment object by operating the musical notes.

调整对象也可结合调整模式的信息自动生成。例如,在一首乐曲的播放过程中,用户在运行于智能移动终端上的音乐播放软件所提供的交互界面上以点击相应按键的方式选取某一具体调整模式后,将调整模式与目前的播放进度相结合,确定调整对象。如用户选取“单字调节”的调整模式后,可将马上要播放的歌词中的下一个字作为调整对象;如用户选取“单字调节”的调整模式后,可将当前播放的歌词所在的句子作为调整对象;如用户选取“整首调节”的调整模式后,可将当前播放的歌词所在的整首歌曲作为调整对象。在实际应用中,并不局限于上述描述,可根据实际需要进行调整,如用户选取“单字调节”的调整模式后,以当前播放的歌词中的字作为调整对象。本领域技术人员应当了解,将调整模式与目前的播放进度相结合,还可将乐曲中的一个或多个音符作为调整对象。Adjustment objects can also be automatically generated by combining the information of the adjustment mode. For example, during the playback of a piece of music, the user selects a specific adjustment mode by clicking the corresponding button on the interactive interface provided by the music playback software running on the smart mobile terminal, and then compares the adjustment mode with the current playback mode. The progress is combined to determine the adjustment object. If the user selects the adjustment mode of "single character adjustment", the next character in the lyrics to be played immediately can be used as the adjustment object; if the user selects the adjustment mode of "single character adjustment", the sentence where the lyrics currently playing can be used as Adjustment object; if the user selects the adjustment mode of "whole song adjustment", the entire song in which the currently playing lyrics is located can be used as the adjustment object. In practical applications, it is not limited to the above description, and adjustments can be made according to actual needs. For example, after the user selects the adjustment mode of "Single Character Adjustment", the characters in the currently playing lyrics are used as adjustment objects. Those skilled in the art should understand that by combining the adjustment mode with the current playback progress, one or more notes in the music can also be used as adjustment objects.

步骤104、根据乐曲单节拍时长和调整模式,调整所述调整对象的播放节奏。Step 104: Adjust the playback rhythm of the adjustment object according to the single beat duration of the music and the adjustment mode.

在确定乐曲单节拍时长、调整模式和调整对象后,可按照调整模式,将调整对象以调整后的乐曲单节拍时长进行播放。After determining the single-beat duration of the music, the adjustment mode and the adjustment object, the adjustment object can be played with the adjusted single-beat duration of the music according to the adjustment mode.

本发明实施例提供的控制乐曲播放节奏的方法通过设置乐曲单节拍时长、调整模式和调整对象这三个要素,能够对乐曲的播放节奏进行精准地控制,使得听众不再是音乐的被动接听者,增强了听众与音乐间的交互性。The method for controlling the playing rhythm of the music provided by the embodiment of the present invention can precisely control the playing rhythm of the music by setting the three elements of the single beat duration of the music, the adjustment mode and the adjustment object, so that the audience is no longer a passive listener of the music , enhancing the interaction between the listener and the music.

基于上述任一实施例,图2为本发明实施例提供的控制乐曲播放节奏的装置的示意图,如图2所示,本发明实施例提供的控制乐曲播放节奏的装置包括:Based on any of the above-mentioned embodiments, Fig. 2 is a schematic diagram of a device for controlling the playing rhythm of a music provided by an embodiment of the present invention. As shown in Fig. 2 , the device for controlling the playing rhythm of a music provided by an embodiment of the present invention includes:

乐曲单节拍时长确定模块201,用于确定乐曲单节拍时长。The single-beat duration determination module 201 is used to determine the single-beat duration of the music.

乐曲单节拍时长可通过用户操作确定。用户操作的类型可以有多种形式,如以智能移动终端作为音乐播放设备,则用户连续两次点击智能移动终端屏幕上的某一指定区域之间的间隔时长可作为调整后的乐曲单节拍时长。又如,运行于智能移动终端上的音乐播放软件提供一个交互界面,用户可在交互界面上输入时间长度数值的方式设定调整后的乐曲单节拍时长。再如,通过传感器对用户的身体运动情况进行采集,进而根据采集到的步速、抖腿频率等,设定调整后的乐曲单节拍时长。The duration of a single beat of the music can be determined through user operations. The type of user operation can have various forms. For example, if a smart mobile terminal is used as a music playback device, the interval between two consecutive clicks of a specified area on the screen of the smart mobile terminal by the user can be used as the adjusted single beat duration of the music. . As another example, the music playing software running on the smart mobile terminal provides an interactive interface, and the user can set the adjusted single-beat duration of the music by inputting a time length value on the interactive interface. Another example is to collect the user's body movement through the sensor, and then set the adjusted single beat duration of the music according to the collected pace, leg shaking frequency, etc.

调整模式确定模块202,用于确定乐曲播放节奏的调整模式。The adjustment mode determination module 202 is used to determine the adjustment mode of the playing rhythm of the music.

调整模式决定了在多大范围内调整乐曲播放节奏。在本发明实施例中,调整模式包括:单字调节、单句调节和整首调节。在本发明的其他实施例中,还可以有其他类型的调整模式,如单段调节、多段调节等。The adjustment mode determines how far to adjust the tempo of the song playback. In the embodiment of the present invention, the adjustment modes include: single-character adjustment, single-sentence adjustment and whole-song adjustment. In other embodiments of the present invention, there may also be other types of adjustment modes, such as single-stage adjustment, multi-stage adjustment, and the like.

调整模式可通过用户操作获取。用户操作的类型可以有多种形式。如运行于智能移动终端上的音乐播放软件提供一个交互界面,用户可在交互界面上点击相应按键的方式选取某一具体的调整模式。又如运行于智能移动终端上的音乐播放软件展示歌词,用户通过在屏幕上的滑动操作选取歌词中的一个字或一句话或所有歌词,根据这一选取结果可得到相应的调整模式。The adjustment mode can be acquired through user operation. The type of user action can take many forms. For example, the music player software running on the smart mobile terminal provides an interactive interface, and the user can click a corresponding button on the interactive interface to select a specific adjustment mode. Another example is that the music player software running on the smart mobile terminal displays the lyrics. The user selects a word or a sentence or all the lyrics in the lyrics by sliding on the screen, and the corresponding adjustment mode can be obtained according to the selection result.

调整对象确定模块203,用于确定乐曲中的调整对象。The adjustment object determining module 203 is configured to determine the adjustment object in the music.

调整对象决定了需要对乐曲中的哪些内容调整播放节奏。The adjustment object determines which content in the song needs to adjust the playback rhythm.

调整对象可通过用户操作获取,也可结合调整模式的信息自动生成。The adjustment object can be obtained through user operation, and can also be automatically generated by combining the information of the adjustment mode.

播放节奏调整模块204,用于根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏;其中,The playback rhythm adjustment module 204 is used to adjust the playback rhythm of the adjustment object according to the single beat duration of the music and the adjustment mode; wherein,

所述调整模式反映了乐曲中需要调整播放节奏的内容的范围;所述调整对象反映了乐曲中需要调整播放节奏的内容。The adjustment mode reflects the scope of the content in the music that needs to adjust the playing rhythm; the adjustment object reflects the content in the music that needs to adjust the playing rhythm.

本发明实施例提供的控制乐曲播放节奏的装置通过设置乐曲单节拍时长、调整模式和调整对象这三个要素,能够对乐曲的播放节奏进行精准地控制,使得听众不再是音乐的被动接听者,增强了听众与音乐间的交互性。The device for controlling the playing rhythm of the music provided by the embodiment of the present invention can precisely control the playing rhythm of the music by setting the three elements of the single beat duration of the music, the adjustment mode and the adjustment object, so that the audience is no longer a passive listener of the music , enhancing the interaction between the listener and the music.

为了便于理解,下面结合一个具体的实例,对本发明实施例提供的控制乐曲播放节奏的方法做进一步的描述。For ease of understanding, the method for controlling the playing rhythm of music provided by the embodiment of the present invention will be further described below in conjunction with a specific example.

图3为本发明实施例提供的控制乐曲播放节奏的方法在一个具体实例中实现时的流程图,如图3所示,该方法包括:Fig. 3 is the flow chart when the method for controlling the music playing rhythm provided by the embodiment of the present invention is realized in a specific example, as shown in Fig. 3, the method includes:

步骤301、在使用音乐APP播放音乐的过程中,用户通过特定操作音乐调节指令,以使得音乐APP响应于该调节指令唤起音乐调节界面。Step 301 , in the process of using the music APP to play music, the user performs a specific operation of a music adjustment instruction, so that the music APP invokes a music adjustment interface in response to the adjustment instruction.

在用户使用音乐APP听歌的过程中,用户可以通过以下两种方式触发音乐APP唤起音乐调节界面,具体方式如下:During the process of listening to music in the music APP, the user can trigger the music APP to evoke the music adjustment interface in the following two ways. The specific methods are as follows:

方式1、用户可以对音乐APP播放界面上的特定按键进行点击,以触发“音乐调节指令”,进而音乐APP响应于该“音乐调节指令”,唤起音乐调节界面。Method 1. The user can click a specific button on the music APP playback interface to trigger a "music adjustment instruction", and then the music APP responds to the "music adjustment instruction" to evoke the music adjustment interface.

例如,一音乐APP的音乐播放界面上设置有虚拟按键“节奏调节”,当用户点击该虚拟按键,音乐APP会将音乐播放界面切换为“音乐调节界面”。音乐调节界面上显示有“节奏采集区”,在该区域上的点击操作不会触发相应的音乐控制指令(比如切歌、暂停以及收藏等等),且为了避免该区域对音乐APP操作界面的遮挡,用户可以根据需要对该区域的实现位置可调整,同时该“节奏采集区”为半透明区域,该区域同时也不会对歌词造成遮挡。For example, a virtual button "rhythm adjustment" is set on the music playback interface of a music APP. When the user clicks on the virtual button, the music APP will switch the music playback interface to a "music adjustment interface". There is a "rhythm collection area" displayed on the music adjustment interface. Clicking on this area will not trigger the corresponding music control commands (such as song switching, pausing, and favorites, etc.), and in order to avoid this area from affecting the music APP operation interface For occlusion, users can adjust the position of this area according to their needs. At the same time, the "rhythm collection area" is a translucent area, and this area will not block the lyrics at the same time.

方式2、用户可以通过针对歌词的特定操作(比如长按操作或者滑动操作)触发音乐调节指令,进而音乐APP响应于该“音乐调节指令”,唤起音乐调节界面。Method 2. The user can trigger a music adjustment instruction through a specific operation on the lyrics (such as a long press operation or a sliding operation), and then the music APP responds to the "music adjustment instruction" to evoke the music adjustment interface.

用户可以通过长按歌词中的某个字,以触发针对单个歌词的音乐调节指令,在这种情况下音乐APP可以唤起音乐调节界面,进而后续可以根据在音乐调节界面节奏采集区采集到的节奏对当前歌曲的每个字的节奏进行调节。The user can long press a word in the lyrics to trigger a music adjustment command for a single lyrics. In this case, the music APP can invoke the music adjustment interface, and then follow-up can be based on the rhythm collected in the rhythm collection area of the music adjustment interface. Adjust the rhythm of each word of the current song.

或者,用户可以通过滑动操作在歌词上选中一句歌词,以触发针对单个歌词的音乐调节指令,则在这种情况下音乐APP可以唤起音乐调节界面,进而后续可以根据在音乐调节界面节奏采集区采集到的节奏对当前歌曲的各句歌词的节奏进行调节。Alternatively, the user can select a lyric on the lyric by sliding to trigger a music adjustment instruction for a single lyric. In this case, the music APP can invoke the music adjustment interface, and then can be collected according to the rhythm collection area of the music adjustment interface. The received rhythm adjusts the rhythm of each sentence of the current song.

步骤302、音乐APP通过节奏采集区对用户点击该区域的节奏进行采集,以确定用户所希望的乐曲单节拍时长。Step 302, the music APP collects the rhythm of the user's click on the area through the rhythm collection area, so as to determine the duration of a single beat of the music desired by the user.

当通过执行步骤301,用户通过特定操作唤起音乐APP的音乐调节界面后,可以按照自己的喜好,通过手指敲击该节奏采集区域,以使得音乐APP对用户手指的点击频率进行采集,由采集得到的点击频率得到乐曲单节拍时长。After executing step 301, the user invokes the music adjustment interface of the music APP through a specific operation, and can tap the rhythm collection area with his fingers according to his own preferences, so that the music APP collects the click frequency of the user's fingers, and obtains click frequency to obtain the single beat duration of the music.

具体地,音乐APP可以根据检测到的用户连续两次点击采集区域之间的间隔时长,确定用户的点击频率。Specifically, the music APP may determine the user's click frequency according to the detected interval between two consecutive clicks of the collection area by the user.

在日常使用中,用户在使用音乐APP听歌时,通常会将音乐APP最小化至后台播放,而在该场景下用户可能同样希望可以根据自己的喜好对乐曲播放节奏进行调整。In daily use, when users use the music APP to listen to songs, they usually minimize the music APP to play in the background. In this scenario, the user may also hope to adjust the rhythm of the music playback according to their preferences.

为了可以达到上述目的,音乐APP除了可以通过采集到的手指点击节奏采集区域的频率来确定调节节奏外,当用户选择开启音乐节奏调节模式(即通过执行步骤301唤起音乐调节界面)并且将音乐APP切换至后台播放后,则此时音乐APP还可以通过终端传感器,对用户的身体运动情况进行采集,进而根据采集到的步速、抖腿频率等,确定乐曲单节拍时长。In order to achieve the above purpose, in addition to determining the rhythm of the music APP through the collected frequency of finger clicks on the rhythm collection area, when the user chooses to open the music rhythm adjustment mode (that is, the music adjustment interface is invoked by executing step 301) and the music APP After switching to background playback, the music APP can also collect the user's body movement through the terminal sensor, and then determine the duration of the single beat of the music based on the collected pace, leg shaking frequency, etc.

步骤303、音乐APP通过执行步骤302采集到的乐曲单节拍时长,按照用户所选择的调节模式,对乐曲中的调整对象的播放节奏进行调节。Step 303 , the music APP adjusts the playing rhythm of the adjustment object in the music according to the adjustment mode selected by the user by executing the duration of the single beat of the music collected in step 302 .

采用本方案所提供的方法,用户在通过执行步骤301唤起音乐调节界面后,可以一并对歌曲的调节模式和调节对象进行选择。Using the method provided by this solution, after the user invokes the music adjustment interface by executing step 301, he can also select the adjustment mode and adjustment object of the song.

其中,当采用步骤301中的方式2唤起音乐调节界面后,用户的特定操作同时也对应了所期望的调节模式和调节对象。例如,当用户是通过长按歌词中某字唤起音乐调节界面的,则在这种情况下对应的调节模式即为“单字调节”,长按的字就是调节对象;而当用户是通过滑动操作选择某句歌词以唤起音乐调节界面的,则在这种情况下对应的调节模式即为“单句调节”,滑动操作所选择的某句歌词就是调节对象。Wherein, after the method 2 in step 301 is used to invoke the music adjustment interface, the user's specific operation also corresponds to the desired adjustment mode and adjustment object. For example, when the user invokes the music adjustment interface by long-pressing a word in the lyrics, the corresponding adjustment mode in this case is "single-word adjustment", and the long-pressed word is the adjustment object; If a certain lyric is selected to evoke the music adjustment interface, the corresponding adjustment mode in this case is "single-sentence adjustment", and a certain lyric selected by the sliding operation is the adjustment object.

当用户采用步骤301中的方式1唤起音乐调节界面后,音乐APP会进一步在该界面展示调节模式选择按键,用户可以通过点击选择自己希望的调节模式。在确定调节模式后,将乐曲的播放进度与调节模式相结合,可确定调节对象。After the user uses method 1 in step 301 to invoke the music adjustment interface, the music APP will further display an adjustment mode selection button on the interface, and the user can click to select the adjustment mode he wants. After the adjustment mode is determined, the adjustment object can be determined by combining the playing progress of the music with the adjustment mode.

以用户选择“单字调节”模式为例,音乐APP具体可以将用户连续两次点击屏幕之间时间间隔作为一拍的持续时间,则假设音乐APP在播放“爱我中华”这句歌词时,检测到用户在播放“爱”的时候(即当前的播放进度)在节奏采集区点击了一下屏幕,则音乐播放器将增加“爱”字的持续节拍,直到再次监测到用户点击屏幕,从而实现了拉长歌词的目的。Taking the user's choice of "single word adjustment" mode as an example, the music app can specifically use the time interval between the user's two consecutive taps on the screen as the duration of a beat. Suppose the music app is playing the lyrics of "Love My China" and detects When the user clicks the screen in the rhythm collection area when playing "Love" (that is, the current playback progress), the music player will increase the continuous beat of the word "Love" until the user clicks the screen again, thus realizing The purpose of stretching the lyrics.

而以用户选择“单句调节”模式为例,则音乐APP可以根据用户在节奏采集区的点击频率,确定用户希望调节的节拍,并按照该节拍对当前正在播放歌曲的那句歌词的节奏进行调节。Taking the user's choice of "Single Sentence Adjustment" mode as an example, the music APP can determine the rhythm that the user wants to adjust according to the user's click frequency in the rhythm collection area, and adjust the rhythm of the lyrics of the currently playing song according to this rhythm .

以上是对基于本发明实施例提供的控制乐曲播放节奏的方法所实现的一个具体实例的描述。The above is a description of a specific example implemented based on the method for controlling the playing rhythm of music provided by the embodiment of the present invention.

图4示例了一种电子设备的实体结构示意图,如图4所示,该电子设备可以包括:处理器(processor)410、通信接口(Communications Interface)420、存储器(memory)430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。处理器410可以调用存储器430中的逻辑指令,以执行如下方法:确定乐曲单节拍时长;确定乐曲播放节奏的调整模式;确定乐曲中的调整对象;根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏。FIG. 4 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 4, the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, Wherein, the processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can call the logic instructions in the memory 430 to perform the following methods: determine the duration of a single beat of the music; determine the adjustment mode of the playing rhythm of the music; determine the adjustment object in the music; according to the duration of the single beat of the music and the adjustment mode to adjust the playback rhythm of the adjustment object.

需要说明的是,本实施例中的电子设备在具体实现时可以为服务器,也可以为PC机,还可以为其他设备,只要其结构中包括如图4所示的处理器410、通信接口420、存储器430和通信总线440,其中处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信,且处理器410可以调用存储器430中的逻辑指令以执行上述方法即可。本实施例不对电子设备的具体实现形式进行限定。It should be noted that the electronic device in this embodiment may be a server, a PC, or other devices during specific implementation, as long as its structure includes a processor 410, a communication interface 420 as shown in FIG. 4 , the memory 430 and the communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440, and the processor 410 can call the logic instructions in the memory 430 to execute the above method. This embodiment does not limit the specific implementation form of the electronic device.

此外,上述的存储器430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above logic instructions in the memory 430 may be implemented in the form of software function units and be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

进一步地,本发明实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:确定乐曲单节拍时长;确定乐曲播放节奏的调整模式;确定乐曲中的调整对象;根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏。Furthermore, the embodiment of the present invention discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by the computer When executing, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: determining the duration of a single beat of the music; determining the adjustment mode of the playing rhythm of the music; determining the adjustment object in the music; according to the duration of the single beat of the music and the Adjustment mode, adjust the playback rhythm of the adjustment object.

另一方面,本发明实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的方法,例如包括:确定乐曲单节拍时长;确定乐曲播放节奏的调整模式;确定乐曲中的调整对象;根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏。On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the methods provided by the above-mentioned embodiments, for example, including: Determine the single beat duration of the music; determine the adjustment mode of the playing rhythm of the music; determine the adjustment object in the music; adjust the playback rhythm of the adjustment object according to the single beat duration of the music and the adjustment mode.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (8)

1.一种控制乐曲播放节奏的方法,其特征在于,包括:1. A method for controlling the rhythm of music playback, characterized in that, comprising: 确定乐曲单节拍时长;Determine the single beat duration of the music; 确定乐曲播放节奏的调整模式;Determines the adjustment mode of the rhythm of the music playback; 确定乐曲中的调整对象;Determine the adjustment object in the music; 根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏;其中,According to the single beat duration of the music and the adjustment mode, adjust the playback rhythm of the adjustment object; wherein, 所述调整模式反映了乐曲中需要调整播放节奏的内容的范围;所述调整对象反映了乐曲中需要调整播放节奏的内容;The adjustment mode reflects the scope of the content in the music that needs to adjust the playing rhythm; the adjustment object reflects the content in the music that needs to adjust the playing rhythm; 所述确定乐曲中的调整对象包括:The adjustment objects in the determined music include: 根据乐曲的播放进度与所述调整模式,确定调整对象;Determine the adjustment object according to the playing progress of the music and the adjustment mode; 所述调整模式包括:单字调节、单句调节和整首调节中的至少一种;其中,The adjustment mode includes: at least one of single-character adjustment, single-sentence adjustment and whole-song adjustment; wherein, 所述单字调节用于对乐曲中的单个乐曲基本单位的播放节奏进行调节,所述单句调节用于对乐曲中的多个连续的乐曲基本单位的播放节奏进行调节,所述整首调节用于对整首乐曲的播放节奏进行调节;其中,所述乐曲基本单位为字或音符。The single word adjustment is used to adjust the playback rhythm of a single basic unit of music in the music, the single sentence adjustment is used to adjust the playback rhythm of multiple continuous basic units of music in the music, and the whole song adjustment is used for Adjust the playing rhythm of the whole piece of music; wherein, the basic unit of the piece of music is a word or a note. 2.根据权利要求1所述的控制乐曲播放节奏的方法,其特征在于,所述确定乐曲单节拍时长包括:2. the method for controlling music playing rhythm according to claim 1, is characterized in that, described determining the single beat duration of music comprises: 采集用户两个指定操作之间的间隔时长;Collect the interval between two user-specified operations; 将所采集的间隔时长作为乐曲单节拍时长。Use the collected interval duration as the single beat duration of the music. 3.根据权利要求2所述的控制乐曲播放节奏的方法,其特征在于,所述指定操作是手指在移动终端屏幕上的操作。3. The method for controlling the playing rhythm of music according to claim 2, wherein the specified operation is an operation of a finger on a screen of a mobile terminal. 4.根据权利要求1所述的控制乐曲播放节奏的方法,其特征在于,所述确定乐曲播放节奏的调整模式包括:4. the method for controlling music playback rhythm according to claim 1, is characterized in that, the adjustment mode of described determination music playback rhythm comprises: 选取乐曲内容的一部分或全部作为选取结果;Select part or all of the music content as the selection result; 根据所述选取结果确定对应的调整模式。A corresponding adjustment mode is determined according to the selection result. 5.根据权利要求1所述的控制乐曲播放节奏的方法,其特征在于,所述确定乐曲播放节奏的调整模式包括:5. the method for controlling music playback rhythm according to claim 1, is characterized in that, the adjustment mode of described determination music playback rhythm comprises: 通过对预先设定的多个调整模式的选择确定乐曲的调整模式。The adjustment mode of the music is determined by selecting a plurality of preset adjustment modes. 6.一种控制乐曲播放节奏的装置,其特征在于,包括:6. A device for controlling the playing rhythm of music, characterized in that it comprises: 乐曲单节拍时长确定模块,用于确定乐曲单节拍时长;A music single beat duration determination module is used to determine the music single beat duration; 调整模式确定模块,用于确定乐曲播放节奏的调整模式;An adjustment mode determination module, which is used to determine the adjustment mode of the music playback rhythm; 调整对象确定模块,用于确定乐曲中的调整对象;Adjustment object determination module, used to determine the adjustment object in the music; 播放节奏调整模块,用于根据所述乐曲单节拍时长和所述调整模式,调整所述调整对象的播放节奏;其中,The playing rhythm adjustment module is used to adjust the playing rhythm of the adjustment object according to the single beat duration of the music and the adjustment mode; wherein, 所述调整模式反映了乐曲中需要调整播放节奏的内容的范围;所述调整对象反映了乐曲中需要调整播放节奏的内容;The adjustment mode reflects the scope of the content in the music that needs to adjust the playing rhythm; the adjustment object reflects the content in the music that needs to adjust the playing rhythm; 所述确定乐曲中的调整对象包括:The adjustment objects in the determined music include: 根据乐曲的播放进度与所述调整模式,确定调整对象;Determine the adjustment object according to the playing progress of the music and the adjustment mode; 所述调整模式包括:单字调节、单句调节和整首调节中的至少一种;其中,The adjustment mode includes: at least one of single-character adjustment, single-sentence adjustment and whole-song adjustment; wherein, 所述单字调节用于对乐曲中的单个乐曲基本单位的播放节奏进行调节,所述单句调节用于对乐曲中的多个连续的乐曲基本单位的播放节奏进行调节,所述整首调节用于对整首乐曲的播放节奏进行调节;其中,所述乐曲基本单位为字或音符。The single word adjustment is used to adjust the playback rhythm of a single basic unit of music in the music, the single sentence adjustment is used to adjust the playback rhythm of multiple continuous basic units of music in the music, and the whole song adjustment is used for Adjust the playing rhythm of the whole piece of music; wherein, the basic unit of the piece of music is a word or a note. 7.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至5任一项所述控制乐曲播放节奏的方法的步骤。7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor implements any of claims 1 to 5 when executing the program. The steps of the method for controlling the playing rhythm of the music described in item. 8.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1至5任一项所述控制乐曲播放节奏的方法的步骤。8. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, it realizes the method for controlling the playing rhythm of a music according to any one of claims 1 to 5 A step of.
CN202010260995.0A 2020-04-03 2020-04-03 Method, device, electronic equipment and storage medium for controlling music playing rhythm Active CN111506765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010260995.0A CN111506765B (en) 2020-04-03 2020-04-03 Method, device, electronic equipment and storage medium for controlling music playing rhythm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010260995.0A CN111506765B (en) 2020-04-03 2020-04-03 Method, device, electronic equipment and storage medium for controlling music playing rhythm

Publications (2)

Publication Number Publication Date
CN111506765A CN111506765A (en) 2020-08-07
CN111506765B true CN111506765B (en) 2023-09-05

Family

ID=71871831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010260995.0A Active CN111506765B (en) 2020-04-03 2020-04-03 Method, device, electronic equipment and storage medium for controlling music playing rhythm

Country Status (1)

Country Link
CN (1) CN111506765B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112735361A (en) * 2020-12-29 2021-04-30 玖月音乐科技(北京)有限公司 Intelligent playing method and system for electronic keyboard musical instrument

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514158A (en) * 2012-06-15 2014-01-15 国基电子(上海)有限公司 Music file searching method and multimedia playing device
CN104102659A (en) * 2013-04-09 2014-10-15 华为技术有限公司 Music searching method and terminal
CN105118517A (en) * 2015-06-29 2015-12-02 努比亚技术有限公司 Device and method for adjusting music rhythm
CN107004035A (en) * 2017-03-10 2017-08-01 万魔声学科技有限公司 Method for playing music, device and music player devices
CN107871012A (en) * 2017-11-22 2018-04-03 广州酷狗计算机科技有限公司 Audio-frequency processing method, device, storage medium and terminal
CN109471952A (en) * 2018-09-29 2019-03-15 上海与德通讯技术有限公司 Melody playback method, electronic equipment and computer readable storage medium
US10387489B1 (en) * 2016-01-08 2019-08-20 Pandora Media, Inc. Selecting songs with a desired tempo

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7521623B2 (en) * 2004-11-24 2009-04-21 Apple Inc. Music synchronization arrangement
JP5967564B2 (en) * 2010-04-17 2016-08-10 Nl技研株式会社 Electronic music box
US9570059B2 (en) * 2015-05-19 2017-02-14 Spotify Ab Cadence-based selection, playback, and transition between song versions

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514158A (en) * 2012-06-15 2014-01-15 国基电子(上海)有限公司 Music file searching method and multimedia playing device
CN104102659A (en) * 2013-04-09 2014-10-15 华为技术有限公司 Music searching method and terminal
CN105118517A (en) * 2015-06-29 2015-12-02 努比亚技术有限公司 Device and method for adjusting music rhythm
US10387489B1 (en) * 2016-01-08 2019-08-20 Pandora Media, Inc. Selecting songs with a desired tempo
CN107004035A (en) * 2017-03-10 2017-08-01 万魔声学科技有限公司 Method for playing music, device and music player devices
CN107871012A (en) * 2017-11-22 2018-04-03 广州酷狗计算机科技有限公司 Audio-frequency processing method, device, storage medium and terminal
CN109471952A (en) * 2018-09-29 2019-03-15 上海与德通讯技术有限公司 Melody playback method, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
屈玉贵等.计算机音乐节奏设计工具.《计算机应用》.1997,第17卷(第5期),80-82. *

Also Published As

Publication number Publication date
CN111506765A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
US10049675B2 (en) User profiling for voice input processing
US10955984B2 (en) Step sequencer for a virtual instrument
US10468004B2 (en) Information processing method, terminal device and computer storage medium
US20170068507A1 (en) User terminal apparatus, system, and method for controlling the same
US20020018074A1 (en) System for browsing a collection of information units
US10799795B1 (en) Real-time audio generation for electronic games based on personalized music preferences
CN107766561A (en) Method, device, storage medium and terminal equipment for music recommendation
EP2760014A1 (en) Method for making audio file and terminal device
CN107908701A (en) Method, device, storage medium and terminal equipment for music recommendation
KR20090085470A (en) Method of providing touch WI for detecting a plurality of touch methods on an item or a desktop and a multimedia device using the same
US11233895B2 (en) Automatic wallpaper setting method, terminal device, and graphical user interface
CN112883223B (en) Audio display method and device, electronic equipment and computer storage medium
CN108319413B (en) A kind of music playing method, device and storage medium
US20200162769A1 (en) Identifying media content for simultaneous playback
CN110430326B (en) Ring editing method and device, mobile terminal and storage medium
CN112269898A (en) Background music obtaining method and device, electronic equipment and readable storage medium
US20200410967A1 (en) Method for displaying triggered by audio, computer apparatus and storage medium
WO2017020593A1 (en) Input method and apparatus
CN108829253B (en) Method and device for playing simulated music conductor
US20140122606A1 (en) Information processing device, information processing method, and program
CN111506765B (en) Method, device, electronic equipment and storage medium for controlling music playing rhythm
CN110727411A (en) Audio signal processing method and device, storage medium and terminal
CN107731249B (en) An audio file production method and mobile terminal
CN101017695A (en) Apparatus for playing audio file and method for navigating the audio file using the same
US9508329B2 (en) Method for producing audio file and terminal device

Legal Events

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