JP2006267342A - Musical sound controller and musical sound control program - Google Patents
Musical sound controller and musical sound control program Download PDFInfo
- Publication number
- JP2006267342A JP2006267342A JP2005083280A JP2005083280A JP2006267342A JP 2006267342 A JP2006267342 A JP 2006267342A JP 2005083280 A JP2005083280 A JP 2005083280A JP 2005083280 A JP2005083280 A JP 2005083280A JP 2006267342 A JP2006267342 A JP 2006267342A
- Authority
- JP
- Japan
- Prior art keywords
- pitch
- input
- musical
- detected
- tone
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、演奏者の演奏に応じて楽音を発生する楽音制御装置および楽音制御プログラムに関する。 The present invention relates to a musical sound control apparatus and a musical sound control program that generate musical sounds according to the performance of a performer.
従来、弦楽器などにより発生された楽音の音高(ピッチ)やレベルを検出し、その検出した音高やレベルに応じた新たな楽音を生成するギターシンセサイザあるいはベースシンセサイザと呼ばれる電子楽器が知られている。 Conventionally, there has been known an electronic musical instrument called a guitar synthesizer or a bass synthesizer that detects the pitch (pitch) or level of a musical sound generated by a stringed instrument or the like and generates a new musical sound according to the detected pitch or level. Yes.
特開2000−105590号公報(特許文献1)には、弦振動の音高を検出し、その検出した音高に応じた音高の新たな楽音を生成するベースシンセサイザが開示されている。 Japanese Unexamined Patent Publication No. 2000-105590 (Patent Document 1) discloses a bass synthesizer that detects the pitch of string vibration and generates a new musical tone having a pitch corresponding to the detected pitch.
また、楽音に残響を付加したり楽音の周波数特性を変更する効果付加装置においては、入力された楽音の音高を検出し、その検出した音高に応じた態様の効果を入力された楽音に付与するものが知られている。 In addition, in an effect adding device that adds reverberation to a musical tone or changes the frequency characteristics of a musical tone, the pitch of the input musical tone is detected, and an effect according to the detected pitch is applied to the input musical tone. What to grant is known.
特開平6−4076号公報(特許文献2)には、入力された楽音の音高を検出し、その検出した音高に応じた遅延時間を設定することにより巡回型フィルタの周波数特性を変更制御することができる効果付与装置が開示されている。
しかしながら、特許文献1に記載された電子楽器では、弦が弾かれてから正確な音高を検出するまでに時間を要し、新たな楽音の発生が遅れるという問題点があった。特に、ベースのように音高が低い楽音の音高を検出する場合は、波形の周期が長いために、速く正確な音高を検出することが困難であった。
However, the electronic musical instrument described in
また、特許文献2に記載された効果付与装置では、入力された楽音の音高を検出し、その検出した音高に応じて付与する効果の態様を設定する場合に、正確な音高を検出するまでに時間を要し、楽音が入力されてから適切な態様の効果を付与するまでの時間に遅れが生じるという問題点があった。
In addition, the effect applying device described in
本発明は、上述した問題点を解決するためになされたものであり、入力される楽音の音高に応じた楽音制御を速く行うことができる楽音制御装置および楽音制御プログラムを提供することを目的としている。 The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a musical tone control apparatus and a musical tone control program that can quickly perform musical tone control according to the pitch of an inputted musical tone. It is said.
上記課題を解決するために、請求項1記載の楽音制御装置は、楽音を入力する入力手段と、その入力手段により入力された楽音の音高を検出する音高検出手段と、その音高検出手段により検出された音高に基づいて新たな楽音を発生するように楽音発生手段に対し制御を行う制御手段とを備えたものであって、一連の所定の音高を指示する音符情報を記憶する記憶手段と、前記音高検出手段により検出された音高に基づいて前記記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出手段と、前記入力手段により楽音が入力されたことを検出する楽音入力検出手段とを備え、前記制御手段は、前記楽音入力検出手段により楽音が入力されたことを検出した場合は、前記演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高で楽音の発生を開始し、前記音高検出手段により音高が検出された場合は、前記音高検出手段により検出された音高に基づいて発生中の楽音の音高を変更するように前記楽音発生手段を制御するものである。
In order to solve the above-mentioned problem, a musical tone control apparatus according to
請求項2記載の楽音制御装置は、請求項1記載の楽音制御装置において、前記記憶手段は、一連の所定の音高を指示する音符情報と、その音符情報により指示される音高の楽音の音色を指示する音色情報とを記憶し、前記制御手段は、前記楽音入力検出手段により楽音が入力されたことを検出した場合は、前記演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高および音色情報が示す音色で楽音の発生を開始し、前記音高検出手段により音高が検出された場合は、前記音高検出手段により検出された音高に基づいて発生中の楽音の音高を変更するように前記楽音発生手段を制御するものである。
The musical tone control apparatus according to
請求項3記載の楽音制御装置は、楽音を入力する入力手段と、その入力手段により入力された楽音の音高を検出する音高検出手段と、前記入力手段により入力された楽音に効果を付与する効果付与手段と、前記音高検出手段により検出された音高に基づいて前記効果付与手段により楽音に付与する効果の態様を制御する制御手段とを備えたものであって、一連の所定の音高を指示する音符情報を記憶する記憶手段と、前記音高検出手段により検出された音高に基づいて前記記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出手段と、前記入力手段により楽音が入力されたことを検出する楽音入力検出手段とを備え、前記制御手段は、前記楽音入力検出手段により楽音が入力されたことを検出した場合は、前記演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高に応じた態様で効果を付与し、前記音高検出手段により音高が検出された場合は、検出された音高に応じた態様で効果を付与するように前記効果付与手段を制御するものである。
The musical tone control apparatus according to
請求項4記載の楽音制御プログラムは、楽音を入力する入力ステップと、その入力ステップにより入力された楽音の音高を検出する音高検出ステップと、その音高検出ステップにより検出された音高に基づいて新たな楽音を発生するように楽音発生手段に対し制御を行う制御ステップとを備えたものであって、前記音高検出ステップにより検出された音高に基づいて、一連の所定の音高を指示する音符情報を記憶する記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出ステップと、前記入力ステップより楽音が入力されたことを検出する楽音入力検出ステップとを備え、前記制御ステップは、前記楽音入力検出ステップにより楽音が入力されたことを検出した場合は、前記演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高で楽音の発生を開始し、前記音高検出ステップにより音高が検出された場合は、前記音高検出ステップにより検出された音高に基づいて発生中の楽音の音高を変更するように前記楽音発生手段を制御するものである。
The musical tone control program according to
請求項5記載の楽音制御プログラムは、請求項4記載の楽音制御プログラムにおいて、前記記憶手段は、一連の所定の音高を指示する音符情報と、その音符情報により指示される音高の楽音の音色を指示する音色情報とを記憶し、前記制御ステップは、前記楽音入力検出ステップにより楽音が入力されたことを検出した場合は、前記演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高および音色情報が示す音色で楽音の発生を開始し、前記音高検出ステップにより音高が検出された場合は、前記音高検出ステップにより検出された音高に基づいて発生中の楽音の音高を変更するように前記楽音発生手段を制御するものである。
The musical tone control program according to
請求項6記載の楽音制御プログラムは、楽音を入力する入力ステップと、その入力ステップにより入力された楽音の音高を検出する音高検出ステップと、その音高検出ステップにより検出された音高に基づいて前記入力ステップにより入力された楽音に効果付与手段が付与する効果の態様を制御する制御ステップとを備えたものであって、前記音高検出ステップにより検出された音高に基づいて、一連の所定の音高を指示する音符情報を記憶する記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出ステップと、前記入力ステップにより、楽音が入力されたことを検出する楽音入力検出ステップとを備え、前記制御ステップは、前記楽音入力検出ステップにより楽音が入力されたことを検出した場合は、前記演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高に応じた態様で効果を付与し、前記音高検出ステップにより音高が検出された場合は、検出された音高に応じた態様で効果を付与するように前記効果付与手段を制御するものである。
The musical tone control program according to
請求項1記載の楽音制御装置によれば、記憶手段は、一連の所定の音高を指示する音符情報を記憶し、演奏位置検出手段は、音高検出手段により検出された音高に基づいて記憶手段に記憶された音符情報を参照することにより一連の音符情報に対する演奏位置を検出し、楽音入力検出手段は、入力手段に楽音が入力されたことを検出し、制御手段は、楽音入力検出手段により楽音が入力されたことを検出した場合は、演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高で楽音の発生を開始し、音高検出手段により音高が検出された場合は、音高検出手段により検出された音高に基づいて発生中の楽音の音高を変更するように楽音発生手段を制御するものである。 According to the musical tone control apparatus of the first aspect, the storage means stores note information indicating a series of predetermined pitches, and the performance position detection means is based on the pitch detected by the pitch detection means. The performance position for a series of note information is detected by referring to the note information stored in the storage means, the tone input detection means detects that a tone has been input to the input means, and the control means detects the tone input. When it is detected that a musical tone has been input by the means, the generation of a musical tone is started at the pitch indicated by the note information set at the performance position detected by the performance position detecting means, and the pitch is detected by the pitch detecting means. Is detected, the musical sound generating means is controlled so as to change the pitch of the musical sound being generated based on the pitch detected by the pitch detecting means.
よって、入力された楽音の音高を検出するまでに時間を要する場合であっても、楽音が入力されたことを検出するだけで音符情報に基づいた音高で、楽音の発生を開始することができ、楽音の発生の開始の遅延を防止し速く楽音の発生を開始することができる。また、その楽音の発生を開始する音高は、演奏位置に記憶されている音符情報に基づく音高であるので、正しい音高で発生される可能性が高い。 Therefore, even if it takes time to detect the pitch of the input musical tone, the generation of the musical tone is started at the pitch based on the note information simply by detecting the input of the musical tone. Therefore, it is possible to prevent the delay of the start of the generation of the musical sound and to start the generation of the musical sound quickly. Further, since the pitch at which the musical tone starts to be generated is a pitch based on the note information stored at the performance position, there is a high possibility that the musical tone is generated at the correct pitch.
請求項2記載の楽音制御装置によれば、請求項1記載の楽音制御装置の奏する効果に加え、記憶手段は、一連の所定の音高を指示する音符情報と、その音符情報により指示される音高の楽音の音色を指示する音色情報とを記憶し、制御手段は、楽音入力検出手段により楽音が入力されたことを検出した場合は、演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高および音色情報が示す音色で楽音の発生を開始し、音高検出手段により音高が検出された場合は、音高検出手段により検出された音高に基づいて発生中の楽音の音高を変更するように楽音発生手段を制御するものである。
According to the musical tone control apparatus according to
よって、入力された楽音の音高を検出するまでに時間を要する場合であっても、楽音が入力されたことを検出するだけで音符情報に基づいた音高で、速く楽音の発生を開始することができるとともに、その音符に割り当てられている音色とすることができる。 Therefore, even if it takes time to detect the pitch of the input musical tone, the generation of the musical tone is started quickly at the pitch based on the note information simply by detecting the input of the musical tone. And the timbre assigned to the note.
請求項3記載の楽音制御装置によれば、記憶手段は、一連の所定の音高を指示する音符情報を記憶し、演奏位置検出手段は、音高検出手段により検出された音高に基づいて記憶手段に記憶された音符情報を参照することにより一連の音符情報に対する演奏位置を検出し、楽音入力検出手段は、入力手段により楽音が入力されたことを検出し、制御手段は、楽音入力検出手段により楽音が入力されたことを検出した場合は、演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高に応じた態様で効果を付与し、音高検出手段により音高が検出された場合は、検出された音高に応じた態様で効果を付与するように効果付与手段を制御するものである。
According to the musical tone control apparatus of
よって、入力された楽音の音高を検出するまでに時間を要する場合であっても、楽音が入力されたことを検出するだけで音符情報に基づいた音高に対応する態様の効果を、楽音に付与することができ、効果を付与することの遅延を防止することができる。 Therefore, even if it takes time to detect the pitch of the input musical tone, the effect of the aspect corresponding to the pitch based on the note information is detected only by detecting that the musical tone is input. The delay of giving an effect can be prevented.
請求項4記載の楽音制御プログラムによれば、演奏位置検出ステップは、音高検出ステップにより検出された音高に基づいて、一連の所定の音高を指示する音符情報を記憶する記憶手段に記憶された音符情報を参照することにより一連の音符情報に対する演奏位置を検出し、楽音入力検出ステップは、入力ステップより楽音が入力されたことを検出し、制御ステップは、楽音入力検出ステップにより楽音が入力されたことを検出した場合は、演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高で楽音の発生を開始し、音高検出ステップにより音高が検出された場合は、音高検出ステップにより検出された音高に基づいて発生中の楽音の音高を変更するように楽音発生手段を制御するものである。
According to the musical tone control program of
よって、入力された楽音の音高を検出するまでに時間を要する場合であっても、楽音が入力されたことを検出するだけで音符情報に基づいた音高で、楽音の発生を開始することができ、楽音の発生の開始の遅延を防止し速く楽音の発生を開始することができる。また、その楽音の発生を開始する音高は、演奏位置に記憶されている音符情報に基づく音高であるので、正しい音高で発生される可能性が高い。 Therefore, even if it takes time to detect the pitch of the input musical tone, the generation of the musical tone is started at the pitch based on the note information simply by detecting the input of the musical tone. Therefore, it is possible to prevent the delay of the start of the generation of the musical sound and start the generation of the musical sound quickly. Further, since the pitch at which the musical tone starts to be generated is a pitch based on the note information stored at the performance position, there is a high possibility that the musical tone is generated at the correct pitch.
請求項5記載の楽音制御プログラムによれば、請求項4記載の楽音制御プログラムの奏する効果に加え、記憶手段は、一連の所定の音高を指示する音符情報と、その音符情報により指示される音高の楽音の音色を指示する音色情報とを記憶し、制御ステップは、楽音入力検出ステップにより楽音が入力されたことを検出した場合は、演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高および音色情報が示す音色で楽音の発生を開始し、音高検出ステップにより音高が検出された場合は、音高検出ステップにより検出された音高に基づいて発生中の楽音の音高を変更するように楽音発生手段を制御するものである。よって、入力された楽音の音高を検出するまでに時間を要する場合であっても、楽音が入力されたことを検出するだけで音符情報に基づいた音高で、速く楽音の発生を開始することができるとともに、その音符に割り当てられている音色とすることができる。 According to the musical tone control program of the fifth aspect, in addition to the effect produced by the musical tone control program according to the fourth aspect, the storage means is instructed by the musical note information indicating a series of predetermined pitches and the musical note information. Timbre information for instructing the timbre of the musical tone of the pitch is stored, and the control step is set to the performance position detected by the performance position detection step when it is detected that the musical sound is input by the musical sound input detection step. If tone generation is started with the pitch indicated by the note information and the tone indicated by the tone information, and the pitch is detected by the pitch detection step, the tone is generated based on the pitch detected by the pitch detection step. The musical tone generating means is controlled so as to change the pitch of the middle musical tone. Therefore, even if it takes time to detect the pitch of the input musical tone, the generation of the musical tone is started quickly at the pitch based on the note information simply by detecting the input of the musical tone. And the timbre assigned to the note.
請求項6記載の楽音制御プログラムによれば、演奏位置検出ステップは、音高検出ステップにより検出された音高に基づいて、一連の所定の音高を指示する音符情報を記憶する記憶手段に記憶された音符情報を参照することにより一連の音符情報に対する演奏位置を検出し、楽音入力検出ステップは、入力ステップにより楽音が入力されたことを検出し、制御ステップは、楽音入力検出ステップにより楽音が入力されたことを検出した場合は、演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高に応じた態様で効果を付与し、音高検出ステップにより音高が検出された場合は、検出された音高に応じた態様で効果を付与するように効果付与手段を制御するものである。
According to the musical tone control program of
よって、入力された楽音の音高を検出するまでに時間を要する場合であっても、楽音が入力されたことを検出するだけで音符情報に基づいた音高に対応する態様の効果を、楽音に付与することができ、効果を付与することの遅延を防止することができる。 Therefore, even if it takes time to detect the pitch of the input musical tone, the effect of the aspect corresponding to the pitch based on the note information is detected only by detecting that the musical tone is input. The delay of giving an effect can be prevented.
以下、本発明の好ましい第1の実施形態について、添付図面を参照して説明する。図1は、本発明の一実施形態である楽音制御装置を有する電子楽器1の電気的構成を示したブロック図である。
Hereinafter, a preferred first embodiment of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a block diagram showing an electrical configuration of an electronic
電子楽器1は、CPU2(中央処理装置)と、そのCPU2により実行される制御プログラムを記憶したROM3(リード・オンリ・メモリ)と、CPU2が制御プログラムを実行する際の作業用のメモリエリアなどを提供するRAM4(ランダム・アクセス・メモリ)と、フラッシュメモリなどのカード型記憶媒体を着脱自在に装着することができる外部記憶装置5と、演奏者が電子楽器1に指示を行う操作子6と、その操作子6により設定されたパラメータなどを表示する表示器7と、電気ギターなどの弦の振動を電気信号に変換するピックアップ8と、ピックアップ8により変換された電気信号を所定のサンプリング周期でデジタル信号に変換するA/D変換器9と、A/D変換器9により変換されたデジタル信号の音高やレベルを検出するDSP10と、CPU2により送信された演奏情報に対応した楽音信号を生成する音源11と、その音源11により生成された楽音を増幅する増幅器12(アンプ)と、その増幅器12により増幅された楽音を放音するスピーカ13とにより構成されている。
The electronic
CPU2は、電気ギターなどが演奏されて弦が振動を開始したことを検出すると、RAM4に記憶されている楽譜情報の演奏位置に対応する音符情報と、その音符情報に対応して記憶されている音色情報とを読み出し、その音符情報が示す音高と音色情報が示す音色で楽音の発生を開始するように音源11を制御し、弦振動の音高が検出された場合は、発生している楽音の音高をその検出された音高に修正するように音源11を制御する。
When the
ROM3には、図3、図4、および図5に示すフローチャートの処理を行う制御プログラムや各種定数などが記憶されている。RAM4には、作業用のメモリエリアの他に楽譜情報メモリ4aとノートオンバッファ4bが設けられている。
The
楽譜情報メモリ4aは、外部記憶装置5に装着されたカード型メモリに記憶されている複数の曲に対応する楽譜情報の中から演奏者により選択された曲に対応する楽譜情報が転送され、記憶される。ノートオンバッファ4bは、ノートオンメッセージが記憶される領域である。ノートオンメッセ−ジは、MIDI規格により規定されている鍵盤の鍵などが押下されたことを示すメッセージであり以下ノートオンと略す。また、鍵盤の鍵が離鍵されたことを示すメッセージは、ノートオフメッセージであり、以下ノートオフと略す。
The musical
CPU2は、DSP10から弦の振動の音高が検出された時、その音高と弦振動のレベルの通知を受信し、その音高に対応するノートナンバと検出したレベルに対応するベロシティとを求め、ノートオンを生成する。また、DSP10により、その楽音のレベルが所定値以下になったことの通知を受信した場合は、そのノートナンバのノートオフを生成するものである。
When the pitch of the vibration of the string is detected from the
このノートオンバッファ4bには、ノートオンが発生した場合に、演奏位置の検索が行われ、演奏が間違えられた場合、すなわち演奏位置を特定できない場合に、そのノートオンが記憶される。このノートオンバッファ4bに記憶されるノートオンの数の最大値は、予めN個と定められている。N個を超える数の間違いが発生した場合は、最も古く発生したノートオンがノートオンバッファ4bから消去され、新たに発生したノートオンが記憶される。 In the note-on buffer 4b, when the note-on occurs, the performance position is searched, and when the performance is wrong, that is, when the performance position cannot be specified, the note-on is stored. The maximum number of note-ons stored in the note-on buffer 4b is determined in advance as N. When more than N errors occur, the oldest note-on is erased from the note-on buffer 4b, and the newly generated note-on is stored.
また、RAM4には、楽音の発生状態を示す発音済みフラグが記憶される。この発音済みフラグは、音源11が楽音を発生している場合に1に設定され、楽音の発生を停止しているときに0に設定されるものである。
In addition, the
外部記憶装置5は、カード型メモリを装着し、そのカード型メモリに記憶されている演奏曲に応じた一連の楽音の発生および停止を指示する音符情報や楽音の音色を指示する音色情報等により構成される楽譜情報を読み書きするものである。
The
演奏者は、演奏に先立って外部記憶装置5に装着されたカード型メモリから所望の曲を選択し、その曲を演奏者が演奏する。選択された曲に対応する楽譜情報は、外部記憶装置5により読出され、RAM4に転送される。
Prior to the performance, the performer selects a desired song from the card-type memory mounted in the
操作子6は、各種パラメータを設定するボリュームやスイッチであり、外部記憶装置5に装着されたカード型メモリに記憶されている複数の演奏曲の中からいずれかの曲を選択する操作子や、音色を選択するスイッチまたはロータリエンコーダなどの操作子を有し、音源11が発生する楽音の音色を設定することができる。ピアノやギターなどのように同時に複数の楽音を発生することができる楽器や、管楽器などのように、一つの楽器で同時に複数の音を発生することができない楽器を模倣することができる。
The
DSP10は、デジタル信号処理回路(Digital Signal Processor)であって、DSP10の内部に各種の処理に応じたプログラムを記憶し、これらのプログラムを実行することにより、入力された弦振動などの楽音のレベルを監視し、レベルが所定値を越える等を検出した場合は、CPU2に楽音の入力が開始されたことを通知し、レベルが所定値以下になった等を検出した場合は、楽音の入力が停止されたことをCPU2に通知する。また、楽音が入力されている場合には、所定時間毎に入力されている楽音の音高を検出し、音高を検出することができた場合には、CPU2にその検出した音高の値を通知する。
The
次に図2を参照して、楽譜情報について説明する。図2は、楽譜情報を構成するデータの一例を示している。楽譜情報は、いわゆる自動演奏データとも呼ばれるもので、音符情報と音色情報とを有している。 Next, the score information will be described with reference to FIG. FIG. 2 shows an example of data constituting the score information. The musical score information is also called so-called automatic performance data and has note information and timbre information.
音符情報と音色情報とは、演奏が行われる順に記憶され、一つの音符情報は、ノートオンが発生する時刻を示すタイムと、そのノートオンが示す音高であるノートナンバ(MIDI規格では、中央Cが60と規定されている)と、そのノートオンの押鍵速度を示すベロシティと、そのノートオンが発生してからそのノートオンに対応するノートオフが発生するまでの時間であるゲートタイムとが記憶されている。なお、タイムは、楽譜情報の先頭の音符情報のノートオンを発生する時刻を0とし、音符情報のノートオンを発生する時刻を示すものである。 The note information and the timbre information are stored in the order in which the performance is performed. One note information includes a time indicating the time when note-on occurs and a note number indicating the pitch indicated by the note-on (in the MIDI standard, the center number). C is defined as 60), a velocity indicating the key-on speed of the note-on, and a gate time which is a time from the occurrence of the note-on to the occurrence of the note-off corresponding to the note-on Is remembered. Note that the time indicates the time when note-on of note information is generated with the time when note-on of note information at the beginning of the musical score information is set to 0.
ここで、タイムおよびゲートタイムを表す時間の単位は、ティックである。このティックとは、テンポ値に対応する時間間隔であり、テンポ値により特定される1拍の時間長さを所定の値(例えば、24)で除算した時間である。テンポ値は、1分当たりの拍数(beat per minuteを略してbpmという)で表される。例えば、テンポ値が120bpmであれば、1拍の長さは、500msecであり、これを24で除算すると1ティックは、20.83msecとなる。 Here, the unit of time representing time and gate time is a tick. The tick is a time interval corresponding to the tempo value, and is a time obtained by dividing the time length of one beat specified by the tempo value by a predetermined value (for example, 24). The tempo value is expressed in beats per minute (abbreviated as beat per minute, referred to as bpm). For example, if the tempo value is 120 bpm, the length of one beat is 500 msec, and dividing this by 24 gives one tick of 20.83 msec.
楽譜情報には、各音符情報に対応して、その音符情報により発生される楽音の音色を示す音色情報が記憶されている。この音色情報は、MIDI規格により規定されているプログラムチェンジである。これらの音色情報は、例えば、音量がしだいに大きくなるクレッシェンド演奏の場合に用いられる音色や、逆に音量がしだいに小さくなるデクレッシェンド演奏の場合に用いられる音色や、音高がしだいに上昇または下降するポルタメント演奏の場合に用いられる音色や、ゲートタイムが短いスタッカート演奏の場合に用いられる音色や、上記のような特別な演奏法ではない一般的な演奏の場合に用いられるノーマル音色などを指定するものである。音源11は、これらの音色情報に対応する音色の楽音を発生することができるように構成されている。
In the musical score information, timbre information indicating the timbre of the musical tone generated by the musical note information is stored corresponding to each musical note information. This timbre information is a program change defined by the MIDI standard. These timbre information is, for example, the timbre used for crescendo performance where the volume gradually increases, the timbre used for deccrescendo performance where the volume gradually decreases, or the pitch gradually increases or decreases. Specifies the tone used for portamento performances that fall, the tone used for staccato performances with short gate times, and the normal tone used for general performances that are not the special performance methods described above. To do. The
次に、図3を参照して、CPU2により実行されるメイン処理について説明する。図3は、メイン処理を示すフローチャートであって、電子楽器1の電源が投入されてから遮断されるまで実行される処理である。まず、初期化処理を行う(S1)。この初期化処理としては、楽音の発生状態を示す発音済みフラグを0に設定し(以下、リセットすると称し、フラグを1に設定することをセットすると称す)、ノートオンバッファ4bをクリアし、演奏間違い数Mを0にクリアするなどの処理を行う。
Next, a main process executed by the
演奏間違い数Mは、ノートオンが発生した場合に、そのノートオンの示す音高と、ポインタが示す音符情報のノートナンバとが比較され、一致しない場合に、発生したノートオンがノートオンバッファ4bに記憶され、そのノートオンの数である。この演奏間違い数Mは、RAM4の所定のエリアに記憶される値である。
When the note-on occurs, the number of performance errors M is compared with the pitch indicated by the note-on and the note number indicated by the pointer information indicated by the pointer. And the number of note-ons stored in it. The performance error number M is a value stored in a predetermined area of the
また、この実施形態では、外部記憶装置5に装着されているカード型メモリに記憶された複数の曲の楽譜情報の内、いずれかの曲が演奏者により選択されているものとする。そして、曲が選択された時点で、演奏位置を示すポインタが、その曲の最初の音符情報に設定される。
In this embodiment, it is assumed that any one of the pieces of musical score information stored in the card-type memory attached to the
初期化処理の次に、音色を選択する操作が行われたか否かを判断する(S2)。音色が選択された場合は(S2:Yes)、音色設定処理を行う(S3)。音色設定処理は、例えば音源11に対して設定された音色の種類に応じたプログラムチェンジを送信するなどの処理である。
Next to the initialization process, it is determined whether or not an operation for selecting a timbre has been performed (S2). When a timbre is selected (S2: Yes), a timbre setting process is performed (S3). The tone color setting process is, for example, a process of transmitting a program change corresponding to the type of tone color set for the
S2の処理において、音色設定が行われていない場合(S2:No)または、S3の音色設定処理が行われた場合は、次に、ピックアップ8から楽音が入力されたか否かを判断する(S4)。DSP10は、A/D変換器9により変換されたデジタル信号を監視し、入力がない状態から弦振動を示す信号が入力されたこと(弦振動の開始)を検出した場合に、CPU2に入力があったことを通知するものである。振動の開始が検出された場合は(S4:Yes)、弦振動開始処理を行う(S5)。この弦振動開始処理については、図4を参照して後述する。
In the process of S2, if no timbre setting is performed (S2: No) or if the timbre setting process of S3 is performed, it is next determined whether or not a musical tone is input from the pickup 8 (S4). ). When the
S4の処理において、弦振動が開始していない場合(S4:No)または、S5の弦振動開始処理が行われた場合は、次にいずれかの弦が振動を停止したか否かを判断する(S6)。DSP10は、A/D変換器9により変換されたデジタル信号を監視し、いずれかの弦が振動している状態から停止したことを検出した場合に、CPU2に振動の停止を通知するものである。振動の停止を検出した場合は(S6:Yes)、その弦の振動に対応したノートオフを生成し、そのノートオフを音源11へ送信することにより楽音の発生を停止するように弦振動停止処理を行う(S7)。
If the string vibration has not started in the process of S4 (S4: No) or the string vibration start process of S5 has been performed, it is next determined whether any of the strings has stopped vibrating. (S6). The
S6の処理において、弦振動が停止していない場合(S6:No)または、S7の弦振動停止処理が行われた場合は、次にその他の処理を行いS2の処理に戻る。その他の処理は、上記した操作子以外の操作子が操作されたことを検出し、その操作に応じた処理などの処理である。 In the process of S6, when the string vibration is not stopped (S6: No), or when the string vibration stop process of S7 is performed, other processes are performed next and the process returns to S2. The other processing is processing such as processing according to an operation detected by detecting an operation other than the above-described operation.
次に図4を参照して、上記S5の弦振動開始処理について説明する。図4は、弦振動開始処理を示すフローチャートである。まず、演奏間違い数Mが0であるか否かを判断する(S11)。演奏間違い数Mが0である場合は(S11:Yes)、ポインタが示す音符情報に記憶されている音高と、その音符情報に対応する音色情報が示す音色で楽音の発生を開始するように音源11を制御し(S12)、楽音の発生を開始したことを示す発音済みフラグをセットする。次に、演奏位置を示すポインタを次の音符情報に進め(S14)、この弦振動開始処理を終了する。S14の処理により、検出した演奏位置を1進めるのは、楽音の入力が検出された場合、前回検出された演奏位置に設定されている音符情報の次の演奏位置に設定されてる音符情報に基づいて楽音の発生を開始するからである。
Next, the string vibration start process in S5 will be described with reference to FIG. FIG. 4 is a flowchart showing the string vibration start process. First, it is determined whether or not the performance error number M is 0 (S11). If the performance error number M is 0 (S11: Yes), generation of a musical tone is started with the pitch stored in the note information indicated by the pointer and the tone indicated by the tone information corresponding to the note information. The
一方、S11の処理で演奏間違い数Mが0でないと判断した場合は(S11:No)、演奏間違い数Mがノートオンバッファ4bに記憶するノートオンの数の最大値Nから1を引いた値より小さいか否かを判断する(S15)。 On the other hand, if it is determined that the performance error number M is not 0 in the process of S11 (S11: No), the performance error number M is a value obtained by subtracting 1 from the maximum value N of the number of note-ons stored in the note-on buffer 4b. It is determined whether it is smaller (S15).
演奏間違い数Mが値N−1より小さい場合は(S15:Yes)、Mの値に1を加え(S16)、発音済みフラグをリセットし(S17)、この弦振動開始処理を終了する。演奏間違い数MがN−1より小さくない場合は(S15:No)、S16の処理を行わずにS17の処理により発音済みフラグをリセットし、この弦振動開始処理を終了する。 If the performance error number M is smaller than the value N-1 (S15: Yes), 1 is added to the value of M (S16), the sounded flag is reset (S17), and this string vibration start process is terminated. If the performance error number M is not smaller than N-1 (S15: No), the sounded flag is reset by the process of S17 without performing the process of S16, and this string vibration start process is terminated.
したがって、この弦振動開始処理では、弦振動の音高が検出される前に、演奏位置に設定されている音符情報に記憶されている音高と、音色情報により示されている音色で楽音の発生を開始するように音源11を制御する。ただし、演奏間違い数Mが0ではない場合は、楽音は発生されないことになる。
Therefore, in this string vibration start process, before the pitch of the string vibration is detected, the tone is stored with the pitch stored in the note information set at the performance position and the tone indicated by the tone information. The
次に、図5を参照して、音高検出処理について説明する。この音高検出処理は、DSP10により定期的に音高検出が行われ、音高が検出された場合に、DSP10からCPU2に、検出された音高の値が送信される。音高検出処理は、弦振動が開始された直後は、弦の振動が不規則であり、周期を正確に検出するまでに時間を要する。特に、弦の振動の音高が低い場合は、周期が長く正確な音高を検出するまでに長い時間を要する。
Next, the pitch detection process will be described with reference to FIG. In this pitch detection process, the
従って、この音高検出処理が実行されるのは、弦の振動が開始され、その後、音高検出手段により正確な音高が検出された場合である。図5は、そのCPU2により実行される音高検出処理を示すフローチャートである。
Therefore, the pitch detection process is executed when the vibration of the string is started and then the accurate pitch is detected by the pitch detection means. FIG. 5 is a flowchart showing a pitch detection process executed by the
まず、RAM4に記憶されている発音済みフラグが1にセットされているか否かを判断する(S21)。発音済みフラグが1にセットされている場合は(S21:Yes)、音源11により発生されている楽音の音高をDSP10により検出された音高に変更するように音源11を制御する(S22)。この制御は、MIDI規格により定められているピッチベンド情報などを送信することにより行われる。
First, it is determined whether or not the sounded flag stored in the
したがって、演奏位置に設定されている音符情報が示す音高で楽音の発生を開始した後に検出された音高が音符情報が示す音高と異なっている場合にも、検出された音高に応じて楽音の発生を制御することにより、発生中の楽音の音高を実際に演奏された音高に修正することができる。 Therefore, even if the pitch detected after starting the generation of a musical tone at the pitch indicated by the note information set at the performance position is different from the pitch indicated by the note information, the detected pitch depends on the detected pitch. By controlling the generation of the musical tone, the pitch of the musical tone being generated can be corrected to the pitch actually played.
次に、演奏間違い数Mが0であるか否かを判断する(S23)。演奏間違い数Mが0である場合は(S23:Yes)、DSP10により検出された音高と、ポインタが示す音符情報の一つ前の音符情報に記憶されている音高とを比較する(S24)。この比較において、DSP10により検出された音高と、ポインタが示す音符情報の一つ前の音符情報に記憶されている音高との差が1/2半音(50セント)以内の場合は、演奏位置が合っていると判断し(S25:Yes)、この音高検出処理を終了する。
Next, it is determined whether the performance error number M is 0 (S23). When the performance error number M is 0 (S23: Yes), the pitch detected by the
楽譜情報のポインタが示す音符情報の一つ前の音符情報に記憶されている音高との差が1/2半音以内ではない場合は、演奏位置が合っていないものとし(S25:No)、演奏間違い数Mを1とし、DSP10により検出された音高に対応する音高のノートナンバのノートオンをノートオンバッファ4bに記憶し(S27)、この音高検出処理を終了する。
When the difference from the pitch stored in the note information immediately before the note information indicated by the musical score information pointer is not within ½ semitone, it is determined that the performance position does not match (S25: No). The performance error number M is set to 1, note-on of the note number corresponding to the pitch detected by the
一方、S21の判断処理で、発音済みフラグが1にセットされていない場合は(S21:No)、発音済みフラグをセットし(S30)、次に演奏間違い数Mがノートオンバッファ4bに記憶するノートオンの数の最大値Nから1を引いた値より小さいか否かを判断する(S31)。演奏間違い数MがNから1を引いた値より小さい場合は(S31:Yes)、演奏間違い数Mに1を加算し(S32)、ノーマル音色およびDSP10により検出された音高で楽音を発生するように音源11を制御し(S33)、S27の処理へ進む。
On the other hand, if it is determined in S21 that the sounded flag is not set to 1 (S21: No), the sounded flag is set (S30), and the performance error number M is stored in the note-on buffer 4b. It is determined whether or not the value is smaller than a value obtained by subtracting 1 from the maximum value N of the number of note-ons (S31). When the performance error number M is smaller than the value obtained by subtracting 1 from N (S31: Yes), 1 is added to the performance error number M (S32), and a musical tone is generated with the normal tone and the pitch detected by the
また、S31の判断処理において、演奏間違い数MがNから1を引いた値より小さくない場合は(S31:No)、今回発生したノートオンをノートオンバッファ4bに記憶し、演奏位置を検索する。この演奏位置の検索は、ノートオンバッファ4bに記憶されたN個のノートオンのノートナンバに基づいて、楽譜情報のいずれの位置が演奏されたかを検出するものであって、この具体的な検出方法は、特開2001−184059号公報などに開示されている公知の方法を用いることができる。このような方法において、演奏位置を特定できる場合と、演奏位置を特定できない場合とがある。 If the performance error number M is not smaller than the value obtained by subtracting 1 from N in the determination process of S31 (S31: No), the note-on generated this time is stored in the note-on buffer 4b, and the performance position is searched. . The search of the performance position is to detect which position of the musical score information is played based on the N note-on note numbers stored in the note-on buffer 4b. As the method, a known method disclosed in Japanese Patent Application Laid-Open No. 2001-184059 can be used. In such a method, there are a case where the performance position can be specified and a case where the performance position cannot be specified.
演奏位置を特定できた場合には(S35:Yes)、演奏間違い数Mを0に設定し(S36)、ノートオンバッファ4bをクリアする(S37)。さらに、その特定した演奏位置に対応する音符情報の音色の楽音を検出した音高で発生するように音源11を制御し(S38)、演奏位置を示すポインタを検出した演奏位置の次の音符情報に設定し(S39)、この音高検出処理を終了する。
If the performance position can be specified (S35: Yes), the performance error number M is set to 0 (S36), and the note-on buffer 4b is cleared (S37). Further, the
なお、S35の判断処理で、演奏位置を特定できなかった場合は、ノーマル音色およびDSP10により検出された音高で楽音を発生するように音源11を制御し(S40)、この音高検出処理を終了する。また、S34の処理で、ノートオンバッファ4bにおいて、すでにノートナンバがN個記憶されている場合は、最も古く記憶されたノートナンバを消去し、新たに発生したノートナンバを記憶する。
If the performance position cannot be specified in the determination process of S35, the
以上、説明したように第1の実施形態によれば、ギターの弦の振動の音高を検出し、その検出した音高に対応する音高の楽音を新たに発生するように音源を制御する楽音制御装置において、新たな弦振動が開始されたことを検出した場合は、音符情報に対する演奏位置を特定し、その特定された演奏位置に対応する音符情報が示す音高で楽音の発生の開始を音源11に指示し、その後、弦振動の音高が検出された場合は、楽音の音高を検出された音高に変更するように制御する。したがって、弦振動の音高を検出するのに時間を要する場合であっても弦振動を検出した時点で、まず、楽音を発生することができ、楽音の発生開始が遅延するのを防止することができる。 As described above, according to the first embodiment, the pitch of the vibration of the guitar string is detected, and the sound source is controlled so as to newly generate a musical tone having a pitch corresponding to the detected pitch. When the musical tone control device detects that a new string vibration has started, it specifies the performance position for the note information and starts the generation of a musical tone at the pitch indicated by the note information corresponding to the specified performance position. When the pitch of string vibration is detected after that, control is performed to change the pitch of the musical sound to the detected pitch. Therefore, even when it takes time to detect the pitch of the string vibration, it is possible to generate a musical sound at the time of detecting the string vibration, and prevent the start of the musical sound from being delayed. Can do.
また、音符情報に対する演奏位置が特定できる場合には、その音符情報に対応して記憶されている音色情報が示す音色で楽音を発生するので、演奏者は、音色を設定する操作を行う必要がなく、演奏操作が容易である。 In addition, when the performance position for the note information can be specified, the musical tone is generated with the tone indicated by the tone color information stored corresponding to the note information, so the performer needs to perform an operation for setting the tone. There is no performance operation.
次に、第2の実施形態の楽音制御装置について図6〜図9を参照して説明する。なお、前記した第1の実施形態の楽音制御装置と同一部分には、同一の符号を付してその説明は省略し、異なる部分についてのみ説明する。 Next, a musical tone control apparatus according to the second embodiment will be described with reference to FIGS. The same parts as those of the musical tone control apparatus according to the first embodiment are denoted by the same reference numerals, and the description thereof is omitted. Only different parts will be described.
第2の実施形態は、入力される楽音に効果を付与する効果装置に、本発明の楽音制御装置を搭載した形態を示すものであって、第1の実施形態と同様に、入力される楽音の音高を検出し、その検出した音高に対応する効果を入力された楽音に付与するものである。この音高に対応する効果の種類としては、音高に応じた周波数のフィルタを入力信号にかける効果があり、基本波およびその倍音を強調するような櫛型フィルタや、その基本波および倍音の側帯に存在する波形を制御するサイドバンドフィルタなどがある。 The second embodiment shows a form in which the musical sound control device of the present invention is mounted on an effect device that imparts an effect to the input musical sound. Similar to the first embodiment, the input musical sound is shown in FIG. , And an effect corresponding to the detected pitch is given to the input musical sound. The type of effect corresponding to this pitch is the effect of applying a filter with a frequency corresponding to the pitch to the input signal, such as a comb filter that emphasizes the fundamental wave and its harmonics, and the fundamental wave and harmonics. There are sideband filters that control the waveforms present in the sidebands.
図6は、第2の実施形態である楽音制御装置を有する効果装置20の電気的構成を示したブロック図である。効果装置20は、CPU2(中央処理装置)と、制御プログラムを記憶したROM3と、作業用のメモリエリアを提供するRAM4と、記憶媒体を着脱自在に装着することができる外部記憶装置5と、演奏者が効果装置20に指示を行う操作子6と、パラメータなどを表示する表示器7と、マイクロホンや電気ギターなどが出力する電気信号を入力する入力端子14と、その入力端子14に入力された電気信号を所定のサンプリング周期でデジタル信号に変換するA/D変換器9と、A/D変換器9により変換されたデジタル信号の音高やレベルを検出するとともに、入力されたデジタル信号に効果を付与するDSP10と、そのDSP10により効果が付与された楽音を増幅する増幅器12と、その増幅器12により増幅された楽音を放音するスピーカ13とにより構成されている。
FIG. 6 is a block diagram showing an electrical configuration of the
ROM3には、図7、図8、および図9に示すフローチャートの処理を行う制御プログラムや各種定数などが記憶されている。RAM4には、作業用のメモリエリアの他に楽譜情報メモリ4aとノートオンバッファ4bが設けられている。これらの楽譜情報メモリ4aおよびノートオンバッファ4bは、第1の実施形態と同一である。また、RAM4には、入力された楽音の音高の確定状態を示す音高確定フラグが記憶される。この音高確定フラグは、入力された楽音の音高を確定している場合に1に設定され、音高を確定できない場合に0に設定される。
The
DSP10は、第1の実施形態と同様に、入力された弦振動などの楽音のレベルを監視し、レベルが所定値を越える等を検出した場合は、CPU2に楽音の入力が開始されたことを通知し、レベルが所定値以下になった等を検出した場合は、楽音の入力が停止されたことをCPU2に通知する。また、楽音が入力されている場合には、所定時間毎に入力されている楽音の音高を検出し、音高を検出することができた場合には、CPU2にその検出した音高の値を通知する。さらに、入力された楽音に所定の効果を付与し、アンプ12へ出力する。DSP10の出力は、図示しないD/A変換器によりアナログ信号に変換してアナログ方式の増幅器12に供給するようにしてもよいし、増幅器12がデジタル方式のアンプであればD/A変換器は、必要ではない。
As in the first embodiment, the
なお、第2の実施形態では、図2に示す楽譜情報において、音色を指定する音色情報は記憶されていないものとするが、音色情報に代えて効果の種類を示す効果種類情報を記憶し、この情報に基づいてDSPが付与する効果の種類が設定されるものとしてもよい。 In the second embodiment, in the musical score information shown in FIG. 2, it is assumed that timbre information specifying a timbre is not stored, but effect type information indicating the type of effect is stored instead of the timbre information, The type of effect imparted by the DSP may be set based on this information.
次に、図7を参照して、この効果装置20に備えられているCPU2により実行されるメイン処理について説明する。図7は、メイン処理を示すフローチャートであって、効果装置20の電源が投入されてから遮断されるまで実行される処理である。まず、初期化処理を行う(S41)。この初期化処理としては、音高確定フラグをリセットし、ノートオンバッファ4bをクリアし、演奏間違い数Mを0に設定するなどの処理を行う。
Next, a main process executed by the
また、この実施形態では、外部記憶装置5に装着されているカード型メモリに記憶された複数の曲の楽譜情報の内、いずれかの曲が演奏者により選択されているものとする。そして、曲が選択された時点で、演奏位置を示すポインタが、その曲の最初の楽譜情報に設定される。
In this embodiment, it is assumed that any one of the pieces of musical score information stored in the card-type memory attached to the
初期化処理の次に、効果の種類を選択する操作が行われたか否かを判断する(S42)。効果が選択された場合は(S42:Yes)、効果設定処理を行う(S43)。効果設定処理は、例えば、DSP10に対して設定された効果の種類に応じた効果処理プログラムを送信するなどの処理である。
Following the initialization process, it is determined whether or not an operation for selecting the type of effect has been performed (S42). When an effect is selected (S42: Yes), an effect setting process is performed (S43). The effect setting process is, for example, a process of transmitting an effect processing program corresponding to the type of effect set for the
S42の処理において、効果設定が行われていない場合(S42:No)または、S43の効果音色設定処理が行われた場合は、次に、入力端子14から楽音が入力されたか否かを判断する(S44)。DSP10は、A/D変換器9により変換されたデジタル信号を監視し、入力がない状態から信号が入力されたことを検出した場合に、CPU2に入力があったことを通知するものである。入力の開始が検出された場合は(S44:Yes)、信号入力開始処理を行う(S45)。この信号入力開始処理については、図8を参照して後述する。
In the process of S42, when the effect setting is not performed (S42: No) or when the sound effect color setting process of S43 is performed, it is next determined whether or not a musical sound is input from the
S44の処理において、入力が開始していない場合(S44:No)または、S45の信号入力開始処理が行われた場合は、次に入力が停止したか否かを判断する(S46)。DSP10は、A/D変換器9により変換されたデジタル信号を監視し、入力が存在する状態から停止したことを検出した場合に、CPU2に振動の停止を通知するものである。入力の停止を検出した場合は(S46:Yes)、音高確定フラグをリセットするなどの信号入力停止処理を行う(S47)。
In the process of S44, when the input has not started (S44: No), or when the signal input start process of S45 is performed, it is next determined whether or not the input is stopped (S46). The
S46の処理において、入力が停止されていない場合(S46:No)または、S47の信号入力停止処理が行われた場合は、次にその他の処理を行いS42の処理に戻る。その他の処理は、上記した操作子以外の操作子が操作されたことを検出し、その操作に応じた処理などである。 In the process of S46, when the input is not stopped (S46: No) or when the signal input stop process of S47 is performed, other processes are performed next and the process returns to S42. The other processing is processing according to the operation detected by detecting that an operation device other than the above-described operation device is operated.
次に図8を参照して、上記S45の信号入力開始処理について説明する。図8は、信号入力開始処理を示すフローチャートである。まず、演奏間違い数Mが0であるか否かを判断する(S51)。演奏間違い数Mは、ノートオンが発生した場合に、そのノートオンの示す音高と、ポインタが示す音符情報のノートナンバとが比較され、一致しない場合に、発生したノートオンがノートオンバッファ4bに記憶され、そのノートオンの数である。 Next, the signal input start process in S45 will be described with reference to FIG. FIG. 8 is a flowchart showing signal input start processing. First, it is determined whether or not the performance error number M is 0 (S51). When the note-on occurs, the number of performance errors M is compared with the pitch indicated by the note-on and the note number indicated by the pointer information indicated by the pointer. And the number of note-ons stored in it.
演奏間違い数Mが0である場合は(S51:Yes)、ポインタが示す音符情報に記憶されている音高に対応する効果の態様で入力された楽音に効果を付与するようにDSP10を制御し(S52)、音高が確定したことを示すフラグである音高確定フラグをセットする(S53)。なお、この音高確定フラグは、RAM4の所定の領域に記憶されるフラグである。次に、演奏位置を示すポインタを次の音符情報に進め(S54)、この信号入力開始処理を終了する。S54の処理により、検出した演奏位置を1進めるのは、楽音の入力が検出された場合、前回検出された演奏位置に設定されている音符情報の次の演奏位置に設定されている音符情報に基づいて効果を付与するからである。
If the performance error number M is 0 (S51: Yes), the
一方、S51の処理で演奏間違い数Mが0でないと判断した場合は(S51:No)、演奏間違い数Mがノートオンバッファ4bに記憶するノートオンの最大値Nから1を引いた値より小さいか否かを判断する(S55)。 On the other hand, if it is determined in the process of S51 that the performance error number M is not 0 (S51: No), the performance error number M is smaller than a value obtained by subtracting 1 from the maximum note-on value N stored in the note-on buffer 4b. Whether or not (S55).
演奏間違い数Mが値N−1より小さい場合は(S55:Yes)、Mの値に1を加え(S56)、所定の音高に対応する効果を付与するようにDSP10に指示を送る(S57)。この所定の音高に対応する効果とは、入力された楽音の音高が不明であるので、所定の音高の楽音に付与する効果であって、予め設定されているものである。この所定の音高は、例えば、演奏する楽曲の音符の中で最も出現頻度が高い音高などとしてもよい。 次に、音高確定フラグをリセットし(S58)、この信号入力開始処理を終了する。演奏間違い数MがN−1より小さくない場合は(S55:No)、S56の処理を行わずにS57の処理へ進む。
If the performance error number M is smaller than the value N-1 (S55: Yes), 1 is added to the value of M (S56), and an instruction is sent to the
次に、図9を参照して、音高検出処理について説明する。この音高検出処理は、DSP10により定期的に音高検出が行われ、音高が検出された場合に、DSP10からCPU2に、検出された音高の値が送信され、その音高の値を受信した場合にCPU2により実行される処理である。図9は、その音高検出処理を示すフローチャートである。
Next, the pitch detection process will be described with reference to FIG. In this pitch detection process, when the pitch is periodically detected by the
まず、検出した音高に応じて効果の特性を変更するようにDSP10に指示を行う(S61)。したがって、演奏位置に設定されている音符情報が示す音高に応じた態様で効果を付与した後に検出された音高が音符情報が示す音高と異なっている場合にも、検出された音高に応じて効果の付与を制御することにより、付与中の効果を実際に演奏された音高に対応する態様の効果に修正することができる。
First, the
次に、音高確定フラグが1にセットされているか否かを判断する(S62)。音高確定フラグが1にセットされている場合は(S62:Yes)、演奏間違い数Mが0か否かを判断する。演奏間違い数Mが0ではない場合は(S63:No)、この音高検出処理を終了し、演奏間違い数Mが0である場合は、DSP10により検出された音高が示す音高と、楽譜情報のポインタが示す音符情報の一つ前の音符情報に記憶されている音高とを比較する(S64)。この比較において、DSP10により検出された音高が示す音高と、楽譜情報のポインタが示す音符情報の一つ前の音符情報に記憶されている音高との差が1/2半音(50セント)以内の場合は、演奏位置が合っていると判断し(S65:Yes)、この音高検出処理を終了する。
Next, it is determined whether or not the pitch determination flag is set to 1 (S62). If the pitch confirmation flag is set to 1 (S62: Yes), it is determined whether or not the performance error number M is 0. If the performance error number M is not 0 (S63: No), the pitch detection process is terminated. If the performance error number M is 0, the pitch indicated by the pitch detected by the
楽譜情報のポインタが示す音符情報の一つ前の音符情報に記憶されている音高との差が1/2半音以内ではない場合は、演奏位置が合っていないものとし(S65:No)、演奏間違い数Mを1とし(S66)、DSP10により検出された音高およびレベルに対応するノートオンをノートオンバッファ4bに記憶し(S67)、この音高検出処理を終了する。
When the difference from the pitch stored in the note information immediately before the note information indicated by the musical score information pointer is not within half a semitone, it is determined that the performance position does not match (S65: No). The performance error number M is set to 1 (S66), note-on corresponding to the pitch and level detected by the
一方、S62の判断処理で、音高確定フラグが1にセットされていない場合は(S62:No)、音高確定フラグをセットし(S70)、次に演奏間違い数Mがノートオンバッファ4bに記憶するノートオンの数の最大値Nから1を引いた値より小さいか否かを判断する(S71)。演奏間違い数MがNから1を引いた値より小さい場合は(S71:Yes)、演奏間違い数Mに1を加算し(S72)、S67の処理へ進む。 On the other hand, if the pitch determination flag is not set to 1 in the determination process of S62 (S62: No), the pitch determination flag is set (S70), and the performance error number M is then stored in the note-on buffer 4b. It is determined whether or not it is smaller than a value obtained by subtracting 1 from the maximum value N of the number of stored note-ons (S71). If the performance error number M is smaller than the value obtained by subtracting 1 from N (S71: Yes), 1 is added to the performance error number M (S72), and the process proceeds to S67.
また、S71の判断処理において、演奏間違い数MがNから1を引いた値より小さくない場合は(S71:No)、演奏位置を検索する(S73)。この演奏位置の検索は、第1の実施形態と同様に実行される。 If the performance error number M is not smaller than the value obtained by subtracting 1 from N (S71: No), the performance position is searched (S73). This search for the performance position is executed in the same manner as in the first embodiment.
この演奏位置の検索により演奏位置を特定できた場合は(S74:Yes)、演奏間違い数Mを0に設定し(S75)、ノートオンバッファ4bをクリアする(S76)。さらに、演奏位置を示すポインタを検出した演奏位置の次の音符情報に設定し(S77)、この音高検出処理を終了する。 If the performance position can be specified by this performance position search (S74: Yes), the performance error number M is set to 0 (S75), and the note-on buffer 4b is cleared (S76). Further, the pointer indicating the performance position is set to the note information next to the detected performance position (S77), and the pitch detection process is terminated.
以上、説明したように第2の実施形態によれば、入力信号の音高を検出し、その検出した音高に対応して、入力された楽音に効果を付与するように制御する効果装置の楽音制御装置において、新たに入力が開始されたことを検出した場合は、音符情報に対する演奏位置を特定し、その特定された演奏位置に対応する音符情報が示す音高で楽音に効果を付与し、その後、入力信号の音高が検出された場合は、検出された音高に対応する効果を付与するように制御する。したがって、入力信号の音高を検出するのに時間を要する場合であっても、入力を検出した時点で効果を付与することができ、効果の付与の開始が遅延するのを防止することができる。 As described above, according to the second embodiment, the pitch of the input signal is detected, and the effect device that controls to apply the effect to the input musical sound according to the detected pitch. When the musical tone control device detects that a new input has been started, it specifies the performance position for the note information, and gives an effect to the musical tone at the pitch indicated by the note information corresponding to the specified performance position. Thereafter, when the pitch of the input signal is detected, control is performed so as to provide an effect corresponding to the detected pitch. Therefore, even when it takes time to detect the pitch of the input signal, it is possible to provide an effect at the time when the input is detected, and to prevent the start of the effect from being delayed. .
なお、請求項1記載の演奏位置検出手段は、図5に記載のフローチャートのS24、S25、およびS34、S35の処理が該当し、楽音入力検出手段は、図3に記載のS4の処理が該当し、制御手段は、図4に記載のフローチャートの処理および図5に記載のフローチャートの処理が該当する。
The performance position detecting means according to
また、請求項3記載の演奏位置検出手段は、図9に記載のフローチャートのS64、S65およびS73、S74の処理が該当し、楽音入力検出手段は、図7に記載のフローチャートのS44の処理が該当し、制御手段は、図8に記載のフローチャートの処理および図9に記載のフローチャートの処理が該当する。
The performance position detecting means according to
また、請求項4記載の演奏位置検出ステップは、図5に記載のフローチャートのS24、S25、およびS34、S35の処理が該当し、楽音入力検出ステップは、図3に記載のS4の処理が該当し、制御ステップは、図4に記載のフローチャートの処理および図5に記載のフローチャートの処理が該当する。
The performance position detection step according to
また、請求項6記載の演奏位置検出ステップは、図9に記載のフローチャートのS64、S65およびS73、S74の処理が該当し、楽音入力検出ステップは、図7に記載のフローチャートのS44の処理が該当し、制御ステップは、図8に記載のフローチャートの処理および図9に記載のフローチャートの処理が該当する。
The performance position detection step according to
以上、実施形態に基づき本発明を説明したが、本発明は上記実施形態に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の改良変形が可能であることは容易に推察できるものである。 As described above, the present invention has been described based on the embodiments, but the present invention is not limited to the above-described embodiments, and various improvements and modifications can be easily made without departing from the spirit of the present invention. It can be guessed.
例えば、第1の実施形態では、操作子6や音源11は、CPU2とバスにより相互に接続されているものとしたが、MIDIなどのインターフェースを介して、接続されるようにしてもよい。
For example, in the first embodiment, the
また、上記第1、第2の実施形態では、演奏者が外部記憶装置5に装着された記憶媒体に記憶された複数の曲の楽譜情報の中から所望の曲を選択するものとしたが、演奏者が演奏を行うことにより、複数の曲の音符情報を検索し、複数曲の中から演奏情報に合致する音符情報を持つ曲を選択するようにしてもよい。この場合に、曲を特定するために所定数の演奏情報を必要とするので、第1の実施形態では、曲を特定することができるまでは、所定の音色(ノーマル音色)で楽音を発生し、曲を特定することができれば、その曲のその演奏位置に設定されている音色で楽音を発生するようにするのがよく、第2の実施形態では、曲を特定することができるまでは、所定の態様で効果を付与し、曲を特定することができれば、その曲のその演奏位置に設定されている音高に応じた態様で効果を付与するのがよい。
In the first and second embodiments, the performer selects a desired song from the score information of a plurality of songs stored in a storage medium attached to the
また、上記第1、第2の実施形態では、演奏者は楽譜情報として記憶された曲の調と同じ調で演奏を行うものとしたが、演奏者が異なる調で演奏する場合には、演奏者が演奏する調を指定する調指定手段などを備え、その調指定手段により指定された調と、楽譜情報の調との音程に基づいて演奏位置を検出するようにしてもよい。 In the first and second embodiments, the performer performs in the same key as that of the music stored as the score information. However, if the performer performs in a different key, the performer performs. A key designating unit for designating a key to be played by the person may be provided, and the performance position may be detected based on the pitch of the key specified by the key designating unit and the key of the score information.
また、上記第1、第2の実施形態において、演奏位置を検索する場合に、一部の音符の音高を間違えた場合、一部の音符を飛ばして演奏した場合、楽譜情報にはない音符を演奏した場合などの軽微な演奏間違いを行った場合にも、検索位置を正確に検索することができるDPマッチング法を用いてもよい。 Also, in the first and second embodiments, when searching for a performance position, if the pitch of some notes is wrong, if some notes are skipped and played, notes not included in the score information Even when a minor performance mistake is made, such as when playing the, a DP matching method that can accurately search the search position may be used.
また、上記第1、第2の実施形態では、音符情報としてノートオンが記憶されるものとしたが、ノートオンに代えてノートナンバでもよい。また、音符情報として、ノートオンが発生するタイムやそのノートのゲートタイムを記憶するものとしたが、演奏位置を検出するだけの目的であれば、タイムやゲートタイムは、記憶していなくてもよい。 In the first and second embodiments, note-on is stored as note information, but a note number may be used instead of note-on. As note information, the time at which a note-on occurs and the gate time of that note are stored. However, for the purpose of merely detecting the performance position, the time and gate time may not be stored. Good.
また、上記第1、第2の実施形態では、演奏位置を検索する場合にノートオンが示す音高についての照合を行うものとしたが、ノートオンが発生したタイミングやゲートタイムなども照合するようにしてもよい。 In the first and second embodiments, when the performance position is searched, the pitch indicated by the note-on is collated. However, the timing at which the note-on occurs and the gate time are also collated. It may be.
また、上記第1、第2の実施形態では、楽音制御プログラムは、電子楽器1のROM3に記憶されるものとしたが、外部記憶装置5に装着された記憶媒体やインターネットなどを介して供給され、RAM4に記憶されて実行されるようにしてもよいし、パーソナルコンピュータにより実行されるようにしてもよい。
In the first and second embodiments, the musical tone control program is stored in the
また、上記第1、第2の実施形態では、音高検出処理は、DSP10により行われるものとしたが、DSP10が入力波形のゼロクロスやピークの時刻をCPU2に通知し、CPU2が、音高検出プログラムを実行することにより、音高を検出するようにしてもよい。
In the first and second embodiments, the pitch detection process is performed by the
1 電子楽器
2 CPU
3 ROM
4 RAM
4a 楽譜情報メモリ(記憶手段)
4b ノートオンバッファ
6 操作子
8 ピックアップ(入力手段)
10 DSP(音高検出手段、効果付与手段)
11 音源(楽音発生手段)
14 入力端子(入力手段)
20 効果装置
1 Electronic
3 ROM
4 RAM
4a Musical score information memory (storage means)
4b Note-on
10 DSP (pitch detection means, effect imparting means)
11 Sound source (musical sound generation means)
14 Input terminal (input means)
20 Effect devices
Claims (6)
一連の所定の音高を指示する音符情報を記憶する記憶手段と、
前記音高検出手段により検出された音高に基づいて前記記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出手段と、
前記入力手段により楽音が入力されたことを検出する楽音入力検出手段とを備え、
前記制御手段は、前記楽音入力検出手段により楽音が入力されたことを検出した場合は、前記演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高で楽音の発生を開始し、前記音高検出手段により音高が検出された場合は、前記音高検出手段により検出された音高に基づいて発生中の楽音の音高を変更するように前記楽音発生手段を制御するものであること特徴とする楽音制御装置。 An input means for inputting a musical sound, a pitch detecting means for detecting the pitch of the musical sound input by the input means, and a new musical tone is generated based on the pitch detected by the pitch detecting means. In a musical sound control device comprising control means for controlling the musical sound generating means
Storage means for storing note information indicating a series of predetermined pitches;
A performance position detection means for detecting a performance position for the series of note information by referring to the note information stored in the storage means based on the pitch detected by the pitch detection means;
A musical sound input detecting means for detecting that a musical sound has been input by the input means,
When the control means detects that a musical sound has been input by the musical sound input detection means, the control means generates a musical sound at the pitch indicated by the note information set at the performance position detected by the performance position detection means. When the pitch is detected by the pitch detector, the musical tone generator is controlled to change the pitch of the musical tone that is being generated based on the pitch detected by the pitch detector A musical sound control device characterized by that.
一連の所定の音高を指示する音符情報を記憶する記憶手段と、
前記音高検出手段により検出された音高に基づいて前記記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出手段と、
前記入力手段により楽音が入力されたことを検出する楽音入力検出手段とを備え、
前記制御手段は、前記楽音入力検出手段により楽音が入力されたことを検出した場合は、前記演奏位置検出手段により検出された演奏位置に設定されている音符情報が示す音高に応じた態様で効果を付与し、前記音高検出手段により音高が検出された場合は、検出された音高に応じた態様で効果を付与するように前記効果付与手段を制御するものであることを特徴とする楽音制御装置。 Input means for inputting a musical sound, pitch detecting means for detecting the pitch of a musical sound input by the input means, effect applying means for applying an effect to the musical sound input by the input means, and the pitch detection A musical sound control device comprising: control means for controlling the mode of the effect imparted to the musical sound by the effect imparting means based on the pitch detected by the means;
Storage means for storing note information indicating a series of predetermined pitches;
A performance position detecting means for detecting a performance position for the series of note information by referring to the note information stored in the storage means based on the pitch detected by the pitch detection means;
A musical sound input detecting means for detecting that a musical sound has been input by the input means,
When the control means detects that a musical sound has been input by the musical sound input detection means, the control means has a mode according to the pitch indicated by the note information set at the performance position detected by the performance position detection means. When an effect is applied and the pitch is detected by the pitch detecting means, the effect providing means is controlled so as to give an effect in a manner corresponding to the detected pitch. Musical sound control device.
前記音高検出ステップにより検出された音高に基づいて、一連の所定の音高を指示する音符情報を記憶する記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出ステップと、
前記入力ステップより楽音が入力されたことを検出する楽音入力検出ステップとを備え、
前記制御ステップは、前記楽音入力検出ステップにより楽音が入力されたことを検出した場合は、前記演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高で楽音の発生を開始し、前記音高検出ステップにより音高が検出された場合は、前記音高検出ステップにより検出された音高に基づいて発生中の楽音の音高を変更するように前記楽音発生手段を制御するものであること特徴とする楽音制御プログラム。 An input step for inputting a musical tone, a pitch detecting step for detecting the pitch of the musical tone input by the input step, and a new musical tone is generated based on the pitch detected by the pitch detecting step. A musical sound control program comprising a control step for controlling the musical sound generating means
Based on the pitch detected by the pitch detection step, the performance position for the series of note information by referring to the note information stored in the storage means for storing the note information indicating a series of predetermined pitches A performance position detecting step for detecting
A musical sound input detection step for detecting that a musical sound has been input from the input step,
When the control step detects that a musical tone has been input by the musical tone input detection step, the control step generates a musical tone at a pitch indicated by the note information set at the performance position detected by the performance position detection step. And when the pitch is detected by the pitch detection step, the musical tone generation means is controlled to change the pitch of the musical tone being generated based on the pitch detected by the pitch detection step. A musical sound control program characterized by
前記音高検出ステップにより検出された音高に基づいて、一連の所定の音高を指示する音符情報を記憶する記憶手段に記憶された音符情報を参照することにより前記一連の音符情報に対する演奏位置を検出する演奏位置検出ステップと、
前記入力ステップにより、楽音が入力されたことを検出する楽音入力検出ステップとを備え、前記制御ステップは、前記楽音入力検出ステップにより楽音が入力されたことを検出した場合は、前記演奏位置検出ステップにより検出された演奏位置に設定されている音符情報が示す音高に応じた態様で効果を付与し、前記音高検出ステップにより音高が検出された場合は、検出された音高に応じた態様で効果を付与するように前記効果付与手段を制御するものであること特徴とする楽音制御プログラム。
An input step for inputting a musical tone, a pitch detecting step for detecting the pitch of the musical tone input by the input step, and a musical tone input by the input step based on the pitch detected by the pitch detecting step A musical sound control program comprising a control step for controlling the mode of the effect imparted by the effect imparting means.
Based on the pitch detected by the pitch detection step, the performance position for the series of note information by referring to the note information stored in the storage means for storing the note information indicating a series of predetermined pitches A performance position detecting step for detecting
A musical tone input detecting step for detecting that a musical tone has been input by the input step, and when the controlling step detects that a musical tone has been input by the musical tone input detecting step, the performance position detecting step; The effect is applied in a manner corresponding to the pitch indicated by the note information set at the performance position detected by the step, and when the pitch is detected by the pitch detection step, the pitch is detected according to the detected pitch. A musical tone control program for controlling the effect applying means so as to give an effect in an aspect.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005083280A JP2006267342A (en) | 2005-03-23 | 2005-03-23 | Musical sound controller and musical sound control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005083280A JP2006267342A (en) | 2005-03-23 | 2005-03-23 | Musical sound controller and musical sound control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006267342A true JP2006267342A (en) | 2006-10-05 |
Family
ID=37203427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005083280A Pending JP2006267342A (en) | 2005-03-23 | 2005-03-23 | Musical sound controller and musical sound control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006267342A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63136089A (en) * | 1986-11-28 | 1988-06-08 | カシオ計算機株式会社 | Input controller for electronic musical instrument |
JPH01279297A (en) * | 1988-05-02 | 1989-11-09 | Casio Comput Co Ltd | Electronic stringed instrument |
JPH06110464A (en) * | 1991-10-02 | 1994-04-22 | Casio Comput Co Ltd | Electronic stringed instrument |
JP2004212578A (en) * | 2002-12-27 | 2004-07-29 | Yamaha Corp | Musical sound generator |
-
2005
- 2005-03-23 JP JP2005083280A patent/JP2006267342A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63136089A (en) * | 1986-11-28 | 1988-06-08 | カシオ計算機株式会社 | Input controller for electronic musical instrument |
JPH01279297A (en) * | 1988-05-02 | 1989-11-09 | Casio Comput Co Ltd | Electronic stringed instrument |
JPH06110464A (en) * | 1991-10-02 | 1994-04-22 | Casio Comput Co Ltd | Electronic stringed instrument |
JP2004212578A (en) * | 2002-12-27 | 2004-07-29 | Yamaha Corp | Musical sound generator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8314320B2 (en) | Automatic accompanying apparatus and computer readable storing medium | |
JP6175812B2 (en) | Musical sound information processing apparatus and program | |
JP3915807B2 (en) | Automatic performance determination device and program | |
JP5228315B2 (en) | Program for realizing automatic accompaniment generation apparatus and automatic accompaniment generation method | |
JP5732982B2 (en) | Musical sound generation device and musical sound generation program | |
JP2004078095A (en) | Playing style determining device and program | |
JP2006126710A (en) | Playing style determining device and program | |
JP2007248880A (en) | Musical performance controller and program | |
JP2006267342A (en) | Musical sound controller and musical sound control program | |
JP6149890B2 (en) | Musical sound generation device and musical sound generation program | |
JP5742592B2 (en) | Musical sound generation device, musical sound generation program, and electronic musical instrument | |
JP5011033B2 (en) | Electronic musical instruments | |
JP4238807B2 (en) | Sound source waveform data determination device | |
JP2009216769A (en) | Sound processing apparatus and program | |
JP5151603B2 (en) | Electronic musical instruments | |
JP2009037022A (en) | Electronic musical instrument | |
JP4186855B2 (en) | Musical sound control device and program | |
JPH09258731A (en) | Electronic musical instrument | |
JP6102975B2 (en) | Musical sound generation device, musical sound generation program, and electronic musical instrument | |
JP4186802B2 (en) | Automatic accompaniment generator and program | |
JP2016057389A (en) | Chord determination device and chord determination program | |
JP5104293B2 (en) | Automatic performance device | |
JP2022140812A (en) | Electronic musical instrument, method, and program | |
JP5034471B2 (en) | Music signal generator and karaoke device | |
JP3870948B2 (en) | Facial expression processing device and computer program for facial expression |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20061109 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080321 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090522 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100223 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100706 |