TWI718716B - Method for detecting scales triggered in musical instrument - Google Patents

Method for detecting scales triggered in musical instrument Download PDF

Info

Publication number
TWI718716B
TWI718716B TW108138320A TW108138320A TWI718716B TW I718716 B TWI718716 B TW I718716B TW 108138320 A TW108138320 A TW 108138320A TW 108138320 A TW108138320 A TW 108138320A TW I718716 B TWI718716 B TW I718716B
Authority
TW
Taiwan
Prior art keywords
scale
sound signal
frequency
trigger
musical instrument
Prior art date
Application number
TW108138320A
Other languages
Chinese (zh)
Other versions
TW202117701A (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 佑華微電子股份有限公司
Priority to TW108138320A priority Critical patent/TWI718716B/en
Application granted granted Critical
Publication of TWI718716B publication Critical patent/TWI718716B/en
Publication of TW202117701A publication Critical patent/TW202117701A/en

Links

Images

Landscapes

  • Auxiliary Devices For Music (AREA)

Abstract

The disclosure provides a method for detecting method for detecting scales triggered in musical instrument, comprising: inputting an audio signal of each scale of a target musical instrument; performing an aliasing effect on the audio signal to obtain a non-aliased audio signal; performing feature extraction on the non-aliased audio signal, optimizing the extracted features to obtain a final feature table; continuously inputting an audio signal to-be-tested; performing the aliasing effect and frequency transformation on the audio signal to-be-tested; and comparing with the features in the final feature table to determine if a certain scale being triggered.

Description

樂器音階觸發的偵測方法Detection method of musical instrument scale trigger

本發明係有關一種樂器音階觸發的偵測方法。The invention relates to a method for detecting musical scale triggering.

打擊樂器(或稱敲擊樂器)除了在音樂與音樂教育市場佔有相當比例外、打擊樂器的迷你版或簡化版更是個歷久不衰的經典玩具,例如,最簡單的組合就是一組可分別發出Do、Re、Mi、Fa、So、La、Si、Do音階、共八個鈴鐺的玩具樂器;構造簡單、對幼兒娛樂、聲音辨識、或音樂啟發來說去有許多功能。另一方面,由於智慧電子產品的日益普及,越來越多的電子產品也加入基於聲音的相關技術以增加使用方便性與市場競爭力。因此,針對前述之打擊樂器類型的玩具,設計一套演算法,在只依靠麥克風收音的情況下偵測那些音階是否有被觸發,並藉由可偵測該樂器是否被觸發的功能,增加該打擊樂器類型的玩具的新玩法,其應用層面將更加廣泛。Percussion instruments (or percussion instruments) not only account for a considerable proportion of the music and music education market, the mini or simplified version of percussion instruments is a classic toy that lasts forever. For example, the simplest combination is a set that can be sent separately. Do, Re, Mi, Fa, So, La, Si, Do scales, a toy musical instrument with a total of eight bells; simple in structure, it has many functions for children's entertainment, sound recognition, or music inspiration. On the other hand, due to the increasing popularity of smart electronic products, more and more electronic products have added sound-based related technologies to increase ease of use and market competitiveness. Therefore, for the aforementioned toys of percussion instrument type, a set of algorithms is designed to detect whether those scales are triggered while only relying on the microphone to pick up the sound, and with the function of detecting whether the instrument is triggered, increase the The new play method of percussion type toys will have a wider range of applications.

本發明之實施例揭露一種樂器音階觸發的偵測方法,包含:一樂器音階特徵值表生成階段、以及一樂器音階觸發偵測階段;其中,該樂器音階特徵值表生成階段更包含:輸入一目標樂器的各音階的聲音訊號;將該各音階的聲音訊號進行膺頻效應處理以獲得一無膺頻聲音訊號;對該膺頻聲音訊號進行特徵萃取以獲得一初階特徵值表;將該初階特徵值表進行特徵值優化以獲得一最終特徵值表;該樂器音階觸發偵測階段更包含:連續輸入一待測聲音訊號;將該待測聲音訊號進行膺頻效應處理以獲得一無膺頻待測聲音訊號;對該無膺頻待測聲音訊號進行音框化及時頻轉換處理以獲得一待測頻域訊號;將該待測頻域訊號與該最終特徵值表進行比對,以決定該目標樂器的某音階是否被觸發的偵測結果。An embodiment of the present invention discloses a detection method of musical instrument scale trigger, including: a musical instrument scale feature value table generation stage, and a musical instrument scale trigger detection stage; wherein the musical instrument scale feature value table generation stage further includes: input one The sound signal of each scale of the target musical instrument; perform anti-frequency effect processing on the sound signal of each scale to obtain an anti-aliased sound signal; perform feature extraction on the anti-aliased sound signal to obtain a primary feature value table; The initial eigenvalue table optimizes the eigenvalues to obtain a final eigenvalue table; the instrument scale trigger detection stage further includes: continuously inputting a sound signal to be tested; processing the sound signal to be tested for frequency effect processing to obtain a sound signal. Falsify the sound signal to be tested; perform audio frame and time-frequency conversion processing on the sound signal to be tested without falsification to obtain a frequency domain signal to be tested; compare the frequency domain signal to be tested with the final characteristic value table, To determine whether a certain scale of the target instrument is triggered by the detection result.

在一較佳實施例中,該膺頻效應處理步驟更包含:將該目標樂器的各音階的聲音訊號進行有限脈衝響應(finite impulse response,FIR) 低通濾波,得到一濾波後訊號;以及,將該將濾波後訊號進行重新取樣,以得到一無膺頻聲音訊號。In a preferred embodiment, the aliasing effect processing step further includes: performing finite impulse response (FIR) low-pass filtering on the sound signal of each scale of the target instrument to obtain a filtered signal; and, The filtered signal is resampled to obtain an audio signal without aliasing.

在一較佳實施例中,該特徵萃取步驟更包含:將該無膺頻聲音訊號進行音框化,以產生一音框化聲音訊號;將該音框化聲音訊號進行時頻轉換,以得到一頻域訊號;將該頻域訊號進行敲擊聲能量統計平均後得到一敲擊能量特徵;統計被敲擊之音階中最強以及次強的頻率能量特徵,將所有音階的音頻能量統計與敲擊聲能量統計特徵合併獲得初階特徵值表。In a preferred embodiment, the feature extraction step further includes: sound-framing the unaltered sound signal to generate a sound-framed sound signal; and time-frequency conversion of the sound-framed sound signal to obtain A frequency domain signal; the frequency domain signal is statistically averaged by percussion sound energy to obtain a percussion energy characteristic; the strongest and the second-strongest frequency energy characteristics of the percussive scale are counted, and the audio energy of all scales is counted and knocked The statistical features of the percussion energy are combined to obtain the primary feature value table.

在一較佳實施例中,該特徵值優化步驟更包含:將該初階特徵值表進行特徵值交叉對比,係將該初階特徵值表中所有特徵值與其他特徵值兩兩單一對比,檢查是否有音階的頻率特徵彼此太過相近;進行觸發與誤觸發測試,係將該無膺頻聲音訊號輸入,檢查各音階是否有正常觸發以及是否會造成誤觸發之情形;將該初階特徵值表中,由該特徵值交叉對比結果對比出頻率特徵太過相近之音階進行特徵相近之音階門檻值優化;以及,將初階特徵值表中,由將該觸發與誤觸發測試步驟中測試出有誤觸發情形之音階的頻率特徵進行誤觸音階的特徵替換,再次萃取該音階特徵並排除會誤觸發的特徵,全部完成後便獲得一最終特徵值表。In a preferred embodiment, the feature value optimization step further includes: performing feature value cross-comparison on the primary feature value table, which is to compare all feature values in the primary feature value table with other feature values in pairs. Check whether the frequency characteristics of scales are too close to each other; perform trigger and false trigger tests, input the non-articulated sound signal to check whether each scale has a normal trigger and whether it will cause false triggers; change the initial-level characteristics In the value table, the eigenvalue cross-comparison result compares the scales with too similar frequency characteristics to optimize the tune threshold value of the similar characteristics; and, in the primary eigenvalue table, the trigger and false trigger test steps are tested If the frequency characteristics of the scale with a false trigger are replaced by the characteristics of the false scale, the scale characteristics are extracted again and the false trigger is eliminated, and a final characteristic value table is obtained after all are completed.

在一較佳實施例中,該將該待測頻域訊號與該最終特徵值表進行比對步驟係將該頻域訊號與該最終特徵值表中所統計的敲擊聲能量特徵進行比對,可判斷該樂器之某音階是否被敲擊,以及樂器敲擊之相對距離。In a preferred embodiment, the step of comparing the frequency domain signal to be measured with the final feature value table is to compare the frequency domain signal with the tap sound energy feature counted in the final feature value table , It can be judged whether a certain scale of the instrument is struck, and the relative distance of the instrument struck.

以下藉由特定的具體實施例說明本發明之實施方式,熟悉此技術之人士可由本說明書所揭示之內容輕易地瞭解本發明之其他優點及功效。本發明亦可藉由其他不同的具體實例加以施行或應用,本發明說明書中的各項細節亦可基於不同觀點與應用在不悖離本發明之精神下進行各種修飾與變更。The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand the other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied by other different specific examples, and various details in the specification of the present invention can also be modified and changed based on different viewpoints and applications without departing from the spirit of the present invention.

其中,本說明書所附圖式繪示之結構、比例、大小等,均僅用以配合說明書所揭示之內容,以供熟悉此技術之人士瞭解與閱讀,並非用以限定本發明可實施之限定條件,故不具技術上之實質意義,任何結構之修飾、比例關之改變或大小之調整,在不影響本發明所能產生之功效及所能達成之目的下,均應落在本發明所揭示之技術內容得能涵蓋之範圍內。Among them, the structure, ratio, size, etc. shown in the drawings in this specification are only used to match the content disclosed in the specification for the understanding and reading of those who are familiar with the technology, and are not intended to limit the implementation of the present invention. Conditions, so it does not have technical significance. Any structural modification, proportion change or size adjustment, without affecting the effect of the present invention and the purpose that can be achieved, shall fall within the disclosure of the present invention. The technical content must be able to cover the scope.

如圖1所示,本發明之實施例揭露一種樂器音階觸發的偵測方法,適用於一具有複數個音階的目標樂器,該偵測方法包含:一樂器音階特徵值表生成階段110、以及一樂器音階觸發偵測階段120;其中,該樂器音階特徵值表生成階段110更包含:步驟111、輸入一目標樂器的各音階的聲音訊號;步驟112、將該各音階的聲音訊號進行膺頻效應處理以獲得一無膺頻聲音訊號;步驟113、對該膺頻聲音訊號進行特徵萃取以獲得一初階特徵值表;步驟114、將該初階特徵值表進行特徵值優化以獲得一最終特徵值表;該樂器音階觸發偵測階段120更包含:步驟121、連續輸入一待測聲音訊號;步驟122、將該待測聲音訊號進行膺頻效應處理以獲得一無膺頻待測聲音訊號;步驟123、對該無膺頻待測聲音訊號進行音框化及時頻轉換處理以獲得一待測頻域訊號;步驟124、將該待測頻域訊號與該最終特徵值表進行比對,以決定該目標樂器的某音階是否被觸發的偵測結果。As shown in FIG. 1, the embodiment of the present invention discloses a detection method of musical instrument scale trigger, which is suitable for a target musical instrument with a plurality of scales. The detection method includes: a musical instrument scale feature value table generation stage 110, and a The musical instrument scale trigger detection stage 120; wherein the musical instrument scale feature value table generation stage 110 further includes: step 111, inputting a sound signal of each scale of a target musical instrument; step 112, performing a frequency effect on the sound signal of each scale Process to obtain a non-forged sound signal; step 113, perform feature extraction on the forged sound signal to obtain an initial feature value table; step 114, perform feature value optimization on the primary feature value table to obtain a final feature Value table; the musical instrument scale trigger detection stage 120 further includes: step 121, continuously inputting a sound signal to be tested; step 122, processing the sound signal to be tested with forged effect processing to obtain a sound signal without forged frequency to be tested; Step 123: Perform audio frame and time-frequency conversion processing on the sound signal to be measured without false frequency to obtain a frequency domain signal to be measured; Step 124: Compare the frequency domain signal to be measured with the final characteristic value table to The detection result that determines whether a certain scale of the target instrument is triggered.

換言之,本發明之一種樂器音階觸發的偵測方法先在前一階段中將一具有複數個音階的目標樂器的各音階的聲音訊號進行處理,以獲得一包含有該目標樂器的各音階的聲音特徵值的最終特徵值表;然後在後一階段中,持續接收輸入的待測聲音訊號,且藉由比對方式決定該待測聲音訊號是否與該目標樂器的各音階的聲音特徵值相符,以判斷該目標樂器的各音階是否被觸發。In other words, an instrument scale trigger detection method of the present invention first processes the sound signals of each scale of a target instrument with multiple scales in the previous stage to obtain a sound including each scale of the target instrument The final characteristic value table of the characteristic value; then in the later stage, the input sound signal to be measured is continuously received, and the sound signal to be measured is determined by the comparison method whether the sound signal to be measured matches the sound characteristic value of each scale of the target instrument, and Determine whether each scale of the target instrument is triggered.

圖2為本發明之樂器音階觸發的偵測方法中對於聲音訊號的膺頻效應處理的流程示意圖;如圖2所示,該膺頻效應處理步驟112更包含:步驟112a、將該目標樂器的各音階的聲音訊號進行有限脈衝響應(finite impulse response,FIR) 低通濾波,得到一濾波後訊號;以及,112b、將該將濾波後訊號進行重新取樣,以得到一無膺頻聲音訊號。FIG. 2 is a schematic diagram of the process of processing the fortification effect of the sound signal in the detection method of the musical instrument scale trigger of the present invention; as shown in FIG. 2, the fortification effect processing step 112 further includes: step 112a, the target instrument The sound signal of each scale is subjected to finite impulse response (FIR) low-pass filtering to obtain a filtered signal; and, 112b, the filtered signal is resampled to obtain a frequency-free sound signal.

具體而言,該膺頻效應處理步驟主要目的係將原來的聲音訊號中的雜訊濾除,然後再重新取樣,以取得所謂的乾淨無雜訊的聲音訊號。Specifically, the main purpose of the aliasing effect processing step is to filter out the noise in the original sound signal, and then re-sampling, so as to obtain a so-called clean and noise-free sound signal.

圖3為本發明之樂器音階觸發的偵測方法中膺頻聲音訊號進行特徵萃取的流程示意圖;如圖3所示,該特徵萃取步驟113更包含:步驟113a、將該無膺頻聲音訊號進行音框化,以產生一音框化聲音訊號;步驟113b、將該音框化聲音訊號進行時頻轉換,以得到一頻域訊號;步驟113c、將該頻域訊號進行敲擊聲能量統計平均後得到一敲擊能量特徵;以及,步驟113d、統計被敲擊之音階中最強以及次強的頻率能量特徵,將所有音階的音頻能量統計與敲擊聲能量統計特徵合併獲得初階特徵值表。FIG. 3 is a schematic diagram of the process of feature extraction of the forged sound signal in the detection method of musical instrument scale trigger of the present invention; as shown in FIG. 3, the feature extraction step 113 further includes: step 113a, performing the non-forged sound signal Sound framed to generate a sound framed sound signal; step 113b, time-frequency conversion is performed on the sound framed sound signal to obtain a frequency domain signal; step 113c, percussion sound energy statistical average of the frequency domain signal Then obtain a percussive energy feature; and, in step 113d, count the strongest and second-strongest frequency energy features in the percussive scale, and merge the audio energy statistics of all the scales with the percussive energy statistical features to obtain the primary feature value table .

值得說明的是,所謂音框(frame)係先將 N 個取樣點集合成一個觀測單位,稱為音框,通常 N 的值是 256 或 512,涵蓋的時間約為 20~30 ms 左右。為了避免相鄰兩音框的變化過大,通常會讓兩相鄰音框之間有一段重疊區域。值得說明的是,上述之N值、涵蓋的時間長度、以及音框之間是否重疊皆只是習知用來說明本發明之實施例,但在實際應用時並不限於此。再者,在一較佳實施例中,在進行時頻轉換時所使用的轉換方法為快速傅立葉轉換,但也不限於此。同樣地,在一較佳實施例中,在進行敲擊聲能量統計平均中的頻譜能量計算時所使用的計算函式為絕對值函式,但也不限於此。It is worth noting that the so-called frame is to gather N sampling points into one observation unit, called the frame. Usually, the value of N is 256 or 512, and the time covered is about 20-30 ms. In order to avoid excessive changes between two adjacent sound frames, there is usually an overlap area between two adjacent sound frames. It is worth noting that the aforementioned N value, the length of time covered, and whether the sound frames overlap or not are all conventionally used to illustrate the embodiments of the present invention, but are not limited to this in practical applications. Furthermore, in a preferred embodiment, the conversion method used in the time-frequency conversion is fast Fourier conversion, but it is not limited to this. Similarly, in a preferred embodiment, the calculation function used in the calculation of the spectral energy in the statistical average of the percussion sound energy is an absolute value function, but it is not limited to this.

圖4為本發明之一種樂器音階觸發的偵測方法中特徵值優化的流程示意圖;如圖4所示,該特徵值優化步驟114更包含:步驟114a、將該初階特徵值表進行特徵值交叉對比,係將該初階特徵值表中所有特徵值與其他特徵值兩兩單一對比,檢查是否有音階的頻率特徵彼此太過相近;步驟114b、進行觸發與誤觸發測試,係將該無膺頻聲音訊號輸入,檢查各音階是否有正常觸發以及是否會造成誤觸發之情形;步驟114c、特徵相近之音階門檻值優化,係將該初階特徵值表中,由該特徵值交叉對比結果對比出頻率特徵太過相近之音階進行特徵相近之音階門檻值優化;以及,步驟114d、誤觸音階的特徵替換,係將初階特徵值表中,由將該觸發與誤觸發測試步驟中測試出有誤觸發情形之音階的頻率特徵進行誤觸音階的特徵替換,再次萃取該音階特徵並排除會誤觸發的特徵,全部完成後便獲得一最終特徵值表。FIG. 4 is a schematic diagram of a flow chart of eigenvalue optimization in a detection method of musical instrument scale triggering of the present invention; as shown in FIG. 4, the eigenvalue optimization step 114 further includes: step 114a, performing eigenvalues on the primary eigenvalue table Cross-comparison is to compare all the feature values in the primary feature value table with other feature values in pairs to check whether the frequency features of the scales are too close to each other; step 114b, perform trigger and false trigger tests, and then Input the false frequency sound signal to check whether each scale has a normal trigger and whether it will cause a false trigger; step 114c, optimize the threshold value of the scale with similar characteristics, and cross-compare the result from the characteristic value in the initial-order characteristic value table Compare the scales with too similar frequency characteristics to optimize the threshold value of the scales with similar characteristics; and, in step 114d, replace the characteristics of the mistouched scales, and replace the features of the initial-order feature value table with the trigger and false trigger test steps. If the frequency characteristics of the scale with a false trigger are replaced by the characteristics of the false scale, the scale characteristics are extracted again and the false trigger is eliminated, and a final characteristic value table is obtained after all are completed.

其中,步驟114a中的檢查是否有音階的頻率特徵彼此太過相近的條件,可以依照其頻率特徵的差異是否低於一預定門檻值來判定。再者,在步驟114b中,因為無膺頻聲音訊號代表的是經過濾波後重新取樣的訊號,因此不含其他雜訊;另一方面,所謂誤觸發的情形,指的是該音階的頻率特徵中有超過某一預定門檻值的雜訊,可判定為誤觸發。Wherein, in step 114a, whether there is a condition that the frequency characteristics of the scales are too close to each other can be determined according to whether the difference in frequency characteristics is lower than a predetermined threshold. Furthermore, in step 114b, because the non-aliased sound signal represents the signal that is resampled after filtering, it does not contain other noise; on the other hand, the so-called false triggering refers to the frequency characteristics of the scale If there is noise that exceeds a predetermined threshold, it can be judged as a false trigger.

值得說明的是,在該樂器音階觸發偵測階段120中的步驟122、將該待測聲音訊號進行膺頻效應處理以獲得一無膺頻待測聲音訊號,係與在該樂器音階特徵值表生成階段110中的步驟112相同,因此,其細節不在此重複說明;同樣地,在該樂器音階觸發偵測階段120中的步驟123、對該無膺頻待測聲音訊號進行音框化及時頻轉換處理以獲得一待測頻域訊號,與在前述該特徵萃取步驟113中的步驟113a、步驟113b相同,因此其細節也不在此重複。It is worth noting that, in step 122 of the musical instrument scale trigger detection stage 120, the sound signal to be tested is processed for the forged frequency effect to obtain a sound signal to be measured without forged frequency, which is related to the scale feature value table of the musical instrument. Step 112 in the generation stage 110 is the same, therefore, the details will not be repeated here; similarly, in the step 123 of the instrument scale trigger detection stage 120, the sound signal to be tested is framed and time-frequency. The conversion process to obtain a frequency domain signal to be measured is the same as the steps 113a and 113b in the feature extraction step 113, so the details are not repeated here.

具體而言,該將該待測頻域訊號與該最終特徵值表進行比對步驟係將該頻域訊號的與該最終特徵值表中所統計的敲擊聲能量特徵進行比對,可判斷該樂器之某音階是否被敲擊,以及樂器敲擊之相對距離。Specifically, the step of comparing the frequency domain signal to be measured with the final feature value table is to compare the frequency domain signal with the tap sound energy features counted in the final feature value table, and it can be judged Whether a certain scale of the instrument is struck, and the relative distance of the instrument struck.

儘管已參考本申請的許多說明性實施例描述了實施方式,但應瞭解的是,本領域技術人員能夠想到多種其他改變及實施例,這些改變及實施例將落入本公開原理的精神與範圍內。尤其是,在本公開、圖式以及所附申請專利的範圍之內,對主題結合設置的組成部分及/或設置可作出各種變化與修飾。除對組成部分及/或設置做出的變化與修飾之外,可替代的用途對本領域技術人員而言將是顯而易見的。Although the implementation has been described with reference to many illustrative embodiments of the present application, it should be understood that those skilled in the art can think of many other changes and embodiments, and these changes and embodiments will fall within the spirit and scope of the principles of the present disclosure. Inside. In particular, within the scope of the present disclosure, the drawings and the attached patent applications, various changes and modifications can be made to the components and/or arrangements of the subject combination arrangement. In addition to changes and modifications to the components and/or settings, alternative uses will be obvious to those skilled in the art.

110:樂器音階特徵值表生成階段 111:輸入目標樂器的各音階的聲音訊號 112:將該各音階的聲音訊號進行膺頻效應處理以獲得一無膺頻聲音訊號 112a:將該目標樂器的各音階的聲音訊號進行有限脈衝響應低通濾波,得到一濾波後訊號 112b:將該將濾波後訊號進行重新取樣,以得到一無膺頻聲音訊號 113:對該膺頻聲音訊號進行特徵萃取以獲得一初階特徵值表 113a:將該無膺頻聲音訊號進行音框化,以產生一音框化聲音訊號 113b:將該音框化聲音訊號進行時頻轉換,以得到一頻域訊號 113c:將該頻域訊號進行敲擊聲能量統計平均後得到一敲擊能量特徵 113d:統計被敲擊之音階中最強以及次強的頻率能量特徵,將所有音階的音頻能量統計與敲擊聲能量統計特徵合併獲得初階特徵值表 114:將該初階特徵值表進行特徵值優化以獲得一最終特徵值表 114a:將該初階特徵值表進行特徵值交叉對比 114b:進行觸發與誤觸發測試 114c:特徵相近之音階門檻值優化 114d:誤觸音階的特徵替換 120:樂器音階觸發偵測階段 121:連續輸入一待測聲音訊號 122:將該待測聲音訊號進行膺頻效應處理以獲得一無膺頻待測聲音訊號 123:對該無膺頻待測聲音訊號進行音框化及時頻轉換處理以獲得一待測頻域訊號 124:將該待測頻域訊號與該最終特徵值表進行比對,以決定該目標樂器的某音階是否被觸發的偵測結果110: Musical instrument scale feature value table generation stage 111: Input the sound signal of each scale of the target instrument 112: Perform anti-frequency effect processing on the sound signal of each scale to obtain a non-aliased sound signal 112a: Perform finite impulse response low-pass filtering on the sound signal of each scale of the target instrument to obtain a filtered signal 112b: Resample the filtered signal to obtain an audio signal without aliasing 113: Perform feature extraction on the artificial sound signal to obtain an initial feature value table 113a: Frame the audio signal without aliasing to generate a framed audio signal 113b: Perform time-frequency conversion on the framed sound signal to obtain a frequency domain signal 113c: The frequency domain signal is statistically averaged by percussion sound energy to obtain a percussion energy characteristic 113d: Count the strongest and second-strongest frequency energy characteristics of the percussive scale, combine the audio energy statistics of all scales with the percussive energy statistical characteristics to obtain the primary feature value table 114: Perform feature value optimization on the primary feature value table to obtain a final feature value table 114a: Cross-compare the eigenvalues of the primary eigenvalue table 114b: Perform trigger and false trigger test 114c: Optimization of scale threshold with similar features 114d: Feature replacement of mistouched scale 120: Instrument scale trigger detection stage 121: Continuously input a sound signal to be tested 122: Perform anti-frequency effect processing on the sound signal to be tested to obtain a sound signal to be tested without anti-frequency 123: Perform audio frame and time-to-frequency conversion processing on the unaltered sound signal to be measured to obtain a frequency domain signal to be measured 124: The detection result of comparing the frequency domain signal to be measured with the final characteristic value table to determine whether a certain scale of the target instrument is triggered

圖1為本發明之一種樂器音階觸發的偵測方法的流程示意圖; 圖2為本發明之一種樂器音階觸發的偵測方法中對於聲音訊號的膺頻效應處理的流程示意圖; 圖3為本發明之一種樂器音階觸發的偵測方法中膺頻聲音訊號進行特徵萃取的流程示意圖; 圖4為本發明之一種樂器音階觸發的偵測方法中特徵值優化的流程示意圖。 FIG. 1 is a schematic flow chart of a method for detecting musical scale triggering according to the present invention; 2 is a schematic diagram of the process of processing the fore-frequency effect of a sound signal in a method for detecting musical scale triggers of the present invention; 3 is a schematic diagram of the process of feature extraction of the forged sound signal in a method for detecting musical scale triggering of the present invention; 4 is a schematic diagram of a flow chart of eigenvalue optimization in a detection method of musical instrument scale triggering of the present invention.

100:樂器音階特徵值表生成階段 100: musical instrument scale feature value table generation stage

111:輸入目標樂器的各音階的聲音訊號 111: Input the sound signal of each scale of the target instrument

112:將該各音階的聲音訊號進行膺頻效應處理以獲得一無膺頻聲音訊號 112: Perform anti-frequency effect processing on the sound signal of each scale to obtain a non-aliased sound signal

113:對該膺頻聲音訊號進行特徵萃取以獲得一初階特徵值表 113: Perform feature extraction on the artificial sound signal to obtain an initial feature value table

114:將該初階特徵值表進行特徵值優化以獲得一最終特徵值表 114: Perform feature value optimization on the primary feature value table to obtain a final feature value table

120:樂器音階觸發偵測階段 120: Instrument scale trigger detection stage

121:連續輸入一待測聲音訊號 121: Continuously input a sound signal to be tested

122:將該待測聲音訊號進行膺頻效應處理以獲得一無膺頻待測聲音訊號 122: Perform anti-frequency effect processing on the sound signal to be tested to obtain a sound signal to be tested without artificial frequency

123:對該無膺頻待測聲音訊號進行音框化及時頻轉換處理以獲得一待測頻域訊號 123: Perform audio frame and time-to-frequency conversion processing on the unaltered sound signal to be measured to obtain a frequency domain signal to be measured

124:將該待測頻域訊號與該最終特徵值表進行比對,以決定該目標樂器的某音階是否被觸發的偵測結果 124: The detection result of comparing the frequency domain signal to be measured with the final characteristic value table to determine whether a certain scale of the target instrument is triggered

Claims (3)

一種樂器音階觸發的偵測方法,適用於一具有複數個音階的目標樂器,包含:一樂器音階特徵值表生成階段;以及一樂器音階觸發偵測階段;其中,該樂器音階特徵值表生成階段更包含:輸入一目標樂器的各音階的聲音訊號;將該各音階的聲音訊號進行膺頻效應處理以獲得一無膺頻聲音訊號;對該膺頻聲音訊號進行特徵萃取以獲得一初階特徵值表;將該初階特徵值表進行特徵值優化以獲得一最終特徵值表;該樂器音階觸發偵測階段更包含:連續輸入一待測聲音訊號;將該待測聲音訊號進行膺頻效應處理以獲得一無膺頻待測聲音訊號;對該無膺頻待測聲音訊號進行音框化及時頻轉換處理以獲得一待測頻域訊號;將該待測頻域訊號與該最終特徵值表進行比對,以決定該目標樂器的某音階是否被觸發的偵測結果;其中,該特徵萃取步驟更包含:將該無膺頻聲音訊號進行音框化,以產生一音框化聲音訊號;將該音框化聲音訊號進行時頻轉換,以得到一頻域訊號;將該頻域訊號進行敲擊聲能量統計平均後得到一敲擊能量特徵;統計被敲擊之音階中最強以及次強的頻率能量特徵,將所有音階的音頻能量統計與敲擊聲能量統計特徵合併獲得初階特徵值表; 其中,該特徵值優化步驟更包含:將該初階特徵值表中所有特徵值與其他特徵值兩兩單一對比,檢查是否有音階的頻率特徵彼此太過相近;將該無膺頻聲音訊號輸入,檢查各音階是否有正常觸發以及是否會造成誤觸發之情形;將該初階特徵值表中,由該特徵值交叉對比結果對比出頻率特徵太過相近之音階進行特徵相近之音階門檻值優化;以及將初階特徵值表中,由將該觸發與誤觸發測試步驟中測試出有誤觸發情形之音階的頻率特徵進行誤觸音階的特徵替換,再次萃取該音階特徵並排除會誤觸發的特徵,全部完成後便獲得一最終特徵值表。 A method for detecting musical instrument scale triggering is suitable for a target musical instrument with a plurality of scales, including: a musical instrument scale feature value table generation stage; and a musical instrument scale trigger detection stage; wherein the musical instrument scale feature value table generation stage It further includes: inputting a sound signal of each scale of a target instrument; performing anti-frequency effect processing on the sound signal of each scale to obtain a non-artificial sound signal; performing feature extraction on the anti-frequency sound signal to obtain an initial feature Value table; eigenvalue optimization of the primary eigenvalue table to obtain a final eigenvalue table; the musical instrument scale trigger detection stage further includes: continuously inputting a sound signal to be tested; performing a false frequency effect on the sound signal to be tested Process to obtain a sound signal to be measured without forged frequency; perform audio frame and time-frequency conversion processing on the sound signal to be measured without forged frequency to obtain a frequency domain signal to be measured; the frequency domain signal to be measured and the final characteristic value Tables are compared to determine the detection result of whether a certain scale of the target instrument is triggered; wherein, the feature extraction step further includes: frame the sound signal without fortification to generate a framed sound signal ; Perform time-frequency conversion on the framed sound signal to obtain a frequency domain signal; perform percussion energy statistical averaging on the frequency domain signal to obtain a percussion energy feature; count the strongest and secondary percussive scales Strong frequency energy features, combining the audio energy statistics of all scales with the percussion energy statistics to obtain the primary feature value table; Wherein, the eigenvalue optimization step further includes: comparing all the eigenvalues in the primary eigenvalue table with other eigenvalues in pairs, checking whether the frequency characteristics of the scales are too similar to each other; inputting the non-forged sound signal , Check whether each scale has a normal trigger and whether it will cause a false trigger; in the initial-level feature value table, the cross-comparison result of the feature value shows that the frequency feature is too similar to optimize the scale threshold value of the similar feature ; And replace the false-touch scale feature with the frequency characteristics of the scale whose false trigger is detected in the trigger and false-trigger test steps in the primary feature value table, extract the scale feature again and eliminate the false trigger After all the features are completed, a final feature value table will be obtained. 如請求項1之樂器音階觸發的偵測方法,其中,該膺頻效應處理步驟更包含:將該目標樂器的各音階的聲音訊號進行有限脈衝響應(FIR)低通濾波,得到一濾波後訊號;以及,將該將濾波後訊號進行重新取樣,以得到一無膺頻聲音訊號。 For example, the detection method of musical instrument scale trigger in claim 1, wherein the frequency artifact processing step further comprises: performing finite impulse response (FIR) low-pass filtering on the sound signal of each scale of the target instrument to obtain a filtered signal ; And, re-sampling the filtered signal to obtain an audio signal without aliasing. 如請求項1之樂器音階觸發的偵測方法,其中,該將該待測頻域訊號與該最終特徵值表進行比對步驟係將該頻域訊號的與該最終特徵值表中所統計的敲擊聲能量特徵進行比對,可判斷該樂器之某音階是否被敲擊,以及樂器敲擊之相對距離。 For example, the detection method of musical instrument scale trigger of claim 1, wherein the step of comparing the frequency domain signal to be measured with the final characteristic value table is to compare the frequency domain signal with the statistics in the final characteristic value table By comparing the energy characteristics of the percussion sound, it can be judged whether a certain scale of the instrument has been percussive, and the relative distance of the percussion.
TW108138320A 2019-10-23 2019-10-23 Method for detecting scales triggered in musical instrument TWI718716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108138320A TWI718716B (en) 2019-10-23 2019-10-23 Method for detecting scales triggered in musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108138320A TWI718716B (en) 2019-10-23 2019-10-23 Method for detecting scales triggered in musical instrument

Publications (2)

Publication Number Publication Date
TWI718716B true TWI718716B (en) 2021-02-11
TW202117701A TW202117701A (en) 2021-05-01

Family

ID=75745842

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108138320A TWI718716B (en) 2019-10-23 2019-10-23 Method for detecting scales triggered in musical instrument

Country Status (1)

Country Link
TW (1) TWI718716B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW446932B (en) * 1998-10-29 2001-07-21 Smith Paul Reed Guitars Ltd Fast find fundamental
US20080037803A1 (en) * 1994-05-09 2008-02-14 Automotive Technologies International, Inc. Sound Management Techniques for Vehicles
CN103828232A (en) * 2011-09-22 2014-05-28 伊尔索芙特有限公司 Dynamic range control
CN103890837A (en) * 2011-11-30 2014-06-25 泛音实验室股份有限公司 Drum and drum-set tuner
CN107851444A (en) * 2015-07-24 2018-03-27 声音对象技术股份有限公司 For acoustic signal to be decomposed into the method and system, target voice and its use of target voice

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080037803A1 (en) * 1994-05-09 2008-02-14 Automotive Technologies International, Inc. Sound Management Techniques for Vehicles
TW446932B (en) * 1998-10-29 2001-07-21 Smith Paul Reed Guitars Ltd Fast find fundamental
CN103828232A (en) * 2011-09-22 2014-05-28 伊尔索芙特有限公司 Dynamic range control
CN103890837A (en) * 2011-11-30 2014-06-25 泛音实验室股份有限公司 Drum and drum-set tuner
CN107851444A (en) * 2015-07-24 2018-03-27 声音对象技术股份有限公司 For acoustic signal to be decomposed into the method and system, target voice and its use of target voice

Also Published As

Publication number Publication date
TW202117701A (en) 2021-05-01

Similar Documents

Publication Publication Date Title
CN107209512B (en) Method, system and the computer program in the study stage of the acoustics or vibration analysis for machine
US8924209B2 (en) Identifying spoken commands by templates of ordered voiced and unvoiced sound intervals
JP2008525808A (en) Method for identifying impact location
CN104916292B (en) Method and apparatus for detecting audio signals
JPWO2021048974A5 (en)
CN110568073B (en) Method for picking up impact signal in noise environment
AU2019335404B2 (en) Methods and apparatus to fingerprint an audio signal via normalization
TWI718716B (en) Method for detecting scales triggered in musical instrument
JP2020513914A (en) How to characterize sleep-disordered breathing
CN107210029A (en) Method and apparatus for handling succession of signals to carry out polyphony note identification
WO2013132348A2 (en) Formant based speech reconstruction from noisy signals
CN107644651A (en) Circuit and method for speech recognition
JP7061126B6 (en) How to characterize sleep-disordered breathing
CN104568137B (en) The decision method of specific noise source contribution rate in noise testing
CN111803080B (en) Infant distortion otoacoustic detector and detection method thereof
US20210287674A1 (en) Voice recognition for imposter rejection in wearable devices
CN114220411A (en) Sound level meter capable of eliminating steady-state interference sound
JP6329753B2 (en) Information processing program, information processing apparatus, information processing system, and sound determination method
TWI500024B (en) Sound wave identification system and its method
CN115813379B (en) Middle ear sound admittance testing method and device and earphone
Emoto et al. Auditory image model for the characterisation of obstructive sleep apnoea
Ewald The Estonian Swedish diphthongs/ai au oi ui: Acoustic characteristics and cross-dialectal variation
Dişken Robust Spoofed Speech Detection with Denoised I-vectors
JP6946442B2 (en) Music analysis device and music analysis program
Mandalapu et al. Smartphone audio replay attacks dataset