JP4032208B2 - Key information processing apparatus and key information processing method - Google Patents

Key information processing apparatus and key information processing method Download PDF

Info

Publication number
JP4032208B2
JP4032208B2 JP2000373005A JP2000373005A JP4032208B2 JP 4032208 B2 JP4032208 B2 JP 4032208B2 JP 2000373005 A JP2000373005 A JP 2000373005A JP 2000373005 A JP2000373005 A JP 2000373005A JP 4032208 B2 JP4032208 B2 JP 4032208B2
Authority
JP
Japan
Prior art keywords
key
pitch
sound
harmony
decoration
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.)
Expired - Fee Related
Application number
JP2000373005A
Other languages
Japanese (ja)
Other versions
JP2002175076A (en
Inventor
俊雄 樫尾
純一 南高
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2000373005A priority Critical patent/JP4032208B2/en
Publication of JP2002175076A publication Critical patent/JP2002175076A/en
Application granted granted Critical
Publication of JP4032208B2 publication Critical patent/JP4032208B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、電子楽器に用いて好適な鍵情報処理装置および鍵情報処理方法に関する。
【0002】
【従来の技術】
従来より、鍵操作に対応して発生する鍵情報(音高)の内、指定された調に応じた幹音についてはその音高を半音上げたり、あるいは半音下げるように制御する鍵情報処理装置が知られており、この種の技術については例えば特開昭58−102992号公報に開示されている。
【0003】
【発明が解決しようとする課題】
ところで、上述した技術は、黒鍵を弾くべきところを白鍵の鍵操作に替えるようにして、鍵操作に不慣れなユーザでも簡易に弾けるようにするものであるが、そのようにしても、装飾音を交えた演奏やハーモニー音を伴う演奏など、多彩な演奏表現を行うことができない、という問題がある。
そこで本発明は、こうした事情に鑑みてなされたもので、鍵操作に不慣れなユーザであっても簡単に多彩な演奏表現を実現し得る鍵情報処理装置および鍵情報処理方法を提供することを目的としている。
【0004】
【課題を解決するための手段】
上記目的を達成するため、請求項1に記載の発明では、押鍵が為されるに応答して、当該押鍵された鍵が指定する音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第1の装飾音生成手段と、この第1の装飾音生成手段にて装飾音が所定期間発音された後、前記押鍵された鍵が指定する音高の押鍵音を発音させる押鍵音生成手段と、この押鍵音が発音されるに応答して、前記押鍵された鍵が指定する音高と所定の音高差を有する音高を算出するとともに、当該算出された音高を予め指定された調に適合するように変換したハーモニー用の音高を生成するハーモニー音高生成手段と、前記ハーモニー用音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第2の装飾音生成手段と、この第2の装飾音生成手段にて装飾音が所定期間発音された後、前記ハーモニー用の音高を有するハーモニー音を生成して発音させるハーモニー音生成手段と、を具備することを特徴とする。
【0005】
請求項に記載の発明では、押鍵が為されるに応答して、当該押鍵された鍵が指定する音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第1の装飾音生成過程と、この第1の装飾音生成過程にて装飾音が所定期間発音された後、前記押鍵された鍵が指定する音高の押鍵音を発音させる押鍵音生成過程と、この押鍵音が発音されるに応答して、前記押鍵された鍵が指定する音高と所定の音高差を有する音高を算出するとともに、当該算出された音高を予め指定された調に適合するように変換したハーモニー用の音高を生成するハーモニー音高生成過程と、前記ハーモニー用音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第2の装飾音生成過程と、この第2の装飾音生成過程にて装飾音が所定期間発音された後、前記ハーモニー用の音高を有するハーモニー音を生成して発音させるハーモニー音生成過程と、を具備することを特徴とする。
【0006】
本発明では、押鍵が為されるに応答して、当該押鍵された鍵が指定する音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させ、この装飾音が所定期間発音された後、押鍵された鍵が指定する音高の押鍵音を発音させる。
そしてこの押鍵音が発音されるに応答して、押鍵された鍵が指定する音高と所定の音高差を有する音高を算出し、算出された音高を予め指定された調に適合するように変換したハーモニー用の音高を生成し、このハーモニー用音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる。この装飾音が所定期間発音された後、ハーモニー用の音高を有するハーモニー音を生成して発音させる。このため、1つの鍵を押鍵するだけで調性に適した装飾音やハーモニー音を発生でき、これにより鍵操作に不慣れなユーザであっても簡単に多彩な演奏表現を実現し得るようになっている。
【0007】
【発明の実施の形態】
以下、本発明の実施の一形態による鍵情報処理装置を搭載した電子楽器を実施例とし、これについて図面を参照して説明する。
【0008】
(1)構成
図1は、本発明の一実施例による電子楽器の構成を示すブロック図である。この図において、1は楽器パネルに配設されるパネルスイッチ群であり、各スイッチ操作に応じたスイッチイベント信号を発生する。
このパネルスイッチ群1には、図示されていないが、押鍵音に対して上向き又は下向きに何半音離れた装飾音を付加するかを設定する装飾音付加スイッチや、押鍵音に対してハーモニー音を付加するか否かを指定するハーモニー音付加スイッチ、後述するダイアトニックスケールおよびアラビックスケールのいずれのスケール種を用いるかを選択するスケール選択スイッチ、調を指定する調指定スイッチなどが設けられている。2は押離鍵操作に応じたノートオン/ノートオフイベント、鍵番号KNおよびベロシティ等からなる鍵情報を発生する鍵盤である。
【0009】
3はLCDパネル等から構成される表示部であり、後述するCPU4から供給される表示制御信号に応じて楽器各部の設定状態や動作モード等を表示する。CPU4は、スイッチ操作に応じて発生するスイッチイベントに基づき楽器各部の動作状態を設定したり、鍵盤2からの鍵情報に応じたコマンド(例えば、発音指示コマンドや消音指示コマンド等)を生成して音源7に送出する。5は上記CPU4にロードされる各種制御プログラムや、鍵情報生成に用いる各種データテーブルが記憶されるROMである。
【0010】
ここで、図2〜図4を参照してROM5に格納される各種データテーブルについて説明しておく。
図2(イ)は、押鍵された鍵が白鍵/黒鍵のいずれであるかを識別する際に用いられる白鍵識別テーブルTBL1の内容を示す図である。このテーブルTBL1では、押鍵音iを1オクターブ鍵域の12音(音名)に対応させており、例えば押鍵音iが「0(ド)」、「2(レ)」などの白鍵に相当する場合には対応する識別データnSc[i]が「1」となり、一方、押鍵音iが「1(ド#音)」、「3(レ#音)」などの黒鍵に相当する場合には対応する識別データnSc[i]が「0」となる。
【0011】
図2(ロ)は、押鍵音iに対応して付加すべきハーモニー音程を指定するハーモナイズ音程テーブルTBL2である。このテーブルTBL2は、第1ハーモニー音を指定するnHr[0][i]と、第2ハーモニー音を指定するnHr[1][i]とから構成される。
第1ハーモニー音を指定するnHr[0][i]では、例えば押鍵音iが「0(ド)」であれば、それから4半音上(長3度)の音程関係にある「ミ」のハーモニー音を指定する。
一方、第2ハーモニー音を指定するnHr[1][i]では、例えば押鍵音iが「0(ド)」であれば、それから7半音上(完全5度)の音程関係にある「ソ」のハーモニー音を指定する。
【0012】
図3はダイアトニックスケールテーブルTBL3の内容を示す図である。このテーブルTBL3は、各調毎のダイアトニックスケールについて、押鍵音iに対応した音程変化を表す。
図4はアラビックスケールテーブルTBL4の内容を示す図である。このテーブルTBL4は、各調毎のアラビックスケールについて、押鍵音iに対応した音程変化を表す。
【0013】
次に、再び図1を参照して実施例の構成について説明を進める。図1において、6はCPU4の演算に用いる各種レジスタ・フラグデータを一時記憶するRAMである。なお、このRAM6に格納される代表的なレジスタ・フラグデータについては後述する動作説明にて述べる。
音源7は、周知の波形メモリ読み出し方式にて構成され、自己の内部メモリに記憶する波形データの内、CPU4から供給されるパラメータにて指定される音色の波形データを読み出し、読み出した波形データについてCPU4から供給される演奏情報に応じて波形修飾を施して楽音出力WAVEを発生する。8は音源7が発生する楽音出力WAVEをアナログ波形信号に変換して不要ノイズを除去する等のフィルタリングを施した後、これを増幅してスピーカSPから発音させるサウンドシステムである。
【0014】
(2)動作
次に、図3〜図14を参照して実施例の動作について説明する。
▲1▼メインルーチンの動作
電源投入が投入されると、CPU4はROM5から所定の制御プログラムを読み出して自身にロードし、図3に示すメインルーチンを実行する。メインルーチンが実行されると、CPU4は先ずステップSA1に処理を進め、RAM6のワークエリアに格納される各種レジスタやフラグ類をリセットしたり初期値をセットする初期化を行う。また、このステップSA1では、音源7に対して各種レジスタやフラグ類を初期化するよう指示する。
イニシャライズが完了すると、CPU4はステップSA2に処理を進め、パネルスイッチ群1におけるスイッチ操作や鍵盤2の鍵操作の有無を検出すべくキースキャン処理を実行する。
【0015】
次いで、ステップSA3以降では、キースキャンで得たイベントに対応する処理を実行する。すなわち、ステップSA3では、上記キースキャン処理にてスイッチ操作を検出したかどうかを判断し、スイッチ操作を検出した場合には判断結果が「YES」となり、ステップSA4に処理を進める。
例えば、押鍵音に対して上向き又は下向きに何半音離れた装飾音を付加するかを設定する装飾音付加スイッチや、ハーモニー音を付加するハーモニー音付加スイッチが操作された場合には、それらスイッチ操作に対応した設定処理を実行した後、ステップSA2に処理を戻す。
【0016】
一方、上記キースキャン処理にてスイッチ操作が検出されなかった場合には、上記ステップSA3の判断結果が「NO」となり、ステップSA5に進む。ステップSA5では、上記キースキャン処理にて押離鍵操作を検出したかどうかを判断する。
押離鍵操作を検出した場合には、判断結果が「YES」となり、ステップSA6に処理を進める。ステップSA6では、例えば押鍵された鍵の楽音について、指定された調に対応した装飾音やハーモニー音を付加する鍵情報処理(後述する)を実行した後、ステップSA2に処理を戻す。
【0017】
なお、この鍵情報処理において押鍵音に付加される「装飾音」および「ハーモニー音」の定義について図6を参照して説明しておく。この図に示すように、「ハーモニー音」とは、押鍵音の音高に対してハーモナイズするよう所定音高離れた楽音を指し、一方、「装飾音」とは押鍵音および「ハーモニー音」からそれぞれ所定音階離れ、押鍵音および「ハーモニー音」が発音される直前に発音される楽音を指す。
【0018】
図6に図示する一例の場合、押鍵タイミングTで押鍵音(ド)に対応する下向きの装飾音(シ)を所定期間発音させてから、押鍵音(ド)を発音させつつ、この押鍵音(ド)のハーモニー音(ミ),(ソ)と、それらハーモニー音(ミ),(ソ)に先行する装飾音(レ),(ファ)を、図示するタイミング関係で発音付加するようになっている。
【0019】
▲2▼鍵情報処理ルーチンの動作
次に、図7を参照して鍵情報処理ルーチンの動作について説明する。上述したステップSA6を経て鍵情報処理ルーチンが実行されると、CPU4は図7に示すステップSB1に処理を進め、鍵操作された鍵の鍵番号KNをレジスタpitにストアする。
次いで、ステップSB2では、レジスタpitにストアされた鍵番号KNのmod12(剰余値)を求め、その剰余値に応じて白鍵識別テーブルTBL1から読み出す識別データが「1」か否かを判断する。つまり、鍵番号KNのmod12から1オクターブ中の音名が求まり、その音名に対応する鍵が白鍵であるかどうかを判断する。
【0020】
そして、黒鍵であると、判断結果が「NO」となり、この場合、何も処理せずに本ルーチンを完了するが、白鍵であると、判断結果は「YES」となり、次のステップSB3に処理を進める。
ステップSB3では、スケール選択スイッチの操作に応じて選択されるスケール種sacle(前述したダイアトニックスケールテーブルTBL3あるいはアラビックスケールテーブルTBL4のいずれか)において、調指定スイッチの操作で指定される調番号keyと、鍵番号KNの音名とに対応する音程変化を読み出し、それをレジスタpitに加算する。
【0021】
次いで、ステップSB4では、後述する装飾音処理にて装飾音を生成し、続くステップSB5では、エラーフラグberrが「1」、すなわち、後述の装飾音処理にて行われるキーバッファリングでエラーが発生したかどうかを判断する。エラー発生の場合には、判断結果が「YES」となり、後述するステップSB7に処理を進めるが、エラー発生していなければ、判断結果は「NO」となり、次のステップSB6に進む。ステップSB6では、押鍵操作時には音程変化が加算されたレジスタpitの音高の楽音を発音するよう音源7に指示し、一方、離鍵操作時にはレジスタpitの音高の楽音を消音するよう音源7に指示してからステップSB7に進む。
【0022】
そして、ステップSB7では、スイッチフラグswHarが「1」、つまり、ハーモニー音付加スイッチの操作によってハーモニー音を付加する設定にされているかどうかを判断する。ハーモニー音を付加しない設定がなされている場合および離鍵された場合には、判断結果が「NO」となり、本ルーチンを完了させるが、ハーモニー音を付加する設定であると、判断結果は「YES」となり、ステップSB8を介して後述するハーモナイズ処理にてハーモニー音を生成してから本ルーチンを完了させる。
【0023】
▲3▼装飾音処理ルーチンの動作
次に、図8を参照して装飾音処理ルーチンの動作について説明する。上述した鍵情報処理ルーチンのステップSB4を介して装飾音処理ルーチンが実行されると、CPU4は図8に示すステップSC1に処理を進め、鍵操作された鍵のイベントがノートオンであるか否か、つまり押鍵/離鍵のいずれであるかを判断する。以下、押鍵操作された場合と離鍵操作された場合とに分けて説明を進める。
【0024】
(イ)押鍵操作された場合
押鍵操作に応じてノートオンが発生すると、ステップSC1の判断結果は「YES」となり、ステップSC2に進む。ステップSC2では、レジスタpitに対応したキーバッファnKeyBuf[pit]の値をインクリメントする。
なお、キーバッファnKeyBuf[pit]とは、各鍵毎に対応して設けられ、鍵状態を表すデータを一時記憶するバッファであり、そのデータが「1」であれば対応する鍵が発音状態である旨を表し、「0」であれば対応する鍵が消音状態である旨を表す。
【0025】
さて、このようなキーバッファnKeyBuf[pit]の値をインクリメントした後は、ステップSC3に処理を進め、インクリメントされたキーバッファnKeyBuf[pit]の値が「2」以上であるか、つまり、発音中であった鍵がさらに押鍵される二重押鍵がなされたかどうかを判断する。
二重押鍵であると、判断結果が「YES」となり、ステップSC4に処理を進め、既に発音中にある鍵の楽音の消音を音源7に指示する。そして、この後、ステップSC5に進み、エラーフラグberrをゼロリセットし、エラー発生無しを表してから一旦、本ルーチンを完了させる。
【0026】
一方、二重押鍵でない通常の押鍵の場合には、上記ステップSC3の判断結果が「NO」となり、ステップSC6に処理を進める。ステップSC6では、スイッチフラグswSouが「1」、つまり、装飾音付加スイッチの操作によって装飾音を付加する設定にされているかどうかを判断する。装飾音を付加しない設定であれば、判断結果は「NO」となり、この場合、上述したステップSC5を介して本ルーチンを完了させる。
【0027】
これに対し、装飾音を付加する設定であると、判断結果が「YES」となり、ステップSC7に進み、後述する装飾音音程算出処理にて装飾音の音程を算出する。次いで、ステップSC8では、スケール選択スイッチの操作に応じて選択されるスケール種sacle(前述したダイアトニックスケールテーブルTBL3あるいはアラビックスケールテーブルTBL4のいずれか)において、調指定スイッチの操作で指定される調番号keyと、算出された装飾音の音名とに対応する音程変化を読み出し、それを算出された装飾音の音程に加算して装飾音newpitを発生する。
【0028】
次に、ステップSC9では、この生成した装飾音newpitの発音を音源7に指示し、続くステップSC10では装飾音newpitの発音期間に相当する所定時間待機する。
そして、所定時間経過後、ステップSC11に進み、装飾音newpitの消音を音源7に指示した後、ステップSC5に進み、エラーフラグberrをゼロリセットし、エラー発生無しを表してから本ルーチンを完了させる。
【0029】
(ロ)離鍵操作された場合
さて一方、離鍵操作された場合には、上記ステップSC1の判断結果が「NO」となり、ステップSC12に処理を進める。ステップSC12では、レジスタpitに対応したキーバッファnKeyBuf[pit]の値をデクリメントし、続くステップSC13では、このデクリメントされたキーバッファnKeyBuf[pit]の値が「0」であるか否かを判断する。
ここで、キーバッファnKeyBuf[pit]の値が「0」であれば、判断結果は「YES」となり、ステップSC14に進み、エラーフラグberrをゼロリセットし、エラー発生無しを表してから本ルーチンを完了させる。
【0030】
これに対し、キーバッファnKeyBuf[pit]の値が「0」でない場合、つまり、上述した二重押鍵後の離鍵であると、上記ステップSC13の判断結果は「NO」となり、ステップSC15に進み、エラーフラグberrを「1」にセットしてエラー発生を表す。
こうして、エラーフラグberrを「1」にセットすると、前述したステップSB5(図7参照)の判断結果が「YES」となり、これにより二重押鍵後の離鍵操作に対応したノートオフ(消音指示)を音源7に送出するのを防いでいる。
【0031】
▲4▼装飾音音程算出処理ルーチンの動作
次に、図9を参照して装飾音音程算出処理ルーチンの動作について説明する。上述した装飾音処理ルーチンのステップSC7を介して装飾音音程算出処理ルーチンが実行されると、CPU4は図9に示すステップSD1に処理を進める。ステップSD1では、装飾音付加スイッチの操作によって、押鍵音に対して上向きの装飾音を付加するように設定されているか否かを判断する。
ここで、上向きの装飾音を付加するように設定されていれば、判断結果が「YES」となり、ステップSD2に進み、レジスタdevに「1」をセットする。一方、下向きの装飾音を付加するように設定されていれば、判断結果は「NO」となり、ステップSD3に進み、レジスタdevに「−1」をセットする。
【0032】
次いで、ステップSD4では、カウンタcntをゼロリセットし、続くステップSD5では、レジスタpitの値(鍵番号KN)をレジスタnewpitにストアする。そして、ステップSD6では、レジスタnewpitにレジスタdevの値を加算する。つまり、鍵番号KNに半音1つ分加算(もしくは鍵番号KNから半音1つ分減算)する。
次に、ステップSD7では、レジスタnewpitの値についてmod12(剰余値)を求め、その剰余値に応じて白鍵識別テーブルTBL1から読み出す識別データが「1」か否かを判断する。つまり、鍵番号KNを半音1つ分加算(もしくは鍵番号KNから半音1つ分減算)した鍵が白鍵であるかどうかを判断する。
【0033】
黒鍵であると、判断結果は「NO」となり、ステップSD6に処理を戻して再び鍵番号KNを半音1つ分加算(もしくは鍵番号KNから半音1つ分減算)する。そして、鍵番号KNを半音1つ分加算(もしくは鍵番号KNから半音1つ分減算)した鍵が白鍵になると、上記ステップSD7の判断結果が「YES」となり、ステップSD8に進む。ステップSD8では、カウンタcntをインクリメントして歩進させ、続くステップSD9では、この歩進したカウンタcntの値がレジスタsoudev以上であるかを判断する。
なお、このレジスタsoudevには、装飾音付加スイッチの操作に応じて設定される装飾音の音程差、つまり、押鍵音に対して何度離れた装飾音であるかを指定する度数がストアされている。
【0034】
したがって、このステップSD9では、鍵番号KNを半音1つ分加算(もしくは鍵番号KNから半音1つ分減算)した鍵が白鍵になる毎に歩進されるカウンタcntの値が、設定された度数に達したかどうかを判断している。
ここで、設定された度数に達していなければ、判断結果は「NO」となり、上述したステップSD6〜SD8を繰り返し、鍵番号KNを半音1つ分加算(もしくは鍵番号KNから半音1つ分減算)した鍵が白鍵になる毎にカウンタcntの値を歩進させる。そして、このカウンタcntの値が設定された度数に達すると、判断結果が「YES」となり、これによりレジスタnewpitの値が装飾音の音程が決り、本ルーチンを完了させる。
【0035】
▲5▼ハーモナイズ処理ルーチンの動作
次に、図10を参照してハーモナイズ処理ルーチンの動作について説明する。前述した鍵情報処理ルーチンのステップSB8(図7参照)を介してハーモナイズ処理ルーチンが実行されると、CPU4は図10に示すステップSE1に処理を進める。
ステップSE1では、レジスタiをゼロリセットし、続くステップSE2では、レジスタiの値が「2」以上であるか、つまり、押鍵音に対して2つのハーモニー音を付加し終えたかどうかを判断する。付加し終えると、判断結果は「YES」となり、本ルーチンを完了させるが、付加し終えていなければ、判断結果は「NO」となり、レジスタiの値が「2」以上になる迄、後述するステップSE3〜SE9を繰り返す。
【0036】
ステップSE3では、レジスタpitの値(鍵番号KN)をレジスタhpitにストアする。そして、ステップSE4では、レジスタiの値に従って選択されるハーモナイズ音程テーブルTBL2(nHr[0]又はnHr[1])において、調指定スイッチの操作に応じて設定される調番号keyと、鍵番号KNの音名とに対応する音程変化を読み出し、それを鍵番号KNの音程に加算してレジスタhpitにストアする。
【0037】
続いて、ステップSE5では、スケール選択スイッチの操作に応じて選択されるスケール種sacle(前述したダイアトニックスケールテーブルTBL3あるいはアラビックスケールテーブルTBL4のいずれか)において、調指定スイッチの操作で指定される調番号keyと、レジスタhpitの値から導出した音名とに対応する音程変化を読み出し、それをレジスタhpitに加算し、これにより最終的なハーモニー音の音程hpit(以後、ハーモニー音hpitと記す)を発生する。
【0038】
この後、ステップSE6を介して前述した装飾音処理ルーチン(図8参照)を実行し、ハーモニー音に付加する装飾音を発生する。次いで、ステップSE7では、装飾音処理ルーチンにてエラーが発生したか否かを判断し、エラー発生が無ければ、判断結果が「NO」となり、次のステップSE8に進み、ハーモニー音hpitを音源7に送出して発音を指示した後、ステップSE9に処理を進める。
一方、装飾音処理ルーチンにてエラーが発生すると、上記ステップSE7の判断結果が「YES」となり、この場合、ハーモニー音hpitの発音を音源7に指示せず、ステップSE9に進み、レジスタiの値をインクリメントして歩進させた後、ステップSE2に処理を戻す。
【0039】
以上のように、本実施例によれば、例えば、図6に図示するように、押鍵タイミングTで「ド」を押鍵すると、まず最初に押鍵音「ド」に対応し、かつ指定された調に応じた下向きの装飾音「シ」が生成され、これを所定期間発音させた後に押鍵音「ド」を発音させつつ、この押鍵音「ド」に対応し、かつ指定された調に応じたハーモニー音「ミ」,「ソ」と、これらハーモニー音「ミ」,「ソ」にそれぞれに対応し、かつ指定された調に応じた下向きの装飾音「レ」,「ファ」を、図示するタイミングで発音付加するので、鍵操作に不慣れなユーザであっても、白鍵を弾くだけで調性に適した装飾音やハーモニー音を交えた多彩な演奏が可能になっている。
【0040】
本発明によれば、押鍵が為されるに応答して、当該押鍵された鍵が指定する音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させ、この装飾音が所定期間発音された後、押鍵された鍵が指定する音高の押鍵音を発音させる。そしてこの押鍵音が発音されるに応答して、押鍵された鍵が指定する音高と所定の音高差を有する音高を算出し、算出された音高を予め指定された調に適合するように変換したハーモニー用の音高を生成し、このハーモニー用音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる。さらにこの装飾音が所定期間発音された後、ハーモニー用の音高を有するハーモニー音を生成して発音させる。このため、1つの鍵を押鍵するだけで調性に適した装飾音やハーモニー音を発生でき、これにより鍵操作に不慣れなユーザであっても簡単に多彩な演奏表現を実現することができる。
【図面の簡単な説明】
【図1】本発明による一実施例の構成を示すブロック図である。
【図2】白鍵識別テーブルTBL1およびハーモナイズ音程テーブルTBL2の構成を示す図である。
【図3】ダイアトニックスケールテーブルTBL3の構成を示す図である。
【図4】アラビックスケールテーブルTBL4の構成を示す図である。
【図5】メインルーチンの動作を示すフローチャートである。
【図6】本発明における装飾音およびハーモニー音の定義を説明するための図である。
【図7】鍵情報処理ルーチンの動作を示すフローチャートである。
【図8】装飾音処理ルーチンの動作を示すフローチャートである。
【図9】装飾音音程算出処理ルーチンの動作を示すフローチャートである。
【図10】ハーモナイズ処理ルーチンの動作を示すフローチャートである。
【符号の説明】
1 パネルスイッチ群
2 鍵盤
3 表示部
4 CPU
5 ROM
6 RAM
7 音源
8 サウンドシステム
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a key information processing apparatus and a key information processing method suitable for use in an electronic musical instrument.
[0002]
[Prior art]
Conventionally, a key information processing apparatus that controls to raise or lower a pitch of a stem tone corresponding to a specified key among key information (pitch) generated in response to a key operation. This type of technology is disclosed in, for example, Japanese Patent Application Laid-Open No. 58-102992.
[0003]
[Problems to be solved by the invention]
By the way, the technique described above is to change the place where the black key should be played to the key operation of the white key so that even a user unfamiliar with the key operation can easily play it. There is a problem that various performance expressions cannot be performed, such as performances with mixed sounds and performances with harmony sounds.
Therefore, the present invention has been made in view of such circumstances, and an object of the present invention is to provide a key information processing apparatus and a key information processing method that can easily realize various performance expressions even for a user who is not familiar with key operations. It is said.
[0004]
[Means for Solving the Problems]
In order to achieve the above object, in the invention described in claim 1,In response to the key being pressed, a decorative sound having a decorative pitch having a pitch difference between the pitch specified by the pressed key and a set frequency is generated and generated for a predetermined period. And a key-pressing sound generation unit for generating a key-pressing sound having a pitch specified by the pressed key after a decoration sound is generated for a predetermined period by the first decoration-sound generating unit. And, in response to the key-pressed sound being generated, a pitch having a predetermined pitch difference from a pitch specified by the key pressed is calculated, and the calculated pitch is preliminarily calculated. Harmony pitch generation means for generating a harmony pitch converted to fit a specified key, and a decorative pitch decoration sound having a pitch difference of a set frequency from the harmony pitch And a second decoration sound generating means for generating a sound for a predetermined period and a decoration by the second decoration sound generating means After There is a predetermined period of time to pronounce, and harmony sound generation means for sound to generate a harmony note having the tone pitch for the harmony,It is characterized by comprising.
[0005]
Claim5In the invention described inIn response to the key being pressed, a decorative sound having a decorative pitch having a pitch difference between the pitch specified by the pressed key and a set frequency is generated and generated for a predetermined period. A key-pressing sound generation process for generating a key-pressing sound having a pitch designated by the pressed key after a decoration sound is generated for a predetermined period in the first decorative sound generating process. In response to the process and the key-pressing sound being generated, a pitch having a predetermined pitch difference from the pitch specified by the pressed key is calculated, and the calculated pitch is Harmony pitch generation process for generating a harmony pitch converted to fit a specified key, and a decorative pitch decoration sound having a pitch difference of the set frequency from the harmony pitch And a second decoration sound generation process for generating a sound for a predetermined period of time and a decoration in the second decoration sound generation process After There is a predetermined period of time to pronounce, and harmony sound generation process to sound to generate a harmony note having the tone pitch for the harmony, theIt is characterized by comprising.
[0006]
In the present invention,In response to the key being pressed, a decorative sound of a decorative pitch having a pitch difference between the pitch specified by the pressed key and a set frequency is generated and generated for a predetermined period of time, After the decoration sound is generated for a predetermined period, a key pressing sound having a pitch designated by the pressed key is generated.
In response to the sound of the key depression, a pitch having a predetermined pitch difference from the pitch designated by the depressed key is calculated, and the calculated pitch is adjusted to a predetermined key. A tone pitch for harmony converted so as to be matched is generated, and a decoration tone having a pitch difference of a set frequency with the tone pitch for harmony is generated and generated for a predetermined period. After the decoration sound is generated for a predetermined period, a harmony sound having a pitch for harmony is generated and generated. For this reason,By pressing a single key, it is possible to generate decoration sounds and harmony sounds that are suitable for tonality, so that even a user unfamiliar with key operations can easily realize a variety of performance expressions. .
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an electronic musical instrument equipped with a key information processing apparatus according to an embodiment of the present invention will be described as an example with reference to the drawings.
[0008]
(1) Configuration
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to an embodiment of the present invention. In this figure, reference numeral 1 denotes a panel switch group disposed on the musical instrument panel, which generates a switch event signal corresponding to each switch operation.
Although not shown in the figure, the panel switch group 1 is a decoration sound addition switch for setting the number of semitones away from the key pressing sound upward or downward, and a harmony for the key pressing sound. A harmony sound addition switch that specifies whether or not to add sound, a scale selection switch that selects whether to use a diatonic scale or an Arabic scale, which will be described later, a key specification switch that specifies a key, etc. Yes. Reference numeral 2 denotes a keyboard that generates key information including a note-on / note-off event, a key number KN, a velocity, and the like corresponding to a key release / release operation.
[0009]
Reference numeral 3 denotes a display unit composed of an LCD panel or the like, which displays a setting state, an operation mode, and the like of each part of the musical instrument in accordance with a display control signal supplied from a CPU 4 described later. The CPU 4 sets the operation state of each part of the musical instrument based on the switch event generated in response to the switch operation, or generates a command (for example, a sound generation instruction command or a mute instruction command) according to the key information from the keyboard 2. Send to sound source 7. A ROM 5 stores various control programs loaded on the CPU 4 and various data tables used for key information generation.
[0010]
Here, various data tables stored in the ROM 5 will be described with reference to FIGS.
FIG. 2A is a diagram showing the contents of the white key identification table TBL1 used when identifying whether the pressed key is a white key or a black key. In this table TBL1, the key depression sound i is made to correspond to twelve sounds (pitch names) in one octave key range. For example, the key depression sound i is a white key such as “0 (do)” or “2 (le)”. Corresponding to the identification data nSc [i] is “1”, while the key pressing sound i is equivalent to a black key such as “1 (do # sound)” or “3 (le # sound)”. In this case, the corresponding identification data nSc [i] is “0”.
[0011]
FIG. 2 (b) is a harmony pitch table TBL2 for designating a harmony pitch to be added corresponding to the key depression sound i. This table TBL2 is composed of nHr [0] [i] designating the first harmony sound and nHr [1] [i] designating the second harmony sound.
In nHr [0] [i] designating the first harmony sound, for example, if the key depression sound i is “0 (de)”, “mi” having a pitch relationship of 4 semitones (3 degrees long) from that. Specifies the harmony sound.
On the other hand, in the case of nHr [1] [i] designating the second harmony sound, for example, if the key depression sound i is “0 (de)”, the “so ”Is specified.
[0012]
FIG. 3 shows the contents of the diatonic scale table TBL3. This table TBL3 represents a pitch change corresponding to the key depression sound i for the diatonic scale for each key.
FIG. 4 shows the contents of the Arabic scale table TBL4. This table TBL4 represents a change in pitch corresponding to the key pressing sound i for the Arabic scale for each key.
[0013]
Next, the configuration of the embodiment will be described with reference to FIG. 1 again. In FIG. 1, reference numeral 6 denotes a RAM that temporarily stores various register / flag data used for the calculation of the CPU 4. Note that typical register / flag data stored in the RAM 6 will be described later in the description of operation.
The sound source 7 is configured by a well-known waveform memory reading method, and among the waveform data stored in its own internal memory, the tone data specified by the parameter supplied from the CPU 4 is read and the read waveform data is read out. A musical tone output WAVE is generated by performing waveform modification according to performance information supplied from the CPU 4. Reference numeral 8 denotes a sound system in which the musical sound output WAVE generated by the sound source 7 is converted into an analog waveform signal and subjected to filtering such as removing unnecessary noise, and then amplified to produce sound from the speaker SP.
[0014]
(2) Operation
Next, the operation of the embodiment will be described with reference to FIGS.
(1) Main routine operation
When the power is turned on, the CPU 4 reads a predetermined control program from the ROM 5, loads it into itself, and executes the main routine shown in FIG. When the main routine is executed, the CPU 4 first proceeds to step SA1, and performs initialization to reset various registers and flags stored in the work area of the RAM 6 and to set initial values. In step SA1, the sound source 7 is instructed to initialize various registers and flags.
When the initialization is completed, the CPU 4 advances the process to step SA2, and executes a key scan process to detect whether or not there is a switch operation in the panel switch group 1 or a key operation on the keyboard 2.
[0015]
Next, in step SA3 and subsequent steps, processing corresponding to the event obtained by the key scan is executed. That is, in step SA3, it is determined whether or not a switch operation is detected in the key scan process. If a switch operation is detected, the determination result is “YES”, and the process proceeds to step SA4.
For example, when a decorative sound addition switch that sets how many semitones away from the key-pressing sound is added upward or downward, or a harmony sound addition switch that adds a harmony sound, is operated. After executing the setting process corresponding to the operation, the process returns to step SA2.
[0016]
On the other hand, if no switch operation is detected in the key scan process, the determination result in step SA3 is “NO”, and the flow advances to step SA5. In step SA5, it is determined whether or not a key release operation is detected in the key scan process.
When the key release operation is detected, the determination result is “YES”, and the process proceeds to Step SA6. In step SA6, for example, key information processing (described later) for adding a decoration sound or a harmony sound corresponding to the specified key is executed for the musical tone of the pressed key, and then the process returns to step SA2.
[0017]
The definition of “decoration sound” and “harmonic sound” added to the key pressing sound in this key information processing will be described with reference to FIG. As shown in this figure, “harmonies” refers to musical tones that are separated by a predetermined pitch so as to harmonize with the pitch of the key-pressing sound, while “decoration” refers to the key-pressing sound and the “harmonic sound”. ”Indicates a musical sound that is generated immediately before a key-pressing sound and a“ harmonic sound ”are generated.
[0018]
In the case of the example shown in FIG. 6, a downward decorative sound corresponding to the key pressing sound (do) is generated at a key pressing timing T for a predetermined period, and then the key pressing sound (do) is generated while The key press sound (do) 's harmony sounds (mi) and (so), and the harmonious sounds (mi) and (so) preceding the harmony sounds (mi) and (so) are sounded with the timing relationship shown in the figure. It is like that.
[0019]
(2) Operation of key information processing routine
Next, the operation of the key information processing routine will be described with reference to FIG. When the key information processing routine is executed through step SA6 described above, the CPU 4 advances the processing to step SB1 shown in FIG. 7, and stores the key number KN of the key operated key in the register pit.
Next, in step SB2, mod12 (residue value) of the key number KN stored in the register pit is obtained, and it is determined whether or not the identification data read from the white key identification table TBL1 is “1” according to the remainder value. That is, the pitch name in one octave is obtained from mod 12 of the key number KN, and it is determined whether or not the key corresponding to the pitch name is a white key.
[0020]
If it is a black key, the determination result is “NO”. In this case, this routine is completed without performing any processing, but if it is a white key, the determination result is “YES”, and the next step SB3. Proceed with the process.
In step SB3, in the scale type sacle selected according to the operation of the scale selection switch (either the diatonic scale table TBL3 or the Arabic scale table TBL4 described above) The pitch change corresponding to the pitch name of the key number KN is read out and added to the register pit.
[0021]
Next, in step SB4, a decoration sound is generated by a decoration sound process to be described later, and in step SB5, an error flag barr is “1”, that is, an error occurs in key buffering performed in the decoration sound process to be described later. Determine if you did. If an error has occurred, the determination result is “YES” and the process proceeds to step SB7 described later. If no error has occurred, the determination result is “NO” and the process proceeds to the next step SB6. In step SB6, the sound source 7 is instructed to generate a musical tone of the pitch of the register pit to which the pitch change has been added during the key pressing operation, and on the other hand, the musical sound source 7 is muted to cancel the musical tone of the pitch of the register pit during the key release operation. The process proceeds to step SB7.
[0022]
In step SB7, it is determined whether or not the switch flag swHar is “1”, that is, whether or not the harmony sound is added by operating the harmony sound addition switch. If the setting is made so that the harmony sound is not added or the key is released, the determination result is “NO”, and this routine is completed. If the setting is to add the harmony sound, the determination result is “YES”. The routine is completed after a harmony sound is generated through a harmonization process to be described later via step SB8.
[0023]
(3) Operation of decorative sound processing routine
Next, the operation of the decorative sound processing routine will be described with reference to FIG. When the decorative sound processing routine is executed through step SB4 of the key information processing routine described above, the CPU 4 proceeds to step SC1 shown in FIG. 8 to determine whether or not the key operated key event is note-on. That is, it is determined whether the key is pressed or released. Hereinafter, the description will be divided into a case where the key is pressed and a case where the key is released.
[0024]
(B) When a key is pressed
When note-on occurs in response to the key pressing operation, the determination result in step SC1 is “YES”, and the flow proceeds to step SC2. In step SC2, the value of the key buffer nKeyBuf [pit] corresponding to the register pit is incremented.
The key buffer nKeyBuf [pit] is a buffer provided corresponding to each key, and temporarily stores data representing the key state. If the data is “1”, the corresponding key is in the sounding state. “0” indicates that the corresponding key is in a mute state.
[0025]
Now, after incrementing the value of the key buffer nKeyBuf [pit], the process proceeds to step SC3, and whether the incremented key buffer nKeyBuf [pit] is “2” or more, that is, during sound generation. It is determined whether or not a double key depression that further presses the key that has been made has been made.
If it is a double key press, the determination result is “YES”, the process proceeds to step SC4, and the sound source 7 is instructed to mute the musical sound of the key that is already sounding. Then, the process proceeds to step SC5, where the error flag berr is reset to zero, indicating that no error has occurred, and once this routine is completed.
[0026]
On the other hand, in the case of a normal key depression that is not a double key depression, the determination result in step SC3 is “NO”, and the process proceeds to step SC6. In step SC6, it is determined whether or not the switch flag swSou is “1”, that is, whether or not the decoration sound is set to be added by operating the decoration sound addition switch. If the setting is such that no decoration sound is added, the determination result is “NO”, and in this case, the routine is completed via step SC5 described above.
[0027]
On the other hand, if the setting is to add a decoration sound, the determination result is “YES”, the process proceeds to step SC7, and the pitch of the decoration sound is calculated by a decoration sound pitch calculation process described later. Next, at step SC8, the key number designated by the operation of the key designating switch in the scale type sacule (either the diatonic scale table TBL3 or the Arabic scale table TBL4 described above) selected according to the operation of the scale selection switch. A change in pitch corresponding to the key and the calculated pitch name of the decoration sound is read, and added to the calculated pitch of the decoration sound to generate a decoration sound newpit.
[0028]
Next, in step SC9, the sound source 7 is instructed to sound the generated decoration sound newpit, and in a subsequent step SC10, a predetermined time corresponding to the sounding period of the decoration sound newpit is waited.
Then, after a predetermined time has passed, the process proceeds to step SC11, the sound source 7 is instructed to mute the decoration sound newpit, and then the process proceeds to step SC5, where the error flag barr is reset to zero, indicating that no error has occurred, and this routine is completed. .
[0029]
(B) When a key release operation is performed
On the other hand, if a key release operation has been performed, the determination result in step SC1 is “NO”, and the process proceeds to step SC12. In step SC12, the value of the key buffer nKeyBuf [pit] corresponding to the register pit is decremented, and in the subsequent step SC13, it is determined whether or not the value of the decremented key buffer nKeyBuf [pit] is “0”. .
If the value of the key buffer nKeyBuf [pit] is “0”, the determination result is “YES”, the process proceeds to step SC14, the error flag berr is reset to zero, and this routine is executed after indicating that no error has occurred. Complete.
[0030]
On the other hand, if the value of the key buffer nKeyBuf [pit] is not “0”, that is, if it is a key release after the above-described double key depression, the determination result in step SC13 is “NO”, and the process returns to step SC15. Then, the error flag “berr” is set to “1” to indicate an error occurrence.
Thus, when the error flag “berr” is set to “1”, the determination result in the above-described step SB5 (see FIG. 7) becomes “YES”, and thus note-off (mute instruction) corresponding to the key release operation after the double key depression. ) To the sound source 7 is prevented.
[0031]
(4) Operation of ornamental pitch calculation processing routine
Next, the operation of the decorative tone pitch calculation processing routine will be described with reference to FIG. When the decorative tone pitch calculation processing routine is executed via step SC7 of the decorative sound processing routine described above, the CPU 4 advances the process to step SD1 shown in FIG. In step SD1, it is determined whether or not it is set to add an upward decoration sound to the key depression sound by operating the decoration sound addition switch.
Here, if it is set to add an upward decorative sound, the determination result is “YES”, the process proceeds to step SD2, and “1” is set in the register dev. On the other hand, if it is set to add a downward decorative sound, the determination result is “NO”, the process proceeds to step SD3, and “−1” is set in the register dev.
[0032]
Next, in step SD4, the counter cnt is reset to zero, and in the subsequent step SD5, the value of the register pit (key number KN) is stored in the register newpit. In step SD6, the value of the register dev is added to the register newpit. That is, one semitone is added to the key number KN (or one semitone is subtracted from the key number KN).
Next, in step SD7, mod12 (residue value) is obtained for the value of the register newpit, and it is determined whether or not the identification data read from the white key identification table TBL1 is “1” according to the remainder value. That is, it is determined whether the key obtained by adding the key number KN by one semitone (or subtracting one semitone from the key number KN) is a white key.
[0033]
If it is a black key, the determination result is “NO”, the process returns to step SD6, and the key number KN is again added by one semitone (or subtracted by one semitone from the key number KN). When the key obtained by adding one semitone to the key number KN (or subtracting one semitone from the key number KN) is a white key, the determination result in step SD7 is “YES”, and the process proceeds to step SD8. In step SD8, the counter cnt is incremented and incremented, and in the subsequent step SD9, it is determined whether or not the value of the incremented counter cnt is equal to or greater than the register sodev.
The register sodev stores the difference in the pitch of the decorative sound set according to the operation of the decorative sound addition switch, that is, the frequency specifying how many times the decorative sound is separated from the key pressing sound. ing.
[0034]
Therefore, in step SD9, the value of the counter cnt that is incremented each time the key obtained by adding one semitone to the key number KN (or subtracting one semitone from the key number KN) becomes a white key is set. Judging whether the frequency has been reached.
If the set frequency is not reached, the determination result is “NO”, and the above steps SD6 to SD8 are repeated, and the key number KN is added by one semitone (or one semitone is subtracted from the key number KN). ) The value of the counter cnt is incremented every time the key that has been changed becomes a white key. When the value of the counter cnt reaches the set frequency, the determination result is “YES”, whereby the value of the register newpit is determined as the pitch of the decoration sound, and this routine is completed.
[0035]
(5) Harmonize processing routine operation
Next, the operation of the harmonization processing routine will be described with reference to FIG. When the harmonization processing routine is executed through step SB8 (see FIG. 7) of the key information processing routine described above, the CPU 4 advances the processing to step SE1 shown in FIG.
In step SE1, the register i is reset to zero, and in the subsequent step SE2, it is determined whether or not the value of the register i is “2” or more, that is, whether or not two harmony sounds have been added to the key pressing sound. . When the addition is completed, the determination result is “YES”, and this routine is completed. However, if the addition is not completed, the determination result is “NO”, and will be described later until the value of the register i becomes “2” or more. Steps SE3 to SE9 are repeated.
[0036]
In step SE3, the value of the register pit (key number KN) is stored in the register hpit. In step SE4, in the harmony interval table TBL2 (nHr [0] or nHr [1]) selected according to the value of the register i, the key number KN set according to the operation of the key designation switch and the key number KN The pitch change corresponding to the pitch name is read out, added to the pitch of the key number KN, and stored in the register hpit.
[0037]
Subsequently, in step SE5, in the scale type sacule selected according to the operation of the scale selection switch (either the diatonic scale table TBL3 or the Arabic scale table TBL4 described above), the adjustment specified by the operation of the adjustment specification switch. The pitch change corresponding to the number key and the pitch name derived from the value of the register hpit is read out and added to the register hpit, whereby the final pitch of the harmony tone hpit (hereinafter referred to as the harmony tone hpit) is obtained. appear.
[0038]
Thereafter, the above-described decoration sound processing routine (see FIG. 8) is executed through step SE6 to generate a decoration sound to be added to the harmony sound. Next, in step SE7, it is determined whether or not an error has occurred in the decorative sound processing routine. If there is no error, the determination result is “NO”, and the process proceeds to the next step SE8, where the harmony sound hpit is generated as the sound source 7. And instructing sound generation, the process proceeds to step SE9.
On the other hand, if an error occurs in the decorative sound processing routine, the determination result in step SE7 is “YES”. In this case, the sound source 7 is not instructed to sound the harmony sound hpit, and the process proceeds to step SE9, where the value of register i After incrementing, the process returns to step SE2.
[0039]
As described above, according to the present embodiment, for example, as shown in FIG. 6, when “do” is depressed at the key depression timing T, first, it corresponds to the key depression sound “do” and is designated. A downward decoration sound “shi” corresponding to the key is generated, and after sounding it for a predetermined period, the keypress sound “do” is generated and the keypress sound “do” is dealt with and designated. The harmony sounds “Mi” and “So” according to the key and the harmony sounds “Mi” and “So” respectively, and the downward decorative sounds “Le” and “Fa” according to the specified key. ”Is added at the timing shown in the figure, so even a user unfamiliar with key operations can perform a variety of performances with decoration sounds and harmony sounds that are suitable for tones simply by playing white keys. Yes.
[0040]
According to the present invention,In response to the key being pressed, a decorative sound of a decorative pitch having a pitch difference between the pitch specified by the pressed key and a set frequency is generated and generated for a predetermined period of time, After the decoration sound is generated for a predetermined period, a key pressing sound having a pitch designated by the pressed key is generated. In response to the sound of the key depression, a pitch having a predetermined pitch difference from the pitch designated by the depressed key is calculated, and the calculated pitch is adjusted to a predetermined key. A tone pitch for harmony converted so as to be matched is generated, and a decoration tone having a pitch difference of a set frequency with the tone pitch for harmony is generated and generated for a predetermined period. Further, after the decoration sound is generated for a predetermined period, a harmony sound having a pitch for harmony is generated and generated. For this reason,By simply pressing a single key, decoration sounds and harmony sounds suitable for tonality can be generated, so that even a user unfamiliar with key operations can easily realize various performance expressions.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an embodiment according to the present invention.
FIG. 2 is a diagram showing a configuration of a white key identification table TBL1 and a harmonized pitch table TBL2.
FIG. 3 is a diagram showing a configuration of a diatonic scale table TBL3.
FIG. 4 is a diagram showing a configuration of an arabic scale table TBL4.
FIG. 5 is a flowchart showing an operation of a main routine.
FIG. 6 is a diagram for explaining the definition of decoration sound and harmony sound in the present invention.
FIG. 7 is a flowchart showing an operation of a key information processing routine.
FIG. 8 is a flowchart showing the operation of a decorative sound processing routine.
FIG. 9 is a flowchart showing the operation of a decoration pitch calculation routine.
FIG. 10 is a flowchart showing the operation of a harmonization processing routine.
[Explanation of symbols]
1 Panel switch group
2 keyboard
3 Display section
4 CPU
5 ROM
6 RAM
7 Sound source
8 Sound system

Claims (5)

押鍵が為されるに応答して、当該押鍵された鍵が指定する音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第1の装飾音生成手段と、
この第1の装飾音生成手段にて装飾音が所定期間発音された後、前記押鍵された鍵が指定する音高の押鍵音を発音させる押鍵音生成手段と、
この押鍵音が発音されるに応答して、前記押鍵された鍵が指定する音高と所定の音高差を有する音高を算出するとともに、当該算出された音高を予め指定された調に適合するように変換したハーモニー用の音高を生成するハーモニー音高生成手段と、
前記ハーモニー用音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第2の装飾音生成手段と、
この第2の装飾音生成手段にて装飾音が所定期間発音された後、前記ハーモニー用の音高を有するハーモニー音を生成して発音させるハーモニー音生成手段と、
を具備することを特徴とする鍵情報処理装置。
In response to the key being pressed, a decorative sound having a decorative pitch having a pitch difference between the pitch specified by the pressed key and a set frequency is generated and generated for a predetermined period. 1 decorative sound generating means;
A key-pressing sound generating means for generating a key-pressing sound having a pitch specified by the pressed key after a decoration sound is generated by the first decorative sound generating means for a predetermined period;
In response to the keying sound being generated, a pitch having a predetermined pitch difference from the pitch specified by the pressed key is calculated, and the calculated pitch is specified in advance. Harmony pitch generation means for generating a pitch for harmony converted to match the key,
Second decoration sound generating means for generating a decoration sound of a decoration pitch having a pitch difference of the set frequency from the harmony pitch and generating a predetermined period;
Harmony sound generation means for generating and generating a harmony sound having a pitch for the harmony after a decoration sound is generated for a predetermined period by the second decoration sound generation means;
A key information processing apparatus comprising:
前記鍵情報処理装置はさらに、前記押鍵された鍵が指定する音高を前記予め指定された調に適合するように変換した音高を前記押鍵された鍵が指定する音高とする第1の変換手段を有することを特徴とする請求項1記載の鍵情報処理装置。 The key information processing apparatus further sets a pitch obtained by converting a pitch designated by the depressed key so as to be adapted to the previously specified key, as a pitch designated by the depressed key. The key information processing apparatus according to claim 1, further comprising one conversion unit . 前記鍵情報処理装置はさらに、前記押鍵された鍵が指定する音高が鍵盤の白鍵に対応する音高か否か判断し、白鍵に対応すると判断された場合のみ当該指定された音高を前記第1の変換手段に送出する第1の白鍵判別手段を含むことを特徴とする請求項2記載の鍵情報処理装置。The key information processing apparatus further determines whether or not the pitch specified by the pressed key is a pitch corresponding to a white key on the keyboard, and only when the specified sound is determined to correspond to the white key. 3. The key information processing apparatus according to claim 2, further comprising a first white key discriminating unit that sends a height to the first converting unit. 前記第1及び第2の装飾音生成手段はさらに、前記装飾用の音高を前記予め指定された調に適合するように変換した音高を前記装飾用の音高とする第2の変換手段を有することを特徴とする請求項1記載の鍵情報処理装置。The first and second ornamental sound generating means further includes second converter means for converting the ornamental pitches so as to conform to the pre-specified key and using the ornamental pitches as the ornamental pitches. The key information processing apparatus according to claim 1, comprising: 押鍵が為されるに応答して、当該押鍵された鍵が指定する音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第1の装飾音生成過程と、In response to the key depression, a decoration sound having a pitch for decoration having a pitch difference between the pitch designated by the depressed key and a set frequency is generated and generated for a predetermined period. 1 decoration sound generation process,
この第1の装飾音生成過程にて装飾音が所定期間発音された後、前記押鍵された鍵が指定する音高の押鍵音を発音させる押鍵音生成過程と、A key-pressing sound generation process for generating a key-pressing sound having a pitch specified by the pressed key after a decoration sound is generated for a predetermined period in the first decorative sound generating process;
この押鍵音が発音されるに応答して、前記押鍵された鍵が指定する音高と所定の音高差を有する音高を算出するとともに、当該算出された音高を予め指定された調に適合するように変換したハーモニー用の音高を生成するハーモニー音高生成過程と、In response to the keying sound being generated, a pitch having a predetermined pitch difference from the pitch specified by the pressed key is calculated, and the calculated pitch is specified in advance. Harmony pitch generation process to generate a harmony pitch converted to fit the key,
前記ハーモニー用音高と設定された度数の音高差を有する装飾用の音高の装飾音を生成して所定期間発音させる第2の装飾音生成過程と、A second decorative sound generation process for generating a decorative sound of a decorative pitch having a pitch difference of a set frequency from the harmony pitch and generating a predetermined period;
この第2の装飾音生成過程にて装飾音が所定期間発音された後、前記ハーモニー用の音高を有するハーモニー音を生成して発音させるハーモニー音生成過程と、A harmony sound generation process for generating and generating a harmony sound having a pitch for the harmony after a decoration sound is generated for a predetermined period in the second decoration sound generation process;
を具備することを特徴とする鍵情報処理方法。A key information processing method comprising:
JP2000373005A 2000-12-07 2000-12-07 Key information processing apparatus and key information processing method Expired - Fee Related JP4032208B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000373005A JP4032208B2 (en) 2000-12-07 2000-12-07 Key information processing apparatus and key information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000373005A JP4032208B2 (en) 2000-12-07 2000-12-07 Key information processing apparatus and key information processing method

Publications (2)

Publication Number Publication Date
JP2002175076A JP2002175076A (en) 2002-06-21
JP4032208B2 true JP4032208B2 (en) 2008-01-16

Family

ID=18842463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000373005A Expired - Fee Related JP4032208B2 (en) 2000-12-07 2000-12-07 Key information processing apparatus and key information processing method

Country Status (1)

Country Link
JP (1) JP4032208B2 (en)

Also Published As

Publication number Publication date
JP2002175076A (en) 2002-06-21

Similar Documents

Publication Publication Date Title
JPH0675564A (en) Electronic musical instrument
JP4032208B2 (en) Key information processing apparatus and key information processing method
JPH05173576A (en) Electronic musical instrument
JP3667387B2 (en) Electronic musical instruments
JP4096814B2 (en) Waveform modulation apparatus and waveform modulation program
JP3399068B2 (en) Electronic musical instrument
JP3743993B2 (en) Code determination apparatus, code determination method, and medium recording code determination method
JP3543158B2 (en) Automatic accompaniment device
JP4441961B2 (en) Tuning device, tuning method and recording medium
JP6210356B2 (en) Performance device, performance method and program
JP3543124B2 (en) Automatic accompaniment device
JP3940999B2 (en) Performance device and performance method
JPH0934462A (en) Musical performance device
JP3744667B2 (en) Automatic accompaniment device and automatic accompaniment method
JPH07234682A (en) Musical sound control unit
JP2738217B2 (en) Electronic musical instrument
JP3543159B2 (en) Automatic accompaniment device
JP3395480B2 (en) Electronic musical instrument
JP2947620B2 (en) Automatic accompaniment device
JP2016045254A (en) Sound preview device and program
JP2555060Y2 (en) Electronic musical instrument
JP4206830B2 (en) Musical sound control device and musical sound control program
JP3277662B2 (en) Tone generator
JP5769080B2 (en) Sound channel assignment apparatus and program
JP2012220861A (en) Musical sound generating device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050812

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070524

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070604

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070618

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070926

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071009

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 3

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121102

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131102

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees