TWI624827B - Beats marking method - Google Patents

Beats marking method Download PDF

Info

Publication number
TWI624827B
TWI624827B TW105114868A TW105114868A TWI624827B TW I624827 B TWI624827 B TW I624827B TW 105114868 A TW105114868 A TW 105114868A TW 105114868 A TW105114868 A TW 105114868A TW I624827 B TWI624827 B TW I624827B
Authority
TW
Taiwan
Prior art keywords
beat
speed
music
audio
preset
Prior art date
Application number
TW105114868A
Other languages
Chinese (zh)
Other versions
TW201711018A (en
Inventor
周品妤
孫菁妏
江翹竹
Original Assignee
仁寶電腦工業股份有限公司
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 仁寶電腦工業股份有限公司 filed Critical 仁寶電腦工業股份有限公司
Publication of TW201711018A publication Critical patent/TW201711018A/en
Application granted granted Critical
Publication of TWI624827B publication Critical patent/TWI624827B/en

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/36Accompaniment arrangements
    • G10H1/40Rhythm
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2210/00Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
    • G10H2210/375Tempo or beat alterations; Music timing control

Abstract

本發明提供一種節拍標記方法,用於電子裝置標記音樂。所述電子裝置包括處理單元、儲存單元與音訊播放單元,其中所述處理單元可執行至少部分節拍標記方法。所述音樂經由對應所述音樂的音樂檔案所播放,所述儲存單元用以儲存所述音樂檔案。所述節拍標記方法包括經由所述音樂檔案取得所述音樂的節奏速度,根據所述節奏速度,選擇預設節拍音訊與對應所述預設節拍音訊的節拍速度;將所述預設節拍音訊根據所述節拍速度與所述節奏速度標記至所述音樂;以及透過所述音訊播放單元同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。The invention provides a beat marking method for electronic devices to mark music. The electronic device includes a processing unit, a storage unit and an audio playback unit, wherein the processing unit can execute at least part of the beat marking method. The music is played through a music file corresponding to the music, and the storage unit is configured to store the music file. The tempo marking method includes obtaining the tempo of the music via the music file, selecting a preset tempo audio and a tempo corresponding to the preset tempo according to the tempo; and dividing the preset tempo according to The beat speed and the rhythm speed are marked to the music; and the music and the preset beat audio marked to the music are simultaneously played through the audio playback unit.

Description

節拍標記方法Beat marking method

本發明是有關於一種標記方法,且特別是有關於標記音樂的一種節拍標記方法。The invention relates to a marking method, and more particularly to a beat marking method for marking music.

一般來說,隨著科技日新月異,許多使用者在運動的時候,會開始藉由音樂播放裝置(例如,手提音響、收音機、行動裝置等可用來播放音樂的電子裝置)來播放音樂,以讓自己可以跟隨音樂的節奏而運動。In general, with the rapid development of technology, many users will start playing music with music playback devices (such as portable stereos, radios, mobile devices, and other electronic devices that can be used to play music) when they are exercising to allow themselves You can follow the rhythm of the music.

一般來說,此些用於運動的具有強烈節奏的音樂,除了本身已經具有固定規律節拍的音樂之外,亦有許多此類型的音樂是經由後製混音(remix)而產生的。然而,此些經由混音所產生的音樂卻不能夠依據使用者的需求來對當前的節奏來進行調整。In general, in addition to music with a strong regular beat, many of these types of music for sports have been produced through remixes. However, such music generated by mixing cannot adjust the current tempo according to the needs of the user.

本發明提供一種適用於音樂的節拍標記方法,可在不改變原始音樂的情況下,在將特定的節拍音訊標記至原始音樂後,同時播放標記至原始音樂的節拍音訊與原始音樂。如此一來,使用者於聆聽原始音樂的同時可感受到搭配原始音樂的特定的節拍音訊,亦可針對使用者所進行的運動來調整節拍音訊的節拍速度,進而增進使用者的運動與聆聽體驗。The invention provides a method for labeling beats applicable to music, which can play the beat audio and original music marked to the original music at the same time after marking the specific beat audio to the original music without changing the original music. In this way, the user can feel the specific beat audio with the original music while listening to the original music, and can also adjust the beat speed of the beat audio according to the user's movement, thereby improving the user's sports and listening experience. .

本發明的一實施例提供一種節拍標記方法,用於電子裝置標記音樂。所述電子裝置包括處理單元、儲存單元與音訊播放單元,其中所述處理單元可執行至少部分節拍標記方法。所述音樂經由對應所述音樂的音樂檔案所播放,所述儲存單元用以儲存所述音樂檔案。所述節拍標記方法包括經由所述音樂檔案取得所述音樂的節奏速度,根據所述節奏速度,選擇預設節拍音訊與對應所述預設節拍音訊的節拍速度;將所述預設節拍音訊根據所述節拍速度與所述節奏速度標記至所述音樂;以及透過所述音訊播放單元同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。An embodiment of the present invention provides a beat marking method for an electronic device to mark music. The electronic device includes a processing unit, a storage unit and an audio playback unit, wherein the processing unit can execute at least part of the beat marking method. The music is played through a music file corresponding to the music, and the storage unit is configured to store the music file. The tempo marking method includes obtaining the tempo of the music via the music file, selecting a preset tempo audio and a tempo corresponding to the preset tempo audio according to the tempo; and dividing the preset tempo audio according to The beat speed and the rhythm speed are marked to the music; and the music and the preset beat audio marked to the music are simultaneously played through the audio playback unit.

在本發明的一實施例中,其中上述將所述預設節拍音訊根據所述節拍速度與所述節奏速度標記至所述音樂的步驟包括判斷是否需限制所述節奏速度;若需限制所述節奏,判斷所述節奏速度是否在目標速度區間內;若所述節奏速度在所述目標速度區間內,並且根據所述節奏速度將所述節拍速度調整為調整後節拍速度,其中所述調整後節拍速度相等於所述節奏速度。此外,若所述節奏速度不在所述目標速度區間內,根據所述節奏速度與所述目標速度區間將所述節拍速度調整為所述調整後節拍速度;以及將所述預設節拍音訊根據所述調整後節拍速度標記至所述音樂。In an embodiment of the present invention, the step of marking the preset beat audio to the music according to the beat speed and the rhythm speed includes determining whether to limit the rhythm speed; Rhythm, to determine whether the rhythm speed is within the target speed interval; if the rhythm speed is within the target speed interval, and adjusting the beat speed to an adjusted beat speed according to the rhythm speed, wherein the adjusted The tempo is equal to the tempo. In addition, if the rhythm speed is not within the target speed interval, adjusting the beat speed to the adjusted beat speed according to the rhythm speed and the target speed interval; and adjusting the preset beat audio according to the The tempo mark after adjustment to the music is described.

在本發明的一實施例中,所述方法更包括若不需限制所述節奏速度,選擇所述預設節拍音訊;以及將所述預設節拍音訊根據所述節奏速度標記至所述音樂,並且同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。In an embodiment of the present invention, the method further includes selecting the preset beat audio without limiting the rhythm speed; and marking the preset beat audio to the music according to the rhythm speed, And the music and the preset beat audio marked to the music are played simultaneously.

在本發明的一實施例中,其中上述判斷經由所述音樂檔案是否取得所述音樂的所述節奏速度的步驟包括判斷所述音樂檔案是否存在節奏速度資訊,其中所述節奏速度資訊用以指示所述音樂的所述節奏速度;若所述音樂檔案存在所述節奏速度資訊,根據所述節奏速度資訊取得所述音樂的所述節奏速度;若所述音樂檔案不存在所述節奏速度資訊且所述節奏速度不可經由計算而取得,判斷是否需執行強制標記操作;以及若需執行所述強制標記操作,選擇所述預設節拍音訊與對應所述預設節拍音訊的所述節拍速度,將所述預設節拍音訊根據所述節拍速度標記至所述音樂。In an embodiment of the present invention, the step of determining whether to obtain the tempo of the music via the music file includes determining whether tempo information exists in the music file, wherein the tempo information is used to indicate The rhythm speed of the music; if the music file has the rhythm speed information, obtain the rhythm speed of the music according to the rhythm speed information; if the music file does not exist the rhythm speed information and The tempo cannot be obtained through calculation to determine whether a forced marking operation is required; and if the forced marking operation is required, selecting the preset beat audio and the beat speed corresponding to the preset beat audio, The preset beat audio is marked to the music according to the beat speed.

在本發明的一實施例中,其中上述選擇所述預設節拍音訊與對應所述預設節拍音訊的所述節拍速度的步驟包括:根據多個節拍音訊的多個節拍速度與所述音樂的所述節奏速度從所述節拍音訊中選擇所述節拍音訊中的其中之一做為所述預設節拍音訊,其中所述預設節拍音訊的所述節拍速度與所述音樂的所述節奏速度之間的差距小於其他節拍音訊的所述節拍速度與所述音樂的所述節奏速度之間的差距。In an embodiment of the present invention, the step of selecting the preset beat audio and the beat speed corresponding to the preset beat audio includes: according to multiple beat speeds of multiple beat audio and the music The rhythm speed selects one of the beat audio from the beat audio as the preset beat audio, wherein the beat speed of the preset beat audio and the rhythm speed of the music The difference between them is smaller than the difference between the tempo of other tempo audio and the tempo of the music.

在本發明的一實施例中,所述方法更包括:執行運動計劃,並且取得對應所述運動計劃的目標運動速度,其中在執行所述運動計劃的期間,判定需限制所述節奏速度,並且根據所述目標運動速度來設定所述目標速度區間。此外,在執行所述運動計劃的所述期間,偵測使用者的運動心率與運動速度,並且根據所述使用者的所述運動心率來判斷所述使用者是否處於安全狀態。在執行所述運動計劃的所述期間,若所述使用者不處於所述安全狀態,執行保險操作;在執行所述運動計劃的所述期間,若所述使用者處於所述安全狀態,根據所述使用者的所述運動速度與所述目標運動速度來判斷所述使用者的所述運動速度是否符合所述運動計劃;以及若所述使用者處於所述安全狀態且所述使用者的所述運動速度不符合所述運動計劃,調整同時播放的所述音樂與標記至所述音樂的所述預設節拍音訊,進而強調所述節拍音訊。In an embodiment of the present invention, the method further includes: executing an exercise plan and obtaining a target exercise speed corresponding to the exercise plan, wherein during the execution of the exercise plan, it is determined that the rhythm speed needs to be restricted, and The target speed interval is set according to the target movement speed. In addition, during the period of executing the exercise plan, a user's exercise heart rate and exercise speed are detected, and whether the user is in a safe state is determined based on the exercise heart rate of the user. During the period of executing the exercise plan, if the user is not in the safe state, perform an insurance operation; during the period of executing the exercise plan, if the user is in the safe state, according to Determining whether the user's speed of movement conforms to the exercise plan by the user's speed of movement and the target speed of movement; and if the user is in the safe state and the user's The exercise speed does not conform to the exercise plan, and the music and the preset beat audio marked to the music are adjusted at the same time to further emphasize the beat audio.

在本發明的一實施例中,其中上述根據所述目標運動速度來設定所述目標速度區間的步驟包括根據所述目標運動速度來取得對應所述目標速度區間的速度上限值與速度下限值,其中所述速度上限值與所述速度下限值所形成的範圍為所述目標速度區間。In an embodiment of the present invention, the step of setting the target speed interval according to the target movement speed includes obtaining a speed upper limit value and a lower speed limit corresponding to the target speed interval according to the target movement speed. Value, wherein the range formed by the speed upper limit value and the speed lower limit value is the target speed interval.

在本發明的一實施例中,其中上述調整同時播放的所述音樂與標記至所述音樂的所述預設節拍音訊的步驟包括:降低所述音樂的音量。In an embodiment of the present invention, the step of adjusting the music and the preset beat audio marked to the music at the same time includes: reducing the volume of the music.

在本發明的一實施例中,其中上述調整同時播放的所述音樂與標記至所述音樂的所述預設節拍音訊的步驟更包括以下步驟的其中之一或其組合:增強標記至所述音樂的所述預設節拍音訊的音量;以及加重所述預設節拍音訊的特徵。In an embodiment of the present invention, the step of adjusting the music and marking to the preset beat audio of the music that is played simultaneously further comprises one or a combination of the following steps: enhancing marking to the The volume of the preset beat audio of the music; and accentuating the characteristics of the preset beat audio.

如在本發明的一實施例中,其中上述執行所述保險操作的步驟包括以下步驟的其中之一或其組合:停止播放所述音樂或所述預設節拍音訊;發出提示聲音訊息;以及降低所述預設節拍音訊的所述節拍速度。As in an embodiment of the present invention, the step of performing the insurance operation includes one or a combination of the following steps: stopping playing the music or the preset beat audio; issuing a prompt sound message; and reducing The tempo of the preset tempo audio.

基於上述,本發明的實施例所提供的節拍標記方法,可取得原始的音樂與其節奏速度,根據需求來選擇且調整合適的節拍音訊與對應的節拍速度,將所選擇的節拍音樂標記至所述音樂,以同時播放所述音樂與標記至所述音樂的節拍音訊。如此一來,當特定條件發生時,可在不修改所述音樂的情況下,彈性調整標記至所述音樂的節拍音訊或所述音樂,以增進使用者的聆聽體驗,進而強化使用者進行相關活動的效果。Based on the above, the beat labeling method provided by the embodiment of the present invention can obtain the original music and its tempo, select and adjust the appropriate beat audio and corresponding beat speed according to requirements, and mark the selected beat music to the Music to play the music and beat audio tagged to the music at the same time. In this way, when specific conditions occur, the beat audio or the music can be flexibly adjusted without modifying the music to enhance the user's listening experience and further strengthen the user's relevance. Effect of the event.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.

以下會提供多個實施例,以從各方面來詳細說明本發明的節拍標記方法。應注意的是,為了便於說明,於下列各個實施例中,會使用行動裝置(例如,智慧型手機)來做為實現(或應用)本發明所提供的節拍標記方法的示例性的電子裝置(如,經由行動裝置的處理器來存取且執行描述所述節拍標記方法的應用程式,以實現所述節拍標記方法)。然而,本發明不限於此,例如,其他任何可存取且執行對應所述節拍標記方法的應用程式的合適的電子裝置亦可用以實現本發明所提供的節拍標記方法。A number of embodiments are provided below to explain the beat marking method of the present invention in detail from various aspects. It should be noted that, for the convenience of description, in the following embodiments, a mobile device (for example, a smart phone) is used as an exemplary electronic device (or an application) for implementing (or applying) the beat marking method provided by the present invention ( For example, an application describing the beat marking method is accessed and executed via a processor of a mobile device to implement the beat marking method). However, the present invention is not limited to this. For example, any other suitable electronic device that can access and execute an application corresponding to the beat marking method can also be used to implement the beat marking method provided by the present invention.

此外,本發明所提供的節拍標記方法,可實現在硬體、韌體中,或者可實現為可儲存在記錄介質(諸如CD ROM、RAM、軟碟、硬碟或磁光碟)中的軟體或電腦代碼或者透過網路下載並儲存在記憶體上的軟體或電腦代碼(或程式碼),從而在此描述的方法可實施在這樣的使用通用電腦的軟體中或者專用處理器或者可編程或專用硬體(諸如ASIC或FPGA)中。在本領域中具有通常知識者應理解,電腦、處理器、微處理器控制器或可編程硬體包括可儲存或接收軟體或電腦代碼的儲存元件(例如,RAM、ROM、快閃記憶體等),當所述軟體或電腦代碼被電腦訪問和執行時,處理器或硬體可實現在此描述的處理方法。另外,應注意的是,當通用電腦訪問用於實現在此說明的處理的代碼時,代碼的執行將通用電腦變換為用於執行在此說明的處理的專用電腦。In addition, the beat marking method provided by the present invention can be implemented in hardware or firmware, or can be implemented as software or can be stored in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk. Computer code or software or computer code (or code) downloaded from a network and stored in memory, so that the methods described herein can be implemented in such software using a general-purpose computer or a dedicated processor or programmable or dedicated Hardware (such as ASIC or FPGA). Those of ordinary skill in the art should understand that a computer, processor, microprocessor controller, or programmable hardware includes storage elements (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code. ), When the software or computer code is accessed and executed by a computer, the processor or hardware may implement the processing method described herein. In addition, it should be noted that when a general-purpose computer accesses the code for implementing the processing described herein, execution of the code converts the general-purpose computer into a dedicated computer for performing the processing described herein.

[第一實施例][First embodiment]

圖1是根據本發明的第一實施例所繪示的用以實現節拍標記方法的電子裝置的方塊圖。請參照圖1,假設電子裝置100為智慧型手機等類似的行動裝置100。行動裝置100包括處理單元110、儲存單元120與音訊播放單元130。FIG. 1 is a block diagram of an electronic device for implementing a beat marking method according to a first embodiment of the present invention. Referring to FIG. 1, it is assumed that the electronic device 100 is a similar mobile device 100 such as a smart phone. The mobile device 100 includes a processing unit 110, a storage unit 120, and an audio playback unit 130.

音訊播放單元130用以根據所接收的音訊訊號來進行播放(輸出)音訊的操作。此外,在另一實施例中,音訊播放單元130自身亦可對不同檔案格式的音樂檔案或是音訊檔案進行解/編碼,以產生對應的音訊訊號,進而輸出所述音訊訊號。在本實施例中,音訊播放單元130例如是具有音訊播放能力之電路單元或是處理器,並且音訊播放單元130具備有音訊輸出介面以連接音訊輸出裝置(例如,耳機、擴大機、喇叭等音訊輸出裝置)。應注意的是,在另一實施例中,音訊播放單元130亦可直接讀取儲存單元中的音樂資料庫121或節拍音訊資料庫122,以播放音樂或是節拍音訊。The audio playback unit 130 is configured to perform audio output (output) operation according to the received audio signal. In addition, in another embodiment, the audio playback unit 130 may also decode / encode music files or audio files of different file formats to generate corresponding audio signals, and then output the audio signals. In this embodiment, the audio playback unit 130 is, for example, a circuit unit or a processor with audio playback capability, and the audio playback unit 130 is provided with an audio output interface to connect audio output devices (such as headphones, amplifiers, speakers, and other audio). Output device). It should be noted that, in another embodiment, the audio playback unit 130 may also directly read the music database 121 or the beat audio database 122 in the storage unit to play music or beat audio.

處理單元110耦接至音訊播放單元130。在本實施例中,處理單元110為具備運算能力的硬體(例如晶片組、處理器等),用以管理行動裝置100的整體運作。在本範例實施例中,處理單元110,例如是一核心或多核心的中央處理單元(Central Processing Unit,CPU)、微處理器(micro-processor)、或是其他可程式化之處理單元(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置。The processing unit 110 is coupled to the audio playback unit 130. In this embodiment, the processing unit 110 is hardware (eg, a chipset, a processor, and the like) having computing capabilities, and is used to manage the overall operation of the mobile device 100. In this exemplary embodiment, the processing unit 110 is, for example, a core or multi-core Central Processing Unit (CPU), a microprocessor (micro-processor), or other programmable processing unit (Microprocessor ), Digital Signal Processor (DSP), Programmable Controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD), or other similar devices .

儲存單元120耦接至處理單元110與音訊播放單元130。在本實施例中,儲存單元120可經由處理單元110的指示來暫存資料,所述資料包括用以管理行動裝置100的資料(如,對應行動裝置100的軔體或是軟體)、從其他電子裝置所接收的資料、用以傳送至其他電子裝置的資料或是其他類型的資料,本發明不限於此。除此之外,儲存單元120還可以經由處理單元110的指示來記錄一些需要長時間儲存的資料。例如,在本實施例中,儲存單元120記錄有音樂資料庫121、節拍音訊資料庫122與對應節拍標記模組123的軔體或是軟體。其中,音樂資料庫121用以儲存多個音樂檔案(所述音樂檔案可用以播放對應的音樂、演講等音訊內容);以及節拍音訊資料庫122用以儲存多個節拍音訊。所述音樂/節拍音訊檔案可為不同檔案格式的音樂/節拍音訊檔案,並且處理單元110可對不同檔案格式的音樂檔案或節拍音訊檔案進行解/編碼,以處理所述音樂檔案或節拍音訊檔案,並且將所對應產生的音訊訊號經由音訊播放單元130來進行對應音樂/節拍音訊檔案的音樂/節拍音訊的播放。值得一提的是,在另一範例實施例中,儲存單元120也可以包含於處理單元110中。此外,音樂資料庫121/節拍音訊資料庫122亦可指多個音樂檔案/節拍音訊檔案的集合。The storage unit 120 is coupled to the processing unit 110 and the audio playback unit 130. In this embodiment, the storage unit 120 may temporarily store data according to an instruction of the processing unit 110, and the data includes data for managing the mobile device 100 (for example, a body or software corresponding to the mobile device 100), from other The present invention is not limited to the data received by the electronic device, data used for transmission to other electronic devices, or other types of data. In addition, the storage unit 120 can also record some data that needs to be stored for a long time via the instruction of the processing unit 110. For example, in this embodiment, the storage unit 120 records the carcass or software of the music database 121, the beat audio database 122, and the corresponding beat marker module 123. Among them, the music database 121 is used to store a plurality of music files (the music files can be used to play corresponding audio content such as music, speeches, etc.); and the beat audio database 122 is used to store a plurality of beat audios. The music / beat audio files may be music / beat audio files of different file formats, and the processing unit 110 may decode / encode music files or beat audio files of different file formats to process the music files or beat audio files , And the corresponding audio signal is played through the audio playback unit 130 to play the music / beat audio of the corresponding music / beat audio file. It is worth mentioning that, in another exemplary embodiment, the storage unit 120 may also be included in the processing unit 110. In addition, the music database 121 / beat audio database 122 may also refer to a collection of multiple music files / beat audio files.

此外,在本實施例中,處理單元110會存取且執行為軟體(或程式碼)形式的節拍標記模組123以實現本發明所提供的節拍標記方法。以下將會同時配合圖1與圖2來詳細說明本實施例所提供的節拍標記方法。In addition, in this embodiment, the processing unit 110 accesses and executes the beat marking module 123 in the form of software (or code) to implement the beat marking method provided by the present invention. The method for marking the beat provided by this embodiment will be described in detail below in conjunction with FIG. 1 and FIG. 2.

圖2是根據本發明的第一實施例所提供的節拍標記方法的流程圖。請同時參照圖1與圖2,在步驟S201中,節拍標記模組123判斷是否經由音樂檔案取得音樂的節奏速度。具體來說,如上所述,音樂資料庫121具有多個音樂檔案。節拍標記模組123可讀取所述音樂檔案來取得每一音樂檔案的音樂的節奏速度,或是節拍標記模組123可讀取所述音樂檔案來計算所述音樂檔案的音樂的節奏速度。所述節奏速度的單位為每分鐘節拍數(Beats per minute,BPM)。以下會配合圖3來說明本實施例如何取得音樂的節奏速度的方法。FIG. 2 is a flowchart of a beat marking method according to a first embodiment of the present invention. Please refer to FIG. 1 and FIG. 2 at the same time. In step S201, the beat marker module 123 determines whether to obtain the rhythm speed of the music through the music file. Specifically, as described above, the music library 121 has a plurality of music files. The beat marker module 123 may read the music files to obtain the rhythm speed of the music of each music file, or the beat marker module 123 may read the music files to calculate the rhythm speed of the music of the music files. The unit of the rhythm speed is Beats per minute (BPM). The method of how to obtain the tempo of music in this embodiment will be described below with reference to FIG. 3.

圖3是根據本發明的第一實施例所繪示的經由音樂檔案取得音樂的節奏速度的流程圖。請同時參照圖1與圖3,在步驟S2011中,節拍標記模組123判斷對應所述音樂的音樂檔案是否存在節奏速度資訊。例如,節拍標記模組123可讀取一音樂檔案,並且可辨識出所述音樂檔案已內嵌或內建節奏速度資訊,其中所述節奏速度資訊用以指示對應的音樂的所述節奏速度。此外,若所述音樂在不同的播放時間具有多個的節奏速度,則對應所述音樂的節奏速度資訊會記錄對應不同的播放時間的多個節奏速度。若在步驟S2011中,節拍標記模組123辨識出(判定)所述音樂檔案具有節奏速度資訊,則接續至步驟S2013,節拍標記模組123會根據所述節奏速度資訊取得所述音樂的節奏速度。FIG. 3 is a flowchart illustrating obtaining a rhythm speed of music through a music file according to a first embodiment of the present invention. Please refer to FIG. 1 and FIG. 3 at the same time. In step S2011, the beat marker module 123 determines whether there is rhythm speed information in the music file corresponding to the music. For example, the beat marker module 123 can read a music file, and can recognize that the music file has embedded or built-in rhythm speed information, wherein the rhythm speed information is used to indicate the rhythm speed of the corresponding music. In addition, if the music has multiple tempo speeds at different playback times, the tempo speed information corresponding to the music will record multiple tempo speeds corresponding to different playback times. If in step S2011, the beat marker module 123 recognizes (determines) that the music file has rhythm speed information, then proceed to step S2013, and the beat marker module 123 will obtain the rhythm speed of the music according to the rhythm speed information .

若在步驟S2011中,節拍標記模組123辨識出(判定)所述音樂檔案具不有節奏速度資訊,則接續至步驟S2015,節拍標記模組123會判斷所述音樂的所述節奏速度是否可經由計算而取得。具體來說,節拍標記模組123會讀取且分析所述音樂檔案,以辨識出所述音樂檔案的音樂的強拍對應播放的分布,進而根據所述音樂的強拍的分布來計算出所述音樂的節奏速度(如,每分鐘平均的強拍數目)。所述計算音樂的節奏速度的方式可參考目前的現有技術,不贅述於此。If in step S2011, the beat marker module 123 recognizes (determines) that the music file has no rhythm speed information, then proceed to step S2015, and the beat marker module 123 determines whether the rhythm speed of the music is available. Obtained through calculation. Specifically, the beat marker module 123 reads and analyzes the music file to identify the distribution of the strong beat of the music file corresponding to the playback, and then calculates the distribution based on the distribution of the strong beat of the music. Describe the tempo of the music (eg, the average number of beats per minute). For the manner of calculating the rhythm speed of music, reference may be made to the current prior art, and details are not described herein.

若在步驟S2015中,節拍標記模組123判定所述音樂的所述節奏速度不可經由計算而取得(如,所述音樂的強拍是隨機分布的),會判定經由音樂檔案沒有取得音樂的節奏速度。以下會配合其他實施例(如,第三、第四實施例)來說明若無法經由音樂檔案來取得音樂的節奏速度的對應操作。If in step S2015, the beat marker module 123 determines that the rhythm speed of the music cannot be obtained through calculation (for example, the strong beat of the music is randomly distributed), it will determine that the music rhythm is not obtained through the music file speed. In the following, other embodiments (for example, the third and fourth embodiments) will be described to explain the corresponding operation if the music file cannot be obtained through the music file.

若在步驟S2015中,節拍標記模組123判定所述音樂的所述節奏速度可經由計算而取得(如,所述音樂的強拍具有一定的規律與態樣),接續至步驟S2017,節拍標記模組123會經由計算取得所述音樂的所述節奏速度。值得一提的是,在步驟S2013、S2017後,節拍標記模組123會判定經由音樂檔案取得音樂的節奏速度,並且接續至步驟S2051。If in step S2015, the beat mark module 123 determines that the rhythm speed of the music can be obtained through calculation (for example, the strong beat of the music has a certain law and appearance), proceed to step S2017, the beat mark The module 123 obtains the tempo of the music through calculation. It is worth mentioning that after steps S2013 and S2017, the beat marker module 123 determines that the rhythm speed of the music is obtained through the music file, and proceeds to step S2051.

再回到圖2,在步驟S203中,節拍標記模組123會根據所述節奏速度,選擇預設節拍音訊與對應所述預設節拍音訊的節拍速度。在本實施例中,節拍標記模組123會根據廠商設定來來選擇預設節拍音訊。此外,節拍標記模組123會根據所述節奏速度,設定(選擇)相等於所述節奏速度的節拍速度,以對應所選擇的預設節拍音訊。在另一實施例中,節拍標記模組123可提供具有多個節拍音訊與節拍速度的選項給使用者,並且根據使用者的選擇來選擇預設節拍音訊與對應的節拍速度。以下會經由下方的多個實施例再說明選擇預設節拍音訊與對應預設節拍音訊的節拍速度的方式。Returning to FIG. 2 again, in step S203, the beat marking module 123 selects a preset beat audio and a beat speed corresponding to the preset beat audio according to the rhythm speed. In this embodiment, the beat marking module 123 selects a preset beat audio according to a manufacturer setting. In addition, the beat marker module 123 sets (selects) a beat speed equal to the beat speed according to the beat speed to correspond to the selected preset beat audio. In another embodiment, the beat marking module 123 may provide a user with multiple beat audio and beat speed options, and select a preset beat audio and corresponding beat speed according to the user's selection. The method of selecting a preset tempo audio and a tempo corresponding to the preset tempo audio will be described in the following embodiments.

在步驟S205中,節拍標記模組123會將所述預設節拍音訊根據所述節拍速度與所述節奏速度標記至所述音樂。具體來說,節拍標記模組123會根據所述音樂的強拍出現的時間,將預設節拍音訊以調整後節拍速度VB 的速度來對齊所述音樂的強拍來播放。也就是說,由於調整後節拍速度VB 等於音樂的節奏速度且音樂的節奏速度會對應音樂的強拍的出現時間。因此,當音樂的強拍出現時,標記至所述音樂的預設節拍音訊也會同時出現。In step S205, the beat marking module 123 marks the preset beat audio to the music according to the beat speed and the rhythm speed. Specifically, the beat marker module 123 will align the preset beat audio with the speed of the adjusted beat speed V B to align with the strong beat of the music for playback according to the appearance time of the strong beat of the music. That is, since the adjusted tempo V B is equal to the rhythm speed of the music and the rhythm speed of the music will correspond to the appearance time of the strong beat of the music. Therefore, when a strong beat of music appears, the preset beat audio marked to the music also appears at the same time.

接著,在步驟S207中,節拍標記模組123會指示音訊播放單元130同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。舉例來說,節拍標記模組123會將關於調整後節拍速度、預設節拍音樂與所述音樂的標記關係、所述預設節拍音樂、所述音樂的資訊傳送給音訊播放單元130,以讓音訊播放單元130可據此同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。Next, in step S207, the beat marking module 123 instructs the audio playback unit 130 to play the music and the preset beat audio marked to the music at the same time. For example, the beat marker module 123 sends information about the adjusted beat speed, the relationship between the preset beat music and the music, the preset beat music, and the music to the audio playback unit 130 so that The audio playback unit 130 can simultaneously play the music and the preset beat audio marked to the music.

[第二實施例][Second embodiment]

圖4是根據本發明的第二實施例所繪示的節拍標記方法的流程圖。圖4中的步驟S401、S413與圖2的步驟S201、S207相同,並且第二實施例用以實現節拍標記方法的電子裝置與對應元件相同於第一實施例,相關的細節不再贅述於此。FIG. 4 is a flowchart of a tempo marking method according to a second embodiment of the present invention. Steps S401 and S413 in FIG. 4 are the same as steps S201 and S207 in FIG. 2, and the electronic device and corresponding components used to implement the beat marking method in the second embodiment are the same as those in the first embodiment, and the relevant details are not repeated here. .

請參照圖4,在步驟S403中,節拍標記模組123會判斷是否須限制所述節奏速度。舉例來說,若使用者想要過濾出適合目前所進行的活動的音樂,使用者可經由按鈕或是觸發選項來通知節拍標記模組123使用者的需求。如此一來,節拍標記模組123便會判定需限制音樂的節奏速度。或是,在另一實施例中,廠商可預設限制音樂的節奏速度。Referring to FIG. 4, in step S403, the beat marking module 123 determines whether the rhythm speed must be restricted. For example, if the user wants to filter out the music that is suitable for the activity currently being performed, the user may notify the user of the beat marking module 123 by a button or a trigger option. In this way, the beat marking module 123 determines that the rhythm speed of the music needs to be limited. Or, in another embodiment, the manufacturer may preset to limit the rhythm speed of the music.

在本實施例中,節拍標記模組123在判定需限制音樂的節奏速度後,節拍標記模組123還會過濾音樂資料庫121的多個音樂檔案的多個音樂,以讓過濾後的音樂為適合所述活動的音樂,並且過濾後的音樂的節奏速度會被限制在目標速度區間。此外,在一實施例中,使用者亦可自主選擇所要聆聽的節奏速度,以讓節拍標記模組123限制節奏速度(或,過濾出對應使用者所選擇的節奏速度的音樂)。In this embodiment, after the beat marker module 123 determines that it is necessary to limit the rhythm speed of the music, the beat marker module 123 also filters multiple music from multiple music files in the music database 121, so that the filtered music is Music suitable for the activity, and the tempo of the filtered music will be limited to the target speed interval. In addition, in an embodiment, the user may also independently select the rhythm speed to be listened to, so that the beat marking module 123 limits the rhythm speed (or, filters out music corresponding to the rhythm speed selected by the user).

若在步驟S403中,節拍標記模組123判定需限制所述節奏速度,接續至步驟S405,節拍標記模組123會判斷所述節奏速度是否在目標速度區間內。If in step S403, the beat marking module 123 determines that the tempo needs to be restricted, and continues to step S405, the beat marking module 123 determines whether the beat speed is within the target speed range.

舉例來說,假設使用者想要進行一個活動,以讓節拍標記模組123可根據使用者所要進行的活動來設定目標速度區間,進而限制音樂的節奏速度。節拍標記模組123可提供多個選項讓使用者挑選目前要進行的活動,例如,慢跑、快跑、健走等等的活動,並且節拍標記模組123會分別對應不同的活動來設定不同的目標速度區間。所述目標速度區間為速度上限值VH (單位為BPM)與速度下限值VL (單位為BPM)之間的一個速度區間。接著,節拍標記模組123會根據使用者所選擇的活動或是目標速度區間來判斷音樂(如,當前所欲播放的音樂)的所述節奏速度是否在目標速度區間內。For example, suppose the user wants to perform an activity, so that the beat marker module 123 can set a target speed interval according to the activity that the user wants to perform, thereby limiting the rhythm speed of the music. The beat marker module 123 can provide multiple options for the user to select the current activities to be performed, such as jogging, fast running, walking, etc., and the beat marker module 123 can be set to correspond to different activities to set different Target speed range. The target speed interval is a speed interval between a speed upper limit value V H (in BPM) and a speed lower limit value V L (in BPM). Then, the beat marker module 123 determines whether the rhythm speed of the music (for example, the music to be currently played) is within the target speed interval according to the activity or the target speed interval selected by the user.

若所述節奏速度在目標速度區間內,接續至步驟S407,節拍標記模組123會根據所述節奏速度來將所述節拍速度調整為調整後節拍速度,其中所述調整後節拍速度相等於所述節奏速度。If the rhythm speed is within the target speed interval, proceeding to step S407, the beat marking module 123 adjusts the beat speed to the adjusted beat speed according to the rhythm speed, wherein the adjusted beat speed is equal to the adjusted beat speed. Said rhythmic speed.

具體來說,若所述節奏速度在目標速度區間內,節拍標記模組123會從節拍音訊資料庫中的多個節拍音訊中選擇一個節拍音訊作為預設節拍音訊,並且取得對應所述預設節拍音訊的節拍速度。舉例來說,假設目前所欲播放(選擇的)的音樂的節奏速度VO 為每分鐘150節拍數(以下稱“150 BPM”),預設節拍音訊為鼓聲,對應的節拍速度VB 為“140 BPM”。節拍標記模組123會將預設節拍音訊的節拍速度從原本的節拍速度VB 調整為調整後節拍速度VB ’,並且調整後節拍速度VB ’的速度等於為“150 BPM”的節奏速度VO 的速度(即,調整後節拍速度 VB ’= 節奏速度VO )。Specifically, if the rhythm speed is within the target speed interval, the beat marker module 123 will select one beat audio as a preset beat audio from a plurality of beat audios in the beat audio database, and obtain a corresponding beat audio. The tempo of the beat audio. For example, suppose that the rhythm speed V O of the music to be played (selected) is 150 beats per minute (hereinafter referred to as "150 BPM"), the preset beat audio is drum sound, and the corresponding beat speed V B is "140 BPM." The beat marker module 123 adjusts the beat speed of the preset beat audio from the original beat speed V B to the adjusted beat speed V B ', and the speed of the adjusted beat speed V B ' is equal to a rhythm speed of "150 BPM" The speed of V O (ie, the adjusted tempo V B '= rhythmic speed V O ).

當調整完對應預設節拍音訊的節拍速度後,在步驟S411中,節拍標記模組123會將所述預設節拍音訊根據所述調整後節拍速度標記至所述音樂。接著,接續至步驟S413,其中步驟S413的說明如同步驟S207,不再贅述於此。After adjusting the tempo corresponding to the preset tempo audio, in step S411, the tempo marking module 123 marks the preset tempo audio to the music according to the adjusted tempo. Then, proceed to step S413, where the description of step S413 is the same as step S207, and will not be repeated here.

若在步驟S405中,節拍標記模組123判定所述節奏速度不在目標速度區間內,接續至步驟S409,節拍標記模組123會根據所述節奏速度來將所述節拍速度調整為調整後節拍速度。不同於步驟S407的是,在步驟S409中的調整後節拍速度不會根據所述節奏速度來調整。以下會配合圖5來說明於步驟S409中節拍速度的調整方法。If in step S405, the beat marker module 123 determines that the tempo speed is not within the target speed range, proceeding to step S409, the beat marker module 123 will adjust the beat speed to the adjusted beat speed according to the beat speed. . What is different from step S407 is that the adjusted tempo in step S409 is not adjusted according to the rhythm speed. The method of adjusting the tempo in step S409 will be described below with reference to FIG. 5.

圖5是根據本發明的第二實施例所繪示的節拍速度的調整方法。請參照圖5,在步驟S4091中,節拍標記模組123會判斷所述節奏速度是否小於所述目標速度區間。具體來說,由於所述節奏速度不在目標速度區間內,節拍標記模組123會判斷所述節奏速度是大於目標速度區間的速度上限值VH 或是所述節奏速度是小於目標速度區間的速度下限值VLFIG. 5 illustrates a method for adjusting a tempo according to a second embodiment of the present invention. Referring to FIG. 5, in step S4091, the beat marking module 123 determines whether the rhythm speed is less than the target speed interval. Specifically, because the rhythm speed is not within the target speed interval, the beat marking module 123 determines whether the rhythm speed is greater than the speed upper limit value V H of the target speed interval or the rhythm speed is less than the target speed interval. Lower speed limit V L.

若節拍標記模組123判定所述節奏速度小於所述目標速度區間(如,所述節奏速度小於目標速度區間的速度下限值VL ),在步驟S4093中,節拍標記模組123會將所述節拍速度調整為所述節奏速度乘以第一常數所獲得的積,其中第一常數是經由所述目標速度區間的速度下限值除以所述節奏速度所獲得。舉例來說,假設節拍速度為 “VB ”、節奏速度為“VO ”、第一常數為“NL ”、速度下限值為 “VL ”。會獲得關於第一常數的公式,即,NL =VL /VO 。應注意的是,在本實施例中,還會對第一常數進行整數化的處理(但,整數化後的最小為值會限定為“1”)。例如,利用無條件捨去、四捨五入取整數、無條件進位等整數化的方法來對速度下限值VL 除以所述節奏速度VO 所獲得的商進行整數化處理所獲得的數值作為第一常數NL 。接著,再將節拍速度調整為所述節奏速度乘以第一常數所獲得的積(即,VB ’=VO *NL )。舉例來說,假設節拍速度為“100 BPM”、節奏速度為“20 BPM”、第一常數為“NL ”、速度下限值為“60 BPM”、速度上限值為 “180 BPM”。此外,還假設整數化的方法為無條件進位。由於在此例子中,節奏速度小於速度下限值(20<60),因此,經由上列的公式(VL /VO = 60/20=3)與整數化方法求出的第一常數NL 會為“3”,並且調整後節拍速度會為 “60 BPM”(20*3=60)。If the beat marking module 123 determines that the rhythm speed is less than the target speed interval (for example, the rhythm speed is less than the speed lower limit value V L of the target speed interval), in step S4093, the beat marking module 123 will The tempo adjustment is a product obtained by multiplying the rhythm speed by a first constant, wherein the first constant is obtained by dividing the lower limit value of the speed of the target speed interval by the rhythm speed. For example, assume that the tempo is “V B ”, the tempo is “V O ”, the first constant is “N L ”, and the lower limit of the tempo is “V L ”. A formula for the first constant is obtained, that is, N L = V L / V O. It should be noted that, in this embodiment, the first constant is also integerized (however, the minimum value after integerization is limited to "1"). For example, using a method such as unconditional rounding, rounding to an integer, and unconditional rounding to perform integerization on the quotient obtained by dividing the speed lower limit value V L by the rhythmic speed V O as the first constant N L. Then, the tempo is adjusted to a product obtained by multiplying the rhythm speed by a first constant (that is, V B '= V O * N L ). For example, assume that the tempo is "100 BPM", the tempo is "20 BPM", the first constant is "N L ", the lower speed limit is "60 BPM", and the upper speed limit is "180 BPM". In addition, the method of integerization is assumed to be an unconditional carry. In this example, the rhythm speed is less than the lower speed limit (20 <60). Therefore, the first constant N obtained from the formula (V L / V O = 60/20 = 3) and the integer method is used. L will be "3" and the adjusted tempo will be "60 BPM" (20 * 3 = 60).

若節拍標記模組123判定所述節奏速度不小於所述目標速度區間(如,所述節奏速度大於目標速度區間的速度上限值VH ),在步驟S4095中,節拍標記模組123會將所述節拍速度調整為所述節奏速度除以第二常數所獲得的商,其中第二常數是經由所述節奏速度除以所述目標速度區間的速度上限值所獲得。舉例來說,假設節拍速度為“VB ”、節奏速度為“VO ”、第二常數為“NH ”、速度上限值為“VH ”。會獲得關於第二常數的公式,即,NH =VO /VH 。應注意的是,在本實施例中,還會對第二常數進行整數化的處理(但,整數化後的最小為值會限定為“1”)。例如,利用無條件捨去、四捨五入取整數、無條件進位等整數化的方法來對所述節奏速度VO 除以速度上限值VH 所獲得的商進行整數化處理所獲得的數值作為第二常數NH 。接著,再將節拍速度調整為所述節奏速度除以第二常數所獲得的商(即,VB ’=VO /NH )。舉例來說,假設節拍速度為“100 BPM”、節奏速度為“240 BPM”、第二常數為“NH ”、速度下限值為“60 BPM”、速度上限值為 “180 BPM”。此外,還假設整數化的方法為無條件進位。由於在此例子中,節奏速度大於速度上限值(240>180),因此,經由上列的公式(VO /VH = 240/180=1.3)與整數化方法( “1.3”無條件進位成為“2”)求出的第二常數NH 會為“2”,並且調整後節拍速度會為“120 BPM”(240/2=120)。If the beat marking module 123 determines that the rhythm speed is not less than the target speed interval (for example, the rhythm speed is greater than the speed upper limit value V H of the target speed interval), in step S4095, the beat marking module 123 will The tempo adjustment is a quotient obtained by dividing the rhythm speed by a second constant, wherein the second constant is obtained by dividing the rhythm speed by a speed upper limit value of the target speed interval. For example, it is assumed that the tempo is “V B ”, the tempo is “V O ”, the second constant is “N H ”, and the upper limit of the tempo is “V H ”. A formula for the second constant is obtained, that is, N H = V O / V H. It should be noted that, in this embodiment, the second constant is also integerized (however, the minimum value after integerization is limited to "1"). For example, the value obtained by integerizing the quotient obtained by dividing the rhythmic speed V O by the speed upper limit value V H is used as the second constant by using integer methods such as unconditional rounding, rounding to round integers, and unconditional carry N H. Then, the tempo is adjusted to a quotient obtained by dividing the tempo by a second constant (ie, V B '= V O / N H ). For example, assume that the tempo is "100 BPM", the tempo is "240 BPM", the second constant is "N H ", the lower limit value is "60 BPM", and the upper limit value is "180 BPM". In addition, the method of integerization is assumed to be an unconditional carry. Because in this example, the tempo is greater than the upper speed limit (240> 180), the formula (V O / V H = 240/180 = 1.3) and the integer method ("1.3" unconditional rounding becomes "2") The second constant N H obtained will be "2", and the adjusted tempo will be "120 BPM" (240/2 = 120).

值得一提的是,廠商更可依據自身需求來設定第一常數與第二常數的其他計算方式,以讓所計算出的第一常數與第二常數在計算後都會成為正整數。例如,在另一實施例中,以第一常數為例子,第一常數的整數化方法可更設定為“若無條件進位遇奇數再加1”。舉例來說,假設節拍速度為“100 BPM”、節奏速度為“20 BPM”、第一常數為“NL ”、速度下限值為“60 BPM”、速度上限值為 “180 BPM”。此外,還假設整數化的方法為無條件進位且“若無條件進位遇奇數再加1”。由於在此例子中,經由上列的公式(VL /VO = 60/20=3)與整數化方法求出的第一常數NL 會為“3”,因此,第一常數會更被計算成為“4”(3+1=4),並且調整後節拍速度會為“60 BPM”(20*4=80)。應注意的是,讓第一常數與第二常數整數化的方式還包括經由上述的整數化方法(如,無條件進位、無條件捨去、四捨五入法),再加上“遇奇數再減1”、“遇偶數再加1”或“遇偶數再減1”。但是,最小值必須限制為1。It is worth mentioning that manufacturers can set other calculation methods of the first and second constants according to their own requirements, so that the calculated first and second constants will become positive integers after calculation. For example, in another embodiment, taking the first constant as an example, the method of integerization of the first constant may be further set to "plus 1 if the unconditional carry meets an odd number". For example, assume that the tempo is "100 BPM", the tempo is "20 BPM", the first constant is "N L ", the lower speed limit is "60 BPM", and the upper speed limit is "180 BPM". In addition, it is also assumed that the method of integerization is unconditional carry and "plus 1 if the unconditional carry meets an odd number". In this example, the first constant N L obtained through the above formula (V L / V O = 60/20 = 3) and the integer method will be “3”, so the first constant will be more The calculation becomes "4" (3 + 1 = 4), and the adjusted tempo will be "60 BPM" (20 * 4 = 80). It should be noted that the method of integerizing the first constant and the second constant also includes the above-mentioned integerization method (for example, unconditional rounding, unconditional rounding, rounding), plus "subtract 1 by odd numbers""Add 1 if you encounter an even number" or "Minus 1 if you encounter an even number". However, the minimum value must be limited to 1.

完成在步驟S409中所進行的調整節拍速度為調整後節拍速度的步驟後,便接續步驟S411、S413,其中步驟S411、S413的說明不再贅述於此。基於上述,第一實施例中步驟S203與步驟S205可更具體的經由第二實施例的步驟S403~S411(如,圖4中的虛線部分)來進行操作。After completing the step of adjusting the tempo to the adjusted tempo performed in step S409, steps S411 and S413 are continued, and the description of steps S411 and S413 will not be repeated here. Based on the above, steps S203 and S205 in the first embodiment can be more specifically performed through steps S403 to S411 (such as the dotted lines in FIG. 4) of the second embodiment.

值得一提的是,在另一實施例中,步驟S403是可被省略的。例如,經由步驟S401,節拍標記模組123取得音樂的節奏速度後,節拍標記模組123可直接執行步驟S405來判斷所述節奏速度是否在目標速度區間內,其中目標速度區間可為系統的預設速度區間,或是為使用者所選擇的速度區間。It is worth mentioning that, in another embodiment, step S403 can be omitted. For example, after step S401, the beat marker module 123 obtains the rhythm speed of the music, the beat marker module 123 may directly execute step S405 to determine whether the rhythm speed is within a target speed interval, where the target speed interval may be a system preset Set the speed zone or the speed zone selected by the user.

應注意的是,若在步驟S403中,節拍標記模組123判定不需限制所述節奏速度,接續至步驟S407,節拍標記模組123會選擇預設節拍音訊與對應所述預設節拍音訊的節拍速度,並且根據所述節奏速度來將所述節拍速度調整為調整後節拍速度,其中所述調整後節拍速度相等於所述節奏速度。也就是說,若不需限制所述節奏速度,例如使用者並沒有選擇所欲進行的活動,節拍標記模組123會將預設節拍音訊與原對應預設節拍音訊的節拍速度調整至與音樂的節奏速度相同,並且將預設節拍音訊根據節奏速度標記至音樂。It should be noted that if in step S403, the beat marker module 123 determines that it is not necessary to limit the tempo, proceeding to step S407, the beat marker module 123 will select the preset beat audio and the corresponding beat audio. A tempo, and the tempo is adjusted to an adjusted tempo according to the tempo, wherein the adjusted tempo is equal to the tempo. That is, if there is no need to limit the tempo, for example, the user does not select the desired activity, the beat marking module 123 will adjust the beat speed of the preset beat audio to the original corresponding preset beat audio to music. With the same tempo, and the preset beat audio is marked to the music according to the tempo.

[第三實施例][Third embodiment]

圖6是根據本發明的第三實施例所繪示的節拍標記方法的流程圖。請參照圖6,圖6中的步驟S601~S613的說明/流程分別與圖4的步驟S401~S413的說明/流程相同,並且第三實施例用以實現節拍標記方法的電子裝置與對應元件相同於第二實施例。第三實施例與第二實施例不同之處在於,在步驟S601中,若節拍標記模組123經由音樂檔案沒有取得音樂的節奏速度(如,音樂檔案沒有內嵌或內建節奏速度資訊,並且無法經由音樂檔案來計算對應的音樂的節奏速度),接續至步驟S615,節拍標記模組123會判斷是否需執行強制標記操作。具體來說,廠商可預先設定是否需執行強制標記操作,或使用者亦可選擇是否需執行強制標記操作。所述強制標記操作為在不考慮所述音樂的節奏速度的情況下,強制將預設節拍音訊標記至所述音樂,以同時播放所述音樂與所述預設節拍音訊。FIG. 6 is a flowchart of a tempo marking method according to a third embodiment of the present invention. Please refer to FIG. 6. The descriptions / flows of steps S601 to S613 in FIG. 6 are the same as the descriptions / flows of steps S401 to S413 in FIG. 4, and the electronic device for implementing the beat marking method in the third embodiment is the same as the corresponding component. In the second embodiment. The third embodiment is different from the second embodiment in that, in step S601, if the beat marker module 123 does not obtain the rhythm speed of the music via the music file (for example, the music file does not have embedded or built-in rhythm speed information, and (It is not possible to calculate the rhythm speed of the corresponding music through the music file), proceeding to step S615, the beat marking module 123 determines whether a forced marking operation needs to be performed. Specifically, the manufacturer can set whether to perform a forced marking operation in advance, or the user can choose whether to perform a forced marking operation. The compulsory marking operation is to forcibly mark a preset beat audio to the music without considering the rhythm speed of the music to play the music and the preset beat audio at the same time.

若需執行強制標記操作,在步驟S617中,節拍標記模組123會選擇預設節拍音訊與對應所述預設節拍音訊的節拍速度。例如,在一實施例中,使用者可自行從節拍音訊資料庫中的多個節拍音訊中選擇一節拍音訊作為預設節拍音訊,並且使用者可自行設定對應的節拍速度。又例如,使用者可選擇所欲進行的活動,節拍標記模組123會根據使用者所選擇的活動來選擇合適的預設節拍音訊與節拍速度。If a forced marking operation needs to be performed, in step S617, the beat marking module 123 selects a preset beat audio and a beat speed corresponding to the preset beat audio. For example, in one embodiment, the user may select a beat audio from a plurality of beat audios in the beat audio database as a preset beat audio, and the user may set a corresponding beat speed. For another example, the user may select an activity to be performed, and the beat marking module 123 may select an appropriate preset beat audio and beat speed according to the activity selected by the user.

在步驟S619中,節拍標記模組123會將所選擇的預設節拍音訊根據所述節拍速度標記至所述音樂。具體來說,在選擇完預設節拍音訊與對應的節拍速度後,節拍標記模組123會強制(直接地)將預設節拍音訊標記至所述音樂。最後,接續步驟S613,節拍標記模組123再指示音訊播放單元來同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。如此一來,藉由強制標記操作,使用者可以不考慮音樂的節奏速度,而同時聆聽音樂與標記至所述音樂的預設節拍音訊。例如,使用者可以在聽演講(不具有特定的節奏速度的音訊內容)時,將具有符合跑步速度的節拍速度的節拍音訊標記至演講,以讓使用者可在聆聽演講時跟隨節拍音訊來進行跑步。In step S619, the beat marking module 123 marks the selected preset beat audio to the music according to the beat speed. Specifically, after selecting the preset beat audio and the corresponding beat speed, the beat marking module 123 will force (directly) mark the preset beat audio to the music. Finally, following step S613, the beat marking module 123 instructs the audio playback unit to simultaneously play the music and the preset beat audio marked to the music. In this way, by forcing the mark operation, the user can listen to the music and the preset beat audio of the mark to the music at the same time regardless of the rhythm speed of the music. For example, when listening to a lecture (audio content that does not have a specific tempo), the user can mark the beat audio with a beat speed that matches the running speed to the speech so that the user can follow the beat audio to listen to the lecture. Run.

[第四實施例][Fourth embodiment]

圖7是根據本發明的第四實施例所繪示的節拍標記方法的流程圖。請參照圖7,圖7中的步驟S701~S715的說明/流程分別與圖6的步驟S601~S615的說明/流程相同,並且第四實施例用以實現節拍標記方法的電子裝置與對應元件相同於第三實施例。第四實施例與第三實施例不同之處在於,在步驟S715中,若判定需執行強制標記操作,在步驟S717中,節拍標記模組123會接收使用者所輸入的節奏速度。具體來說,節拍標記模組123可提供選項讓使用者直接選擇節奏速度或是節拍標記模組123可讓使用者直接輸入節奏速度。接著,節拍標記模組123便可依據使用者所輸入的節奏速度來選擇預設節拍音訊與調整對應的節拍速度。如同步驟S707所述,節拍標記模組123會選擇預設節拍音訊與對應所述預設節拍音訊的節拍速度,並且根據所述節奏速度來將所述節拍速度調整為調整後節拍速度,其中所述調整後節拍速度相等於所述節奏速度。後續的步驟(S713)說明如上,不再贅述於此。FIG. 7 is a flowchart of a tempo marking method according to a fourth embodiment of the present invention. Please refer to FIG. 7. The descriptions / flows of steps S701 to S715 in FIG. 7 are the same as the descriptions / flows of steps S601 to S615 in FIG. 6, and the electronic device used to implement the beat marking method in the fourth embodiment is the same as the corresponding component. In the third embodiment. The fourth embodiment is different from the third embodiment in that, in step S715, if it is determined that a forced marking operation needs to be performed, in step S717, the beat marking module 123 receives the rhythm speed input by the user. Specifically, the beat marker module 123 may provide an option for the user to directly select the rhythm speed or the beat marker module 123 may allow the user to directly input the rhythm speed. Then, the beat marker module 123 can select a preset beat audio and adjust the corresponding beat speed according to the rhythm speed input by the user. As described in step S707, the beat marker module 123 selects a preset beat audio and a beat speed corresponding to the preset beat audio, and adjusts the beat speed to an adjusted beat speed according to the rhythm speed, where The adjusted tempo is equal to the tempo. The subsequent steps (S713) are as described above, and are not repeated here.

[第五實施例][Fifth embodiment]

圖8是根據本發明的第五實施例所繪示的節拍標記方法的流程圖。請參照圖8,圖8中的步驟S801、S811、S813的說明分別與圖2的步驟S201、S211、S213的說明相同,並且第五實施例用以實現節拍標記方法的電子裝置與對應元件相同於第二實施例。以下會配合圖1與圖8來詳細說明第五實施例的其他步驟。FIG. 8 is a flowchart of a tempo marking method according to a fifth embodiment of the present invention. Please refer to FIG. 8. The descriptions of steps S801, S811, and S813 in FIG. 8 are the same as the descriptions of steps S201, S211, and S213 in FIG. 2, respectively, and the electronic device used to implement the beat marking method in the fifth embodiment is the same as the corresponding component. In the second embodiment. Hereinafter, other steps of the fifth embodiment will be described in detail with reference to FIGS. 1 and 8.

在步驟S803中,節拍標記模組123會選擇預設節拍音訊與對應所述預設節拍音訊的節拍速度。具體來說,第五實施例提供了一種根據節奏速度來自動選擇預設節拍音訊與對應的節拍速度的方法。在本實施例中,節拍標記模組123會從節拍音訊資料庫中的多個節拍音訊檔案來辨識對應每一節拍音訊檔案的節拍音訊與節拍速度。接著,節拍標記模組123會計算每一節拍音訊的節拍速度與節奏速度的差距(例如,對節拍速度減去節奏速度所獲得的差值取絕對值),並且在多個差距中選出一最小者作為預設節拍音訊。也就是說,節拍標記模組123會選擇節拍速度最接近節奏速度的節拍音訊來做為預設節拍音訊。值得一提的是,當有兩個以上的節拍音訊符合選擇條件時,可再經由以下方式的其中之一來進行篩選:自動選擇節拍速度較快者;自動選擇節拍速度較慢者;使用者手動選擇;以及自動隨機選擇。In step S803, the beat marking module 123 selects a preset beat audio and a beat speed corresponding to the preset beat audio. Specifically, the fifth embodiment provides a method for automatically selecting a preset beat audio and a corresponding beat speed according to a rhythm speed. In this embodiment, the beat marking module 123 identifies the beat audio and beat speed corresponding to each beat audio file from multiple beat audio files in the beat audio database. Next, the beat marker module 123 calculates the difference between the beat speed and the rhythm speed of each beat audio (for example, the absolute value of the difference obtained by subtracting the beat speed from the beat speed), and selects a minimum value among multiple differences. As the preset beat audio. That is, the beat marker module 123 selects the beat audio whose beat speed is closest to the rhythm speed as the preset beat audio. It is worth mentioning that when there are more than two beat audios that meet the selection conditions, they can be filtered by one of the following methods: automatically selecting the faster beat speed; automatically selecting the slower beat speed; the user Manual selection; and automatic random selection.

此外,如上所述,若音樂具有多個節奏速度,節拍標記模組123會分別依照上述的方式來對應地選擇多個預設節拍音訊。然而,在另一實施例中,節拍標記模組123可用同一種預設節拍音訊經由分別對應一個音樂的不同節奏速度的節拍速度標記至所述音樂。In addition, as described above, if the music has multiple rhythm tempo, the beat marking module 123 will select a plurality of preset beat audios correspondingly in the manner described above. However, in another embodiment, the beat marking module 123 can mark the music with the same preset beat audio through the beat tempo corresponding to different tempo of a piece of music.

在步驟S805中,節拍標記模組123會判斷所述節拍速度是否等於所述節奏速度。若所述節拍速度不等於所述節奏速度,在步驟S807中,節拍標記模組123會判斷是否調整所述節拍速度。具體來說,節拍標記模組123可根據廠商的設定或是使用者的設定來決定是否調整所述節拍速度。In step S805, the beat marking module 123 determines whether the beat speed is equal to the rhythm speed. If the tempo is not equal to the tempo, in step S807, the tempo marking module 123 determines whether to adjust the tempo. Specifically, the beat marking module 123 may decide whether to adjust the beat speed according to a manufacturer's setting or a user's setting.

若判定調整所述節拍速度,接續至步驟S809,節拍標記模組123會將預設節拍音訊的所述節拍速度調整為調整後節拍速度,其中所述調整後節拍速度相等於所述節奏速度。換句話說,節拍標記模組123會將對應預設節拍音訊的節拍速度調整為節奏速度。若判定不調整所述節拍速度,接續至步驟S815,節拍標記模組123會將所述預設節拍音訊標記至所述音樂。也就是說,節拍標記模組123會直接根據節拍速度將節拍音訊標記至所述音樂。If it is determined to adjust the tempo, proceeding to step S809, the tempo marking module 123 adjusts the tempo of the preset tempo audio to an adjusted tempo, wherein the adjusted tempo is equal to the tempo. In other words, the beat marker module 123 adjusts the beat speed corresponding to the preset beat audio to a rhythm speed. If it is determined that the tempo is not adjusted, proceeding to step S815, the tempo marking module 123 tags the preset tempo audio to the music. That is, the beat marking module 123 will mark the beat audio to the music directly according to the beat speed.

此外,在步驟S805中,若判定所述節拍速度等於所述節奏速度,也會接執行步驟S815。In addition, in step S805, if it is determined that the tempo is equal to the rhythm speed, step S815 is also executed.

以下會藉由第六實施例與對應的圖式來說明如何進一步應用本發明所提供的節拍標記方法。In the following, the sixth embodiment and corresponding drawings are used to explain how to further apply the beat marking method provided by the present invention.

[第六實施例][Sixth embodiment]

圖9是根據本發明的第六實施例所繪示的用以實現節拍標記方法的電子裝置的方塊圖。其中,第六實施例中與第一實施例相同的元件(如,處理單元110、儲存單元120、音樂資料庫121、節拍音訊資料庫122、節拍標記模組123與音訊播放單元)不再贅述於此。以下僅說明圖9中與對應第一實施例的圖1不同的元件。值得一提的是,第六實施例是說明如何將上述的節拍標記方法應用至針對使用者的運動引導。FIG. 9 is a block diagram of an electronic device for implementing a beat marking method according to a sixth embodiment of the present invention. The sixth embodiment has the same components as the first embodiment (such as the processing unit 110, the storage unit 120, the music database 121, the beat audio database 122, the beat marker module 123, and the audio playback unit), and the details are not described again. herein. Only the elements in FIG. 9 that are different from those in FIG. 1 corresponding to the first embodiment will be described below. It is worth mentioning that the sixth embodiment is to explain how to apply the above-mentioned beat marking method to exercise guidance for users.

在本實施例中,行動裝置100(亦稱電子裝置100)包括處理單元110、儲存單元120、音訊播放單元130、偵測單元140與運動計劃管理單元150。處理單元110耦接至儲存單元120、音訊播放單元130、偵測單元140與運動計劃管理單元150。In this embodiment, the mobile device 100 (also referred to as the electronic device 100) includes a processing unit 110, a storage unit 120, an audio playback unit 130, a detection unit 140, and an exercise plan management unit 150. The processing unit 110 is coupled to the storage unit 120, the audio playback unit 130, the detection unit 140, and the exercise plan management unit 150.

偵測單元140用以偵測使用者的生理狀態(如,運動心率)或是活動狀態(如,運動速度)。舉例來說,偵測單元140例如是偵測使用者的運動心率與運動速度的電路單元。又例如,偵測單元140可經由智慧型穿戴裝置等裝置(或偵測單元140自身)來感測使用者當前進行運動的心率(即,運動心率)。又例如,偵測單元140為具有全球定位系統功能的電路單元,並且可經由全球定位系统來計算使用者的運動速度,或是偵測單元140可接收其他可感測使用者運動速度的裝置所傳送的資料來獲得使用者的運動速度。The detection unit 140 is configured to detect a physiological state (for example, exercise heart rate) or an active state (for example, exercise speed) of the user. For example, the detection unit 140 is, for example, a circuit unit that detects a user's exercise heart rate and exercise speed. For another example, the detection unit 140 may sense the heart rate (ie, exercise heart rate) currently performed by the user through a device such as a smart wearable device (or the detection unit 140 itself). For another example, the detection unit 140 is a circuit unit with a global positioning system function, and can calculate the user's movement speed via the global positioning system, or the detection unit 140 can receive other devices that can sense the user's movement speed. The data sent to get the user's speed.

運動計劃管理單元150用以管理與執行運動計劃,並且傳送對應所執行的運動計劃的資訊給處理單元110(或節拍標記模組123)。所述對應所執行的運動計劃的資訊包括目標運動速度。所述運動計劃會針對不同的運動,在執行運動計劃的期間,隨著所述期間的時間先後,給予使用者不同的運動指示。舉例來說,假設運動計劃為針對跑步訓練的運動計劃(亦稱,跑步計劃)。運動計劃管理單元150會設定跑步計劃的時間長度,並且在執行跑步計劃的期間內,於不同的時間點,給予不同的跑步速度的指示(如,不同的目標運動速度)。The exercise plan management unit 150 is used to manage and execute the exercise plan, and transmits information corresponding to the executed exercise plan to the processing unit 110 (or the beat marking module 123). The information corresponding to the executed exercise plan includes a target exercise speed. The exercise plan is directed to different sports, and during the execution of the exercise plan, the user is given different exercise instructions according to the time of the period. For example, suppose the exercise plan is an exercise plan (also known as a running plan) for running training. The exercise plan management unit 150 sets the length of the running plan, and gives different running speed instructions (eg, different target exercise speeds) at different time points during the execution of the running plan.

以下會同時配合圖10與圖9來詳細說明第六實施例所提供的應用節拍標記方法的運動引導。值得一提的是,第六實施例的主要概念是在判定使用者處於安全的運動狀態下,給予使用者運動引導,而在不安全的運動狀態下,也會提供保險機制。此外,運動引導的方式為調整所播放的音樂或節拍音訊以讓節拍音訊更明顯,其中會再經由前述實施例所提供的節拍標記方法來同時播放音樂與節拍音訊。The following will describe in detail the motion guidance using the beat marking method provided by the sixth embodiment in conjunction with FIG. 10 and FIG. 9. It is worth mentioning that the main concept of the sixth embodiment is to provide the user with motion guidance when determining that the user is in a safe motion state, and also provide a safety mechanism in an unsafe motion state. In addition, the way of motion guidance is to adjust the played music or beat audio to make the beat audio more obvious, and then the music and beat audio are played simultaneously through the beat marking method provided by the foregoing embodiment.

圖10是根據第六實施例所繪示的應用節拍標記的運動引導的流程圖。請參照圖10,在步驟S1001中,節拍標記模組123取得對應運動計劃的目標運動速度。舉例來說,節拍標記模組123可從運動計劃管理單元150接收所執行運動計劃當前的目標運動速度。接著,在步驟S1003中,節拍標記模組123會根據所述目標運動速度來限制音樂的節奏速度,並且根據所述音樂的所述節奏速度與預設節拍音訊的節拍速度來將預設節拍音訊標記至所述音樂,進而同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。具體來說,由於運動計劃管理單元150執行運動計劃。運動計劃管理單元150會將對應的目標運動速度的資訊傳送給節拍標記模組123。接著,節拍標記模組123會判定需根據目標運動速度來限制音樂的節奏速度。更詳細來說,節拍標記模組123會經由查表等方式來根據目標運動速度設定目標速度區間。舉例來說,節拍標記模組123可根據每個不同的運動計劃的目標運動速度(單位例如為:公里/小時)的大小,經由查詢一轉換表來獲得對應的目標速度區間,單位例如為:每分鐘節拍數(Beats Per Minute,BPM)。在另一實施例中,所述轉換表亦可處理不同單位的目標運動心率與目標速度區間之間的換算。換句話說,藉由多種轉換表,節拍標記模組123亦可將不同廠商的運動計劃的目標參數(例如,目標運動速度或目標運動心率)換算為經標準化後的目標速度區間。FIG. 10 is a flowchart illustrating motion guidance using a beat marker according to a sixth embodiment. Referring to FIG. 10, in step S1001, the beat marking module 123 obtains a target exercise speed corresponding to the exercise plan. For example, the beat marking module 123 may receive the current target exercise speed of the executed exercise plan from the exercise plan management unit 150. Next, in step S1003, the beat marking module 123 limits the rhythm speed of the music according to the target movement speed, and sets the preset beat audio according to the rhythm speed of the music and the beat speed of the preset beat audio. Mark to the music, and then play the music and the preset beat audio marked to the music simultaneously. Specifically, since the exercise plan management unit 150 executes the exercise plan. The exercise plan management unit 150 transmits the corresponding target exercise speed information to the beat marking module 123. Then, the beat marker module 123 determines that the rhythm speed of the music needs to be limited according to the target movement speed. In more detail, the beat marking module 123 may set a target speed interval according to the target movement speed through a table lookup method or the like. For example, the beat marker module 123 can obtain a corresponding target speed interval by querying a conversion table according to the size of the target movement speed (unit: km / h) of each different exercise plan, for example: Beats Per Minute (BPM). In another embodiment, the conversion table can also handle conversions between target exercise heart rate and target speed interval in different units. In other words, with various conversion tables, the beat marking module 123 can also convert target parameters (for example, target exercise speed or target exercise heart rate) of exercise plans of different manufacturers into standardized target speed intervals.

更詳細來說,節拍標記模組123可根據目標運動速度來取得對應的目標速度區間的速度上限值與速度下限值,其中所述速度上限值與所述速度下限值所形成的範圍為所述目標速度區間。如此一來,節拍標記模組123可如第一至第五實施例的節拍標記方法,判斷音樂的節奏速度是否在所述目標速度區間,以對應地選擇或調整預設節拍音訊與對應的節拍速度、並且根據節拍速度將預設節拍音訊標記至音樂,進而同時播放所述音樂與標記至所述音樂的所述預設節拍音訊。In more detail, the beat marking module 123 can obtain the speed upper limit value and the speed lower limit value of the corresponding target speed section according to the target movement speed, where the speed upper limit value and the speed lower limit value are formed by The range is the target speed interval. In this way, the beat marker module 123 can determine whether the rhythm speed of the music is in the target speed interval, as in the beat marker method of the first to fifth embodiments, so as to correspondingly select or adjust the preset beat audio and the corresponding beat. Speed, and mark preset beat audio to music according to the beat speed, and then play the music and the preset beat audio marked to the music at the same time.

接著,在步驟S1005中,偵測單元140會偵測使用者的運動心率與運動速度。具體來說,在本實施例中,在執行運動計劃的期間,偵測單元140會將所偵測的使用者的運動心率與運動速度的資訊傳送給節拍標記單元123與運動計劃管理單元150。值得一提的是,偵測單元140可跟隨節拍速度(或節奏速度)週期性地持續偵測使用者的運動心率與運動速度。Next, in step S1005, the detection unit 140 detects the exercise heart rate and the exercise speed of the user. Specifically, in the embodiment, during the execution of the exercise plan, the detection unit 140 transmits the detected information of the exercise heart rate and exercise speed of the user to the beat marking unit 123 and the exercise plan management unit 150. It is worth mentioning that the detecting unit 140 may continuously detect the user's exercise heart rate and exercise speed periodically according to the tempo (or rhythm speed).

在步驟S1007中,節拍標記單元123會根據所述運動心率判斷所述使用者是否處於安全狀態。具體來說,節拍標記單元123會計算使用者的最大心率,並且根據使用者當前的運動心率與最大心率來判斷使用者當前的運動狀態是否安全(即,判斷使用者是否處於安全狀態)。使用者的最大心率例如是將220減去使用者的生理年齡後所得到的差值。在一實施例中,更可將最大心率乘以不同的百分比,以求出使用者可承受的運動強度,進而判斷使用者在不同的運動強度下可承受的安全的運動時間。In step S1007, the beat marking unit 123 determines whether the user is in a safe state according to the exercise heart rate. Specifically, the beat marking unit 123 calculates the maximum heart rate of the user, and determines whether the current exercise state of the user is safe (that is, determines whether the user is in a safe state) according to the current exercise heart rate and the maximum heart rate of the user. The maximum heart rate of the user is, for example, a difference obtained by subtracting the physiological age of the user from 220. In one embodiment, the maximum heart rate can be multiplied by different percentages to obtain the exercise intensity that the user can withstand, so as to determine the safe exercise time that the user can withstand under different exercise intensity.

舉例來說,假設使用者的生理年齡為30,計算出的最大心率為190 BPM,最大的訓練強度為100%的最大心跳率,在最大訓練強度下安全的持續運動時間為45秒。若使用者當前的運動心率已在190 BPM以上且持續45秒,節拍標記模組123會判定使用者不處於安全狀態。應注意的是,廠商可自行設定如何利用運動心率來判斷使用者是否處於安全狀態的規則,本發明不限於此。For example, suppose the user's physiological age is 30, the calculated maximum heart rate is 190 BPM, the maximum training intensity is 100% of the maximum heart rate, and the safe continuous exercise time under the maximum training intensity is 45 seconds. If the user's current exercise heart rate is above 190 BPM for 45 seconds, the beat marker module 123 determines that the user is not in a safe state. It should be noted that the manufacturer can set rules on how to use the exercise heart rate to determine whether the user is in a safe state, and the present invention is not limited thereto.

若判定使用者處於安全狀態,在步驟S1009中,節拍標記模組123會根據所述使用者的所述運動速度與所述目標運動速度來判斷所述使用者的所述運動速度是否符合所述運動計劃。具體來說,節拍標記模組123會在使用者處於安全狀態下,持續判斷使用者當前的運動速度是否跟隨著運動計劃所指示的目標運動速度,以判斷使用者是否有伴隨著運動計劃的指示來運動。舉例來說,在一實施例中,若使用者的運動速度落於目標運動速度的數值正負一定百分比(如,5%)的範圍內,節拍標記模組123會判定使用者的運動速度符合運動計劃。然而,本發明不限於此,廠商可自行根據運動計劃所指示的目標運動速度或目標運動心率等其他合適的目標參數來制定判斷使用者是否符合運動計劃的規則。If it is determined that the user is in a safe state, in step S1009, the beat marking module 123 will determine whether the user's exercise speed matches the user's movement speed according to the user's movement speed and the target movement speed. Exercise plan. Specifically, the beat marking module 123 will continuously determine whether the user's current exercise speed follows the target exercise speed indicated by the exercise plan when the user is in a safe state, so as to determine whether the user has an instruction accompanied by the exercise plan Come exercise. For example, in one embodiment, if the user's movement speed falls within a certain percentage (eg, 5%) of the target movement speed value, the beat marking module 123 determines that the user's movement speed matches the movement plan. However, the present invention is not limited to this, and the manufacturer may formulate rules for determining whether the user conforms to the exercise plan according to other suitable target parameters such as the target exercise speed or the target exercise heart rate indicated by the exercise plan.

在一情境中,使用者可能會因為疲累而讓運動速度低於目標運動速度5%以上,節拍標記模組123便會判定使用者的運動速度不符合運動計劃。在另一情境中,運動計劃可能會因為運動時間的經過而降低目標運動速度至原來目標運動速度的一半(50%),但使用者並未將運動速度隨之降低至原來運動速度的一半(如,運動速度僅降低至原運動速度的80%)。此時,節拍標記模組123會判定使用者的運動速度不符合運動計劃。In one scenario, the user may be tired and the movement speed is lower than the target movement speed by more than 5%, and the beat marking module 123 may determine that the movement speed of the user does not conform to the exercise plan. In another scenario, the exercise plan may reduce the target exercise speed to half (50%) of the original target exercise speed due to the elapse of exercise time, but the user has not reduced the exercise speed to half of the original exercise speed ( For example, the speed of movement is only reduced to 80% of the original speed). At this time, the beat marking module 123 determines that the user's exercise speed does not conform to the exercise plan.

若判定使用者的運動速度不符合運動計劃,在步驟S1011中,節拍標記模組123會調整同時播放的所述音樂與標記至所述音樂的所述預設節拍音訊。具體來說,節拍標記模組123會降低所述音樂的音量,以強調預設節拍音訊,進而讓使用者可跟隨預設節拍音訊的節拍速度進行運動,達到運動引導的效果。更進一步地,於另一實施例中,節拍標記模組123更可增強標記至所述音樂的所述預設節拍音訊的音量,或是加重所述預設節拍音訊的特徵(如,鼓聲、鋼琴聲等樂音特徵),以強調預設節拍音訊。If it is determined that the user's exercise speed does not conform to the exercise plan, in step S1011, the beat marking module 123 adjusts the music played simultaneously and the preset beat audio marked to the music. Specifically, the beat marker module 123 reduces the volume of the music to emphasize the preset beat audio, so that the user can follow the beat speed of the preset beat audio to exercise, and achieve the effect of motion guidance. Furthermore, in another embodiment, the beat marking module 123 can further enhance the volume of the preset beat audio marked to the music, or increase the characteristics of the preset beat audio (e.g., drum sound) , Piano sounds, etc.) to emphasize preset beat audio.

此外,在另一實施例中,若節拍標記模組123判定使用者的運動速度不符合運動計劃,節拍標記模組123可播放其他的節拍速度對應目標運動速度的節拍音訊,以對使用者進行運動引導。特別是,在又另一實施例中,節拍標記模組123可僅播放所述音樂,並且在使用者的運動速度不符合運動計劃時,節拍標記模組123可再同時播放所述音樂與對應目標運動速度的所述節拍音訊。In addition, in another embodiment, if the beat marker module 123 determines that the user's exercise speed does not conform to the exercise plan, the beat marker module 123 may play beat audio of other beat speeds corresponding to the target exercise speed, so as to perform Exercise guide. In particular, in yet another embodiment, the beat marker module 123 can only play the music, and when the user's exercise speed does not conform to the exercise plan, the beat marker module 123 can play the music and corresponding music at the same time. The beat audio of the target motion speed.

若在步驟S1009中,節拍標記模組123判定使用者的運動速度符合運動計劃,流程回到步驟S1001,並且接續執行後續步驟。If in step S1009, the beat marking module 123 determines that the user's exercise speed conforms to the exercise plan, the flow returns to step S1001, and the subsequent steps are continued.

若在步驟S1007中,節拍標記模組123判定使用者不處於安全狀態,接續至步驟S1013,節拍標記模組123會執行保險操作。具體來說,由於本發明所提供的節拍標記方法可分別對所播放的音樂與預設節拍音訊進行調整。因此,上述執行所述保險操作的步驟包括以下步驟的其中之一或其組合:停止播放所述音樂或所述預設節拍音訊;發出提示聲音訊息;以及降低所述預設節拍音訊的所述節拍速度。其中,停止播放所述音樂或所述預設節拍音訊可讓使用者警覺到目前運動狀態的不正常;發出提示聲音訊息可讓使用者直接知道目前的運動狀態;降低所述預設節拍音訊的所述節拍速度可讓使用者可隨著降低的節拍速度而進行運動,以引導使用者降低運動速度,進而讓使用者回到安全的運動狀態。值得一提的是,完成步驟S1013或步驟S1011後,流程回到步驟S1005,並且接續執行後續步驟。If in step S1007, the beat marking module 123 determines that the user is not in a safe state, proceeding to step S1013, the beat marking module 123 will perform an insurance operation. Specifically, since the beat marking method provided by the present invention can adjust the played music and preset beat audio separately. Therefore, the step of performing the insurance operation includes one or a combination of the following steps: stopping playing the music or the preset beat audio; sending out a prompt sound message; and reducing the preset beat audio Beat speed. Wherein, stopping the playing of the music or the preset beat audio can alert the user to the abnormal state of the current exercise; sending out a prompt sound message allows the user to directly know the current exercise status; reducing the preset beat audio The tempo allows the user to perform movements with the reduced tempo, so as to guide the user to reduce the tempo, and then return the user to a safe motion state. It is worth mentioning that after step S1013 or step S1011 is completed, the flow returns to step S1005, and the subsequent steps are continued.

如此一來,本實施例所提供的應用節拍標記方法的運動引導,可在特定條件發生(如,使用者不處於安全狀態或使用者不符合運動計劃)時,可在不修改所述音樂本身的內容的情況下,彈性調整標記至所述音樂的節拍音訊或所述音樂,以增進使用者的進行運動的音樂聆聽體驗,並且藉由節拍音訊與音樂的設定及調整來進行對應運動計劃的運動引導,進而增進使用者的運動效率。In this way, the motion guidance using the beat marking method provided by this embodiment can be performed without modifying the music itself when specific conditions occur (for example, when the user is not in a safe state or the user does not meet the exercise plan). In the case of the content of the content, the beat audio or the music marked to the music is flexibly adjusted to enhance the user's music listening experience of exercise, and the corresponding exercise plan is performed by setting and adjusting the beat audio and music. Movement guidance, thereby improving the user's exercise efficiency.

[第七實施例][Seventh embodiment]

圖11是根據本發明的第七實施例所繪示的用以實現節拍標記方法的運動導引系統的方塊圖。其中,第七實施例中與第六實施例相同的元件(如,處理單元110、儲存單元120、音樂資料庫121、節拍音訊資料庫122、節拍標記模組123與音訊播放單元130)不再贅述於此。以下僅說明圖11中與對應第六實施例的圖9不同的元件。此外,第七實施例是說明如何將應用節拍標記方法之運動引導的方法,經由行動裝置100與運動電子裝置200所構成的運動引導系統來實現。FIG. 11 is a block diagram of a motion guidance system for implementing a beat marking method according to a seventh embodiment of the present invention. The seventh embodiment has the same components as the sixth embodiment (such as the processing unit 110, the storage unit 120, the music database 121, the beat audio database 122, the beat marker module 123, and the audio playback unit 130). Repeated here. Only the elements in FIG. 11 which are different from those in FIG. 9 corresponding to the sixth embodiment will be described below. In addition, the seventh embodiment describes how to implement a motion guidance method using the beat marking method through a motion guidance system formed by the mobile device 100 and the motion electronic device 200.

請參照圖11,運動引導系統10包括行動裝置100(如,使用者的慧型手機)與運動電子裝置200(如,使用者所使用的電子運動器材)。行動裝置100包括處理單元110、儲存單元120、音訊播放單元130與通訊單元160。運動電子裝置200包括處理單元210、偵測單元240、運動計劃管理單元250與通訊單元260。處理單元200耦接至偵測單元240、運動計劃管理單元250與通訊單元260,並且處理單元110耦接至儲存單元120、音訊播放單元130與通訊單元160。其中,行動裝置100的通訊單元160可經由有線或無線的方式來連線至運動電子裝置的通訊單元260。藉此,讓行動裝置100可與運動電子裝置200進行溝通。在本實施例中,運動電子裝置200例如是跑步機、健身腳踏車、滑步機、划船機等電子運動器材。使用者在使用上述的運動電子裝置200的時候,可利用行動裝置100與運動電子裝置200建立連線,以將上述的節拍標記方法與運動電子裝置200所執行的運動計劃互相搭配。Referring to FIG. 11, the exercise guiding system 10 includes a mobile device 100 (eg, a user's smart phone) and a sports electronic device 200 (eg, an electronic sports equipment used by the user). The mobile device 100 includes a processing unit 110, a storage unit 120, an audio playback unit 130, and a communication unit 160. The sports electronic device 200 includes a processing unit 210, a detection unit 240, a sports plan management unit 250, and a communication unit 260. The processing unit 200 is coupled to the detection unit 240, the exercise plan management unit 250, and the communication unit 260, and the processing unit 110 is coupled to the storage unit 120, the audio playback unit 130, and the communication unit 160. The communication unit 160 of the mobile device 100 can be connected to the communication unit 260 of the sports electronic device through a wired or wireless manner. Thereby, the mobile device 100 can communicate with the sports electronic device 200. In this embodiment, the sports electronic device 200 is, for example, an electronic sports equipment such as a treadmill, exercise bike, stepper, rowing machine, and the like. When using the above-mentioned sports electronic device 200, a user may use the mobile device 100 to establish a connection with the sports electronic device 200 to match the above-mentioned beat marking method with the exercise plan executed by the sports electronic device 200.

在本實施例中,通訊單元160(或通訊單元260)是以無線的方式進行連線。通訊單元160(或通訊單元260)可具有一無線通訊模組(未繪示),並支援全球行動通信(Global System for Mobile Communication,GSM)系統、個人手持式電話系統(Personal Handy-phone System,PHS)、碼多重擷取(Code Division Multiple Access,CDMA)系統、無線相容認證(Wireless Fidelity,WiFi)系統、全球互通微波存取(Worldwide Interoperability for Microwave Access,WiMAX)系統、第三代無線通信技術(3G)、長期演進技術(Long Term Evolution, LTE)、紅外線(Infrared)傳輸、藍芽(bluetooth)通訊技術的其中之一或其組合,且不限於此。然而,通訊單元160(或通訊單元260)亦可具有連接介面電路單元,以讓通訊單元160與通訊單元260可藉由目前習知的建立有線連線的方式來進行連接(如,利用符合通用序列匯流排標準的連接介面電路單元來建立有線連線),其中建立有線連線的方式不是本實施例的說明重點,不贅述於此。In this embodiment, the communication unit 160 (or the communication unit 260) is connected in a wireless manner. The communication unit 160 (or the communication unit 260) may have a wireless communication module (not shown), and support a Global System for Mobile Communication (GSM) system, a Personal Handy-phone System, (PHS), Code Division Multiple Access (CDMA) system, Wireless Fidelity (WiFi) system, Worldwide Interoperability for Microwave Access (WiMAX) system, third generation wireless communication One or a combination of technology (3G), Long Term Evolution (LTE), infrared transmission, and bluetooth communication technology, and is not limited thereto. However, the communication unit 160 (or the communication unit 260) may also have a connection interface circuit unit, so that the communication unit 160 and the communication unit 260 can be connected by a conventionally established wired connection method (for example, by using The serial bus standard connects interface circuit units to establish a wired connection. The method for establishing a wired connection is not the focus of this embodiment, and is not described in detail here.

在本實施例中,偵測單元240用以偵測使用運動電子裝置200進行運動的使用者的生理狀態(如,運動心率)或是活動狀態(如,運動速度)。舉例來說,偵測單元240例如是偵測使用者的運動心率與運動速度的電路單元,其可藉由裝設於運動電子裝置200上的金屬板來感測使用者當前進行運動的心率(即,運動心率)。此外,偵測單元240可經由運動電子裝置200本身的感測器(如,跑步機的跑速感測器)來獲得使用者的運動速度。In this embodiment, the detection unit 240 is configured to detect a physiological state (such as exercise heart rate) or an active state (such as exercise speed) of a user who uses the exercise electronic device 200 for exercise. For example, the detection unit 240 is, for example, a circuit unit that detects the user's exercise heart rate and exercise speed. The detection unit 240 can sense the user's current exercise heart rate through a metal plate installed on the exercise electronic device 200 ( That is, exercise heart rate). In addition, the detection unit 240 can obtain the user's movement speed via a sensor of the sports electronic device 200 itself (eg, a running speed sensor of a treadmill).

相似於運動計劃管理單元150的功能,運動計劃管理單元250用以管理與執行運動計劃,並且傳送對應所執行的運動計劃的資訊給處理單元210與節拍標記模組123(若運動電子裝置200與行動裝置100已建立連線)。若運動電子裝置200與行動裝置100建立連線,運動電子裝置200或行動裝置100可提示訊息且提供選項,已讓使用者可選擇是否要利用行動裝置100的節拍標記模組123與運動計劃管理單元250來進行運動引導。Similar to the function of the exercise plan management unit 150, the exercise plan management unit 250 is used to manage and execute the exercise plan, and transmits information corresponding to the executed exercise plan to the processing unit 210 and the beat marking module 123 (if the sports electronic device 200 and Mobile device 100 is connected). If the sports electronic device 200 establishes a connection with the mobile device 100, the sports electronic device 200 or the mobile device 100 may prompt a message and provide an option, and the user has been allowed to choose whether to use the beat marking module 123 of the mobile device 100 and exercise plan management The unit 250 performs motion guidance.

舉例來說,在一情境中,使用者可在執行運動電子裝置200的運動計劃時,選擇要利用本發明所提供的運動引導方法來進行運動引導。接著,運動電子裝置200的通訊單元260會利用無線連線的方式(例如,藍芽連線)來與行動裝置100建立連線。使用者可選擇欲進行的運動計劃的種類與態樣,並且運動計劃管理單元250會把節拍標記模組123所需的用以進行運動引導的資訊(如,使用者的最大心率、目標運動速度或目標運動心率等運動參數)傳送給節拍標記模組123,以讓節拍標記模組123可據此調整預設節拍音訊與音樂,進而搭配所執行的運動計劃來進行運動引導。此外,使用者亦可挑選自己想要聆聽的音樂與節拍音訊來進行運動引導。在執行運動計劃的期間內,節拍標記模組123會持續與運動計劃管理單元250與偵測單元240進行溝通,以判斷使用者目前是否處於安全狀態(如,使用者的運動心率是否處於安全範圍)並且判斷使用者的運動狀態(如,運動速度)是否符合運動計劃的指示,進而調整使用者所聆聽的音樂與預設節拍音訊。如此一來,使用者便可便利地藉由自身的行動裝置100與所使用的運動電子裝置200來根據所執行的運動計劃來進行運動引導的操作,進而增進了使用者的運動體驗與效率。For example, in a scenario, the user may choose to use the motion guidance method provided by the present invention to perform motion guidance when executing a motion plan of the motion electronic device 200. Then, the communication unit 260 of the sports electronic device 200 establishes a connection with the mobile device 100 by using a wireless connection method (for example, a Bluetooth connection). The user can select the type and aspect of the exercise plan to be performed, and the exercise plan management unit 250 will include the information required for the exercise guidance by the beat marking module 123 (for example, the user's maximum heart rate, target exercise speed (Or exercise parameters such as target heart rate) are transmitted to the beat marker module 123, so that the beat marker module 123 can adjust preset beat audio and music accordingly, and then perform exercise guidance with the exercise plan executed. In addition, users can also choose the music and beat audio they want to listen to for exercise guidance. During the execution of the exercise plan, the beat marking module 123 will continuously communicate with the exercise plan management unit 250 and the detection unit 240 to determine whether the user is currently in a safe state (e.g., whether the user's exercise heart rate is in a safe range ) And determine whether the user's exercise state (eg, exercise speed) meets the instruction of the exercise plan, and then adjust the music and preset beat audio that the user listens to. In this way, the user can conveniently perform the exercise guidance operation according to the exercise plan performed by the user's mobile device 100 and the used sports electronic device 200, thereby improving the user's exercise experience and efficiency.

值得一提的是,在另一實施例中,運動電子裝置200亦可如同第六實施例中的行動裝置100,本身便可將節拍標記方法應用至運動引導。也就是說,在此另一實施例中,可將運動電子裝置200視為如同圖10中的電子裝置100般,如第六實施例所述的方式,根據所執行的運動計劃來經由將預設節拍音訊標記至音樂,以藉由偵測使用者的運動狀態來調整同時播放的預設節拍音訊與音樂,進而引導使用者於運動電子裝置200上所進行的運動。It is worth mentioning that, in another embodiment, the sports electronic device 200 may also be similar to the mobile device 100 in the sixth embodiment, and the beat marking method may itself be applied to sports guidance. That is to say, in this another embodiment, the sports electronic device 200 can be regarded as the electronic device 100 in FIG. 10, in the manner described in the sixth embodiment, according to the exercise plan being executed, The beat audio mark is set to music to adjust the preset beat audio and music to be played simultaneously by detecting the motion state of the user, thereby guiding the user's movement on the sports electronic device 200.

應注意的是,在上述的實施例中,節拍標記模組123是以軟體或韌體的方式來實施,但本發明不限於此。本發明的節拍標記方法亦可以硬體電路的方式來實現相同於軟體的功能。例如,節拍標記模組123可實作為耦接處理單元110的節拍標記電路單元,並且用以執行節拍標記模組123的功能。特別是,節拍標記電路單元亦可整合至處理單元110或是音訊播放單元130中。It should be noted that, in the above-mentioned embodiment, the beat marking module 123 is implemented by software or firmware, but the present invention is not limited thereto. The beat marking method of the present invention can also implement the same function as software by means of a hardware circuit. For example, the beat marking module 123 may be implemented as a beat marking circuit unit coupled to the processing unit 110 and configured to perform the functions of the beat marking module 123. In particular, the beat marking circuit unit can also be integrated into the processing unit 110 or the audio playback unit 130.

綜上所述,本發明的實施例所提供的節拍標記方法,可取得原始的音樂與其節奏速度,根據需求來選擇且調整合適的節拍音訊與對應的節拍速度,將所選擇的節拍音樂標記至所述音樂,以同時播放所述音樂與標記至所述音樂的節拍音訊。如此一來,當特定條件發生時,可在不修改所述音樂的情況下,彈性調整標記至所述音樂的節拍音訊或所述音樂,以增進使用者的聆聽體驗,進而強化使用者進行相關活動的效果。In summary, the beat labeling method provided by the embodiment of the present invention can obtain the original music and its tempo, select and adjust the appropriate beat audio and corresponding beat speed according to the needs, and mark the selected beat music to The music is to play the music and the beat audio marked to the music at the same time. In this way, when specific conditions occur, the beat audio or the music can be flexibly adjusted without modifying the music to enhance the user's listening experience and further strengthen the user's relevance. Effect of the event.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.

100‧‧‧電子裝置、行動裝置
110、210‧‧‧處理單元
120‧‧‧儲存單元
121‧‧‧音樂資料庫
122‧‧‧節拍音訊資料庫
123‧‧‧節拍標記模組
130‧‧‧音訊播放單元
140、240‧‧‧偵測單元
150、250‧‧‧運動計劃管理單元
160、260‧‧‧通訊單元
10‧‧‧運動引導系統
S201、S203、S205、S207‧‧‧節拍標記方法的流程步驟
S401、S403、S405、S407、S409、S411、S413‧‧‧節拍標記方法的流程步驟
S2011、S2013、S2015、S2017‧‧‧經由音樂檔案取得音樂的節奏速度的流程步驟
S4091、S4093、S4095‧‧‧調整節拍速度的流程步驟
S601、S603、S605、S607、S609、S611、S613、S615、S617、S619‧‧‧節拍標記方法的流程步驟
S701、S703、S705、S707、S709、S711、S713、S715、S717‧‧‧節拍標記方法的流程步驟
S801、S803、S805、S807、S809、S811、S813、S815‧‧‧節拍標記方法的流程步驟
S1001、S1003、S1005、S1007、S1009、S1011‧‧‧應用節拍標記方法的運動引導的流程步驟
100‧‧‧Electronic device, mobile device
110, 210‧‧‧ processing units
120‧‧‧Storage unit
121‧‧‧Music Library
122‧‧‧ Beat Audio Database
123‧‧‧beat marker module
130‧‧‧Audio playback unit
140, 240‧‧‧ detection units
150, 250‧‧‧ sports plan management unit
160, 260‧‧‧ communication unit
10‧‧‧ Motion Guidance System
Process steps of S201, S203, S205, S207‧‧‧beat marker method
Process steps of S401, S403, S405, S407, S409, S411, S413‧‧‧beat marker method
S2011, S2013, S2015, S2017‧‧‧ Process steps to get the rhythm speed of music through music files
S4091, S4093, S4095‧‧‧‧Process steps for adjusting the tempo
Process steps of S601, S603, S605, S607, S609, S611, S613, S615, S617, S619
S701, S703, S705, S707, S709, S711, S713, S715, S717 ‧‧‧ beat marking method flow steps
Process steps of S801, S803, S805, S807, S809, S811, S813, S815
S1001, S1003, S1005, S1007, S1009, S1011‧‧‧ Motion guide process steps using the beat marking method

圖1是根據本發明的第一實施例所繪示的用以實現節拍標記方法的電子裝置的方塊圖。 圖2是根據本發明的第一實施例所提供的節拍標記方法的流程圖。 圖3是根據本發明的第一實施例所繪示的經由音樂檔案取得音樂的節奏速度的流程圖。 圖4是根據本發明的第二實施例所繪示的節拍速度的調整方法。 圖5是根據本發明的第二實施例所繪示的節拍標記方法的流程圖。 圖6是根據本發明的第三實施例所繪示的節拍標記方法的流程圖。 圖7是根據本發明的第四實施例所繪示的節拍標記方法的流程圖。 圖8是根據本發明的第五實施例所繪示的節拍標記方法的流程圖。 圖9是根據本發明的第六實施例所繪示的用以實現節拍標記方法的電子裝置的方塊圖。 圖10是根據第六實施例所繪示的應用節拍標記的運動引導的流程圖。 圖11是根據本發明的第七實施例所繪示的用以實現節拍標記方法的運動導引系統的方塊圖。FIG. 1 is a block diagram of an electronic device for implementing a beat marking method according to a first embodiment of the present invention. FIG. 2 is a flowchart of a beat marking method according to a first embodiment of the present invention. FIG. 3 is a flowchart illustrating obtaining a rhythm speed of music through a music file according to a first embodiment of the present invention. FIG. 4 illustrates a method for adjusting a tempo according to a second embodiment of the present invention. FIG. 5 is a flowchart of a tempo marking method according to a second embodiment of the present invention. FIG. 6 is a flowchart of a tempo marking method according to a third embodiment of the present invention. FIG. 7 is a flowchart of a tempo marking method according to a fourth embodiment of the present invention. FIG. 8 is a flowchart of a tempo marking method according to a fifth embodiment of the present invention. FIG. 9 is a block diagram of an electronic device for implementing a beat marking method according to a sixth embodiment of the present invention. FIG. 10 is a flowchart illustrating motion guidance using a beat marker according to a sixth embodiment. FIG. 11 is a block diagram of a motion guidance system for implementing a beat marking method according to a seventh embodiment of the present invention.

Claims (10)

一種節拍標記方法,用於一電子裝置標記一音樂,該電子裝置包括一處理單元、一儲存單元與一音訊播放單元,其中該處理單元可執行至少部分節拍標記方法,該音樂經由對應該音樂的一音樂檔案所播放,該儲存單元用以儲存該音樂檔案,該節拍標記方法包括: 經由該音樂檔案取得該音樂的一節奏速度, 根據該節奏速度,選擇一預設節拍音訊與對應該預設節拍音訊的一節拍速度; 將該預設節拍音訊根據該節拍速度與該節奏速度標記至該音樂;以及 透過該音訊播放單元同時播放該音樂與標記至該音樂的該預設節拍音訊。A beat marking method is used for an electronic device to mark a music. The electronic device includes a processing unit, a storage unit and an audio playback unit, wherein the processing unit can execute at least part of the beat marking method. A music file is played, the storage unit is used to store the music file, and the beat marking method includes: obtaining a rhythm speed of the music through the music file, and selecting a preset beat audio and corresponding preset according to the rhythm speed A beat speed of the beat audio; marking the preset beat audio to the music according to the beat speed and the rhythm speed; and simultaneously playing the music and the preset beat audio marked to the music through the audio playback unit. 如申請專利範圍第1項所述的節拍標記方法,其中上述將該預設節拍音訊根據該節拍速度與該節奏速度標記至該音樂的步驟包括: 判斷是否需限制該節奏速度; 若需限制該節奏,判斷該節奏速度是否在一目標速度區間內; 若該節奏速度在該目標速度區間內,並且根據該節奏速度將該節拍速度調整為一調整後節拍速度,其中該調整後節拍速度相等於該節奏速度; 若該節奏速度不在該目標速度區間內,根據該節奏速度與該目標速度區間將該節拍速度調整為該調整後節拍速度;以及 將該預設節拍音訊根據該調整後節拍速度標記至該音樂。The method for marking a beat as described in item 1 of the scope of the patent application, wherein the step of marking the preset beat audio to the music according to the beat speed and the rhythm speed includes: determining whether the rhythm speed needs to be restricted; Rhythm, determine whether the rhythm speed is within a target speed interval; if the rhythm speed is within the target speed interval, and adjust the beat speed to an adjusted beat speed according to the rhythm speed, wherein the adjusted beat speed is equal to The rhythm speed; if the rhythm speed is not within the target speed interval, adjusting the beat speed to the adjusted beat speed according to the rhythm speed and the target speed interval; and marking the preset beat audio according to the adjusted beat speed mark To the music. 如申請專利範圍第2項所述的節拍標記方法,更包括: 若不需限制該節奏速度,選擇該預設節拍音訊;以及 將該預設節拍音訊根據該節奏速度標記至該音樂,並且同時播放該音樂與標記至該音樂的該預設節拍音訊。The method for marking a beat as described in item 2 of the scope of patent application, further includes: if the rhythm speed is not required to be restricted, selecting the preset beat audio; and marking the preset beat audio to the music according to the rhythm speed, and simultaneously Play the music and the preset beat audio marked to the music. 如申請專利範圍第2項所述的節拍標記方法,其中上述判斷經由該音樂檔案是否取得該音樂的該節奏速度的步驟包括: 判斷該音樂檔案是否存在一節奏速度資訊,其中該節奏速度資訊用以指示該音樂的該節奏速度; 若該音樂檔案存在該節奏速度資訊,根據該節奏速度資訊取得該音樂的該節奏速度; 若該音樂檔案不存在該節奏速度資訊且該節奏速度不可經由計算而取得,判斷是否需執行一強制標記操作;以及 若需執行該強制標記操作,選擇該預設節拍音訊與對應該預設節拍音訊的該節拍速度,將該預設節拍音訊根據該節拍速度標記至該音樂。The beat marking method according to item 2 of the scope of the patent application, wherein the step of determining whether to obtain the tempo of the music via the music file includes: determining whether there is a tempo information in the music file, wherein the tempo information is used To indicate the tempo of the music; if the tempo information exists in the music file, obtain the tempo of the music according to the tempo information; if the tempo information does not exist in the music file and the tempo cannot be calculated Obtain to determine whether a forced marking operation is required; and if the forced marking operation is required, select the preset beat audio and the beat speed corresponding to the preset beat audio, and mark the preset beat audio to the beat speed to The music. 如申請專利範圍第2項所述的節拍標記方法,其中上述選擇該預設節拍音訊與對應該預設節拍音訊的該節拍速度的步驟包括: 根據多個節拍音訊的多個節拍速度與該音樂的該節奏速度從該些節拍音訊中選擇一節拍音訊做為該預設節拍音訊,其中該預設節拍音訊的該節拍速度與該音樂的該節奏速度之間的差距小於其他節拍音訊的該節拍速度與該音樂的該節奏速度之間的差距。The beat marking method according to item 2 of the scope of patent application, wherein the step of selecting the preset beat audio and the beat speed corresponding to the preset beat audio includes: according to multiple beat speeds of the multiple beat audio and the music Select the beat audio from the beat audio as the preset beat audio, wherein the difference between the beat speed of the preset beat audio and the rhythm speed of the music is smaller than the beat of the other beat audio The difference between the tempo and the rhythmic tempo of the music. 如申請專利範圍第2項所述的節拍標記方法,更包括: 執行一運動計劃,並且取得對應該運動計劃的一目標運動速度,其中在執行該運動計劃的期間,判定需限制該節奏速度,並且根據該目標運動速度來設定該目標速度區間; 在執行該運動計劃的該期間,偵測一使用者的一運動心率與一運動速度,並且根據該使用者的該運動心率來判斷該使用者是否處於一安全狀態; 在執行該運動計劃的該期間,若該使用者不處於該安全狀態,執行一保險操作; 在執行該運動計劃的該期間,若該使用者處於該安全狀態,根據該使用者的該運動速度與該目標運動速度來判斷該使用者的該運動速度是否符合該運動計劃;以及 若該使用者處於該安全狀態且該使用者的該運動速度不符合該運動計劃,調整同時播放的該音樂與標記至該音樂的該預設節拍音訊,進而強調所述節拍音訊。The tempo marking method described in item 2 of the scope of patent application, further comprises: executing an exercise plan and obtaining a target exercise speed corresponding to the exercise plan, wherein it is determined that the rhythm speed needs to be restricted during the execution of the exercise plan, And setting the target speed interval according to the target exercise speed; during the execution of the exercise plan, detecting a user's exercise heart rate and a exercise speed, and judging the user based on the user's exercise heart rate Whether it is in a safe state; during the period of executing the exercise plan, if the user is not in the safe state, perform an insurance operation; during the period of executing the exercise plan, if the user is in the safe state, according to the The user's movement speed and the target movement speed to determine whether the movement speed of the user conforms to the exercise plan; and if the user is in the safe state and the movement speed of the user does not conform to the exercise plan, adjust Simultaneously playing the music and the preset beat audio marked to the music, so as to emphasize the Beat audio. 如申請專利範圍第6項所述的節拍標記方法,其中上述根據該目標運動速度來設定該目標速度區間的步驟包括: 根據該目標運動速度來取得對應該目標速度區間的一速度上限值與一速度下限值,其中該速度上限值與該速度下限值所形成的範圍為該目標速度區間。The tempo marking method according to item 6 of the scope of patent application, wherein the step of setting the target speed interval according to the target motion speed includes: obtaining a speed upper limit value corresponding to the target speed interval and A speed lower limit value, wherein a range formed by the speed upper limit value and the speed lower limit value is the target speed interval. 如申請專利範圍第6項所述的節拍標記方法,其中上述調整同時播放的該音樂與標記至該音樂的該預設節拍音訊的步驟包括: 降低該音樂的音量。The method for marking a beat as described in item 6 of the scope of patent application, wherein the step of adjusting the music and the preset beat audio marked to the music at the same time includes: reducing the volume of the music. 如申請專利範圍第8項所述的節拍標記方法,其中上述調整同時播放的該音樂與標記至該音樂的該預設節拍音訊的步驟更包括以下步驟的其中之一或其組合: 增強標記至該音樂的該預設節拍音訊的音量;以及 加重該預設節拍音訊的一特徵。The method for marking a beat as described in item 8 of the scope of patent application, wherein the step of adjusting the music and the preset beat audio marked to the music at the same time further comprises one or a combination of the following steps: The volume of the preset beat audio of the music; and a feature that aggravates the preset beat audio. 如申請專利範圍第6項所述的節拍標記方法,其中上述執行該保險操作的步驟包括以下步驟的其中之一或其組合: 停止播放該音樂或該預設節拍音訊; 發出一提示聲音訊息;以及 降低該預設節拍音訊的該節拍速度。According to the beat marking method described in item 6 of the scope of patent application, wherein the step of performing the insurance operation includes one or a combination of the following steps: stopping playing the music or the preset beat audio; sending out a prompt sound message; And reducing the tempo of the preset tempo audio.
TW105114868A 2015-05-14 2016-05-13 Beats marking method TWI624827B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201562161852P 2015-05-14 2015-05-14
US62/161,852 2015-05-14

Publications (2)

Publication Number Publication Date
TW201711018A TW201711018A (en) 2017-03-16
TWI624827B true TWI624827B (en) 2018-05-21

Family

ID=57353270

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105114868A TWI624827B (en) 2015-05-14 2016-05-13 Beats marking method

Country Status (2)

Country Link
CN (1) CN106157944B (en)
TW (1) TWI624827B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108231048B (en) * 2017-12-05 2021-09-28 北京小唱科技有限公司 Method and device for correcting audio rhythm
CN108831425B (en) * 2018-06-22 2022-01-04 广州酷狗计算机科技有限公司 Sound mixing method, device and storage medium
CN109102006B (en) * 2018-07-24 2021-09-07 东南大学 Music automatic marking method based on audio characteristic induction information enhancement
CN111077758B (en) * 2019-12-25 2021-06-04 深圳市新科盈数码有限公司 Running tempo system based on smart watch and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937030A (en) * 2005-09-23 2007-03-28 曹坚 Method for marking beat rate to electronic music files
US7608775B1 (en) * 2005-01-07 2009-10-27 Apple Inc. Methods and systems for providing musical interfaces
US8046688B2 (en) * 2001-06-15 2011-10-25 Sony Corporation System for and method of adjusting tempo to match audio events to video events or other audio events in a recorded signal
EP2387029A1 (en) * 2010-05-12 2011-11-16 KnowledgeRocks Limited Automatic positioning of music notation
US8591332B1 (en) * 2008-05-05 2013-11-26 Activision Publishing, Inc. Video game video editor
US8704068B2 (en) * 2004-11-24 2014-04-22 Apple Inc. Music synchronization arrangement

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60045927D1 (en) * 1999-02-25 2011-06-16 Macrovision Corp Method and apparatus for controlling the copying of a video or audio signal using watermarks
WO2006085265A2 (en) * 2005-02-14 2006-08-17 Koninklijke Philips Electronics N.V. A system for and a method of mixing first audio data with second audio data, a program element and a computer-readable medium
JP4839853B2 (en) * 2006-01-20 2011-12-21 ヤマハ株式会社 Music playback control device and music playback device
JP4811046B2 (en) * 2006-02-17 2011-11-09 ソニー株式会社 Content playback apparatus, audio playback device, and content playback method
CN1819014A (en) * 2006-03-22 2006-08-16 曹坚 Method for playing related rhythm music according to kinematic rhythm by digital musicial player
KR100867401B1 (en) * 2008-08-05 2008-11-06 (주)펜타비전 Method for providing audio game, apparatus and computer-readable recording medium with program therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8046688B2 (en) * 2001-06-15 2011-10-25 Sony Corporation System for and method of adjusting tempo to match audio events to video events or other audio events in a recorded signal
US8704068B2 (en) * 2004-11-24 2014-04-22 Apple Inc. Music synchronization arrangement
US7608775B1 (en) * 2005-01-07 2009-10-27 Apple Inc. Methods and systems for providing musical interfaces
CN1937030A (en) * 2005-09-23 2007-03-28 曹坚 Method for marking beat rate to electronic music files
US8591332B1 (en) * 2008-05-05 2013-11-26 Activision Publishing, Inc. Video game video editor
EP2387029A1 (en) * 2010-05-12 2011-11-16 KnowledgeRocks Limited Automatic positioning of music notation

Also Published As

Publication number Publication date
CN106157944B (en) 2019-11-05
TW201711018A (en) 2017-03-16
CN106157944A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
TWI624827B (en) Beats marking method
JP6480526B2 (en) Applicable music playback system
US7737353B2 (en) Apparatus for controlling music reproduction and apparatus for reproducing music
US11829680B2 (en) System for managing transitions between media content items
JP4311466B2 (en) Performance apparatus and program for realizing the control method
US20090019994A1 (en) Method and system for determining a measure of tempo ambiguity for a music input signal
JP2013200423A (en) Voice interaction support device, method and program
US20120101606A1 (en) Information processing apparatus, content data reconfiguring method and program
US20150258415A1 (en) Physiological rate coaching by modifying media content based on sensor data
KR20180012800A (en) Audio processing method, apparatus and system
EP3552200B1 (en) Audio variations editing using tempo-range metadata.
US10031720B2 (en) Controlling audio tempo based on a target heart rate
JP5381293B2 (en) Sound emission control device
JP5428458B2 (en) Evaluation device
JP2003122791A (en) Communication system, communication equipment and method, recording medium, and program
JP2006301276A (en) Portable music reproducing device
WO2016157389A1 (en) Output control device, output control method and output control program
JP6089651B2 (en) Sound processing apparatus, sound processing apparatus control method, and program
JP2019181223A (en) Output control device, output control method, and output control program
JP2016014897A (en) Voice interaction support device, method and program
KR20140092961A (en) Mobile Phone having running machine function, Control method thereof and Saving device
TW201721603A (en) Audio system, electronic device and method for exercise coaching
KR20160033873A (en) System and method for playing sound for fetus
JP2013117552A (en) Voice control device, voice control method and program