CN105589934A - Song adding method and device - Google Patents
Song adding method and device Download PDFInfo
- Publication number
- CN105589934A CN105589934A CN201510918549.3A CN201510918549A CN105589934A CN 105589934 A CN105589934 A CN 105589934A CN 201510918549 A CN201510918549 A CN 201510918549A CN 105589934 A CN105589934 A CN 105589934A
- Authority
- CN
- China
- Prior art keywords
- song
- queue
- songs
- played
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/638—Presentation of query results
- G06F16/639—Presentation of query results using playlists
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/68—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/683—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/685—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using automatically derived transcript of audio data, e.g. lyrics
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Library & Information Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及应用开发技术领域,具体涉及一种歌曲添加方法及装置。The invention relates to the technical field of application development, in particular to a song adding method and device.
背景技术Background technique
对于智能手机上的大多媒体播放器来说,当想添加歌单中的某首歌曲到当前播放队列时,常采用的方法是,在每个歌曲的最右边(或其他位置)都有一个操作按钮,点击该操作按钮后,弹出一个菜单,在菜单中可以选择添加该歌曲到当前播放队列,如QQMusic。For large multimedia players on smart phones, when you want to add a certain song in the song list to the current play queue, the usual method is to have an operation on the far right (or other position) of each song button, after clicking the operation button, a menu will pop up, in which you can choose to add the song to the current play queue, such as QQMusic.
本发明的发明人在研究过程中发现,上述在播放队列中添加歌曲的方法操作复杂,功能单一,急需更为便捷的曲目添加方法来满足人们的日常应用需求。The inventors of the present invention found in the research process that the above method of adding songs to the playing queue is complex in operation and single in function, and there is an urgent need for a more convenient method of adding songs to meet people's daily application needs.
发明内容Contents of the invention
本发明实施例提供了一种歌曲添加方法及装置,以期提升终端设备歌曲添加的便捷性。Embodiments of the present invention provide a method and device for adding songs, in order to improve the convenience of adding songs on a terminal device.
本发明实施例第一方面提供一种歌曲添加方法,包括:The first aspect of the embodiment of the present invention provides a method for adding songs, including:
终端设备检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置;The terminal device detects the start position and end position of the touch and slide operation on the song list interface of the terminal device;
其中,歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,歌词显示控件关联终端设备的歌曲播放队列;Wherein, the song list interface includes a lyrics display control and a track identification of at least one song, and the lyrics display control is associated with a song playback queue of the terminal device;
当起始位置位于曲目标识上,且终止位置位于歌词显示控件上时,所述终端设备在歌曲播放队列中添加起始位置所处的曲目标识对应的歌曲。When the start position is located on the track identification and the end position is located on the lyrics display control, the terminal device adds a song corresponding to the track identification where the start position is located in the song playing queue.
可以看出,上述终端设备首先检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述终端设备的歌曲播放队列,其次,当所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。可见,终端设备能够根据检测到的针对曲目标识和歌词显示控件的触控滑动操作,在歌曲播放队列中快速添加曲目标识对应的歌曲,有利于提升终端设备歌曲添加的便捷性。It can be seen that the above-mentioned terminal device first detects the start position and the end position of the touch sliding operation for the song list interface of the terminal device. The song list interface includes a lyrics display control and a track identification of at least one song, and the lyrics The display control is associated with the song play queue of the terminal device, and secondly, when the start position is located on the track identification and the end position is located on the lyrics display control, the terminal device is in the song play queue Add the song corresponding to the track identifier where the starting position is located. It can be seen that the terminal device can quickly add the song corresponding to the track identification in the song playback queue according to the detected touch and slide operation on the track identification and the lyrics display control, which is conducive to improving the convenience of adding songs on the terminal device.
本发明实施例第一方面第一种可能的实现方式中,歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,歌词显示控件包括与已播放队列相对应的第一控件区域,终止位置位于歌词显示控件的第一控件区域;In the first possible implementation of the first aspect of the embodiment of the present invention, the song playing queue includes the played queue, the queue to be played, and the track being played, the lyrics display control includes a first control area corresponding to the played queue, and the end position Located in the first control area of the lyrics display control;
所述终端设备在歌曲播放队列中添加起始位置所处的曲目标识对应的歌曲,包括:The terminal device adds the song corresponding to the track identification where the starting position is located in the song playing queue, including:
所述终端设备在歌曲播放队列中的已播放队列中添加起始位置所处的曲目标识对应的歌曲。The terminal device adds the song corresponding to the track identification at the starting position to the already played queue in the song playing queue.
结合本发明实施例第一方面第一种可能的实现方式,在本发明实施例第一方面第二种可能的实现方式中,在歌曲播放队列中的已播放队列中添加起始位置所处的曲目标识对应的歌曲,包括:In combination with the first possible implementation of the first aspect of the embodiment of the present invention, in the second possible implementation of the first aspect of the embodiment of the present invention, add the song at the starting position to the played queue in the song playing queue. Songs corresponding to track identification, including:
所述终端设备根据起始位置的横坐标和终止位置的横坐标计算触控滑动操作的横坐标滑动长度;The terminal device calculates the abscissa sliding length of the touch sliding operation according to the abscissa of the start position and the abscissa of the end position;
所述终端设备根据预存的横坐标滑动长度与插入位置之间的映射关系,以及计算的横坐标滑动长度,确定横坐标滑动长度对应的插入位置;The terminal device determines the insertion position corresponding to the abscissa sliding length according to the pre-stored mapping relationship between the abscissa sliding length and the insertion position, and the calculated abscissa sliding length;
所述终端设备基于插入位置在已播放队列中插入起始位置所处的曲目标识对应的歌曲。Based on the insertion position, the terminal device identifies the corresponding song in the played queue at the track where the insertion start position is located.
其中,所述插入位置是指在已播放队列中插入所述起始位置对应的歌曲的具体位置,如假设已播放队列包括十首歌曲,则对应插入位置包括十个插入位置,如插入位置可以是第5个、第6个等位置,所述预存的横坐标滑动长度与插入位置之间的映射关系具体可以是k=abs(x1-x0)/T,其中k表示歌曲的插入位置为已播放队列的第k个插入位置,x1为终止位置的横坐标,x0为起始位置的横坐标,abs表示取绝对值,/表示取整运算,T为预设的单个插入位置所对应的长度值,例如T=200像素,即表示每移动200像素,对应变更一个插入位置。Wherein, the insertion position refers to the specific position where the song corresponding to the starting position is inserted in the played queue. For example, if the played queue includes ten songs, the corresponding insertion position includes ten insertion positions. For example, the insertion position can be It is the 5th, 6th and other positions, and the mapping relationship between the pre-stored abscissa sliding length and the insertion position can specifically be k=abs(x1-x0)/T, where k indicates that the insertion position of the song is already The kth insertion position of the play queue, x1 is the abscissa of the end position, x0 is the abscissa of the start position, abs means the absolute value, / means the rounding operation, T is the length corresponding to the preset single insertion position A value, such as T=200 pixels, means that every time 200 pixels is moved, an insertion position is correspondingly changed.
进一步地,所述终端设备在检测到所述终止位置位于所述歌词显示控件上,并确定横坐标滑动长度对应的插入位置时,可以输出包括所述插入位置信息的提示消息,如在歌单界面叠加展示包括插入位置信息的提示框,从而引导用户及时了解歌曲插入位置。Further, when the terminal device detects that the termination position is located on the lyrics display control and determines the insertion position corresponding to the sliding length of the abscissa, it may output a prompt message including the insertion position information, such as in the song list The interface superimposes and displays a prompt box including the insertion position information, so as to guide the user to know the insertion position of the song in time.
本发明实施例第一方面第三种可能的实现方式中,歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,歌词显示控件包括与待播放队列相对应的第二控件区域,终止位置位于歌词显示控件的第二控件区域;In the third possible implementation of the first aspect of the embodiment of the present invention, the song playing queue includes the played queue, the queue to be played, and the track being played, the lyrics display control includes a second control area corresponding to the queue to be played, and the end position Located in the second control area of the lyrics display control;
所述终端设备在歌曲播放队列中添加起始位置所处的曲目标识对应的歌曲,包括:The terminal device adds the song corresponding to the track identification where the starting position is located in the song playing queue, including:
所述终端设备在歌曲播放队列中的待播放队列中添加起始位置所处的曲目标识对应的歌曲。The terminal device adds the song corresponding to the track identification at the start position to the queue to be played in the song playing queue.
结合本发明实施例第一方面第三种可能的实现方式,在本发明实施例第一方面第四种可能的实现方式中,在歌曲播放队列中的待播放队列中添加起始位置所处的曲目标识对应的歌曲,包括:In combination with the third possible implementation of the first aspect of the embodiment of the present invention, in the fourth possible implementation of the first aspect of the embodiment of the present invention, add the song at the start position to the queue to be played in the song playing queue. Songs corresponding to track identification, including:
所述终端设备根据起始位置的横坐标和终止位置的横坐标计算触控滑动操作的横坐标滑动长度;The terminal device calculates the abscissa sliding length of the touch sliding operation according to the abscissa of the start position and the abscissa of the end position;
所述终端设备根据预存的横坐标滑动长度与插入位置之间的映射关系,以及计算的横坐标滑动长度,确定横坐标滑动长度对应的插入位置;The terminal device determines the insertion position corresponding to the abscissa sliding length according to the pre-stored mapping relationship between the abscissa sliding length and the insertion position, and the calculated abscissa sliding length;
所述终端设备基于插入位置在待播放队列中插入起始位置所处的曲目标识对应的歌曲。Based on the insertion position, the terminal device identifies the corresponding song in the queue where the insertion start position is located.
其中,所述插入位置是指在待播放队列中插入所述起始位置对应的歌曲的具体位置,如假设待播放队列包括十首歌曲,则对应插入位置包括十个插入位置,如插入位置可以是第5个、第6个等位置,所述预存的横坐标滑动长度与插入位置之间的映射关系具体可以是k=abs(x1-x0)/T,其中k表示歌曲的插入位置为待播放队列的第k个插入位置,x1为终止位置的横坐标,x0为起始位置的横坐标,abs表示取绝对值,/表示取整运算,T为预设的单个插入位置所对应的长度值,例如T=200像素,即表示每移动200像素,对应变更一个插入位置。Wherein, the insertion position refers to the specific position where the song corresponding to the start position is inserted in the queue to be played. For example, if the queue to be played includes ten songs, the corresponding insertion position includes ten insertion positions. For example, the insertion position can be It is the 5th, 6th and other positions, and the mapping relationship between the pre-stored abscissa sliding length and the insertion position can be specifically k=abs(x1-x0)/T, where k indicates that the insertion position of the song is to be The kth insertion position of the play queue, x1 is the abscissa of the end position, x0 is the abscissa of the start position, abs means the absolute value, / means the rounding operation, T is the length corresponding to the preset single insertion position A value, such as T=200 pixels, means that every time 200 pixels is moved, an insertion position is correspondingly changed.
本发明实施例第一方面第五种可能的实现方式中,歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,歌词显示控件包括与正在播放曲目相对应的第三控件区域,终止位置位于歌词显示控件的第三控件区域;In the fifth possible implementation of the first aspect of the embodiment of the present invention, the song playing queue includes a played queue, a queue to be played, and a track being played, the lyrics display control includes a third control area corresponding to the track being played, and the end position Located in the third control area of the lyrics display control;
所述终端设备在歌曲播放队列中添加起始位置所处的曲目标识对应的歌曲,包括:The terminal device adds the song corresponding to the track identification where the starting position is located in the song playing queue, including:
所述终端设备切换歌曲播放队列的正在播放曲目为起始位置所处的曲目标识对应的歌曲。The terminal device switches the currently playing track of the song playing queue to the song corresponding to the track identification where the starting position is located.
本发明实施例第二方面提供了一种歌曲添加装置,包括:The second aspect of the embodiment of the present invention provides a song adding device, including:
检测单元,用于检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置;The detection unit is used to detect the start position and the end position of the touch sliding operation for the song list interface of the terminal device;
其中,歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,歌词显示控件关联终端设备的歌曲播放队列;Wherein, the song list interface includes a lyrics display control and a track identification of at least one song, and the lyrics display control is associated with a song playback queue of the terminal device;
添加单元,用于当起始位置位于曲目标识上,且终止位置位于歌词显示控件上时,在歌曲播放队列中添加起始位置所处的曲目标识对应的歌曲。The adding unit is used for adding the song corresponding to the track ID where the start position is located in the song playing queue when the start position is located on the track ID and the end position is located on the lyrics display control.
本发明实施例第二方面第一种可能的实现方式中,歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,歌词显示控件包括与已播放队列相对应的第一控件区域,终止位置位于歌词显示控件的第一控件区域;In the first possible implementation of the second aspect of the embodiment of the present invention, the song playing queue includes the played queue, the queue to be played, and the track being played, the lyrics display control includes a first control area corresponding to the played queue, and the end position Located in the first control area of the lyrics display control;
添加单元具体用于:在歌曲播放队列中的已播放队列中添加起始位置所处的曲目标识对应的歌曲。The adding unit is specifically used for: adding the song corresponding to the track identification at the starting position to the already played queue in the song playing queue.
本发明实施例第二方面第二种可能的实现方式中,歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,歌词显示控件包括与待播放队列相对应的第二控件区域,终止位置位于歌词显示控件的第二控件区域;In the second possible implementation of the second aspect of the embodiment of the present invention, the song playing queue includes the played queue, the queue to be played, and the track being played, the lyrics display control includes a second control area corresponding to the queue to be played, and the end position Located in the second control area of the lyrics display control;
添加单元具体用于:在歌曲播放队列中的待播放队列中添加起始位置所处的曲目标识对应的歌曲。The adding unit is specifically used for: adding a song corresponding to the track identification at the starting position in the queue to be played in the song playing queue.
本发明实施例第二方面第三种可能的实现方式中,歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,歌词显示控件包括与正在播放曲目相对应的第三控件区域,终止位置位于歌词显示控件的第三控件区域;In the third possible implementation of the second aspect of the embodiment of the present invention, the song playing queue includes a queue that has been played, a queue to be played, and a track being played, and the lyrics display control includes a third control area corresponding to the track being played, and the end position Located in the third control area of the lyrics display control;
添加单元具体用于:切换歌曲播放队列的正在播放曲目为起始位置所处的曲目标识对应的歌曲。The adding unit is specifically used for: switching the currently playing track of the song playing queue to the song corresponding to the track identification where the starting position is located.
本发明实施例第三方面提供了一种终端设备,该终端设备具有实现上述实施例中各个“单元”所描述的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或者多个与上述功能相对应的单元。The third aspect of the embodiments of the present invention provides a terminal device. The terminal device has functions described in each "unit" in the above embodiments. The functions may be implemented by hardware, or by executing corresponding software on the hardware. The hardware or software includes one or more units corresponding to the above functions.
本发明实施例第四方面提供了一种终端设备,该终端设备的结构中包括处理器、显示屏和触摸屏,所述处理器被配置为支持终端设备执行上述实施例中相应的功能。所述显示屏用于展示歌词显示控件,所述触摸屏用于检测触控滑动操作的起始位置和终止位置。所述终端设备还包括存储器,所述存储器用于与处理器耦合,其保存终端设备必要的程序指令和数据。A fourth aspect of the embodiments of the present invention provides a terminal device. The structure of the terminal device includes a processor, a display screen, and a touch screen, and the processor is configured to support the terminal device to perform the corresponding functions in the foregoing embodiments. The display screen is used to display lyrics display controls, and the touch screen is used to detect the start position and end position of the touch sliding operation. The terminal device also includes a memory, which is used to be coupled with the processor, and stores necessary program instructions and data of the terminal device.
可以看出,本发明实施例中,终端设备首先检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述终端设备的歌曲播放队列,其次,当所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。可见,终端设备能够根据检测到的针对曲目标识和歌词显示控件的触控滑动操作,在歌曲播放队列中快速添加曲目标识对应的歌曲,有利于提升终端设备歌曲添加的便捷性。It can be seen that in the embodiment of the present invention, the terminal device first detects the start position and the end position of the touch and slide operation for the song list interface of the terminal device, and the song list interface includes a lyrics display control and at least one track of a song identification, the lyrics display control is associated with the song play queue of the terminal device, and secondly, when the start position is located on the track identification and the end position is located on the lyrics display control, the terminal device will Add the song corresponding to the track identification where the starting position is in the song playing queue. It can be seen that the terminal device can quickly add the song corresponding to the track identification in the song playback queue according to the detected touch and slide operation on the track identification and the lyrics display control, which is conducive to improving the convenience of adding songs on the terminal device.
附图说明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 are only 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 a simplified structural composition block diagram of a terminal device that implements a song adding method disclosed in an embodiment of the present invention;
图2是本发明方法实施例公开的一种歌曲添加方法的流程示意图;Fig. 2 is a schematic flow chart of a song adding method disclosed in the method embodiment of the present invention;
图2.1是本发明方法实施例公开的一种歌曲添加方法的部分流程示意图;Fig. 2.1 is a partial flowchart of a song adding method disclosed in the method embodiment of the present invention;
图2.2是本发明方法实施例公开的一种歌曲添加方法的部分流程示意图;Fig. 2.2 is a schematic flow diagram of a part of a song adding method disclosed in the method embodiment of the present invention;
图2.3是本发明方法实施例公开的一种歌曲添加方法的部分流程示意图;Fig. 2.3 is a partial flowchart of a song adding method disclosed in the method embodiment of the present invention;
图3是本发明装置实施例公开的一种歌曲添加装置的功能单元框图。Fig. 3 is a functional unit block diagram of a song adding device disclosed in the device embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
为了更好理解本发明实施例公开的一种歌曲添加方法及装置,下面先对本发明实施例适用的终端设备进行描述。请参见图1,图1是本发明实施例提供的一种实现本发明歌曲添加方法的终端设备的简化结构组成框图。该终端设备的组成架构图中具体可以包括至少一个处理器Processor101,至少一个存储器MemroyUnit102,至少一个通信总线BUS103,接收/发送电路104,天线105,至少一个触控屏TouchScreen106,至少一个显示屏DisplayScreen107,麦克风Microphone108,扬声器Speaker109,客户识别模块SIMCard110,物理按键Keys111,随机存取存贮器RAMmemory102a,非易失性存储器FlashROMmemory102b,外部存储器ExternalStorage112,蓝牙控制器BluetoothController113,数字信号处理电路114;其中,上述处理器101通过接收/发送电路104和天线105控制与外部蜂窝网的通信;所述至少一个存储器例如可以是随机存取存贮器,非易失性存储器,SIM卡110,以及外部存储器112;该至少一个存储器中存储有指令集合,该指令集合集成在操作系统或者通过处理器101可执行的应用程序中,该指令集合能够引导处理器101执行与本发明方法实施例中具体披露的歌曲添加方法。所述终端设备例如可以是智能手机、平板电脑、笔记本电脑、可穿戴设备(如智能手表)等各类通用电子设备。In order to better understand the method and device for adding songs disclosed in the embodiments of the present invention, the terminal devices to which the embodiments of the present invention are applicable are firstly described below. Please refer to FIG. 1 . FIG. 1 is a simplified structural composition block diagram of a terminal device implementing the song adding method of the present invention provided by an embodiment of the present invention. The structure diagram of the terminal device can specifically include at least one processor Processor101, at least one memory MemroyUnit102, at least one communication bus BUS103, receiving/transmitting circuit 104, antenna 105, at least one touch screen TouchScreen106, at least one display screen DisplayScreen107, Microphone108, speaker Speaker109, customer identification module SIMCard110, physical keys Keys111, random access memory RAMmemory102a, nonvolatile memory FlashROMmemory102b, external memory ExternalStorage112, Bluetooth controller BluetoothController113, digital signal processing circuit 114; Wherein, the above-mentioned processor 101 controls the communication with the external cellular network through the receiving/transmitting circuit 104 and the antenna 105; the at least one memory can be, for example, a random access memory, a non-volatile memory, a SIM card 110, and an external memory 112; the at least one memory A set of instructions is stored in a memory, and the set of instructions is integrated in the operating system or the application program executable by the processor 101. The set of instructions can guide the processor 101 to execute the song adding method specifically disclosed in the method embodiment of the present invention. The terminal device may be, for example, various general electronic devices such as smart phones, tablet computers, notebook computers, wearable devices (such as smart watches).
上述终端设备100中的处理器101能够耦合所述至少一个存储器,所述存储器102中预存有指令集合,所述指令集合具体包括触控操作检测模块、歌曲添加模块,所述存储器102还进一步存储有内核模块,所述内核模块包括操作系统(如WINDOWSTM,ANDROIDTM,IOSTM等)。The processor 101 in the above-mentioned terminal device 100 can be coupled to the at least one memory, the memory 102 is pre-stored with a set of instructions, the set of instructions specifically includes a touch operation detection module and a song adding module, and the memory 102 further stores There are kernel modules, which include operating systems (such as WINDOWS ™ , ANDROID ™ , IOS ™ , etc.).
所述处理器101调用所述指令集合以执行本发明实施例所公开的歌曲添加方法,具体包括以下步骤:The processor 101 invokes the instruction set to execute the song adding method disclosed in the embodiment of the present invention, which specifically includes the following steps:
所述终端设备100的处理器101运行存储器102中的触控操作检测模块以检测触控屏106上的触控滑动操作的起始位置和终止位置;The processor 101 of the terminal device 100 runs the touch operation detection module in the memory 102 to detect the start position and end position of the touch slide operation on the touch screen 106;
其中,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述终端设备的歌曲播放队列;Wherein, the song list interface includes a lyrics display control and a track identification of at least one song, and the lyrics display control is associated with the song playing queue of the terminal device;
所述终端设备100的处理器101检测到所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,运行存储器102中的歌曲添加模块以在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。When the processor 101 of the terminal device 100 detects that the start position is located on the track identification and the end position is located on the lyrics display control, it runs the song addition module in the memory 102 to add the song in the song A song corresponding to the track identifier at the starting position is added to the playing queue.
可选的,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述已播放队列相对应的第一控件区域,所述终止位置位于所述歌词显示控件的所述第一控件区域时,所述处理器101运行存储器102中的歌曲添加模块以在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式为:处理器101运行存储器102中的歌曲添加模块以在所述歌曲播放队列中的所述已播放队列中添加所述起始位置所处的曲目标识对应的歌曲。Optionally, when the song playing queue includes a queue to be played, a queue to be played, and a track being played, the lyrics display control includes a first control area corresponding to the queue that has been played, and the termination position is located in the When the lyrics are displayed in the first control area of the control, the processor 101 runs the song adding module in the memory 102 to add the song corresponding to the song identification at the starting position in the song playing queue The method is: the processor 101 runs the song adding module in the memory 102 to add a song corresponding to the track identifier at the starting position to the played queue in the song playing queue.
可选的,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述待播放队列相对应的第二控件区域,所述终止位置位于所述歌词显示控件的所述第二控件区域时,所述处理器101运行存储器102中的歌曲添加模块以在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式为:所述处理器101运行存储器102中的歌曲添加模块以在所述歌曲播放队列中的所述待播放队列中添加所述起始位置所处的曲目标识对应的歌曲。Optionally, when the song playing queue includes a playing queue, a queue to be played, and a track being played, the lyrics display control includes a second control area corresponding to the queue to be played, and the termination position is located in the When the lyrics are displayed in the second control area of the control, the processor 101 runs the song adding module in the memory 102 to add the song corresponding to the song identification at the starting position in the song playing queue The method is: the processor 101 runs the song adding module in the memory 102 to add a song corresponding to the track identifier at the starting position to the queue to be played in the song playing queue.
可选的,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述正在播放曲目相对应的第三控件区域,所述终止位置位于所述歌词显示控件的所述第三控件区域时,所述处理器101运行存储器102中的歌曲添加模块以在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式为:所述处理器101运行存储器102中的歌曲添加模块以切换所述歌曲播放队列的正在播放曲目为所述起始位置所处的曲目标识对应的歌曲。Optionally, when the song playing queue includes a played queue, a queue to be played, and a track being played, the lyrics display control includes a third control area corresponding to the track being played, and the termination position is located in the When the lyrics are displayed in the third control area of the control, the processor 101 runs the song adding module in the memory 102 to add the song corresponding to the song identification at the starting position in the song playing queue The method is: the processor 101 runs the song adding module in the memory 102 to switch the playing track of the song playing queue to identify the corresponding song for the track at the starting position.
可以看出,本发明实施例中,终端设备首先检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述终端设备的歌曲播放队列,其次,当所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。可见,终端设备能够根据检测到的针对曲目标识和歌词显示控件的触控滑动操作,在歌曲播放队列中快速添加曲目标识对应的歌曲,有利于提升终端设备歌曲添加的便捷性。It can be seen that in the embodiment of the present invention, the terminal device first detects the start position and the end position of the touch and slide operation for the song list interface of the terminal device, and the song list interface includes a lyrics display control and at least one track of a song identification, the lyrics display control is associated with the song play queue of the terminal device, and secondly, when the start position is located on the track identification and the end position is located on the lyrics display control, the terminal device will Add the song corresponding to the track identification where the starting position is in the song playing queue. It can be seen that the terminal device can quickly add the song corresponding to the track identification in the song playback queue according to the detected touch and slide operation on the track identification and the lyrics display control, which is conducive to improving the convenience of adding songs on the terminal device.
与上述描述的技术方案一致的,作为一个具体实施例,图2是包括终端设备的具体执行过程的歌曲添加方法的流程示意图。尽管这里描述的歌曲添加方法是基于图1所示的终端设备来执行,但需要注意的是,本发明实施例公开的歌曲添加方法的具体运行环境不仅限于上述终端设备。Consistent with the technical solution described above, as a specific embodiment, FIG. 2 is a schematic flowchart of a song adding method including a specific execution process of a terminal device. Although the song adding method described here is executed based on the terminal device shown in FIG. 1 , it should be noted that the specific operating environment of the song adding method disclosed in the embodiment of the present invention is not limited to the above-mentioned terminal device.
如图2所示,本发明方法实施例公开的歌曲添加方法具体包括以下步骤:As shown in Figure 2, the song adding method disclosed in the method embodiment of the present invention specifically includes the following steps:
S201,终端设备检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置;S201, the terminal device detects the start position and end position of the touch and slide operation on the song list interface of the terminal device;
其中,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述终端设备的歌曲播放队列;Wherein, the song list interface includes a lyrics display control and a track identification of at least one song, and the lyrics display control is associated with the song playing queue of the terminal device;
本发明实施例中,所述歌词显示控件具体可以显示在终端设备100的显示屏107上,终端设备100的触控屏106能够实时检测到用户的触控操作的触控位置,该触控操作具体包括触控点击操作、触控滑动操作以及多点触控操作。In the embodiment of the present invention, the lyrics display control can be specifically displayed on the display screen 107 of the terminal device 100, and the touch screen 106 of the terminal device 100 can detect the touch position of the user's touch operation in real time. Specifically, it includes a touch click operation, a touch slide operation, and a multi-touch operation.
S202,当所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,所述终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。S202. When the start position is located on the track identifier and the end position is located on the lyrics display control, the terminal device adds the track at the start position to the song playing queue Identify the corresponding song.
可以理解的是,上述终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式可以是多种多样的。It can be understood that there may be various specific implementation manners for the above-mentioned terminal device to add the song corresponding to the track identifier at the start position to the song playing queue.
举例来说,请参见图2.1,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述已播放队列相对应的第一控件区域,所述终止位置位于所述歌词显示控件的所述第一控件区域时,所述终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式为:For example, please refer to Fig. 2.1, when the song playing queue includes a playing queue, a queue to be played and a track being played, the lyrics display control includes a first control area corresponding to the playing queue, the When the end position is located in the first control area of the lyrics display control, the terminal device adds the song corresponding to the track identification where the start position is located in the song playing queue to the specific implementation manner as follows:
所述终端设备在所述歌曲播放队列中的所述已播放队列中添加所述起始位置所处的曲目标识对应的歌曲。The terminal device adds a song corresponding to the track identifier at the starting position to the played queue in the song playing queue.
具体实现中,所述终端设备在所述歌曲播放队列中的所述已播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式包括以下步骤:In a specific implementation, the terminal device adds the song corresponding to the track identification at the starting position to the already played queue in the song playing queue, and the specific implementation method includes the following steps:
S202-a1,所述终端设备根据所述起始位置的横坐标和所述终止位置的横坐标计算所述触控滑动操作的横坐标滑动长度;S202-a1. The terminal device calculates the abscissa sliding length of the touch sliding operation according to the abscissa of the start position and the abscissa of the end position;
S202-a2,所述终端设备根据预存的横坐标滑动长度与插入位置之间的映射关系,以及所述计算的横坐标滑动长度,确定所述横坐标滑动长度对应的插入位置;S202-a2. The terminal device determines the insertion position corresponding to the abscissa sliding length according to the pre-stored mapping relationship between the abscissa sliding length and the insertion position, and the calculated abscissa sliding length;
S202-a3,所述终端设备基于所述插入位置在所述已播放队列中插入所述起始位置所处的曲目标识对应的歌曲。S202-a3. Based on the insertion position, the terminal device inserts the track at the starting position into the played queue and identifies a corresponding song.
其中,所述插入位置是指在已播放队列中插入所述起始位置对应的歌曲的具体位置,如假设已播放队列包括十首歌曲,则对应插入位置包括十个插入位置,如插入位置可以是第5个、第6个等位置,所述预存的横坐标滑动长度与插入位置之间的映射关系具体可以是k=abs(x1-x0)/T,其中k表示歌曲的插入位置为已播放队列的第k个插入位置,x1为终止位置的横坐标,x0为起始位置的横坐标,abs表示取绝对值,/表示取整运算,T为预设的单个插入位置所对应的长度值,例如T=200像素,即表示每移动200像素,对应变更一个插入位置。Wherein, the insertion position refers to the specific position where the song corresponding to the starting position is inserted in the played queue. For example, if the played queue includes ten songs, the corresponding insertion position includes ten insertion positions. For example, the insertion position can be It is the 5th, 6th and other positions, and the mapping relationship between the pre-stored abscissa sliding length and the insertion position can specifically be k=abs(x1-x0)/T, where k indicates that the insertion position of the song is already The kth insertion position of the play queue, x1 is the abscissa of the end position, x0 is the abscissa of the start position, abs means the absolute value, / means the rounding operation, T is the length corresponding to the preset single insertion position A value, such as T=200 pixels, means that every time 200 pixels is moved, an insertion position is correspondingly changed.
进一步地,所述终端设备在检测到所述终止位置位于所述歌词显示控件上,并确定横坐标滑动长度对应的插入位置时,可以输出包括所述插入位置信息的提示消息,如在歌单界面叠加展示包括插入位置信息的提示框,从而引导用户及时了解歌曲插入位置。Further, when the terminal device detects that the termination position is located on the lyrics display control and determines the insertion position corresponding to the sliding length of the abscissa, it may output a prompt message including the insertion position information, such as in the song list The interface superimposes and displays a prompt box including the insertion position information, so as to guide the user to know the insertion position of the song in time.
又举例来说,请参见图2.2,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述待播放队列相对应的第二控件区域,所述终止位置位于所述歌词显示控件的所述第二控件区域时;所述终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式为:For another example, please refer to Fig. 2.2, when the song playing queue includes a playing queue, a queue to be played, and a track being played, and the lyrics display control includes a second control area corresponding to the queue to be played, so When the end position is located in the second control area of the lyrics display control; the terminal device adds the song corresponding to the track identification where the start position is located in the song playing queue to the specific implementation method as follows:
所述终端设备在所述歌曲播放队列中的所述待播放队列中添加所述起始位置所处的曲目标识对应的歌曲。The terminal device adds a song corresponding to the track identifier at the start position to the queue to be played in the song playing queue.
具体实现中,所述终端设备在所述歌曲播放队列中的所述待播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式包括以下步骤:In a specific implementation, the terminal device adds the song corresponding to the track identification at the start position to the queue to be played in the song playing queue, and the specific implementation method includes the following steps:
S202-b1,所述终端设备根据所述起始位置的横坐标和所述终止位置的横坐标计算所述触控滑动操作的横坐标滑动长度;S202-b1. The terminal device calculates the abscissa sliding length of the touch sliding operation according to the abscissa of the start position and the abscissa of the end position;
S202-b2,所述终端设备根据预存的横坐标滑动长度与插入位置之间的映射关系,以及所述计算的横坐标滑动长度,确定所述横坐标滑动长度对应的插入位置;S202-b2. The terminal device determines the insertion position corresponding to the abscissa sliding length according to the pre-stored mapping relationship between the abscissa sliding length and the insertion position, and the calculated abscissa sliding length;
S202-b3,所述终端设备基于所述插入位置在所述待播放队列中插入所述起始位置所处的曲目标识对应的歌曲。S202-b3. Based on the insertion position, the terminal device inserts the track at the start position in the queue to be played and identifies a corresponding song.
其中,所述插入位置是指在待播放队列中插入所述起始位置对应的歌曲的具体位置,如假设待播放队列包括十首歌曲,则对应插入位置包括十个插入位置,如插入位置可以是第5个、第6个等位置,所述预存的横坐标滑动长度与插入位置之间的映射关系具体可以是k=abs(x1-x0)/T,其中k表示歌曲的插入位置为待播放队列的第k个插入位置,x1为终止位置的横坐标,x0为起始位置的横坐标,abs表示取绝对值,/表示取整运算,T为预设的单个插入位置所对应的长度值,例如T=200像素,即表示每移动200像素,对应变更一个插入位置。Wherein, the insertion position refers to the specific position where the song corresponding to the start position is inserted in the queue to be played. For example, if the queue to be played includes ten songs, the corresponding insertion position includes ten insertion positions. For example, the insertion position can be It is the 5th, 6th and other positions, and the mapping relationship between the pre-stored abscissa sliding length and the insertion position can be specifically k=abs(x1-x0)/T, where k indicates that the insertion position of the song is to be The kth insertion position of the play queue, x1 is the abscissa of the end position, x0 is the abscissa of the start position, abs means the absolute value, / means the rounding operation, T is the length corresponding to the preset single insertion position A value, such as T=200 pixels, means that every time 200 pixels is moved, an insertion position is correspondingly changed.
进一步地,所述终端设备在检测到所述终止位置位于所述歌词显示控件上,并确定横坐标滑动长度对应的插入位置时,可以输出包括所述插入位置信息的提示消息,如在歌单界面叠加展示包括插入位置信息的提示框,从而引导用户及时了解歌曲插入位置。Further, when the terminal device detects that the termination position is located on the lyrics display control and determines the insertion position corresponding to the sliding length of the abscissa, it may output a prompt message including the insertion position information, such as in the song list The interface superimposes and displays a prompt box including the insertion position information, so as to guide the user to know the insertion position of the song in time.
又举例来说,请参见图2.3,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述正在播放曲目相对应的第三控件区域,所述终止位置位于所述歌词显示控件的所述第三控件区域时,所述终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲的具体实现方式为:For another example, please refer to Fig. 2.3, when the song playing queue includes a playing queue, a queue to be played and a track being played, the lyrics display control includes a third control area corresponding to the track being played, so When the end position is located in the third control area of the lyrics display control, the terminal device adds the song corresponding to the track identification where the start position is located in the song playing queue to the specific implementation manner as follows:
S202-c,所述终端设备切换所述歌曲播放队列的正在播放曲目为所述起始位置所处的曲目标识对应的歌曲。S202-c, the terminal device switches the currently playing track of the song playing queue to a song corresponding to the track identification where the starting position is located.
需要注意的是,上述歌词显示控件的第一控件区域、第二控件区域以及第三控件区域可以相同,也可以不同,该控件区域与歌曲播放队列的映射关系可以由用户预先进行设定,或者由应用的开发人员预编译在应用程序中。It should be noted that the first control area, the second control area and the third control area of the above-mentioned lyrics display control can be the same or different, and the mapping relationship between the control area and the song playback queue can be preset by the user, or Precompiled in the application by the application's developer.
可以看出,本发明实施例中,终端设备首先检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述终端设备的歌曲播放队列,其次,当所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,终端设备在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。可见,终端设备能够根据检测到的针对曲目标识和歌词显示控件的触控滑动操作,在歌曲播放队列中快速添加曲目标识对应的歌曲,有利于提升终端设备歌曲添加的便捷性。It can be seen that in the embodiment of the present invention, the terminal device first detects the start position and the end position of the touch and slide operation for the song list interface of the terminal device, and the song list interface includes a lyrics display control and at least one track of a song identification, the lyrics display control is associated with the song play queue of the terminal device, and secondly, when the start position is located on the track identification and the end position is located on the lyrics display control, the terminal device will Add the song corresponding to the track identification where the starting position is in the song playing queue. It can be seen that the terminal device can quickly add the song corresponding to the track identification in the song playback queue according to the detected touch and slide operation on the track identification and the lyrics display control, which is conducive to improving the convenience of adding songs on the terminal device.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例所实现的方法。The following are device embodiments of the present invention, and the device embodiments of the present invention are used to execute the methods implemented by the method embodiments of the present invention.
基于图1所示的终端设备100的组成构架,本发明装置实施例公开了的一种歌曲添加装置。请参阅图3,图3是本发明装置实施例公开的歌曲添加装置300的功能单元框图。Based on the composition framework of the terminal device 100 shown in FIG. 1 , the device embodiment of the present invention discloses a song adding device. Please refer to FIG. 3 . FIG. 3 is a block diagram of functional units of a song adding device 300 disclosed in the device embodiment of the present invention.
如图3所示,该歌曲添加装置300可以包括检测单元301和添加单元302,其中:As shown in Figure 3, the song adding device 300 may include a detection unit 301 and an adding unit 302, wherein:
所述检测单元301,用于检测针对终端设备的歌单界面的触控滑动操作的起始位置和终止位置;The detection unit 301 is configured to detect the starting position and the ending position of the touch sliding operation for the song list interface of the terminal device;
其中,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述终端设备的歌曲播放队列;Wherein, the song list interface includes a lyrics display control and a track identification of at least one song, and the lyrics display control is associated with the song playing queue of the terminal device;
所述添加单元302,用于当所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。The adding unit 302 is configured to, when the starting position is located on the track identification and the ending position is located on the lyrics display control, add the starting position to the song playing queue. The track identifies the corresponding song.
可选的,所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述已播放队列相对应的第一控件区域,所述终止位置位于所述歌词显示控件的所述第一控件区域时,Optionally, the song play queue includes a queue to be played, a queue to be played, and a track being played, the lyrics display control includes a first control area corresponding to the queue that has been played, and the end position is located at the when the first control area of the control is displayed,
所述添加单元302具体用于:在所述歌曲播放队列中的所述已播放队列中添加所述起始位置所处的曲目标识对应的歌曲。The adding unit 302 is specifically configured to: add a song corresponding to the track identifier at the start position to the played queue in the song playing queue.
可选的,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述待播放队列相对应的第二控件区域,所述终止位置位于所述歌词显示控件的所述第二控件区域时,Optionally, when the song playing queue includes a playing queue, a queue to be played, and a track being played, the lyrics display control includes a second control area corresponding to the queue to be played, and the termination position is located in the Lyrics are displayed in the second control area of the control,
所述添加单元302具体用于:在所述歌曲播放队列中的所述待播放队列中添加所述起始位置所处的曲目标识对应的歌曲。The adding unit 302 is specifically configured to: add a song corresponding to the track identifier at the start position to the queue to be played in the song playing queue.
可选的,当所述歌曲播放队列包括已播放队列、待播放队列以及正在播放曲目,所述歌词显示控件包括与所述正在播放曲目相对应的第三控件区域,所述终止位置位于所述歌词显示控件的所述第三控件区域时,Optionally, when the song playing queue includes a played queue, a queue to be played, and a track being played, the lyrics display control includes a third control area corresponding to the track being played, and the termination position is located in the Lyrics are displayed in the third control area of the control,
所述添加单元具体用于:切换所述歌曲播放队列的正在播放曲目为所述起始位置所处的曲目标识对应的歌曲。The adding unit is specifically configured to: switch the currently playing track of the song playing queue to the song corresponding to the track identification where the starting position is located.
需要注意的是,本发明装置实施例所描述的歌曲添加装置300是以功能单元的形式呈现。本发明实施例所使用的术语“单元”应当理解为尽可能宽的含义,用于实现各个“单元”所描述功能的对象例如可以是以下任意一种:集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the song adding device 300 described in the device embodiment of the present invention is presented in the form of a functional unit. The term "unit" used in the embodiments of the present invention should be understood as broad as possible. The object used to realize the functions described by each "unit" can be, for example, any of the following: an integrated circuit ASIC, a single circuit, used to perform One or more processors (shared, dedicated, or chipsets) and memories of software or firmware programs, combinational logic circuits, and/or other suitable components that provide the functions described above.
举例来说,本领域技术员人可以认定该歌曲添加装置300的硬件载体的组成形式具体可以是图1所示的终端设备100。其中,所述检测单元301的功能可以由所述终端设备100中的处理器101、存储器102和触控屏106来实现,具体是通过处理器100运行存储器102中的触控操作检测模块以检测触控屏106上的触控滑动操作的起始位置和终止位置;所述添加单元302的功能可以由所述终端设备100中的处理器101和存储器102来实现,具体是通过处理器100运行存储器102中的歌曲添加模块以在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。For example, those skilled in the art may recognize that the composition form of the hardware carrier of the song adding apparatus 300 may specifically be the terminal device 100 shown in FIG. 1 . Wherein, the function of the detection unit 301 can be realized by the processor 101, the memory 102 and the touch screen 106 in the terminal device 100, specifically, the processor 100 runs the touch operation detection module in the memory 102 to detect The start position and end position of the touch sliding operation on the touch screen 106; the function of the adding unit 302 can be realized by the processor 101 and the memory 102 in the terminal device 100, specifically by running the processor 100 The song adding module in the memory 102 identifies the corresponding song by adding the track where the starting position is located in the song playing queue.
可以看出,本发明实施例中,应用本发明实施例公开的歌曲添加装置的终端设备的首先检测针对歌曲添加装置的歌单界面的触控滑动操作的起始位置和终止位置,所述歌单界面包括歌词显示控件和至少一首歌曲的曲目标识,所述歌词显示控件关联所述歌曲添加装置的歌曲播放队列,其次,当所述起始位置位于所述曲目标识上,且所述终止位置位于所述歌词显示控件上时,歌曲添加装置在所述歌曲播放队列中添加所述起始位置所处的曲目标识对应的歌曲。可见,所述终端设备能够根据检测到的针对曲目标识和歌词显示控件的触控滑动操作,在歌曲播放队列中快速添加曲目标识对应的歌曲,有利于提升终端设备歌曲添加的便捷性。It can be seen that in the embodiment of the present invention, the terminal device using the song adding device disclosed in the embodiment of the present invention first detects the start position and end position of the touch and slide operation on the song list interface of the song adding device. The single interface includes a lyric display control and a track identification of at least one song, and the lyric display control is associated with the song playing queue of the song adding device; secondly, when the starting position is located on the track identification and the termination When the position is on the lyrics display control, the song adding device adds the song corresponding to the track identification where the starting position is located in the song playing queue. It can be seen that the terminal device can quickly add the song corresponding to the track identification in the song playback queue according to the detected touch and slide operation on the track identification and the lyrics display control, which is conducive to improving the convenience of adding songs to the terminal device.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种歌曲添加方法的部分或全部步骤。The embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, some or all steps of any song adding method described in the above method embodiments are included.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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 may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: various media capable of storing program codes such as U disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disk or optical disk.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-OnlyMemory,简称:ROM)、随机存取器(英文:RandomAccessMemory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-OnlyMemory, abbreviated: ROM), random access device (English: RandomAccessMemory, abbreviated: RAM), magnetic disk or optical disk, etc.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention; at the same time, for Those skilled in the art will have changes in the specific implementation and application scope according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510918549.3A CN105589934B (en) | 2015-12-10 | 2015-12-10 | Song adding method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510918549.3A CN105589934B (en) | 2015-12-10 | 2015-12-10 | Song adding method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105589934A true CN105589934A (en) | 2016-05-18 |
| CN105589934B CN105589934B (en) | 2019-07-26 |
Family
ID=55929513
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510918549.3A Active CN105589934B (en) | 2015-12-10 | 2015-12-10 | Song adding method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105589934B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106354417A (en) * | 2016-10-10 | 2017-01-25 | 广州视睿电子科技有限公司 | Media file mobile insertion display method and device |
| CN108491148A (en) * | 2018-03-12 | 2018-09-04 | 维沃移动通信有限公司 | A kind of application sharing method and terminal |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080155079A1 (en) * | 2006-12-22 | 2008-06-26 | Yahoo! Inc. | System and method for managing access to media assets |
| CN103294357A (en) * | 2013-05-16 | 2013-09-11 | 东莞宇龙通信科技有限公司 | Data processing method and device |
| CN103686450A (en) * | 2013-12-31 | 2014-03-26 | 广州华多网络科技有限公司 | Video processing method and system |
| CN104166553A (en) * | 2014-08-18 | 2014-11-26 | 联想(北京)有限公司 | Display method and electronic device |
| CN104461308A (en) * | 2014-12-08 | 2015-03-25 | 广东欧珀移动通信有限公司 | Method and device for adding items to target area |
-
2015
- 2015-12-10 CN CN201510918549.3A patent/CN105589934B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080155079A1 (en) * | 2006-12-22 | 2008-06-26 | Yahoo! Inc. | System and method for managing access to media assets |
| CN103294357A (en) * | 2013-05-16 | 2013-09-11 | 东莞宇龙通信科技有限公司 | Data processing method and device |
| CN103686450A (en) * | 2013-12-31 | 2014-03-26 | 广州华多网络科技有限公司 | Video processing method and system |
| CN104166553A (en) * | 2014-08-18 | 2014-11-26 | 联想(北京)有限公司 | Display method and electronic device |
| CN104461308A (en) * | 2014-12-08 | 2015-03-25 | 广东欧珀移动通信有限公司 | Method and device for adding items to target area |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106354417A (en) * | 2016-10-10 | 2017-01-25 | 广州视睿电子科技有限公司 | Media file mobile insertion display method and device |
| WO2018068477A1 (en) * | 2016-10-10 | 2018-04-19 | 广州视源电子科技股份有限公司 | Media file movement, insertion and display method and device |
| CN108491148A (en) * | 2018-03-12 | 2018-09-04 | 维沃移动通信有限公司 | A kind of application sharing method and terminal |
| CN108491148B (en) * | 2018-03-12 | 2021-06-08 | 维沃移动通信有限公司 | Application sharing method and terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105589934B (en) | 2019-07-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105812941A (en) | Video playing method and device and electronic equipment | |
| CN110865734B (en) | Target object display method and device, electronic equipment and computer readable medium | |
| US20170168705A1 (en) | Method and electronic device for adjusting video progress | |
| CN106446180A (en) | A song recognition method and mobile terminal | |
| CN105549847B (en) | Picture display method of song playing interface and user terminal | |
| CN104978132A (en) | Application control method and mobile terminal | |
| CN105094620A (en) | Information browsing method and mobile terminal | |
| CN105739886A (en) | Video playing method and mobile terminal | |
| CN103500122A (en) | Multimedia file playing method and electronic equipment | |
| CN107124656A (en) | The player method and mobile terminal of a kind of multimedia file | |
| CN107967092A (en) | Application related information display methods and relevant device | |
| CN106815042A (en) | The dynamic loading method of refresh page, device and electronic equipment | |
| CN105589934B (en) | Song adding method and device | |
| CN108646975A (en) | Information processing method and device | |
| CN105573646A (en) | A method for controlling playback progress of multimedia content and user terminal | |
| CN105005443A (en) | Application startup method and mobile terminal | |
| CN105677081B (en) | A kind of touch control method and terminal device | |
| CN106028094A (en) | Video content providing method and device and electronic equipment | |
| CN105389118B (en) | A kind of switching method and user terminal of audio file | |
| CN105573746A (en) | Control attribute processing method and device | |
| CN105700749A (en) | Touch control method and terminal equipment | |
| CN108093311A (en) | Processing method, device, storage medium and the electronic equipment of multimedia file | |
| CN107040840A (en) | Earphone, music playing method and device, and electronic equipment | |
| CN105373335A (en) | Playlist operating method and mobile terminal | |
| CN104571859A (en) | Method and terminal for controlling player |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |