JP2009251045A - Electronic musical instrument and sound quality control method - Google Patents

Electronic musical instrument and sound quality control method Download PDF

Info

Publication number
JP2009251045A
JP2009251045A JP2008095429A JP2008095429A JP2009251045A JP 2009251045 A JP2009251045 A JP 2009251045A JP 2008095429 A JP2008095429 A JP 2008095429A JP 2008095429 A JP2008095429 A JP 2008095429A JP 2009251045 A JP2009251045 A JP 2009251045A
Authority
JP
Japan
Prior art keywords
sound
noise
musical instrument
electronic musical
musical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2008095429A
Other languages
Japanese (ja)
Inventor
Takuya Sato
拓也 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2008095429A priority Critical patent/JP2009251045A/en
Publication of JP2009251045A publication Critical patent/JP2009251045A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To correct musical sound outputted from an electronic musical instrument so as to be more audible. <P>SOLUTION: The sound quality control method includes: a step S51 of measuring noise around the electronic musical instrument when musical sound is not outputted from the electronic musical instrument; and a step S53 of correcting a frequency characteristic of the musical sound outputted from the electronic musical instrument so as to emphasize the sound in a frequency range having a large sound pressure level of the noise. The sound corrected in this way is audible in an environment where the noise occurs. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、電子楽器および音質制御方法に関し、特に、電気的に生成された楽音を出力する電子楽器およびその楽音の音質を変更するときに利用される音質制御方法に関する。   The present invention relates to an electronic musical instrument and a sound quality control method, and more particularly, to an electronic musical instrument that outputs an electrically generated musical sound and a sound quality control method used when changing the sound quality of the musical sound.

演奏者の操作に応答して電気的に生成された楽音を出力する電子楽器が知られている。さらに、音質が変更された楽音を出力することができる電子楽器が知られている。このような電子楽器は、様々な環境で使用され、出力される楽音がその環境のノイズにより聞こえにくくなることがある。より聞こえやすい楽音を出力する電子楽器が望まれている。   2. Description of the Related Art An electronic musical instrument that outputs a musical sound generated in response to a player's operation is known. Furthermore, an electronic musical instrument that can output a musical sound with a changed sound quality is known. Such an electronic musical instrument is used in various environments, and the output musical sound may be difficult to hear due to noise in the environment. There is a demand for electronic musical instruments that output more easily audible music.

特開2004−228937号公報には、種々のパラメータ(条件)に応じて周波数帯域ごとにノイズのレベルに応じて音量の調整を行うことにより、種々のノイズに対する楽音レベルの音響の補正を行い、最適な音響を提供する音響補正システムが開示されている。その音響補正システムは、車載用オーディオ装置における音響補正システムにおいて、音響を補正するための楽音調整手段と、ノイズ情報を検出するためのノイズ情報検出手段と、を有し、前記楽音調整手段は、前記ノイズ情報検出手段によって検出したノイズのレベルに応じて、前記音響を補正することを特徴としている。   In JP 2004-228937 A, the sound level is corrected for various noises by adjusting the volume according to the noise level for each frequency band according to various parameters (conditions), and An acoustic correction system is disclosed that provides optimal sound. The sound correction system includes a sound adjustment unit for correcting sound and a noise information detection unit for detecting noise information in the sound correction system in the in-vehicle audio apparatus, and the sound adjustment unit includes: The sound is corrected according to the level of noise detected by the noise information detecting means.

特開2004−228937号公報JP 2004-228937 A

本発明の課題は、出力される楽音をより聞こえやすくする電子楽器および音質制御方法を提供することにある。   An object of the present invention is to provide an electronic musical instrument and a sound quality control method that make it easier to hear an output musical sound.

以下に、発明を実施するための最良の形態・実施例で使用される符号を括弧付きで用いて、課題を解決するための手段を記載する。この符号は、特許請求の範囲の記載と発明を実施するための最良の形態・実施例の記載との対応を明らかにするために付加されたものであり、特許請求の範囲に記載されている発明の技術的範囲の解釈に用いてはならない。   In the following, means for solving the problems will be described using the reference numerals used in the best modes and embodiments for carrying out the invention in parentheses. This reference numeral is added to clarify the correspondence between the description of the claims and the description of the best mode for carrying out the invention / example, and is described in the claims. It should not be used to interpret the technical scope of the invention.

本発明による電子楽器(1)は、判別部(3)と測定部(21、22、23、24)と補正部(28、30)とを備えている。判別部(3)は、電子楽器(1)から楽音が出力されているかどうかを判別する。その楽音としては、入力装置(11)の操作に応答して生成されるものが例示される。測定部(21、22、23、24)は、その楽音が出力されていないときに、電子楽器(1)の周辺のノイズを測定する。補正部(28、30)は、そのノイズに基づいてその楽音の音質を変更する。このとき、電子楽器(1)は、そのノイズにより聞こえにくくならないように、その楽音の音質を変更することができる。   The electronic musical instrument (1) according to the present invention includes a determination unit (3), measurement units (21, 22, 23, 24), and correction units (28, 30). The discriminating unit (3) discriminates whether or not a musical sound is output from the electronic musical instrument (1). Examples of the musical sound include those generated in response to the operation of the input device (11). The measurement unit (21, 22, 23, 24) measures noise around the electronic musical instrument (1) when the musical sound is not output. The correction unit (28, 30) changes the tone quality of the musical sound based on the noise. At this time, the electronic musical instrument (1) can change the tone quality of the musical sound so as not to be difficult to hear due to the noise.

測定部(21、22、23、24)は、そのノイズの周波数特性を測定する。補正部(28、30)は、そのノイズの周波数特性に基づいてその楽音の周波数特性を変更する。このとき、電子楽器(1)は、そのノイズにより聞こえにくくならないように、その楽音の周波数特性を変更することができる。   The measurement units (21, 22, 23, 24) measure the frequency characteristics of the noise. The correction unit (28, 30) changes the frequency characteristic of the musical sound based on the frequency characteristic of the noise. At this time, the electronic musical instrument (1) can change the frequency characteristic of the musical sound so as not to be difficult to hear due to the noise.

補正部(28、30)は、そのノイズの所定の周波数域の音圧レベルが所定レベルより大きいときに、その楽音のその周波数域の音が強調されるように、その楽音の周波数特性を変更する。このとき、電子楽器(1)は、そのノイズにより聞こえにくくならないように、その楽音を出力することができる。   The correction unit (28, 30) changes the frequency characteristic of the musical sound so that when the sound pressure level in the predetermined frequency band of the noise is higher than the predetermined level, the sound of the musical sound in the frequency band is emphasized. To do. At this time, the electronic musical instrument (1) can output the musical sound so as not to be difficult to hear due to the noise.

そのノイズの周波数特性は、間欠的に測定された複数の周波数特性の平均を示している。このとき、電子楽器(1)は、その楽音の周波数特性が急激に変化することを防止し、より聞きやすい楽音を出力することができる。   The frequency characteristic of the noise indicates an average of a plurality of frequency characteristics measured intermittently. At this time, the electronic musical instrument (1) can prevent the frequency characteristic of the musical sound from changing suddenly and output a musical sound that is easier to hear.

本発明による電子楽器(1)は、その楽音を出力する音響装置を検出する音響装置検出部をさらに備えている。補正部(28、30)は、その音響装置が所定の音響装置であるときにその楽音の音質を変更しない。このとき、電子楽器(1)は、その楽音を出力する音響装置のノイズによる影響が小さいときに、より適切な楽音を出力することができる。   The electronic musical instrument (1) according to the present invention further includes an acoustic device detector that detects an acoustic device that outputs the musical sound. The correction units (28, 30) do not change the tone quality of the musical sound when the acoustic device is a predetermined acoustic device. At this time, the electronic musical instrument (1) can output a more appropriate musical sound when the influence of noise of the acoustic device that outputs the musical sound is small.

本発明による音質制御方法は、電子楽器(1)から楽音が出力されているかどうかを判別するステップと、その楽音が出力されていないときに、電子楽器(1)の周辺のノイズを測定するステップ(S51)と、そのノイズに基づいてその楽音の音質を変更するステップ(S53)とを備えている。このとき、音質制御方法は、そのノイズにより聞こえにくくならないように、その楽音の音質を変更することができる。   The sound quality control method according to the present invention includes a step of determining whether a musical sound is output from the electronic musical instrument (1), and a step of measuring noise around the electronic musical instrument (1) when the musical sound is not output. (S51) and a step (S53) of changing the tone quality of the musical sound based on the noise. At this time, the sound quality control method can change the sound quality of the musical sound so as not to be difficult to hear due to the noise.

本発明による音質制御方法は、そのノイズの周波数特性を測定するステップと、そのノイズの周波数特性に基づいてその楽音の周波数特性を変更するステップとをさらに備えている。このとき、音質制御方法は、そのノイズにより聞こえにくくならないように、その楽音の周波数特性を変更することができる。   The sound quality control method according to the present invention further includes a step of measuring the frequency characteristic of the noise and a step of changing the frequency characteristic of the musical sound based on the frequency characteristic of the noise. At this time, the sound quality control method can change the frequency characteristic of the musical sound so as not to be difficult to hear due to the noise.

その楽音の周波数特性は、そのノイズの所定の周波数域の音圧レベルが所定レベルより大きいときに、その楽音のその周波数域の音が強調されるように、変更される。このとき、音質制御方法は、そのノイズにより聞こえにくくならないように、その楽音を出力することができる。   The frequency characteristic of the musical sound is changed such that when the sound pressure level in the predetermined frequency range of the noise is higher than the predetermined level, the sound in the frequency range of the musical sound is emphasized. At this time, the sound quality control method can output the musical sound so as not to be difficult to hear due to the noise.

そのノイズの周波数特性は、間欠的に測定された複数の周波数特性の平均を示している。このとき、音質制御方法は、その楽音の周波数特性が急激に変化することを防止し、より聞きやすい楽音を出力することができる。   The frequency characteristic of the noise indicates an average of a plurality of frequency characteristics measured intermittently. At this time, the sound quality control method can prevent the frequency characteristic of the musical sound from changing abruptly and output a musical sound that is easier to hear.

本発明による音質制御方法は、その楽音を出力する音響装置を検出するステップ(S52)をさらに備えている。その楽音の音質は、その音響装置が所定の音響装置であるときに変更されない。このとき、音質制御方法は、その楽音を出力する音響装置のノイズによる影響が小さいときに、より適切な楽音を出力することができる。   The sound quality control method according to the present invention further includes a step (S52) of detecting an acoustic device that outputs the musical sound. The tone quality of the musical sound is not changed when the acoustic device is a predetermined acoustic device. At this time, the sound quality control method can output a more appropriate musical sound when the influence of noise of the acoustic device that outputs the musical sound is small.

本発明による音質制御プログラムは、本発明による音質制御方法をコンピュータに実行させる。   The sound quality control program according to the present invention causes a computer to execute the sound quality control method according to the present invention.

本発明による電子楽器および音質制御方法は、周辺のノイズにより聞こえにくくならないように、出力される楽音の音質を変更することができる。   The electronic musical instrument and the sound quality control method according to the present invention can change the sound quality of the output musical sound so that it is not difficult to hear due to surrounding noise.

図面を参照して、本発明による電子楽器の実施の形態を記載する。その電子楽器1は、図1に示されているように、バス2を介して複数の電気回路が互いに双方向に情報を伝送することができるように接続されている。その複数の電気回路は、CPU3とROM5とRAM6とインターフェース7とトーンジェネレータ8とデジタルシグナルプロセッサ10とを含んでいる。   An embodiment of an electronic musical instrument according to the present invention will be described with reference to the drawings. As shown in FIG. 1, the electronic musical instrument 1 is connected via a bus 2 so that a plurality of electric circuits can bidirectionally transmit information to each other. The plurality of electric circuits include a CPU 3, a ROM 5, a RAM 6, an interface 7, a tone generator 8, and a digital signal processor 10.

CPU3は、電子楽器1にインストールされるコンピュータプログラムを実行して、ROM5とRAM6とインターフェース7とトーンジェネレータ8とデジタルシグナルプロセッサ10とを制御する。ROM5は、そのコンピュータプログラムを記録している、RAM6は、CPU3により生成される情報を一時的に記録する。トーンジェネレータ8は、CPU3により制御されて、楽音の波形を示す波形データを生成する。   The CPU 3 executes a computer program installed in the electronic musical instrument 1 and controls the ROM 5, RAM 6, interface 7, tone generator 8, and digital signal processor 10. The ROM 5 records the computer program, and the RAM 6 temporarily records information generated by the CPU 3. The tone generator 8 is controlled by the CPU 3 to generate waveform data indicating a tone waveform.

インターフェース7は、そのインターフェースは、電子楽器1に接続される外部機器により生成される情報をCPU3に出力し、CPU3により生成された情報をその外部機器に出力する。その外部機器は、鍵盤11とパネル12とMIDI装置14とを含んでいる。鍵盤11は、演奏に用いられる複数の鍵を備えている。その複数の鍵は、複数の白鍵と複数の黒鍵とから形成され、それぞれ、互いに異なる複数の音高に対応している。鍵盤11は、打鍵された鍵とその打鍵強度と識別する情報をCPU3に出力する。パネル12は、入力装置と表示装置とインターフェースとを備えている。その入力装置は、ユーザに操作されることにより情報を生成し、その情報をCPU3に出力する。その表示装置は、CPU3により生成される画像を表示する。そのインターフェースは、電子楽器1にヘッドフォンを接続し、電子楽器に外部スピーカを接続する。そのインターフェースは、さらに、そのヘッドフォンが電子楽器1に接続されたときにデジタルシグナルプロセッサ10により生成された楽音をそのヘッドフォンから出力し、その外部スピーカが電子楽器1に接続されたときにデジタルシグナルプロセッサ10により生成された楽音をその外部スピーカから出力する。MIDI装置14は、楽曲を示す楽曲データを記録し、ユーザの操作によりその楽曲データをCPU3に出力する。その楽曲データは、楽曲を構成する楽音のそれぞれが発音されるタイミングを直接に示している。その楽曲データとしては、スタンダードMIDIファイル(SMF)が例示される。   The interface 7 outputs information generated by an external device connected to the electronic musical instrument 1 to the CPU 3, and outputs information generated by the CPU 3 to the external device. The external device includes a keyboard 11, a panel 12, and a MIDI device 14. The keyboard 11 includes a plurality of keys used for performance. The plurality of keys are formed of a plurality of white keys and a plurality of black keys, and each correspond to a plurality of different pitches. The keyboard 11 outputs to the CPU 3 information identifying the key that has been pressed and its key strength. The panel 12 includes an input device, a display device, and an interface. The input device generates information when operated by the user, and outputs the information to the CPU 3. The display device displays an image generated by the CPU 3. The interface connects a headphone to the electronic musical instrument 1 and connects an external speaker to the electronic musical instrument. The interface further outputs the musical sound generated by the digital signal processor 10 when the headphones are connected to the electronic musical instrument 1, and the digital signal processor when the external speakers are connected to the electronic musical instrument 1. 10 is output from the external speaker. The MIDI device 14 records music data indicating a music and outputs the music data to the CPU 3 by a user operation. The music data directly indicates the timing at which each of the musical sounds constituting the music is generated. As the music data, a standard MIDI file (SMF) is exemplified.

デジタルシグナルプロセッサ10は、CPU3により制御されて、トーンジェネレータ8により生成される波形データに基づいて楽音の波形を示すデジタル楽音信号を生成する。電子楽器1は、さらに、マイク15とアナログデジタルコンバータ16とデジタルアナログコンバータ17とアンプ18とスピーカ19とを備えている。マイク15は、電子楽器1の周辺の音声を収音する。アナログデジタルコンバータ16は、マイク15により収音された音声をデジタルデータに変換し、そのデジタルデータをデジ10に出力する。デジタルアナログコンバータ17は、デジタルシグナルプロセッサ10により生成されたデジタル楽音信号をアナログ楽音信号に変換する。アンプ18は、デジタルアナログコンバータ17により生成されたアナログ楽音信号を増幅する。スピーカ19は、1個ないし複数個から形成され、アンプ18により増幅されたアナログ楽音信号を楽音に変換して放音する。   The digital signal processor 10 is controlled by the CPU 3 and generates a digital musical tone signal indicating a musical tone waveform based on the waveform data generated by the tone generator 8. The electronic musical instrument 1 further includes a microphone 15, an analog / digital converter 16, a digital / analog converter 17, an amplifier 18, and a speaker 19. The microphone 15 collects sound around the electronic musical instrument 1. The analog-digital converter 16 converts the sound collected by the microphone 15 into digital data, and outputs the digital data to the digital 10. The digital / analog converter 17 converts the digital musical tone signal generated by the digital signal processor 10 into an analog musical tone signal. The amplifier 18 amplifies the analog musical tone signal generated by the digital / analog converter 17. The speaker 19 is formed of one or a plurality of speakers, converts the analog tone signal amplified by the amplifier 18 into a tone, and emits the tone.

図2は、デジタルシグナルプロセッサ10を示している。デジタルシグナルプロセッサ10は、高速フーリエ変換部21とラウドネス補正部22とバッファ部23と平均算出部24とライン検出部25と周波数特性補正部26と加算部27と逆フーリエ変換部28とヘッドフォン補正部29と有限インパルスレスポンスフィルタ部30とを備えている。   FIG. 2 shows the digital signal processor 10. The digital signal processor 10 includes a fast Fourier transform unit 21, a loudness correction unit 22, a buffer unit 23, an average calculation unit 24, a line detection unit 25, a frequency characteristic correction unit 26, an addition unit 27, an inverse Fourier transform unit 28, and a headphone correction unit. 29 and a finite impulse response filter unit 30.

高速フーリエ変換部21は、マイク15により周期的(たとえば、1秒毎)に収音された音声を高速フーリエ変換してノイズの周波数特性を算出する。ラウドネス補正部22は、CPU3により制御されて、高速フーリエ変換部21により算出されたノイズの周波数特性をラウドネス補正する。バッファ部23は、ラウドネス補正部22により補正された周波数特性を一時的に記録する。バッファ部23は、さらに、所定の個数(たとえば、10個)だけ周波数特性を記録したときに、最も前に記録された周波数特性を削除する。平均算出部24は、バッファ部23により記録された複数の周波数特性を平均する。   The fast Fourier transform unit 21 performs fast Fourier transform on the sound collected periodically (for example, every second) by the microphone 15 to calculate the frequency characteristics of noise. The loudness correction unit 22 is controlled by the CPU 3 to correct the loudness of the frequency characteristics of noise calculated by the fast Fourier transform unit 21. The buffer unit 23 temporarily records the frequency characteristic corrected by the loudness correction unit 22. Further, the buffer unit 23 deletes the most frequently recorded frequency characteristic when a predetermined number (for example, 10) of frequency characteristics are recorded. The average calculation unit 24 averages the plurality of frequency characteristics recorded by the buffer unit 23.

ライン検出部25は、パネル12に外部スピーカが接続されているかどうかを検出する。周波数特性補正部26は、パネル12に外部スピーカが接続されているときに、その外部スピーカの周波数特性を生成する。周波数特性補正部26は、パネル12に外部スピーカが接続されていないときに、スピーカ19のの周波数特性を生成する。加算部27は、平均算出部24により算出された周波数特性に周波数特性補正部26により生成された周波数特性を加算した周波数特性を算出する。逆フーリエ変換部28は、加算部27により算出された周波数特性を逆フーリエ変換して、インパルスレスポンスのテータ列を算出する。   The line detection unit 25 detects whether an external speaker is connected to the panel 12. When an external speaker is connected to the panel 12, the frequency characteristic correction unit 26 generates a frequency characteristic of the external speaker. The frequency characteristic correction unit 26 generates the frequency characteristic of the speaker 19 when no external speaker is connected to the panel 12. The adding unit 27 calculates a frequency characteristic obtained by adding the frequency characteristic generated by the frequency characteristic correcting unit 26 to the frequency characteristic calculated by the average calculating unit 24. The inverse Fourier transform unit 28 performs inverse Fourier transform on the frequency characteristic calculated by the addition unit 27, and calculates a impulse response data string.

ヘッドフォン補正部29は、パネル12にヘッドフォンが接続されているかどうかを検出する。有限インパルスレスポンスフィルタ部30は、パネル12にヘッドホンが接続されていないときに、逆フーリエ変換部28により算出されたインパルスレスポンスのテータ列に基づいて、トーンジェネレータ8により生成された波形データを畳み込み演算し、デジタル楽音信号を算出する。有限インパルスレスポンスフィルタ部30は、パネル12にヘッドホンが接続されているときに、逆フーリエ変換部28により算出されたインパルスレスポンスのテータ列を用いないで、トーンジェネレータ8により生成された波形データを畳み込み演算し、デジタル楽音信号を算出する。   The headphone correction unit 29 detects whether or not headphones are connected to the panel 12. The finite impulse response filter unit 30 performs a convolution operation on the waveform data generated by the tone generator 8 based on the impulse response data sequence calculated by the inverse Fourier transform unit 28 when no headphones are connected to the panel 12. And a digital musical tone signal is calculated. The finite impulse response filter unit 30 convolves the waveform data generated by the tone generator 8 without using the impulse response data sequence calculated by the inverse Fourier transform unit 28 when headphones are connected to the panel 12. Calculate and calculate a digital musical tone signal.

図3は、電子楽器1の周辺のノイズの周波数特性を示している。その周波数特性31は、そのノイズがある周波数範囲32でレベルが大きく、他のある周波数範囲33でレベルが小さいことを示している。このとき、デジタルシグナルプロセッサ10は、周波数範囲32でレベルが大きく、周波数範囲33でレベルが小さくなるように、楽音の音質を変更する。このように音質が変更された楽音は、そのノイズが発生している環境で聞きやすい。   FIG. 3 shows frequency characteristics of noise around the electronic musical instrument 1. The frequency characteristic 31 indicates that the level is large in a certain frequency range 32 and the level is small in another certain frequency range 33. At this time, the digital signal processor 10 changes the tone quality of the musical sound so that the level is high in the frequency range 32 and the level is low in the frequency range 33. The musical sound with the sound quality changed in this way is easy to hear in an environment where the noise is generated.

本発明による音質制御方法の実施の形態は、電子楽器1により実行され、メインルーチンとインターバル割り込み処理と楽音の音質を補正する動作とを備えている。   The sound quality control method according to the embodiment of the present invention is executed by the electronic musical instrument 1 and includes a main routine, interval interrupt processing, and an operation for correcting the sound quality of a musical sound.

図4は、そのメインルーチンを示している。電子楽器1は、電源が投入されると、または、パネル12のリセットスイッチが押下されると、初期化処理が実行される(ステップS1)。その初期化処理では、電子楽器1が備える複数の電気回路が初期化されるとともに、カウンタ、フラグに初期値が代入される。電子楽器1は、初期化処理が終了すると、イベントが発生しているかどうかを判別する(ステップS2)。電子楽器1は、イベントが発生しているときにイベント処理を実行する(ステップS3)。電子楽器1は、イベントが発生していないときに、または、そのイベント処理が終了したときに、非イベント処理を実行する(ステップS4)。   FIG. 4 shows the main routine. The electronic musical instrument 1 is initialized when the power is turned on or when the reset switch of the panel 12 is pressed (step S1). In the initialization process, a plurality of electric circuits included in the electronic musical instrument 1 are initialized, and initial values are assigned to counters and flags. When the initialization process is completed, the electronic musical instrument 1 determines whether an event has occurred (step S2). The electronic musical instrument 1 executes event processing when an event occurs (step S3). The electronic musical instrument 1 executes non-event processing when no event occurs or when the event processing ends (step S4).

図5は、そのイベント処理を示している。電子楽器1は、鍵盤11の鍵が押鍵または離鍵されたときに(ステップS11、YES)、鍵処理を実行する(ステップS12)。電子楽器1は、パネル12が操作されたときに(ステップS13、YES)、その操作内容に対応する動作を実行する(ステップS14)。電子楽器1は、MIDIに関する操作が実施されたときに(ステップS15、YES)、その操作内容に対応する動作を実行する(ステップS16)。電子楽器1は、鍵盤11の鍵が押鍵または離鍵されないで(ステップS11、NO)、パネル12が操作されないで(ステップS13、NO)、MIDIに関する操作が実施されないときに(ステップS15、NO)、その他の処理を実行する(ステップS17)。その他の処理としては、パネル12のスイッチが長押しされたときに実行される特殊な動作を実現することが例示される。   FIG. 5 shows the event processing. When the key of the keyboard 11 is pressed or released (step S11, YES), the electronic musical instrument 1 executes key processing (step S12). When the panel 12 is operated (step S13, YES), the electronic musical instrument 1 executes an operation corresponding to the operation content (step S14). When an operation related to MIDI is performed (YES in step S15), the electronic musical instrument 1 executes an operation corresponding to the operation content (step S16). In the electronic musical instrument 1, the key of the keyboard 11 is not pressed or released (step S11, NO), the panel 12 is not operated (step S13, NO), and the MIDI operation is not performed (step S15, NO). ), Other processing is executed (step S17). Examples of the other processing include realizing a special operation that is executed when the switch of the panel 12 is pressed for a long time.

図6は、その鍵処理を示している。電子楽器1は、鍵盤11の鍵が押鍵されたときに(ステップS21、YES)、その押鍵が最初の押鍵であるかどうかを判別する(ステップS22)。その最初の押鍵は、鍵盤11が備える複数の鍵の全部が押鍵されていない状態で、その複数の鍵のいずれかが押鍵されることを示している。電子楽器1は、その押鍵が最初の押鍵であるときに(ステップS22、YES)、フラグFLGにONを代入する(ステップS23)。電子楽器1は、その押鍵が最初の押鍵でないときに(ステップS22、NO)、または、フラグFLGにONを代入した後に、その押鍵された鍵に対応する楽音を出力する(ステップS24)。   FIG. 6 shows the key processing. When the key of the keyboard 11 is depressed (step S21, YES), the electronic musical instrument 1 determines whether or not the depressed key is the first depressed key (step S22). The first key depression indicates that any one of the plurality of keys is depressed in a state where all the plurality of keys included in the keyboard 11 are not depressed. The electronic musical instrument 1 substitutes ON for the flag FLG (step S23) when the key depression is the first key depression (step S22, YES). The electronic musical instrument 1 outputs a musical sound corresponding to the depressed key when the depressed key is not the first depressed key (step S22, NO) or after substituting ON for the flag FLG (step S24). ).

電子楽器1は、鍵盤11の鍵が離鍵されたときに(ステップS21、NO)、その離鍵が最後の離鍵であるかどうかを判別する(ステップS25)。その最後の離鍵は、その離鍵により鍵盤11が備える複数の鍵の全部が離鍵されている状態になることを示している。電子楽器1は、その離鍵が最後の離鍵であるときに(ステップS25、YES)、カウンタTflgに0を代入する(ステップS26)。電子楽器1は、ステップS26を実行した後に、または、その離鍵が最後の離鍵でないときに(ステップS25、NO)、その離鍵された鍵に対応する楽音を消音処理する(ステップS27)。   When the key of the keyboard 11 is released (step S21, NO), the electronic musical instrument 1 determines whether or not the key release is the last key release (step S25). The last key release indicates that all keys of the keyboard 11 are released by the key release. When the key release is the last key release (step S25, YES), the electronic musical instrument 1 assigns 0 to the counter Tflg (step S26). After executing step S26 or when the key release is not the last key release (step S25, NO), the electronic musical instrument 1 performs a mute process on the musical tone corresponding to the key released (step S27). .

図7は、その非イベント処理を示している。電子楽器1は、カウンタTflgと所定の定数Tkとの大小関係を算出する(ステップS31)。定数Tkは、鍵盤11の鍵の全部が離鍵されてから電子楽器1から出力される楽音が消音されるまでの時間を示している。電子楽器1は、カウンタTflgが定数Tk以上であるときに(ステップS31、YES)、フラグFLGにOFFを代入し(ステップS32)、カウンタTflgに−1を代入する(ステップS33)。   FIG. 7 shows the non-event processing. The electronic musical instrument 1 calculates the magnitude relationship between the counter Tflg and the predetermined constant Tk (step S31). The constant Tk indicates the time from when all the keys on the keyboard 11 are released until the musical sound output from the electronic musical instrument 1 is muted. When the counter Tflg is equal to or greater than the constant Tk (step S31, YES), the electronic musical instrument 1 substitutes OFF for the flag FLG (step S32) and substitutes −1 for the counter Tflg (step S33).

電子楽器1は、ステップS33が実行された後に、または、カウンタTflgが所定の定数Tkより小さいときに(ステップS31、NO)、フラグFLGがONを示しているかOFFを示しているかを判別する(ステップS34)。電子楽器1は、フラグFLGがOFFを示しているときに(ステップS34、YES)、マイク15を用いて電子楽器1の周辺のノイズを収音し、そのノイズの周波数特性を測定する(ステップS35)。電子楽器1は、次いで、出力される楽音に所定のエフェクト、ビブラートを付加する処理を実行する(ステップS36)。   The electronic musical instrument 1 determines whether the flag FLG indicates ON or OFF after step S33 is executed or when the counter Tflg is smaller than a predetermined constant Tk (NO in step S31) (step S31). Step S34). When the flag FLG indicates OFF (step S34, YES), the electronic musical instrument 1 collects noise around the electronic musical instrument 1 using the microphone 15, and measures the frequency characteristics of the noise (step S35). ). Next, the electronic musical instrument 1 executes a process of adding predetermined effects and vibrato to the output musical sound (step S36).

図8は、そのインターバル割り込み処理を示している。そのインターバル割り込み処理は、10msごとに実行される。電子楽器1は、カウンタTflgの符号を算出する(ステップS41)。電子楽器1は、カウンタTflgが負であるときに(ステップS41、NO)、カウンタTflgが示す値を1だけ増加させる(ステップS42)。   FIG. 8 shows the interval interrupt processing. The interval interrupt process is executed every 10 ms. The electronic musical instrument 1 calculates the sign of the counter Tflg (step S41). When the counter Tflg is negative (step S41, NO), the electronic musical instrument 1 increases the value indicated by the counter Tflg by 1 (step S42).

図4〜図8のような動作によれば、ステップS35のノイズの測定は、電子楽器1が楽音を出力していないときに実行される。   According to the operations shown in FIGS. 4 to 8, the noise measurement in step S35 is executed when the electronic musical instrument 1 is not outputting a musical sound.

図9は、その楽音の音質を補正する動作を示している。電子楽器1は、ステップS35で測定されたノイズの周波数特性のうちの最近の10回の測定結果を用いて、そのノイズの周波数特性の平均を算出する(ステップS51)。電子楽器1は、出力される楽音をイコライザ補正するかどうかを判別する(ステップS52)。すなわち、電子楽器1は、楽音補正モードと非楽音補正モードとを備え、ユーザによるパネル12の操作により楽音補正モードと非楽音補正モードとのいずれかに遷移する。電子楽器1は、楽音補正モードであり、かつ、パネル12にヘッドホンが接続されていないときに(ステップS52、YES)、周波数特性の平均に基づいて楽音をイコライズ補正する(ステップS53)。   FIG. 9 shows an operation for correcting the tone quality of the musical sound. The electronic musical instrument 1 calculates the average of the frequency characteristics of the noise using the latest 10 measurement results among the frequency characteristics of the noise measured in step S35 (step S51). The electronic musical instrument 1 determines whether or not the output musical sound is equalized (step S52). In other words, the electronic musical instrument 1 has a musical tone correction mode and a non-musical tone correction mode, and transitions to either the musical tone correction mode or the non-musical tone correction mode by the user operating the panel 12. When the electronic musical instrument 1 is in the musical tone correction mode and no headphones are connected to the panel 12 (step S52, YES), the musical instrument is equalized and corrected based on the average of the frequency characteristics (step S53).

このとき、電子楽器1は、そのノイズの音圧レベルが大きい周波数域の音が強調されるように、その出力される楽音の周波数特性を補正する。すなわち、その楽音は、そのノイズが高音域のレベルが高いときにその高音域が強調され、そのノイズが低音域のレベルが高いときにその低音域が強調される。高音域のレベルが高いノイズとしては、キッチンでの水仕事の音、ジェット機のエンジン音が例示される。低音域のレベルが高いノイズとしては、工事現場の音が例示される。すなわち、このような動作によれば、電子楽器1は、周辺で発生しているノイズ毎に、ユーザが聞きやすいように楽音の音質を変更することができ、様々な環境で聞きやすい楽音を出力することができる。   At this time, the electronic musical instrument 1 corrects the frequency characteristic of the output musical sound so that the sound in the frequency region where the sound pressure level of the noise is large is emphasized. That is, the musical tone is emphasized when the noise has a high level, and the low range is emphasized when the noise has a high level. Examples of the noise having a high level in the high sound range include a water work sound in a kitchen and a jet engine sound. An example of the noise having a high level in the low sound range is a sound at a construction site. That is, according to such an operation, the electronic musical instrument 1 can change the tone quality of the musical tone so that the user can easily hear each noise generated in the vicinity, and outputs the musical tone that is easy to hear in various environments. can do.

ヘッドホン(イヤホン)から出力される楽音の聞こえ方は、一般的に、環境のノイズに影響を受けにくい。このような動作によれば、電子楽器1は、さらに、ユーザがヘッドホンを用いて楽音を聞いているときに、楽音の音質を変更することがなく、ユーザは、より正確な楽音を聞くことができる。   In general, the way in which musical sounds output from headphones (earphones) are heard is not easily affected by environmental noise. According to such an operation, the electronic musical instrument 1 further allows the user to hear a more accurate musical tone without changing the tone quality of the musical tone when the user listens to the musical tone using the headphones. it can.

なお、電子楽器1は、その楽音のうちのノイズの音圧レベルが大きい周波数域の音を強調することと異なる他の音質変更動作が適用されることもできる。その音質変更動作としては、電子楽器1から出力される楽音の音量を変更することが例示される。   Note that the electronic musical instrument 1 can be applied with another sound quality changing operation different from emphasizing the sound in the frequency range where the sound pressure level of the noise is large among the musical sounds. As the sound quality changing operation, changing the volume of the musical sound output from the electronic musical instrument 1 is exemplified.

図1は、本発明による電子楽器の実施の形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of an electronic musical instrument according to the present invention. 図2は、デジタルシグナルプロセッサを示すブロック図である。FIG. 2 is a block diagram illustrating a digital signal processor. 図3は、ノイズの周波数特性の例を示すグラフである。FIG. 3 is a graph showing an example of noise frequency characteristics. 図4は、メインルーチンを示すフローチャートである。FIG. 4 is a flowchart showing the main routine. 図5は、イベント処理を示すフローチャートである。FIG. 5 is a flowchart showing event processing. 図6は、鍵処理を示すフローチャートである。FIG. 6 is a flowchart showing key processing. 図7は、非イベント処理を示すフローチャートである。FIG. 7 is a flowchart showing non-event processing. 図8は、インターバル割り込み処理を示すフローチャートである。FIG. 8 is a flowchart showing interval interrupt processing. 図9は、楽音の音質を補正する動作を示すフローチャートである。FIG. 9 is a flowchart showing an operation for correcting the tone quality of a musical sound.

符号の説明Explanation of symbols

1 :電子楽器
2 :バス
3 :CPU
5 :ROM
6 :RAM
7 :インターフェース
8 :トーンジェネレータ
10:デジタルシグナルプロセッサ
11:鍵盤
12:パネル
14:MIDI装置
15:マイク
16:アナログデジタルコンバータ
17:デジタルアナログコンバータ
18:アンプ
19:スピーカ
21:高速フーリエ変換部
22:ラウドネス補正部
23:バッファ部
24:平均算出部
25:ライン検出部
26:周波数特性補正部
27:加算部
28:逆フーリエ変換部
29:ヘッドフォン補正部
30:有限インパルスレスポンスフィルタ部
1: Electronic musical instrument 2: Bus 3: CPU
5: ROM
6: RAM
7: Interface 8: Tone generator 10: Digital signal processor 11: Keyboard 12: Panel 14: MIDI device 15: Microphone 16: Analog to digital converter 17: Digital to analog converter 18: Amplifier 19: Speaker 21: Fast Fourier transform unit 22: Loudness Correction unit 23: Buffer unit 24: Average calculation unit 25: Line detection unit 26: Frequency characteristic correction unit 27: Addition unit 28: Inverse Fourier transform unit 29: Headphone correction unit 30: Finite impulse response filter unit

Claims (11)

本電子楽器から楽音が出力されているかどうかを判別する判別部と、
前記楽音が出力されていないときに、本電子楽器の周辺のノイズを測定する測定部と、
前記ノイズに基づいて前記楽音の音質を変更する補正部
とを具備する電子楽器。
A discriminator for discriminating whether or not a musical sound is output from the electronic musical instrument;
A measurement unit for measuring noise around the electronic musical instrument when the musical sound is not output;
An electronic musical instrument comprising: a correction unit that changes the tone quality of the musical sound based on the noise.
請求項1において、
前記測定部は、前記ノイズの周波数特性を測定し、
前記補正部は、前記ノイズの周波数特性に基づいて前記楽音の周波数特性を変更する
電子楽器。
In claim 1,
The measurement unit measures frequency characteristics of the noise,
The electronic musical instrument that changes the frequency characteristic of the musical sound based on the frequency characteristic of the noise.
請求項2において、
前記補正部は、前記ノイズの所定の周波数域の音圧レベルが所定レベルより大きいときに、前記楽音の前記周波数域の音が強調されるように、前記楽音の周波数特性を変更する
電子楽器。
In claim 2,
The electronic musical instrument changes the frequency characteristic of the musical sound so that the sound of the musical sound in the frequency band is emphasized when the sound pressure level of the noise in the predetermined frequency band is higher than a predetermined level.
請求項2において、
前記ノイズの周波数特性は、間欠的に測定された複数の周波数特性の平均を示す
電子楽器。
In claim 2,
The electronic musical instrument in which the frequency characteristic of the noise indicates an average of a plurality of frequency characteristics measured intermittently.
請求項1〜請求項3のいずれかにおいて、
前記楽音を出力する音響装置を検出する音響装置検出部を更に具備し、
前記補正部は、前記音響装置が所定の音響装置であるときに前記楽音の音質を変更しない
電子楽器。
In any one of Claims 1-3,
An audio device detection unit for detecting an audio device that outputs the musical sound;
The correction unit is an electronic musical instrument that does not change a sound quality of the musical sound when the acoustic device is a predetermined acoustic device.
電子楽器から楽音が出力されているかどうかを判別するステップと、
前記楽音が出力されていないときに、前記電子楽器の周辺のノイズを測定するステップと、
前記ノイズに基づいて前記楽音の音質を変更するステップ
とを具備する音質制御方法。
Determining whether a musical sound is being output from an electronic musical instrument;
Measuring noise around the electronic musical instrument when the musical sound is not output;
A sound quality control method comprising: changing a sound quality of the musical sound based on the noise.
請求項6において、
前記ノイズの周波数特性を測定するステップと、
前記ノイズの周波数特性に基づいて前記楽音の周波数特性を変更するステップ
とを更に具備する音質制御方法。
In claim 6,
Measuring frequency characteristics of the noise;
Changing the frequency characteristic of the musical sound based on the frequency characteristic of the noise.
請求項7において、
前記楽音の周波数特性は、前記ノイズの所定の周波数域の音圧レベルが所定レベルより大きいときに、前記楽音の前記周波数域の音が強調されるように、変更される
音質制御方法。
In claim 7,
The frequency characteristic of the musical sound is changed such that when the sound pressure level of the noise in a predetermined frequency range is higher than a predetermined level, the frequency band of the musical sound is emphasized.
請求項7において、
前記ノイズの周波数特性は、間欠的に測定された複数の周波数特性の平均を示す
音質制御方法。
In claim 7,
The frequency characteristic of the noise indicates an average of a plurality of frequency characteristics measured intermittently.
請求項6〜請求項8のいずれかにおいて、
前記楽音を出力する音響装置を検出するステップを更に具備し、
前記楽音の音質は、前記音響装置が所定の音響装置であるときに変更されない
音質制御方法。
In any one of Claims 6-8,
Further comprising a step of detecting an acoustic device that outputs the musical sound,
The sound quality control method, wherein the sound quality of the musical sound is not changed when the sound device is a predetermined sound device.
請求項6〜請求項10のいずれかに記載される音質制御方法
をコンピュータに実行させるための音質制御プログラム。
The sound quality control program for making a computer perform the sound quality control method in any one of Claims 6-10.
JP2008095429A 2008-04-01 2008-04-01 Electronic musical instrument and sound quality control method Withdrawn JP2009251045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008095429A JP2009251045A (en) 2008-04-01 2008-04-01 Electronic musical instrument and sound quality control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008095429A JP2009251045A (en) 2008-04-01 2008-04-01 Electronic musical instrument and sound quality control method

Publications (1)

Publication Number Publication Date
JP2009251045A true JP2009251045A (en) 2009-10-29

Family

ID=41311870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008095429A Withdrawn JP2009251045A (en) 2008-04-01 2008-04-01 Electronic musical instrument and sound quality control method

Country Status (1)

Country Link
JP (1) JP2009251045A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719661A (en) * 2016-01-29 2016-06-29 西安交通大学 Automatic discrimination method for playing timbre of string instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719661A (en) * 2016-01-29 2016-06-29 西安交通大学 Automatic discrimination method for playing timbre of string instrument

Similar Documents

Publication Publication Date Title
JP5396685B2 (en) Audio output device, audio output method, audio output system, and audio output processing program
JP4915773B2 (en) Transfer characteristic measuring method and apparatus
JP6391265B2 (en) Electronic keyboard instrument
WO2007010638A1 (en) Automatic music transcriptor and program
JP4440865B2 (en) Measuring device
US10242697B2 (en) Pitch information generation device, pitch information generation method, and computer-readable recording medium therefor
WO2019043797A1 (en) Song analysis device and song analysis program
US11749239B2 (en) Electronic wind instrument, electronic wind instrument controlling method and storage medium which stores program therein
US11749242B2 (en) Signal processing device and signal processing method
JP2009251045A (en) Electronic musical instrument and sound quality control method
CN112489605B (en) Method for adapting a sound transducer to a reference sound transducer
WO2015053068A1 (en) Sound field measurement device, sound field measurement method, and sound field measurement program
JP4888163B2 (en) Karaoke equipment
EP3757984B1 (en) Electronic musical instrument, method and program
US10805723B2 (en) Automatic characterization of perceived transducer distortion
JP4517395B2 (en) Electronic musical instruments
JP6631341B2 (en) Signal processing device
EP3757985A1 (en) Electronic musical instrument, method and program
JP4274368B2 (en) Impulse response measuring apparatus and impulse response measuring method
KR20090130630A (en) Vocal trainer using frequency comparison method
JP2018156040A (en) Deviation display machine
WO2016143276A1 (en) Acoustic device and correction method
JP2011040831A (en) Headphone and method for canceling digital noise
WO2019053765A1 (en) Song analysis device and song analysis program
JP2009080511A (en) Impulse response measuring device and impulse response measuring method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110607