JPH0667653A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH0667653A
JPH0667653A JP4345704A JP34570492A JPH0667653A JP H0667653 A JPH0667653 A JP H0667653A JP 4345704 A JP4345704 A JP 4345704A JP 34570492 A JP34570492 A JP 34570492A JP H0667653 A JPH0667653 A JP H0667653A
Authority
JP
Japan
Prior art keywords
data
melody
key
tone
sound
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.)
Granted
Application number
JP4345704A
Other languages
Japanese (ja)
Other versions
JP3430267B2 (en
Inventor
Tatsuya Iijima
達也 飯島
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 JP34570492A priority Critical patent/JP3430267B2/en
Publication of JPH0667653A publication Critical patent/JPH0667653A/en
Application granted granted Critical
Publication of JP3430267B2 publication Critical patent/JP3430267B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Auxiliary Devices For Music (AREA)

Abstract

PURPOSE:To practice a melody performance joyfully with an interest. CONSTITUTION:A CPU 102 generates LED turn-ON/OFF data indicating keying with melody data from an automatic accompaniment data memory 110 and outputs the data to a melody guide 111 to generate sound source data on a musical sound generated by user's keying on a keyboard 101, decides how much the musical sound match the pitch indicated by the keying and the keying timing according to the current level of the user, and sets the output flag of sound source data to '0', '1', '2', or '3' and also sets '4' for the musical sound of an automatic accompaniment, thereby outputting them to a sound source 103. The sound source 103 reads musical waveform data out of a waveform memory 104 and generate musical sound data, and outputs them to one of DSPs 105 #1-#5 according to the values of the output flags. The DSPs #1-#5 give different effect to output musical sound data of five systems, which are mixed by a mixer circuit 106, whose output is passed through a D/A converter 107 and an amplifier 108, so that a speaker 109 outputs a sound.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、メロディ練習機能が付
加された電子楽器に係わり、更に詳しくは、自動伴奏や
メロディガイドに合わせて行われる押鍵操作の正誤に応
じて、メロディ音に付加されるエフェクトが変化するよ
うメロディ練習機能が付加された電子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument to which a melody practice function is added, and more specifically, it is added to a melody sound depending on whether a key depression operation is performed in accordance with automatic accompaniment or a melody guide. The present invention relates to an electronic musical instrument to which a melody practice function is added so that the effect to be changed is changed.

【0002】[0002]

【従来の技術】従来の電子楽器において、メロディ練習
機能を有するものがある。これは、複数のメロディ情報
を記憶しており、その中から選択されたメロディのリズ
ムに合わせて自動伴奏を行うかあるいはメロディガイド
(LEDナビゲータ)を逐次点灯するものでり、ユーザ
はその自動伴奏あるいはメロディガイドに合わせて押鍵
操作することによって、選択したメロディをマニュアル
演奏するようになっている。
2. Description of the Related Art Some conventional electronic musical instruments have a melody practice function. This is for storing a plurality of pieces of melody information, and performing automatic accompaniment in accordance with the rhythm of the melody selected from among them, or sequentially turning on the melody guide (LED navigator). Alternatively, the user can manually play the selected melody by pressing a key in accordance with the melody guide.

【0003】このような電子楽器では、リズムの自動伴
奏と共にメロディの模範演奏音を発生させ、誤った押鍵
操作がなされたときメロディの進行を停止するようにし
たものや、正しく押鍵されるまで同一小節を繰り返すよ
うにしたもの(例えば特開昭58−35598号)、あ
るいは、押鍵操作の誤りの程度に応じてリズムのテンポ
を自動的に変更する(例えば遅くする)ようにしたもの
等がある。
In such an electronic musical instrument, a model playing sound of a melody is generated together with an automatic accompaniment of a rhythm, and the progress of the melody is stopped when an erroneous key depression operation is performed, or the key is properly depressed. The same measure is repeated up to (for example, Japanese Patent Laid-Open No. 58-35598), or the rhythm tempo is automatically changed (for example, slowed down) according to the degree of an error in key depression operation. Etc.

【0004】しかし、それらのメロディ練習方法では、
いつまでも正しいテンポに応じたリズム演奏の押鍵操作
を修得できないという問題があるため、それらに代っ
て、模範演奏音を発生させず自動伴奏とメロディガイド
のみを進行させ、押鍵操作の正誤を判定し、誤った押鍵
操作に対してはブザー音等の警告音を発生させるように
したものが考えられている。
However, in those melody practice methods,
Since there is a problem that you cannot master the keypress operation of the rhythm performance according to the correct tempo forever, instead of generating the model performance sound, only the automatic accompaniment and melody guide are advanced, and the correct keypress operation is correct. It is considered that a judgment is made and a warning sound such as a buzzer sound is generated in response to an erroneous key pressing operation.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記誤った押
鍵操作に対してブザー音を発生させる電子楽器では、初
心者が新しい曲を練習しようとする際、当初はブザー音
が頻繁に発生することになり、初心者にとっては楽音と
は関係のないブザー音が耳障りであるばかりでなく、頻
繁なブザー音に気分を損ねて意欲が減退し、メロディ演
奏の練習に興味を失ってしまいかねないという問題があ
る。
However, in the electronic musical instrument which produces a buzzer sound in response to the above-mentioned erroneous key depression operation, when a beginner tries to practice a new song, the buzzer sound frequently occurs at the beginning. For beginners, the buzzer sound that is not related to the musical tone is not only unpleasant to the ears, but also the frequent buzzer sound displeases the motivation, which may lead to loss of interest in practicing the melody. There is.

【0006】ところで、上記の問題を解決したとして
も、このような電子楽器を用いて練習しようとするユー
ザの技量は千差万別であり、一方では、全く鍵盤に触れ
たこともない超初心者がおり、他方では、相当程度弾く
ことのできる上達者もいる。
By the way, even if the above problem is solved, the skill of a user who tries to practice using such an electronic musical instrument is infinite, and, on the other hand, a super beginner who has never touched the keyboard. However, on the other hand, some players can play to a considerable degree.

【0007】したがって、例えば押鍵タイミング等の上
達者のレベルに合わせた操作判定基準で超初心者の操作
を判定しようとすると、誤り判定ばかりが出てしまって
超初心者は練習意欲を喪失してしまう可能性がある。一
方、上達者にとっては、誤り判定が逐次少なくなった後
は、それ以上のレベル向上が見られなくなり、結局は練
習に飽きてしまうという可能性がある。
Therefore, if an attempt is made to judge a super beginner's operation based on an operation judgment standard that matches the level of an expert such as a key depression timing, only the error judgment will be made and the super beginner will lose the willingness to practice. there is a possibility. On the other hand, for the advanced player, after the number of error determinations is gradually reduced, further improvement of the level cannot be seen, and eventually there is a possibility that the user will get tired of the practice.

【0008】特に近年、電子楽器の自動伴奏機能には、
本体装置のメモリサイズの拡大に伴って多種多様のリズ
ムパターンが設けられるようになっている。そして、こ
れら多種多様のリズムパターンのリズムに乗ったメロデ
ィ演奏を、興味が継続するような方法で容易に練習が行
なえるような電子楽器の出現が要望されている。
Particularly in recent years, the automatic accompaniment function of electronic musical instruments has been
With the expansion of the memory size of the main body device, various rhythm patterns are provided. Then, there is a demand for the appearance of an electronic musical instrument capable of easily practicing a melody playing the rhythm of these various rhythm patterns in a manner that keeps interest.

【0009】本発明の課題は、押鍵操作の誤り報知の際
ブザー等の楽音とは関係のない音を発する不自然さを解
消し、且つ押鍵操作の誤りの度合いを報知することによ
りユーザが効果音を楽しみながら押鍵操作の正しさや誤
りの程度も判別できようにし、さらに、全く鍵盤に触れ
たこともない超初心者から、練習を積んである程度上達
した者まで、常にユーザーの技量に合ったレベルで正誤
判定を行うようにし、ユーザが常に興味をもってメロデ
ィ演奏の練習ができるような面白味の加味された、練習
の継続できる電子楽器を提供することである。
An object of the present invention is to eliminate the unnaturalness that a sound such as a buzzer, which is not related to a musical tone, is emitted at the time of an error notification of a key pressing operation, and to notify the user of the degree of an error in the key pressing operation. Makes it possible to judge the correctness and wrongness of the key pressing operation while enjoying the sound effects.In addition, from the super beginner who has never touched the keyboard to the person who has improved to some extent with practice, the skill of the user is always It is an object of the present invention to provide an electronic musical instrument that allows the user to practice melody playing with an interest so that the user can make a correctness judgment at a level suitable for the above and can continue the practice.

【0010】[0010]

【課題を解決するための手段】本発明の手段は次の通り
である。記憶手段は、予め設定されたタイミングで発生
すべきメロディ音を記憶する。同手段は、例えばメロデ
ィデータを記憶したROM(Read Only Memory)、内蔵ま
たは外部のデジタル音源、アナログ音源等からなる。
The means of the present invention are as follows. The storage means stores a melody sound to be generated at a preset timing. The means comprises, for example, a ROM (Read Only Memory) storing melody data, a built-in or external digital sound source, an analog sound source, and the like.

【0011】メロディ音指示手段は、記憶手段の記憶内
容に基づき、発生すべきメロディ音を指示する。同手段
は、例えば押鍵指定するために読み出されたメロディ情
報の音高データを一時的に記憶するバッファ等からな
る。
The melody tone designating means designates a melody tone to be generated based on the contents stored in the storage means. The means comprises, for example, a buffer for temporarily storing the pitch data of the melody information read out for designating the key depression.

【0012】メロディ音発生手段は、外部操作に基づい
てメロディ音を順次発生する。同手段は、例えば外部操
作情報を解析するCPU(中央演算処理装置)、各種波
形データを記憶したROM、ディジタル音源等からな
る。なお、外部操作は、例えば任意の音高を指定する押
鍵操作情報を出力する複数個の鍵を有する鍵盤等を用い
てよい。
The melody sound generating means sequentially generates melody sounds based on an external operation. The means includes, for example, a CPU (central processing unit) that analyzes external operation information, a ROM that stores various waveform data, a digital sound source, and the like. It should be noted that the external operation may use, for example, a keyboard having a plurality of keys for outputting key pressing operation information for designating an arbitrary pitch.

【0013】信号処理手段は、メロディ音発生手段によ
り順次発生されるメロディ音の信号にそれぞれ複数種の
異なる処理を行って出力する。同手段は、例えば複数の
DSP(Digital Signal Processer)等からなる。
The signal processing means performs a plurality of different types of processing on the melody sound signals sequentially generated by the melody sound generation means and outputs the processed signals. The means comprises, for example, a plurality of DSPs (Digital Signal Processors) and the like.

【0014】音程検出手段は、メロディ音指示手段によ
り指示されるメロディ音とメロディ音発生手段により発
生されるメロディ音との音程を検出する。同手段は、例
えばCPU等からなる。
The pitch detecting means detects the pitch of the melody sound instructed by the melody sound instructing means and the melody sound generated by the melody sound generating means. The means comprises, for example, a CPU or the like.

【0015】操作タイミング検出手段は、上記外部操作
のタイミングを検出する。同手段は、音符、音長等を表
す時間や、押鍵時期等を計時するカウンタ等からなる。
時間差検出手段は、メロディ音指示手段により指示され
るメロディ音に対して予め設定されているタイミング
と、操作タイミング検出手段により検出される外部操作
の操作タイミングとの時間差を検出する。同手段は、例
えばCPU等からなる。
The operation timing detecting means detects the timing of the external operation. The same means is composed of a time representing a note, a note length, etc., a counter for measuring a key depression time, etc.
The time difference detecting means detects a time difference between the timing preset for the melody sound instructed by the melody sound instructing means and the operation timing of the external operation detected by the operation timing detecting means. The means comprises, for example, a CPU or the like.

【0016】割当手段は、メロディ音発生手段により順
次発生されるメロディ音のそれぞれの信号処理として、
音程検出手段の検出結果及び時間差検出手段の検出結果
に応じて信号処理手段の複数種の信号処理のいずれか1
つを割り当てる。同手段は、例えば音源内の出力制御回
路等からなる。
The assigning means, as signal processing for each of the melody sounds sequentially generated by the melody sound generating means,
Any one of a plurality of types of signal processing of the signal processing means according to the detection result of the pitch detection means and the detection result of the time difference detection means
Assign one. The means comprises, for example, an output control circuit in the sound source.

【0017】正誤判定基準テーブルは、演奏者の技能レ
ベルに応じた複数個の正誤判定基準を有する。同テーブ
ルは、例えば、ROM(Read Only Memory)等に記憶され
た音程、操作タイミング等のデータと基準レベルとの対
応表である。
The right / wrong judgment standard table has a plurality of right / wrong judgment standards corresponding to the skill level of the player. The table is, for example, a correspondence table between data such as pitch and operation timing stored in a ROM (Read Only Memory) or the like and a reference level.

【0018】レベル適正値検出手段は、割当手段の割当
結果の累計を行うと共に、演奏者の技能レベル適正値を
算出する。同手段は、例えばCPU等からなる。割当反
映手段は、レベル適正値検出手段の算出結果によって、
上記正誤判定基準テーブルの中から適切な正誤判定基準
を選択し、割当手段の割当に反映させる。同手段も、例
えばCPU等からなる。
The proper level value detecting means accumulates the allocation results of the allocating means and calculates the skill level proper value of the performer. The means comprises, for example, a CPU or the like. The allocation reflecting means, according to the calculation result of the level appropriate value detecting means,
An appropriate right / wrong judgment standard is selected from the right / wrong judgment standard table and reflected in the allocation of the allocation means. This means also comprises, for example, a CPU or the like.

【0019】[0019]

【作用】本発明の手段の作用は次の通りである。記憶手
段の記憶内容に基づいて、メロディ音指示手段は、予め
設定されたタイミングで発生すべきメロディ音を指示す
る。一方、メロディ音発生手段は外部操作に基づいてメ
ロディ音を順次発生する。
The operation of the means of the present invention is as follows. The melody sound designating means designates a melody sound to be generated at a preset timing based on the stored contents of the storage means. On the other hand, the melody sound generating means sequentially generates melody sounds based on an external operation.

【0020】この発生されるメロディ音と上記指示され
るメロディ音との音程を音程検出手段が検出し、他方で
は、操作タイミング検出手段が上記外部操作のタイミン
グを検出する。そして、時間差検出手段は、上記指示さ
れるメロディ音に対して予め設定されているタイミング
と、操作タイミング検出手段により検出される外部操作
の操作タイミングとの時間差を検出する。
The pitch detecting means detects the pitch between the generated melody sound and the instructed melody sound, and on the other hand, the operation timing detecting means detects the timing of the external operation. Then, the time difference detecting means detects a time difference between the preset timing for the instructed melody sound and the operation timing of the external operation detected by the operation timing detecting means.

【0021】これらの処理と平行して、信号処理手段
は、上記外部操作に基づいて発生されるメロディ音の信
号に、それぞれ複数種の異なる処理を行って出力する。
そして、割当手段は、メロディ音発生手段により順次発
生されるメロディ音のそれぞれの信号処理として、音程
検出手段の検出結果及び時間差検出手段の検出結果に応
じて信号処理手段の複数種の信号処理のいずれか1つを
割り当てる。
In parallel with these processes, the signal processing means performs a plurality of different processes on the signal of the melody sound generated based on the above-mentioned external operation and outputs it.
Then, the assigning means performs, as signal processing of each of the melody sounds sequentially generated by the melody sound generating means, a plurality of types of signal processing of the signal processing means according to the detection result of the pitch detection means and the detection result of the time difference detection means. Assign one of them.

【0022】レベル適正値検出手段は、この割当結果の
累計を行うと共に、演奏者の技能レベル適正値を算出
し、この算出結果によって、割当反映手段は、正誤判定
基準テーブルの中から適切な正誤判定基準を選択し、割
当手段の割当に反映させる。
The proper level value detecting means accumulates the allocation results and calculates the skill level appropriate value of the performer. Based on the calculation result, the allocation reflecting means selects an appropriate correctness from the correctness determination reference table. The criterion is selected and reflected in the allocation of the allocation means.

【0023】このようにして、ユーザによる押鍵操作の
正誤を楽音に付加するエフェクトを変化させることによ
り報知し、且つ押鍵操作の正しさ又は誤りの程度により
楽音に付加するエフェクトを変化させて押鍵操作の正し
さ又は誤りの程度を報知し、さらに、ユーザの技能レベ
ルに合った適切な判定基準によって上記押鍵操作の正誤
の程度を決定する。
In this way, the effect of adding the correctness of the key depression operation by the user is notified by changing the effect, and the effect added to the musical sound is changed according to the correctness or error of the key depression operation. The degree of correctness or error of the key depression operation is notified, and the degree of correctness or wrongness of the key depression operation is determined according to an appropriate determination standard suitable for the skill level of the user.

【0024】[0024]

【実施例】以下、図面を参照しながら本発明の実施例に
つき詳細に説明する。図1は、本発明の実施例に係わる
電子鍵盤楽器の全体構成図である。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is an overall configuration diagram of an electronic keyboard instrument according to an embodiment of the present invention.

【0025】鍵盤101は、演奏のための操作部であ
り、ユーザは押鍵を行うことによってメロディを演奏す
ることができる。また、鍵盤101は、メロディの音高
を表す鍵に対応してLEDを点灯するメロディガイド
(LEDナビゲータ)111を備えており、さらに、特
には図示しないが、リズムスタートキーやその他各種の
スイッチを備えている。ユーザは、それらのスイッチに
よりメロディやコードを選択することができる。そし
て、リズムスタートキーの入力操作により、選択された
コードでコードパターン又はベースパターンの自動伴奏
が開始され、選択されたメロディに基づいて押鍵を指示
するメロディガイドの点灯、点滅等が進行するようにな
っている。
The keyboard 101 is an operation unit for playing, and the user can play a melody by pressing a key. Further, the keyboard 101 is provided with a melody guide (LED navigator) 111 that lights an LED corresponding to a key representing the pitch of a melody, and further, although not particularly shown, a rhythm start key and various other switches. I have it. The user can select a melody or chord by using those switches. Then, by the input operation of the rhythm start key, the automatic accompaniment of the chord pattern or the bass pattern is started with the selected chord, and the melody guide for instructing the key depression based on the selected melody lights up or blinks. It has become.

【0026】CPU102は、図2に示す2つのレジス
タ、すなわち1/96音符カウンタ201及び押鍵指定
音バッファ202を内部に有している。CPU102
は、1/96音符カウンタ201の時間経過毎に、自動
伴奏データメモリ110から、音源103に出力するた
めの自動伴奏用の楽音の音源データを順次読み出すと共
に、メロディデータも順次読み出し、そのメロディデー
タの音高データを押鍵指定音バッファ202に格納し、
その音高データに基づいて対応する鍵を押鍵指定するた
めのLED点灯データを作成してメロディガイド111
に出力する。
The CPU 102 internally has two registers shown in FIG. 2, that is, a 1/96 note counter 201 and a key-depressing note sound buffer 202. CPU 102
Each time the 1/96 note counter 201 elapses, the sound source data of the musical tone for automatic accompaniment to be output to the sound source 103 is sequentially read from the automatic accompaniment data memory 110, and the melody data is also sequentially read. Store the pitch data of the
Based on the pitch data, the LED lighting data for designating the key depression of the corresponding key is created to generate the melody guide 111.
Output to.

【0027】さらに、CPU102は、上記と並行し
て、鍵盤の押鍵状態を取り込み、各押鍵動作に基づいて
音源103に対してメロディ音の発音を指示するための
音源データを生成する。このとき特に、発音指示される
楽音が現在押鍵指定されている音高に一致するか否かを
押鍵指定音バッファ202の内容に基づいて判定する。
そして、一致又は不一致の程度によって音源データの一
部であるエフェクト選択用の出力フラグを“000”
(一致)、“001”(不一致±2度)、“010”
(不一致±3度)、または“011”(不一致±4度)
にセットする。また、このように音源データによって各
楽音の発音指示を行うと共に、各楽音に対応するエンベ
ロープデータを生成する。そして、以上のようにして生
成した音源データをエンベロープデータと共に音源10
3に出力する。
Further, in parallel with the above, the CPU 102 takes in the key depression state of the keyboard and generates tone generator data for instructing the tone generator 103 to produce a melody tone based on each key depression operation. At this time, in particular, it is determined based on the contents of the key-depression-designated-tone buffer 202 whether or not the musical tone instructed to sound matches the pitch currently designated as the key depression.
The output flag for effect selection, which is a part of the sound source data, is set to "000" depending on the degree of match or mismatch.
(Match), "001" (Mismatch ± 2 degrees), "010"
(Mismatch ± 3 degrees) or “011” (Mismatch ± 4 degrees)
Set to. Further, in this way, the tone generation instruction of each musical tone is given by the sound source data, and the envelope data corresponding to each musical tone is generated. Then, the sound source data generated as described above is combined with the envelope data to generate the sound source 10.
Output to 3.

【0028】音源103は、上述の音源データに基づい
て波形メモリ104から楽音波形データを読み出し、そ
のデータに上述のエンベロープデータに基づくエンベロ
ープ特性を付加して楽音データを生成し、エンベロープ
付加処理を行うDSP105に出力する。ここで、音源
103は、各楽音データを、それに対応する音源データ
である出力フラグが“000”に設定されている場合に
は#1のDSP105に、“001”が設定されている場
合には#2のDSP105に、“010”が設定されてい
る場合には#3のDSP105に、“011”が設定され
ている場合には#4のDSP105にそれぞれ出力する。
また、伴奏音の楽音データを#5のDSP105に出力す
る。
The tone generator 103 reads out musical tone waveform data from the waveform memory 104 based on the above-mentioned tone generator data, adds envelope characteristics based on the above envelope data to the data to generate tone data, and performs envelope addition processing. Output to the DSP 105. Here, the tone generator 103 outputs the tone data to the DSP 105 of # 1 when the output flag corresponding to the tone data is set to "000", and when "001" is set to the DSP 105. When "010" is set to the DSP 105 of # 2, it is output to the DSP 105 of # 3, and when "011" is set, it is output to the DSP 105 of # 4.
Further, the musical tone data of the accompaniment tone is output to the DSP 105 of # 5.

【0029】これにより、#1〜#5の各DSP105でエ
フェクトが付加された5系統の楽音データは、ミキサ回
路106で混合され、D/A変換器107でアナログ楽
音信号に変換された後、アンプ108を介してスピーカ
109から放音される。
As a result, the musical tone data of the five systems to which the effects have been added by the DSPs # 1 to # 5 are mixed by the mixer circuit 106 and converted into an analog musical tone signal by the D / A converter 107, Sound is emitted from the speaker 109 via the amplifier 108.

【0030】上述の構成からわかるように、押鍵指定さ
れた音高と等しいメロディ音は#1のDSP105に出力
され、押鍵指定された音高から外れる度合いが大きくな
るにつれて、そのメロディ音は#2のDSP105、#3の
DSP105または#4のDSP105へと出力先が変更
され、それぞれ別々のエフェクトが付加されることが本
実施例の特徴である。
As can be seen from the above configuration, the melody tone equal to the pitch designated for key depression is output to the DSP 105 of # 1, and as the degree of deviation from the tone pitch designated for key depression increases, the melody tone becomes The feature of this embodiment is that the output destination is changed to the # 2 DSP 105, the # 3 DSP 105, or the # 4 DSP 105, and different effects are added respectively.

【0031】ここで、図3に、上記CPU102から音
源103へ出力される音源データのフォーマットを示
す。音源データは、発音チャネル、発音フラグ、出力フ
ラグ、波形スタートアドレスと波形エンドアドレスと波
形ループアドレスとからなる波形データ、及び周波数デ
ータで構成される。上記発音チャネルは、音源103に
おいて複数の楽音を並列して処理可能とするための時分
割処理のタイミングを指示する。発音フラグは、楽音の
発音か消音かを指示する。出力フラグは、楽音データを
図1の#1〜#5の内いずれのDSP105に出力するかを
指示する。波形スタートアドレス及び波形エンドアドレ
スは、図1の音源103が波形メモリ104から波形デ
ータを読み出すための先頭アドレスと最終アドレスを指
示する。波形ループアドレスは、音源103が波形メモ
リ104から一定のアドレス範囲の波形データを繰り返
し読み出すための繰り返しアドレスを指示する。これに
より、楽音を長時間発音させることが可能となる。そし
て、周波数データは、音源103が波形メモリ104か
ら波形データを読み出すときの歩進幅を指示する。これ
により発音される楽音の音高が確定する。
Here, FIG. 3 shows a format of sound source data output from the CPU 102 to the sound source 103. The sound source data is composed of a sounding channel, a sounding flag, an output flag, waveform data including a waveform start address, a waveform end address, and a waveform loop address, and frequency data. The tone generation channel indicates the timing of time division processing for enabling the tone generator 103 to process a plurality of musical tones in parallel. The pronunciation flag indicates whether to pronounce the sound or mute it. The output flag indicates which of the DSPs # 1 to # 5 in FIG. The waveform start address and the waveform end address indicate the start address and the end address for the sound source 103 of FIG. 1 to read the waveform data from the waveform memory 104. The waveform loop address indicates a repetitive address for the sound source 103 to repeatedly read out waveform data in a fixed address range from the waveform memory 104. This makes it possible to produce musical tones for a long time. Then, the frequency data indicates the step width when the sound source 103 reads the waveform data from the waveform memory 104. As a result, the pitch of the musical sound to be generated is fixed.

【0032】続いて、図4に、上記音源データに基づい
て楽音生成処理を行う図1の音源103の構成を示す。
図4において、ラッチ501〜507は、図1のCPU
102から送られてきた図3のフォーマットの音源デー
タを、同じくCPU102から出力される音源データラ
ッチクロックによってラッチする。また、ラッチ508
は、図1のCPU102から送られてきたエンベロープ
データを、これもCPU102から出力されるエンベロ
ープデータラッチクロックによってラッチする。そし
て、ラッチ502は、ラッチした発音フラグを、波形メ
モリ制御回路509に出力する。
Next, FIG. 4 shows the configuration of the tone generator 103 of FIG. 1 which performs the tone generation processing based on the tone generator data.
4, latches 501 to 507 are the CPUs of FIG.
The sound source data in the format of FIG. 3 sent from the CPU 102 is latched by the sound source data latch clock also output from the CPU 102. Also, the latch 508
Latches the envelope data sent from the CPU 102 of FIG. 1 by the envelope data latch clock also output from the CPU 102. Then, the latch 502 outputs the latched tone generation flag to the waveform memory control circuit 509.

【0033】波形メモリ制御回路509は、発音フラグ
が“1”のとき、即ち、発音指示が行われた場合は、ラ
ッチ501にラッチされた発音チャネルと、ラッチ50
4〜506にラッチされた波形データ(波形のアドレス
情報)を取り込み、何れの発音チャネルを波形メモリの
どのアドレス範囲で鳴らすかを決定し、読み出し制御用
の制御信号OE、CE、及び波形メモリアドレスを生成
して、図1の波形メモリ104に出力する。
When the tone generation flag is "1", that is, when a tone generation instruction is issued, the waveform memory control circuit 509 determines the tone generation channel latched by the latch 501 and the latch 50.
4 to 506, the latched waveform data (waveform address information) is fetched to determine which tone generation channel is to be sounded in which address range of the waveform memory, and control signals OE and CE for read control and the waveform memory address. Is generated and output to the waveform memory 104 of FIG.

【0034】エンベロープ制御回路510は、上記によ
り波形メモリ104から読み出される波形データを取り
込み、ラッチ508にラッチされたエンベロープデータ
と乗算し、その乗算結果を楽音データとして、#1〜#5の
各楽音データ加算器511に出力する。 ところで、上
記音源103は、内部のデータを全て時分割で処理す
る。このため、エンベロープ制御回路510は、楽音デ
ータを、例えば1チャネル〜32チャネルの各発音チャ
ネル毎に、時分割処理によって#1〜#5の各楽音データ加
算器511に出力する。
The envelope control circuit 510 takes in the waveform data read from the waveform memory 104 as described above, multiplies it by the envelope data latched in the latch 508, and uses the multiplication result as musical tone data for each of the musical tones # 1 to # 5. Output to the data adder 511. By the way, the sound source 103 processes all internal data by time division. Therefore, the envelope control circuit 510 outputs the tone data to each tone data adder 511 of # 1 to # 5 by time division processing for each tone generation channel of, for example, 1 channel to 32 channels.

【0035】一方、出力制御回路512は、#1〜#5の各
加算器ラッチクロックALCK1〜ALCK5を#1〜#5
の各楽音データ加算器511に供給する。この場合、出
力制御回路512は、後述するように、ラッチ501に
ラッチされた発音チャネルとラッチ503にラッチされ
た出力フラグとから、各チャネルの楽音データが#1〜#5
の内いずれの出力ラッチ513から出力されるものであ
るかを判別し、各チャネル毎に出力フラグの情報を生成
し、各発音チャネルのタイミングで、ALCK1〜AL
CK5の内の何れか一つのみを#1〜#5の内の対応する楽
音データ加算器511に出力する。
On the other hand, the output control circuit 512 outputs the adder latch clocks ALCK1 to ALCK5 of # 1 to # 5 to # 1 to # 5.
To each tone data adder 511. In this case, the output control circuit 512 outputs the tone data of each channel from # 1 to # 5 based on the tone generation channel latched by the latch 501 and the output flag latched by the latch 503, as described later.
Which of the output latches 513 is to be used for output, output flag information is generated for each channel, and ALCK1 to ALCK are generated at the timing of each sounding channel.
Only one of CK5 is output to the corresponding tone data adder 511 of # 1 to # 5.

【0036】従って、#1の楽音データ加算器511は、
出力フラグが“000”である発音チャネルの楽音デー
タのみを加算し、#2の楽音データ加算器511は出力フ
ラグが“001”、#3の楽音データ加算器511は出力
フラグが“010”、#4の楽音データ加算器511は出
力フラグが“011”、そして#5の楽音データ加算器5
11は出力フラグが“100”(伴奏音)である発音チ
ャネルの楽音データのみをそれぞれ加算して出力する。
Therefore, the tone data adder 511 of # 1 is
Only the tone data of the tone generation channel whose output flag is “000” is added, the output flag of the tone data adder 511 of # 2 is “001”, the output flag of the tone data adder 511 of # 3 is “010”, The output flag of the tone data adder 511 of # 4 is "011", and the tone data adder 5 of # 5 is
Reference numeral 11 adds only the musical tone data of the tone generation channel whose output flag is “100” (accompaniment tone) and outputs the result.

【0037】#1〜#5の各出力ラッチ513は、上記#1〜
#5の各楽音データ加算器511の出力を出力制御回路5
12からの出力ラッチクロックOLCKによってそれぞ
れラッチし、図1の#1〜#5の各DSP105に出力す
る。
Each of the output latches 513 of # 1 to # 5 has the above-mentioned # 1 to # 5.
The output of each tone data adder 511 of # 5 is output to the output control circuit 5
It is latched by the output latch clock OLCK from 12 and output to each DSP 105 of # 1 to # 5 in FIG.

【0038】図5は、上記出力制御回路512の構成図
である。同図において、発音チャネルデコーダ602
は、図4のラッチ501にラッチされた発音チャネルを
デコードし、そのデコード結果を、#1〜#32 の各アンド
回路603に出力する。
FIG. 5 is a block diagram of the output control circuit 512. In the figure, the sound channel decoder 602
4 decodes the tone generation channel latched by the latch 501 of FIG. 4 and outputs the decoding result to each AND circuit 603 of # 1 to # 32.

【0039】#1〜#32 の各アンド回路603の内、上記
発音チャネルデコーダ602から一方の入力端子に入力
されるデコード結果が“1”となっているいずれか1つ
のアンド回路603は、特には図示しないクロック発生
回路から他方の入力端子に入力される音源クロックCK
2の入力タイミングで出力が“1”(ハイレベル)とな
り、そのハイレベル信号を、#1〜#32 の各ラッチ601
の中の自己に対応するラッチ601へラッチクロックと
して出力する。
Of the AND circuits 603 of # 1 to # 32, any one AND circuit 603 whose decoding result input from the sounding channel decoder 602 to one input terminal is "1" is particularly Is a sound source clock CK input to the other input terminal from a clock generation circuit (not shown)
The output becomes "1" (high level) at the input timing of 2, and the high level signal is output to each latch 601 of # 1 to # 32.
It is output as a latch clock to the latch 601 corresponding to self in the.

【0040】#1〜#32 のラッチ601の中の、図4のラ
ッチ501にラッチされた発音チャネルに相当するラッ
チ601は、上述したラッチクロックに基づいて、図4
のラッチ503にラッチされた出力フラグをラッチす
る。一方、アンド回路603からラッチクロックの入力
しないラッチ601は、以前にラッチしたデータをその
まま保持する。
Among the latches 601 of # 1 to # 32, the latch 601 corresponding to the sound generation channel latched by the latch 501 of FIG.
The latched output flag is latched in the latch 503. On the other hand, the latch 601 to which the latch clock is not input from the AND circuit 603 holds the previously latched data as it is.

【0041】これにより、各発音チャネル毎の出力フラ
グの情報が#1〜#32 の各ラッチ601にラッチされ、そ
れぞれ対応する#1〜#32 の各ラッチ606に出力され
る。一方、カウンタ604及びデコーダ605は、特に
は図示しないクロック発生回路からの音源クロックCK
2に基づいて、チャネル信号を生成する。
As a result, the information of the output flag for each sounding channel is latched in each of the latches 601 of # 1 to # 32 and output to the corresponding latches 606 of # 1 to # 32. On the other hand, the counter 604 and the decoder 605 are provided with a tone generator clock CK from a clock generation circuit (not shown).
A channel signal is generated based on 2.

【0042】デコーダ605は、詳しくは図9で後述す
るように、32種類のチャネル信号について、音源クロ
ックCK2に同期する各タイミング毎に、1チャネル信
号、2チャネル信号、3チャネル信号、・・・、32チ
ャネル信号、1チャネル信号、・・・という順番で
“1”を出力する。すなわち、32種類のチャネル信号
のうち順次1つを“1”にして、#1〜#32 の各ラッチ6
06に順次出力する。
As will be described later in detail with reference to FIG. 9, the decoder 605 has one channel signal, two channel signals, three channel signals, ... For 32 types of channel signals at each timing synchronized with the tone generator clock CK2. , 32 channel signal, 1 channel signal, ... That is, one of the 32 types of channel signals is sequentially set to "1" and each of the latches # 1 to # 32 is latched.
It is sequentially output to 06.

【0043】#1〜#32 の各ラッチ606は、上記デコー
ダ605から入力されるチャネル信号が“1”となるタ
イミング毎に、それぞれ#1〜#32 の各ラッチ601から
入力される各発音チャネル毎の出力フラグの情報をデコ
ーダ607に出力する。
Each of the latches 606 of # 1 to # 32 outputs each tone generation channel input from each latch 601 of # 1 to # 32 at each timing when the channel signal input from the decoder 605 becomes "1". The output flag information for each is output to the decoder 607.

【0044】デコーダ607は、#1〜#32 の各ラッチ6
06から入力される出力フラグの情報をデコードして、
その結果を#1〜#5の各アンド回路608に出力する。こ
れにより、各ラッチ606の各出力を入力とするデコー
ダ607からは、図10で後述するように、#1〜#32 の
各ラッチ601にラッチされた各発音チャネル毎の出力
フラグの“000”、“001”、“010”、“01
1”または“100”のいずれかの状態に応じて、#1〜
#5の各アンド回路608にハイレベル信号が時分割で出
力される。
The decoder 607 includes the latches 6 of # 1 to # 32.
The information of the output flag input from 06 is decoded,
The result is output to each AND circuit 608 of # 1 to # 5. As a result, from the decoder 607 which receives each output of each latch 606, the output flag “000” of each sounding channel latched by each latch 601 of # 1 to # 32 is input, as will be described later with reference to FIG. , "001", "010", "01"
Depending on the state of "1" or "100", # 1 ~
A high level signal is output to each AND circuit 608 of # 5 in a time division manner.

【0045】そして、#1〜#5の各アンド回路608は、
特には図示しないクロック発生回路から一方の入力端子
に入力される音源クロックCK1がハイレベルとなるタ
イミングで、上記デコーダ607から他方の入力端子に
時分割で入力されるハイレベル信号を出力する。
The AND circuits 608 of # 1 to # 5 are
Particularly, at the timing when the tone generator clock CK1 input to one input terminal from a clock generation circuit (not shown) becomes high level, the decoder 607 outputs a high level signal input to the other input terminal in a time division manner.

【0046】上記出力されるハイレベル信号は、ラッチ
クロックALCK1〜ALCK5となって、図4の#1〜
#5の各楽音データ加算器511にそれぞれ供給される。
また、ラッチ609は、デコーダ605から32チャネ
ル信号が出力されるタイミングで、その値“1”を音源
クロックCK1によりラッチしてアンド回路610に出
力する。
The high-level signals output as described above become the latch clocks ALCK1 to ALCK5, and the signals # 1 to # 1 in FIG.
It is supplied to each tone data adder 511 of # 5.
The latch 609 latches the value “1” with the tone generator clock CK1 and outputs it to the AND circuit 610 at the timing when the decoder 605 outputs the 32-channel signal.

【0047】アンド回路610は、上記ラッチ609か
ら入力される“1”を、音源クロックCK2に同期し
て、ラッチクロックOLCKとして出力し、このラッチ
クロックOLCKを、図4の#1〜#5の各出力ラッチ51
3に供給する。
The AND circuit 610 outputs "1" input from the latch 609 as a latch clock OLCK in synchronization with the tone clock CK2, and this latch clock OLCK is represented by # 1 to # 5 in FIG. Each output latch 51
Supply to 3.

【0048】また、上記32チャネル信号は、図4の#1
〜#5の各楽音データ加算器511に供給される。次に、
図6に、上述した#1〜#5の各楽音データ加算器511の
共通の構成図を示す。
Further, the above 32 channel signal is represented by # 1 in FIG.
It is supplied to each musical sound data adder 511 to # 5. next,
FIG. 6 shows a common block diagram of each of the tone data adders 511 of # 1 to # 5 described above.

【0049】同図において、アダー511aは、図4の
エンベロープ制御回路510から入力される時分割の楽
音データを次々に加算して、最終的な出力データを生成
するよう構成される。
In the figure, the adder 511a is configured to successively add time-divisional tone data input from the envelope control circuit 510 of FIG. 4 to generate final output data.

【0050】すなわち、ラッチ511b及びラッチ51
1cは、アダー511aで計算された結果を、それぞれ
図4の出力制御回路512で生成された#1〜#5の各加算
器ラッチクロックALCK1〜ALCK5によって順次
ラッチする。
That is, the latch 511b and the latch 51
The 1c sequentially latches the results calculated by the adder 511a by the adder latch clocks ALCK1 to ALCK5 of # 1 to # 5 generated by the output control circuit 512 of FIG. 4, respectively.

【0051】そして、ラッチ511cは、上記ラッチし
たアダー511aの計算結果をラッチ511dに出力
し、ラッチ511dは、ラッチ511cから入力される
アダー511aの計算結果を音源クロックCK2の入力
タイミングでラッチしてアダー511aに出力する。
Then, the latch 511c outputs the calculation result of the latched adder 511a to the latch 511d, and the latch 511d latches the calculation result of the adder 511a input from the latch 511c at the input timing of the sound source clock CK2. Output to the adder 511a.

【0052】これにより、アダー511aの計算結果が
再びアダー511aに戻され、時分割の楽音データが次
々に加算される。つまり、図6の構成が図4の#1の楽音
データ加算器511である場合は、図4の出力制御回路
512から#1加算器ラッチクロックALCK1が出力さ
れる発音チャネル、即ち出力フラグが“000”である
発音チャネルの楽音データのみが加算されることにな
る。同様に、図6の構成が図4の#2の楽音データ加算器
511である場合は、図4の出力制御回路512から#2
加算器ラッチクロックALCK2が出力される発音チャ
ネル、即ち出力フラグが“001”である発音チャネル
の楽音データのみが加算される。以下同様に、#3、#4、
#5の楽音データ加算器511では、出力フラグが“01
0”、“011”、“100”である発音チャネルの楽
音データのみが加算される。
As a result, the calculation result of the adder 511a is returned to the adder 511a again, and the time-division musical tone data is added one after another. That is, when the configuration of FIG. 6 is the tone data adder 511 of # 1 of FIG. 4, the tone generation channel from which the # 1 adder latch clock ALCK1 is output from the output control circuit 512 of FIG. Only the tone data of the tone generation channel of 000 "is added. Similarly, when the configuration of FIG. 6 is the tone data adder 511 of # 2 of FIG. 4, the output control circuit 512 of FIG.
Only the tone data of the tone generation channel from which the adder latch clock ALCK2 is output, that is, the tone generation channel whose output flag is "001" is added. Similarly, # 3, # 4,
In the tone data adder 511 of # 5, the output flag is "01".
Only the tone data of the tone generation channels that are 0 "," 011 ", and" 100 "are added.

【0053】なお、アダー511aによる加算結果は、
ラッチ511cにおいて、図4の出力制御回路512内
の図5のデコーダ605から32チャネル信号が出力さ
れるタイミングでクリアされる。つまり、1チャネル信
号から32チャネル信号までが出力される各サンプリン
グ区間毎に、各発音チャネルの楽音データの加算結果が
クリアされることになる。
The addition result by the adder 511a is
The latch 511c is cleared at the timing when the 32-channel signal is output from the decoder 605 of FIG. 5 in the output control circuit 512 of FIG. That is, the addition result of the musical sound data of each sounding channel is cleared in each sampling section in which the 1-channel signal to the 32-channel signal are output.

【0054】続いて、以上の構成の実施例の動作につい
て、以下順次説明する。図7及び図8は、図1のCPU
102によって実行される音源データの生成処理の動作
フローチャートである。この処理は、CPU102が特
には図示しないROMなどに記憶された制御プログラム
を実行することにより実現する。なお、CPU102に
よるエンベロープデータの生成処理については、一般的
な電子楽器における処理と変わるところはないため、そ
の説明は省略する。
Next, the operation of the embodiment having the above-mentioned configuration will be sequentially described below. 7 and 8 show the CPU of FIG.
6 is an operation flowchart of a sound source data generation process executed by the CPU 102. This processing is realized by the CPU 102 executing a control program stored in a ROM (not shown) or the like. Note that the envelope data generation process by the CPU 102 is no different from the process in a general electronic musical instrument, and therefore its description is omitted.

【0055】図7に示す処理は、電源がオンされると、
CPU102内の図2の1/96音符カウンタ、押鍵指
定音バッファ、その他特には図示しないレジスタの内容
などが初期化された後スタートする。その後、以下に説
明するステップ701〜711の各処理が一定周期で繰
り返し実行されることにより、ユーザによる鍵盤101
の押鍵又は離鍵操作に対応して楽音の発音又は消音を指
示する処理、及び押鍵操作に対応して付加するエフェク
トを指定する処理が実行される。
In the process shown in FIG. 7, when the power is turned on,
The processing is started after the contents of the 1/96 note counter of FIG. 2 in the CPU 102, the key-depression specifying note buffer, and other registers (not shown) are initialized. After that, each processing of steps 701 to 711 described below is repeatedly executed at a constant cycle, so that the keyboard 101 by the user is executed.
A process of instructing to pronounce or mute a musical sound in response to a key pressing operation or a key releasing operation, and a process of designating an effect to be added in response to a key pressing operation are executed.

【0056】すなわち、CPU102は、まず、ステッ
プ701において、図1の鍵盤101の鍵域を走査す
る。続いて、ステップ702で、鍵操作が行われたが否
か、及び鍵操作が行われた場合は押鍵操作であるか離鍵
操作であるかを判別する。
That is, the CPU 102 first scans the key range of the keyboard 101 in FIG. 1 in step 701. Then, in step 702, it is determined whether or not a key operation has been performed, and if the key operation has been performed, it is a key pressing operation or a key releasing operation.

【0057】このステップ702の判別で、キーON
(押鍵操作)されていた場合は、ステップ703に進
む。ステップ703では、いま押鍵操作された鍵に対応
する音高データと、後述するタイマインタラプト処理で
図2に示す押鍵指定バッファ202に格納されているメ
ロディデータの音高データとを比較する。
The key is turned on by the determination in step 702.
If (key depression operation) has been performed, the process proceeds to step 703. In step 703, the pitch data corresponding to the key which has been pressed is compared with the pitch data of the melody data stored in the key pressing designation buffer 202 shown in FIG. 2 by the timer interrupt processing described later.

【0058】そして、ステップ704では、上記比較し
た2つの音高データが示す2音の音程が同一か或いは何
度離れているかを判別する。すなわち2音のずれの程度
を判別する。
Then, in step 704, it is determined whether the pitches of the two tones indicated by the two pitch data thus compared are the same or how far apart they are. That is, the degree of deviation between the two sounds is determined.

【0059】上記2音の音程判別で、2音が一致(音程
が1度)していれば、ステップ705に進み、上記の押
鍵動作に基づいて波形メモリ104から波形データを読
み出してメロディ音の発音を指示するための音源データ
を作成する。
If it is determined in the pitch determination of the two notes that the two notes match (the pitch is once), the flow proceeds to step 705, where the waveform data is read from the waveform memory 104 based on the key pressing operation described above and the melody note is played. Sound source data for instructing the pronunciation of is created.

【0060】この処理では、発音されるべき楽音の図3
のフォーマットの音源データを生成する。その音源デー
タにおいて、まず波形データと周波数データを生成し、
つぎに音源103で処理中の発音チャネルのうち空いて
いる発音チャネルを付与し、さらに発音フラグには発音
を示す値“1”に設定する。そして、出力フラグには
“000”をセットした後、後述する710の処理に進
む。
In this process, FIG.
Generate sound source data in the format. In the sound source data, first generate waveform data and frequency data,
Next, a vacant tone generation channel is given to the tone generation channels being processed by the sound source 103, and the tone generation flag is set to the value "1" indicating the tone generation. Then, after setting “000” in the output flag, the process proceeds to the process of 710 described later.

【0061】これにより、上記音程判別で、2音が一致
していれば、上記音源データによる楽音データの出力先
として、図1の#1のDSP105が指定される。また、
上記ステップ704における2音の音程判別で、2音の
音程が上または下に2度ずれている場合は、ステップ7
06に進み、ステップ705の処理と同様に音源データ
を生成し、その音源データの出力フラグを“001”に
した後、710の処理に進む。
As a result, when the two pitches match in the pitch discrimination, the DSP 105 of # 1 in FIG. 1 is designated as the output destination of the musical sound data by the sound source data. Also,
If the pitches of the two tones are deviated upward or downward twice by the pitch determination of the two tones in step 704, step 7
In step 06, sound source data is generated in the same manner as in step 705, the output flag of the sound source data is set to "001", and then the process proceeds to step 710.

【0062】これにより、判別された2音の音程が上ま
たは下に2度ずれている場合は、その音源データの楽音
データの出力先として、図1の#2のDSP105が指定
される。
As a result, when the pitches of the determined two tones are shifted upward or downward twice, the DSP 105 of # 2 in FIG. 1 is designated as the output destination of the tone data of the sound source data.

【0063】次に、上記ステップ704における2音の
音程判別で、2音の音程が上または下に3度ずれている
場合は、ステップ707に進む。ステップ707でも、
ステップ705の処理と同様に音源データを生成し、こ
こでは、その音源データの出力フラグを“010”にし
た後、ステップ710の処理に進む。
Next, in the pitch discrimination of the two tones in step 704, if the pitches of the two tones are shifted upward or downward by 3 degrees, the process proceeds to step 707. Also in step 707,
Sound source data is generated in the same manner as the processing of step 705. Here, the output flag of the sound source data is set to "010", and then the processing proceeds to step 710.

【0064】これにより、判別された2音の音程が上ま
たは下に3度ずれている場合は、その音源データの楽音
データの出力先として、図1の#3のDSP105が指定
される。
As a result, when the pitches of the two identified sounds are shifted upward or downward by 3 degrees, the DSP 105 of # 3 in FIG. 1 is designated as the output destination of the musical sound data of the sound source data.

【0065】さらにまた、上記ステップ704における
2音の音程判別で、2音の音程が上または下に4度以上
ずれている場合は、ステップ708に進み、上述したと
同様に音源データを生成し、その出力フラグを“01
1”にした後、ステップ710の処理に進む。
Furthermore, when the pitches of the two tones are discriminated upward or downward by 4 degrees or more in the pitch discrimination of the two tones in step 704, the process proceeds to step 708, and sound source data is generated as described above. , Its output flag is "01
After setting to 1 ″, the process proceeds to step 710.

【0066】これにより、判別された2音の音程が上ま
たは下に4度以上ずれている場合は、その音源データの
楽音データの出力先として、図1の#4のDSP105が
指定される。
As a result, when the pitches of the determined two tones are shifted upward or downward by 4 degrees or more, the DSP 105 of # 4 in FIG. 1 is designated as the output destination of the tone data of the sound source data.

【0067】このように、メロディデータの音高データ
と押鍵による音高データとが比較され、その音程によ
り、押鍵操作された鍵が押鍵指定されている鍵と一致し
ているか或いはどの位離れているかが判別され、その判
別結果に基づいて、押鍵操作されたメロディ音にエフェ
クトを付加するDSP105が選択される。
In this way, the pitch data of the melody data is compared with the pitch data by key depression, and depending on the pitch, it is determined whether or not the depressed key matches the designated key. It is determined whether or not they are separated from each other, and based on the result of the determination, the DSP 105 that adds an effect to the melody sound that is pressed is selected.

【0068】上記ステップ702の判別で、鍵の操作が
なければ何も行わずただちに処置を終了するが、キーO
FF(離鍵操作)されていた場合は、ステップ709に
進む。
If it is determined in step 702 that there is no key operation, nothing is done and the procedure ends immediately.
If FF (key release operation) has been performed, the process proceeds to step 709.

【0069】ステップ709では、離鍵処理を行う。こ
の処理では、離鍵操作に対応して波形メモリ104から
波形データを読み出し、楽音(メロディ音)の消音を指
示するための音源データを生成する。
In step 709, key release processing is performed. In this processing, waveform data is read from the waveform memory 104 in response to a key release operation, and sound source data for instructing the mute of a musical sound (melody sound) is generated.

【0070】これにより、図3に示すフォーマットの音
源データにおいて、消音すべき発音チャネルがセットさ
れると共に、発音フラグが消音を示す値“0”にセット
される。
As a result, in the sound source data of the format shown in FIG. 3, the sounding channel to be muted is set and the sounding flag is set to the value "0" indicating muting.

【0071】次に、ステップ710で、全鍵処理、すな
わち鍵盤101の全部の鍵について鍵操作の判別及びそ
の判別に基づく処理が終了したか否かを判別する。そし
て、まだ全鍵について処理を終了していないときは、前
記ステップ702の判別処理に戻る。
Next, in step 710, it is determined whether or not all key processing, that is, the determination of the key operation for all the keys of the keyboard 101 and the processing based on the determination have been completed. Then, if the processing has not been completed for all keys, the process returns to the determination processing of step 702.

【0072】このように、ステップ703〜709の各
処理が、ユーザによって押鍵された鍵盤の全ての鍵に対
して実行され、ステップ710で、鍵盤の全ての鍵に対
する処理の終了が判別され、続くステップ711で、上
述したステップ703〜709の処理により生成した音
源データが音源103にセットされる。
As described above, each processing of steps 703 to 709 is executed for all the keys of the keyboard pressed by the user, and in step 710, it is judged that the processing for all the keys of the keyboard is completed. In the following step 711, the sound source data generated by the processing in steps 703 to 709 described above is set in the sound source 103.

【0073】これにより、鍵盤の押鍵操作に対応する音
源データが、図1の音源103に供給される。以上の動
作により、CPU102から音源103に出力指示され
る楽音が、現在判別されているメロディデータの音高デ
ータと押鍵による音高データ間の音程により、出力フラ
グが“000”、“001”、“010”又は“01
1”にセットされ、この結果、押鍵操作に基づいて音源
103で生成される楽音のうち、メロディデータの音高
データと一致する楽音に対しては、#1のDSP105に
おいてエフェクト処理が施される。そして、一致しない
楽音に対しては、その音程の開き具合に応じて開きの小
さいほうから、順次#2のDSP105、#3のDSP10
5、#4のDSP105においてエフェクト処理が施され
る。その結果、押鍵操作の正誤の程度によって、そのメ
ロディ音に付加されるエフェクトの効果が異なるように
なる。
As a result, the sound source data corresponding to the key depression operation on the keyboard is supplied to the sound source 103 in FIG. By the above operation, the musical tone output from the CPU 102 to the sound source 103 has output flags of “000” and “001” depending on the pitch between the pitch data of the currently determined melody data and the pitch data by key depression. , "010" or "01"
1 ". As a result, of the musical tones generated by the tone generator 103 based on the key depression operation, musical tones that match the pitch data of the melody data are subjected to effect processing in the DSP 105 of # 1. For musical tones that do not match, the DSP 105 of # 2 and the DSP 10 of # 3 are sequentially opened from the smallest opening according to the opening degree of the pitch.
Effect processing is performed in the DSP 105 of # 5 and # 4. As a result, the effect of the effect added to the melody sound varies depending on the correctness of the key depression operation.

【0074】続いて、図8に示すタイマインタラプト処
理について説明する。本実施例では、図1に示すCPU
102は、上述した図7の押鍵時の処理フローチャート
に示すように、ステップ701〜711の一連の処理を
繰り返し行っている。
Next, the timer interrupt processing shown in FIG. 8 will be described. In this embodiment, the CPU shown in FIG.
As shown in the above-mentioned processing flow chart at the time of the key depression of FIG. 7, 102 repeats a series of processing of steps 701-711.

【0075】そして伴奏音の音源処理、及びメロディガ
イド111の点灯処理は、時間割り込み(タイマインタ
ラプト)処理で行っている。具体的には、CPU102
は、ある一定時間毎に、図7の押鍵時の処理フローチャ
ートのように実行しているプログラムに割り込みを掛け
て以下に説明する処理を実行する。
The sound source processing of the accompaniment sound and the lighting processing of the melody guide 111 are performed by time interrupt (timer interrupt) processing. Specifically, the CPU 102
Performs a process described below by interrupting the program being executed as shown in the process flow chart at the time of key depression in FIG. 7 at regular intervals.

【0076】すなわち、CPU102は、まず、ステッ
プ801において、図2の1/96音符カウンタ201
をデクリメントする。次にステップ802において、1
/96音符カウンタ201の計時時間が経過したか否か
判別する。
That is, the CPU 102 first, in step 801, the 1/96 note counter 201 of FIG.
Decrement. Next, in step 802, 1
It is determined whether or not the time counted by the / 96 note counter 201 has elapsed.

【0077】この処理は、1/96音符カウンタ201
の内容を検出し、その値が「0」となっているか否かを
判別する処理である。この処理で、1/96音符カウン
タ201の値が「0」でない、すなわち、まだ1/96
音符カウンタ201の計時時間が経過していなければ、
ただちに処理を終わる、ということを時間割り込み毎に
繰り返し、上記ステップ802で、1/96音符カウン
タ201の値が「0」となったことを検出してステップ
803に進む。なお、値が「0」となった1/96音符
カウンタ201には、1/96音符分の時間データを再
設定する。
This processing is performed by the 1/96 note counter 201.
Is a process of detecting the contents of and determining whether or not the value is "0". By this processing, the value of the 1/96 note counter 201 is not "0", that is, it is still 1/96.
If the time count of the note counter 201 has not elapsed,
Immediately ending the process is repeated for each time interrupt, and in step 802, it is detected that the value of the 1/96 note counter 201 becomes “0”, and the process proceeds to step 803. The time data for 1/96 note is reset in the 1/96 note counter 201 whose value becomes “0”.

【0078】これにより、1/96音符分の時間が経過
する毎に、以下のステップ803〜807の処理が実行
される。すなわち、ステップ803では、図1の自動伴
奏メモリ110から、伴奏データ及びメロディデータを
読み出す。
As a result, the processing of the following steps 803 to 807 is executed every time the time of 1/96 note has elapsed. That is, in step 803, the accompaniment data and the melody data are read from the automatic accompaniment memory 110 of FIG.

【0079】続いて、ステップ804では、上記読み出
した伴奏データに基づいて図3に示すフォーマットの音
源データを生成する。この音源データの生成処理は、図
7の押鍵時の処理におけるステップ705〜708にお
ける処理と同様である。ただし、ここでは、音源データ
の出力フラグを“100”に設定する。
Subsequently, in step 804, sound source data in the format shown in FIG. 3 is generated based on the read accompaniment data. This sound source data generation processing is the same as the processing in steps 705 to 708 in the processing when the key is pressed in FIG. 7. However, here, the output flag of the sound source data is set to "100".

【0080】これにより、伴奏音の音源データの楽音デ
ータの出力先として、図1の#5のDSP105が指定さ
れる。そして、ステップ805で、上記自動伴奏データ
により生成した音源データを図1の音源103にセット
する。
As a result, the DSP 105 of # 5 in FIG. 1 is designated as the output destination of the musical sound data of the accompaniment sound source data. Then, in step 805, the sound source data generated by the automatic accompaniment data is set in the sound source 103 of FIG.

【0081】これにより、伴奏音の楽音データは、音源
データの出力フラグが“100”であることにより音源
103から#5のDSP105に出力され、伴奏音の楽音
には#5のDSP105によるエフェクトが付加される。
As a result, the musical tone data of the accompaniment sound is output from the sound source 103 to the DSP 105 of # 5 because the output flag of the sound source data is "100", and the effect of the DSP 105 of # 5 is applied to the musical tone of the accompaniment sound. Is added.

【0082】次に、上記ステップ803で自動伴奏デー
タと共に読み出したメロディデータの音高データを図2
の押鍵指定音バッファ202に格納して保存する。これ
により、前述した図7の押鍵時の処理におけるステップ
703において、押鍵操作による音高データとメロディ
データの音高データと比較することができるようにな
る。
Next, the pitch data of the melody data read together with the automatic accompaniment data in step 803 is shown in FIG.
It is stored in the key-depression specifying sound buffer 202 and saved. As a result, in step 703 in the above-described key-pressing process of FIG. 7, it becomes possible to compare the pitch data of the key-pressing operation with the pitch data of the melody data.

【0083】続いて、ステップ807で、上記メロディ
データの音高に対応する図1のメロディガイド111の
LEDを点灯させる。これにより、押鍵すべき鍵が指定
される。
Then, in step 807, the LED of the melody guide 111 of FIG. 1 corresponding to the pitch of the melody data is turned on. As a result, the key to be pressed is designated.

【0084】このように、CPU102が行う時間割り
込み動作により、音源103に供給される自動伴奏音の
音源データが生成されると共に、メロディデータに基づ
くメロディガイド111による押鍵指定がなされ、これ
に従ってユーザが行う押鍵操作に基づいて、前述した図
7の押鍵時の処理が行われる。その押鍵時の処理及び上
述した時間割込処理において生成される音源データに基
づいて楽音データを処理する図1の音源103の動作例
を、図9の動作タイミングチャートによって説明する。
As described above, the time interruption operation performed by the CPU 102 generates the sound source data of the automatic accompaniment sound to be supplied to the sound source 103, and the melody guide 111 specifies the key depression based on the melody data. Based on the key pressing operation performed by the above, the above-described processing at the time of pressing the key is performed. An operation example of the tone generator 103 of FIG. 1 that processes tone data based on tone generator data generated in the key pressing process and the above-described time interrupt process will be described with reference to an operation timing chart of FIG.

【0085】図9の例では、発音チャネルの1チャネ
ル、2チャネル、・・・では出力フラグが“000”、
3チャネル、・・・、31チャネルでは出力フラグが
“001”、・・・、30チャネルでは出力フラグが
“010”、4チャネル、・・・では出力フラグが“0
11”、及び5チャネル、6チャネル、・・・、32チ
ャネルでは出力フラグが“100”となっている。
In the example of FIG. 9, the output flag is "000" for the sound generation channels 1, 2, ...
The output flag is “001” for 3 channels, ..., 31 channels, the output flag is “010” for 30 channels, the output flag is “0” for 4 channels ,.
The output flag is "100" for channels 11 ", 5 channels, 6 channels, ..., 32 channels.

【0086】従って、同図に示すように、#1のアンド回
路608(図5参照、以下同様)からは、1チャネル、
2チャネル、・・・の各発音チャネルの時分割タイミン
グで#1加算器ラッチクロックALCK1が出力され、#2
のアンド回路608からは、3チャネル、・・・、31
チャネルの各発音チャネルの時分割タイミングで#2加算
器ラッチクロックALCK2が出力され、#3のアンド回
路608からは、・・・、30チャネルの時分割タイミ
ングで#3加算器ラッチクロックALCK3が出力され、
#4のアンド回路608からは、4チャネル、・・・の時
分割タイミングで#4加算器ラッチクロックALCK4が
出力され、そして、#5のアンド回路608からは、5チ
ャネル、6チャネル、・・・、32チャネルの時分割タ
イミングで#5加算器ラッチクロックALCK5が出力さ
れることになる。
Therefore, as shown in the figure, from the AND circuit 608 of # 1 (see FIG. 5, the same applies hereinafter), one channel,
# 1 adder latch clock ALCK1 is output at the time division timing of each tone generation channel of 2 channels ,.
From the AND circuit 608 of 3 channels, ..., 31
The # 2 adder latch clock ALCK2 is output at the time division timing of each sound generation channel of the channel, and the # 3 AND circuit 608 outputs the # 3 adder latch clock ALCK3 at the time division timing of the 30th channel. Is
The # 4 AND circuit 608 outputs the # 4 adder latch clock ALCK4 at the time division timing of 4 channels, ... And the # 5 AND circuit 608 outputs 5 channels, 6 channels, ... -The # 5 adder latch clock ALCK5 is output at the time division timing of 32 channels.

【0087】従って、図9に示すように、#1の楽音デー
タ加算器511(図4及び図6参照、以下同様)から
は、1チャネルの楽音データD1、2チャネルの楽音デ
ータD2、・・・、が累算された楽音データD1+D2
+・・・が出力され、#2の楽音データ加算器511から
は、3チャネルの楽音データD3、・・・、31チャネ
ルの楽音データD31が累算された楽音データD3+・
・・D31が出力され、#3の楽音データ加算器511か
らは、・・・、30チャネルの楽音データD30が累算
された楽音データ・・・D30が出力され、#4の楽音デ
ータ加算器511からは、4チャネルの楽音データD
4、・・・が累算された楽音データD4+・・・が出力
され、そして、#5の楽音データ加算器511からは、5
チャネルの楽音データD5、6チャネルの楽音データD
6、・・・、32チャネルの楽音データD32が累算さ
れた楽音データD5+D6+・・・+D32が出力され
る。
Therefore, as shown in FIG. 9, from the tone data adder 511 of # 1 (see FIGS. 4 and 6, the same applies hereinafter), 1-channel tone data D1, 2-channel tone data D2, ...・ Music data D1 + D2 in which and are accumulated
Is output, and the tone data adder 511 of # 2 accumulates the tone data D3 of 3 channels, ...
..D31 is output, and from the tone data adder 511 of # 3, ..., Tone data obtained by accumulating the tone data D30 of 30 channels ... D30 is output, and the tone data adder of # 4 is output. From 511, 4-channel tone data D
The musical tone data D4 +, which is obtained by accumulating 4, ..., Is output, and 5 is output from the musical tone data adder 511 of # 5.
Channel tone data D5, Channel 6 tone data D
Music data D5 + D6 + ... + D32 obtained by accumulating the music data D32 of 6, ..., 32 channels are output.

【0088】上記#1〜#5の各加算器511の出力は、3
2チャネル信号(=OLCK)でクリアされる。最後
に、図10は、上述した音源103により累算されて出
力される楽音データに所定のエフェクトを付加する図1
の#1〜#5のDSP105の全体的な動作を示す動作フロ
ーチャートである。DSP105は、ここに示す処理
を、その内部の特には図示しないプログラムメモリに記
憶されたマイクロプログラムに基づいて実行する。
The output of each adder 511 of # 1 to # 5 is 3
It is cleared by a 2-channel signal (= OLCK). Lastly, FIG. 10 is a diagram in which a predetermined effect is added to the musical sound data accumulated and output by the sound source 103 described above.
3 is an operation flowchart showing the overall operation of the DSPs # 1 to # 5. The DSP 105 executes the processing shown here based on a microprogram stored in a program memory therein (not shown).

【0089】まず、ステップS901で、図1の音源1
03から楽音データを受け取る。続いて、ステップS9
02で予め設定されているエフェクト処理のサブルーチ
ンを呼び出す。例えば、リバーブ効果付加処理ならばス
テップS904を、コーラス効果付加処理ならばステッ
プS905を、あるいはディレイ効果付加処理ならばス
テップS906をそれぞれサブルーチンコールする。
First, in step S901, the sound source 1 of FIG.
Tone data is received from 03. Then, step S9
In 02, a preset effect processing subroutine is called. For example, a subroutine call is made to step S904 for reverb effect addition processing, step S905 for chorus effect addition processing, or step S906 for delay effect addition processing.

【0090】各エフェクトサブルーチンの処理の後、ス
テップS903で、エフェクト処理した楽音データを図
1のミキサ回路106に出力する。以上説明した実施例
により、例えば、指示されるメロディ音に応じた正しい
楽音が入力される#1のDSP105に効果の高いエフェ
クトを割り当て、誤りの程度の小さな楽音が入力される
#2のDSP105には次に効果の高いエフェクトを割り
当て、順次エフェクトの効果が小さくなるように変化さ
せ、誤りの程度の大きな楽音が入力される#4のDSP1
05には効果の薄いエフェクトを割り当てておけば(或
いはエフェクトをかけないように割り当てておけば)、
押鍵操作の誤りの程度によってメロディ音にかかったエ
フェクトが変化し、正しいメロディ音ほどエフェクトが
よくかかって面白味が増加し、興味をもってメロディ演
奏の練習を継続することができるようになる。
After the processing of each effect subroutine, in step S903, the tone data subjected to the effect processing is output to the mixer circuit 106 of FIG. According to the embodiment described above, for example, a highly effective effect is assigned to the DSP 105 of # 1 into which a correct musical tone corresponding to the instructed melody tone is input, and a musical tone with a small error level is input.
The next most effective effect is assigned to the DSP 105 of # 2, the effect of the effect is changed so that the effect becomes smaller in sequence, and a musical sound with a large error level is input.
If you assign an effect with a weak effect to 05 (or assign it so that no effect is applied),
The effect applied to the melody sound changes depending on the degree of a key depression error, and the more correct the melody sound is, the more the effect is applied and the more interesting it is, so that it becomes possible to continue practicing the melody performance with interest.

【0091】なお、伴奏音の楽音が入力される#5のDS
P105には任意の効果を有するエフェクトを割り当て
るようにしてよい。また、ユーザの演奏技術の上達の程
度によっては、単にメロディ音の演奏だけではなく、伴
奏コードも押鍵操作して演奏することも十分考えられ
る。
Note that the DS of # 5 into which the accompaniment tone is input
An effect having an arbitrary effect may be assigned to P105. Depending on the user's improvement of the playing technique, it may be considered that not only the melody sound is played but also the accompaniment chord is operated by depressing the key.

【0092】そのような場合には、上述したメロディの
押鍵操作に対する正誤判定のみではなく、伴奏コードの
押鍵操作に対する正誤も合わせて判定して、その2つの
判定結果に応じたエフェクトを、押鍵操作されたメロデ
ィ又は伴奏コードの楽音にそれぞれ付加するようにして
もよい。
In such a case, not only the above-mentioned correctness / incorrectness judgment with respect to the melody key-pressing operation but also the correctness / correspondence with respect to the accompaniment chord key-pressing operation is judged together, and the effect corresponding to the two judgment results is given. It may be added to the musical tone of the melody or the accompaniment chord that is pressed.

【0093】その場合も、構成は図1〜図6と同様にす
る。ただし、鍵盤101には、特には図示しない例えば
コード入力専用の鍵域を設け、CPU102内には、図
2のレジスタの他、これも特には図示しないコード表を
記憶するメモリ、そのコード表から読み出したコードの
種類と根音(ルート)を一時的に記憶するレジスタ、及
びキー入力されたコードの種類と根音を一時的に記憶す
るキーコードメモリを設ける。そして、先ず図1のCP
U102が、コード入力専用の鍵域において鍵を走査す
る。次に、コード入力専用の鍵域で押鍵された複数の鍵
に対応する音が、CPU102内のメモリに記憶されて
いるコード表に登録されているいずれかのコードの各構
成音と一致するか否かを判定する。この判定は、コード
表の検索により得られるコードの種類と根音をCPU1
02内のレジスタに記憶し、押鍵されたキーコードをC
PU102内のコードキーメモリにストアしたのち、双
方のコードデータを比較する。そして、正誤の程度を算
出し、その算出された正誤の程度によって、図3のフォ
ーマットの音源データの出力フラグにフラグをセットす
るようにする。また、#5のDSP105を伴奏音専用と
せず、#1〜#5のDSP105を、押鍵操作によるメロデ
ィ音及び伴奏音(コード音)に共通に使用するようにす
る。そして、#1のDSP105を押鍵操作の正しいメロ
ディ音及び伴奏音に、#2〜#5のDSP105を、押鍵操
作の誤ったメロディ音及び伴奏音に誤りの程度に応じて
割り当てるようにするとよい。
Also in this case, the structure is the same as that shown in FIGS. However, the keyboard 101 is provided with, for example, a key area exclusively for inputting codes, which is not shown in the figure. In the CPU 102, in addition to the register shown in FIG. A register for temporarily storing the type and root note of the read chord and a key code memory for temporarily storing the type and root note of the chord input by the key are provided. And first, the CP of FIG.
U102 scans the key in the key area dedicated to code entry. Next, the sounds corresponding to the plurality of keys pressed in the key area dedicated to chord input match the respective constituent sounds of any chord registered in the chord table stored in the memory of the CPU 102. Or not. In this judgment, the CPU 1 determines the type and root note of the chord obtained by searching the chord table.
It is stored in the register in 02 and the key code pressed is C
After storing in the code key memory in PU102, both code data are compared. Then, the degree of correctness is calculated, and the flag is set in the output flag of the sound source data in the format of FIG. 3 according to the calculated degree of correctness. Further, the DSP 105 of # 5 is not dedicated to the accompaniment sound, but the DSPs 105 of # 1 to # 5 are commonly used for the melody sound and the accompaniment sound (chord sound) by the key depression operation. Then, the DSP 105 of # 1 is assigned to the correct melody sound and accompaniment sound of the key pressing operation, and the DSPs of # 2 to # 5 are assigned to the melody sound and the accompaniment sound of the wrong key pressing operation according to the degree of error. Good.

【0094】このようにすれば、コード演奏も、メロデ
ィ演奏と同様に興味をもって練習を継続していくことが
できる。ところで、一般に初心の間は、点灯されるLE
Dに追随しながら押鍵操作するのみで、他の演奏技術を
競う余裕はないものであるが、上達するに従い、メロデ
ィに対して正しいタイミングで押鍵操作することにも心
を配ることが大切なことになってくる。
In this way, the chord performance can be practiced with interest as in the melody performance. By the way, in general, during the beginning
Although it is not possible to compete with other playing techniques by only pressing the keys while following D, it is important to keep in mind that the keys will be pressed at the correct timing for the melody as you improve. It's going to happen.

【0095】こような場合に、その押鍵操作が正しいタ
イミングで行われたか否かを判別して、その正誤の程度
によって、発音する楽音に付加するエフェクトを変更す
ることもできる。これを第2の実施例として、以下に説
明する。
In such a case, it is possible to determine whether or not the key depression operation has been performed at the correct timing, and change the effect added to the musical tone to be sounded, depending on the degree of correctness. This will be described below as a second embodiment.

【0096】図11に、第2実施例の全体構成を示す。
第2実施例においては、上述した第1実施例に対してC
PU102内部のレジスタの構成が異なるのみで、その
他の構成は第1実施例と同一である。したがって、第2
実施例の各構成部分には、第1実施例の各構成部分の番
号と同一の番号を付与して示す。また、したがって、音
源103の構成も、図4に示したものと、その音源10
3の出力制御回路512の構成も、図5に示したもの
と、そして音源103の楽音加算器511の構成も、図
6に示したものと同一である。
FIG. 11 shows the overall construction of the second embodiment.
In the second embodiment, C is added to the first embodiment described above.
Only the configuration of the register inside the PU 102 is different, and the other configurations are the same as those in the first embodiment. Therefore, the second
The same numbers as the numbers of the respective components of the first embodiment are given to the respective components of the embodiment. Therefore, the configuration of the sound source 103 is the same as that shown in FIG.
The configuration of the output control circuit 512 of No. 3 is the same as that shown in FIG. 5, and the configuration of the tone adder 511 of the sound source 103 is the same as that shown in FIG.

【0097】また、図11のCPU102により作成さ
れる音源データのフォーマットも図3に示したものと同
一である。図11のCPU102は、読み出したメロデ
ィデータの音高データと押鍵操作による音高データが一
致したとき、その押鍵操作のタイミング(以下、単に押
鍵タイミングと称する)が、上記読み出したメロディデ
ータに基づく押鍵指定タイミングに対して、一致したと
き図3に示すフォーマットの音源データの出力フラグを
“000”、また、押鍵タイミングが押鍵指定タイミン
グに対して1/32音符に対応する演奏時間(以下、単
に1/32音符分時間と称する)以内であれば出力フラ
グを“001”、そして、押鍵タイミングが押鍵指定タ
イミングに対して1/32音符分時間を超過していれば
出力フラグを“010”に設定する。一方、読み出した
メロディデータの音高データと押鍵操作による音高デー
タが不一致のときは、その押鍵タイミングがどのようで
あっても、全て出力フラグを“011”に設定する。ま
た、自動伴奏音については、出力フラグを“100”に
設定する。
The format of the sound source data created by the CPU 102 of FIG. 11 is also the same as that shown in FIG. When the pitch data of the read melody data matches the pitch data of the key pressing operation, the CPU 102 of FIG. 11 indicates that the timing of the key pressing operation (hereinafter, simply referred to as key pressing timing) is the read melody data. When the key press specification timing based on is matched, the output flag of the tone generator data in the format shown in FIG. 3 is set to "000", and the key press timing corresponds to 1/32 note with respect to the key press specification timing. If it is within the time (hereinafter simply referred to as 1/32 note time), the output flag is set to "001", and if the key pressing timing exceeds 1/32 note time with respect to the key pressing designated timing. The output flag is set to "010". On the other hand, when the pitch data of the read melody data and the pitch data by the key pressing operation do not match, the output flags are all set to "011" regardless of the key pressing timing. For the automatic accompaniment sound, the output flag is set to "100".

【0098】この設定された出力フラグにしたがって、
音源103は、メロディデータの音高に対応して正しく
押鍵操作されたメロディ音の楽音データを、その押鍵タ
イミングも正しい場合は#1のDSP105に出力し、押
鍵タイミングの遅速が1/32音符分時間以内であれば
#2のDSP105に出力し、押鍵タイミングの遅速が1
/32音符分時間を超過していれば#3のDSP105に
出力する。一方、メロディデータの音高に対応する正し
い鍵が押鍵操作されなかった場合は、その楽音データ
を、すべて#4のDSP105に出力する。そして、自動
伴奏音の楽音データを#5のDSP105に出力する。
According to the set output flag,
The sound source 103 outputs the musical tone data of the melody sound that is pressed correctly in correspondence with the pitch of the melody data to the DSP 105 of # 1 when the key pressing timing is also correct, and the delay of key pressing timing is 1 / Within 32 note time
Outputs to the # 2 DSP 105, and the key press delay is 1
If it exceeds / 32 note time, it is output to the DSP 105 of # 3. On the other hand, if the correct key corresponding to the pitch of the melody data has not been depressed, all the tone data is output to the DSP 105 of # 4. Then, the musical tone data of the automatic accompaniment tone is output to the DSP 105 of # 5.

【0099】この結果、メロディデータの音高に対応し
て正しい鍵が押鍵され、その押鍵タイミングも正しいメ
ロディ音には、#1のDSP105によりエフェクトが付
加され、押鍵タイミングが1/32音符分時間以内で早
過ぎた又は遅れたメロディ音には、#2のDSP105に
よりエフェクトが付加され、そして、押鍵タイミングが
1/32音符分時間を超過して早過ぎた又は遅れたメロ
ディ音には、#3のDSP105によりエフェクトが付加
される。一方、メロディデータの音高に対応する正しい
鍵が押鍵されなかったメロディ音には、すべて#4のDS
P105によりエフェクトが付加される。そして、自動
伴奏音の楽音データには#5のDSP105によりエフェ
クトが付加される。
As a result, the correct key is pressed corresponding to the pitch of the melody data, and the effect is added by the DSP 105 of # 1 to the melody sound with the correct key pressing timing. An effect is added by the DSP 105 of # 2 to the melody sound that is too early or too late within the note time, and the melody sound is too early or too late when the key depression timing exceeds 1/32 note time. , The effect is added by the DSP 105 of # 3. On the other hand, for melody sounds in which the correct key corresponding to the pitch of the melody data was not pressed, the DS
An effect is added by P105. Then, an effect is added to the musical tone data of the automatic accompaniment tone by the DSP 105 of # 5.

【0100】次に、図12に、CPU102内部のレジ
スタ群(カウンタを含む)を示す。同図に示すように、
CPU102は、その内部に第1実施例の1/96音符
カウンタ201と同一機能を有する1/96音符カウン
タ121、後述する自動伴奏メロディデータの音長デー
タを記憶する音長カウンタ122、その音長カウンタ1
22に記憶される音長データの1/2の値を記憶する1
/2音長レジスタ128、押鍵タイミングまでの時間を
カウントダウンするカウンタ123、押鍵指定がなされ
てから所定時間を計時する押鍵指定タイミングカウンタ
124、次のメロディデータの音高データを記憶する次
回音階No.(番号)レジスタ125、現在のメロディ
データの音高データを記憶する現在音階No.レジスタ
126、及び押鍵指定するための音高データを記憶する
押鍵指定音階No.レジスタ127を有している。
Next, FIG. 12 shows a register group (including a counter) inside the CPU 102. As shown in the figure,
The CPU 102 internally has a 1/96 note counter 121 having the same function as the 1/96 note counter 201 of the first embodiment, a note length counter 122 for storing note length data of automatic accompaniment melody data, which will be described later, and its note length. Counter 1
Storing the half value of the tone length data stored in 22 1
1/2 tone length register 128, a counter 123 that counts down the time until key depression timing, a key depression designation timing counter 124 that counts a predetermined time after key depression is designated, and a pitch data of the next melody data is stored next time. Scale No. (Number) register 125, the current scale No. for storing the pitch data of the current melody data. The register 126 and the key-pushing scale No. which stores the pitch data for key-pushing designation. It has a register 127.

【0101】さらに、図13(b),(c) に、自動伴奏メモ
リ110に記憶される自動伴奏データのメロディ部分及
び伴奏部分のデータ構成(フォーマット)の一例を、例
えば同図(a) に示す楽譜に対応して示す。
13 (b) and 13 (c), an example of the data structure (format) of the melody part and the accompaniment part of the automatic accompaniment data stored in the automatic accompaniment memory 110 is shown in FIG. 13 (a), for example. Corresponding to the score shown.

【0102】同図(b) に示すように自動伴奏のメロディ
データは、同図(a) に示す楽譜に対応する音高データ
「C4」、「D4」、「E4」、「F4」、「四分休止
符」、・・・とそれらの音高の音長データ「24」、
「12」、「12」、「24」、「24」、・・・とか
らなり、図1の自動伴奏データメモリ110に、アドレ
ス「0000」、「0001」、「0002」・・・の
順に格納されている。なお、上記の音長データは1/9
6音符の数を示している。例えば同図(b) のアドレス
「0000」のメロディデータにおいて、音高データ
「C4」は、同図(a) の楽譜の先頭の4分音符で表さ
れ、4分音符は1/96音符24個分の音長であるの
で、アドレス「0000」のメロディデータの音高「C
4」の音長データは「24」となっている。
As shown in FIG. 10B, the melody data of the automatic accompaniment is pitch data “C4”, “D4”, “E4”, “F4”, “P4” corresponding to the musical score shown in FIG. "Quarter rest", ... and their pitch length data "24",
.., "12", "12", "24", "24", ..., In the automatic accompaniment data memory 110 of FIG. 1, addresses "0000", "0001", "0002" ... It is stored. The above note length data is 1/9
The number of 6 notes is shown. For example, in the melody data at the address "0000" in the same figure (b), the pitch data "C4" is represented by the first quarter note of the musical score in the same figure (a), and the quarter note is a 1/96 note 24 Since the note length is the number of pieces, the pitch "C" of the melody data of the address "0000"
The tone length data of "4" is "24".

【0103】CPU102は、このようなメロディデー
タを音高データ、音長データ、次の音高データ、そして
その音長データと順次読み出して、その読み出したデー
タを図12に示す所定のレジスタやカウンタに設定し、
その設定したデータに基づいてメロディガイドを点灯又
は点滅させ、また、押鍵タイミングを計測するための計
時を開始し、その計時に基づいて後述する押鍵タイミン
グの正誤の判定を行う。
The CPU 102 sequentially reads out such melody data as pitch data, pitch length data, next pitch data, and the pitch length data, and the read data is stored in a predetermined register or counter shown in FIG. Set to
The melody guide is turned on or blinked based on the set data, and timekeeping for measuring the key depression timing is started, and whether the key depression timing is correct or not is determined based on the timing.

【0104】また、上記のメロディデータに対応する自
動伴奏の伴奏データは、イントロ部データ、フィルイン
部データ部、エンディング部データ等からなり、同図
(c) に示すように、アドレス「0100」、「010
1」、「0102」、・・・の順に格納され、そのイン
トロ部データの先頭には、イントロ長データ「192」
が格納されている。
The accompaniment data of the automatic accompaniment corresponding to the above melody data consists of intro part data, fill-in part data part, ending part data, etc.
As shown in (c), addresses "0100", "010"
1 ”,“ 0102 ”, ... Are stored in this order, and the intro length data“ 192 ”is stored at the beginning of the intro part data.
Is stored.

【0105】次に、上述した構成の第2実施例における
処理動作について、図14乃至図16のフローチャート
を用いて説明する。図11に示すCPU102は、電源
がオンされると、まず図14のフローチャートに示すリ
ズムスタート時の処理を実行する。
Next, the processing operation in the second embodiment having the above-mentioned structure will be described with reference to the flow charts of FIGS. 14 to 16. When the power is turned on, the CPU 102 shown in FIG. 11 first executes the rhythm start process shown in the flowchart of FIG.

【0106】同図に示すリズムスタート時の処理では、
ステップ1401で、図11の鍵盤101に設けられた
リズムスタートキーが押された(入力操作された)か否
か判別する。
In the process at the rhythm start shown in FIG.
In step 1401, it is determined whether or not the rhythm start key provided on the keyboard 101 of FIG. 11 has been pressed (input operation has been performed).

【0107】そして、リズムスタートキーが押されてい
れば、ステップ1402で、自動伴奏データメモリ11
0からメロディデータの音高データを読み出す。これに
より、例えば図13(b) に示すメロディデータの先頭ア
ドレス「0000」から、音高データ「C4」が読み出
される。
If the rhythm start key is pressed, at step 1402, the automatic accompaniment data memory 11
The pitch data of the melody data is read from 0. As a result, the pitch data "C4" is read from the start address "0000" of the melody data shown in FIG. 13 (b), for example.

【0108】続いてステップ1403で、その読み出し
たメロディデータの音高データを次回音階No.レジス
タ125にセットする。これにより、図17に示す自動
伴奏のイントロ演奏の終了タイミングt0で押鍵を指示
するための、メロディデータの先頭音高データ、例えば
「C4」が設定される。
Subsequently, in step 1403, the pitch data of the read melody data is set to the next scale No. Set in register 125. As a result, the leading pitch data of the melody data, for example, "C4", for instructing the key depression at the end timing t0 of the automatic accompaniment intro performance shown in FIG. 17, is set.

【0109】次に、ステップ1404で、次回音階N
o.レジスタ125にセットされた音高データに対応す
るメロディガイド111のLEDを点滅する。これによ
り、図17の自動伴奏のイントロ演奏の終了タイミング
t0で押鍵すべき最初の鍵、例えば「C4」の鍵に対応
するLEDが点滅する。
Next, in step 1404, the next scale N
o. The LED of the melody guide 111 corresponding to the pitch data set in the register 125 blinks. As a result, the LED corresponding to the first key to be pressed, for example, the "C4" key, blinks at the end timing t0 of the automatic accompaniment intro performance of FIG.

【0110】続いて、ステップ1405では、自動伴奏
の伴奏データを読み出し、イントロ長データを音長カウ
ンタ122及び押鍵指定タイミングレジスタ124にセ
ットする。これにより、図17に示す時刻t0までイン
トロの伴奏を行うための演奏時間データ、すなわち伴奏
データのイントロ長データ、例えば図13(c) の「19
2」が設定される。
Subsequently, in step 1405, the accompaniment data of the automatic accompaniment is read out, and the intro length data is set in the note length counter 122 and the key depression timing register 124. Thus, the performance time data for performing the accompaniment of the intro until the time t0 shown in FIG. 17, that is, the intro length data of the accompaniment data, for example, “19” in FIG. 13 (c).
2 ”is set.

【0111】上記に続いて、ステップ1406では、1
/2音長レジスタ128に「FFFF」をセットする。
この処理は、後述するタイマインタラプト処理におい
て、イントロ演奏中に、イントロ時間が1/2経過した
時点で押鍵タイミングカウンタ123がリセットされて
しまうことのないようにするための処理である。
Following the above, in step 1406, 1
"FFFF" is set in the / 2 tone length register 128.
This process is a process for preventing the key depression timing counter 123 from being reset at the time when the intro time has passed 1/2 during the intro performance in the timer interrupt process described later.

【0112】次に、ステップ1407で、次回音階N
o.レジスタ125の内容を押鍵指定音階No.レジス
タ127にセットする。この処理は、後述する押鍵時の
処理において、最初に押鍵された演奏メロディの音高デ
ータが正しいか否か比較判定するための処理である。
Next, in step 1407, the next scale N
o. The contents of the register 125 are changed to the key-depression designated scale No. It is set in the register 127. This process is a process for comparing and determining whether or not the pitch data of the performance melody that is pressed first is correct in the key pressing process described later.

【0113】そして、ステップ1408では、押鍵タイ
ミングカウンタ123をリセットして処理を終了する。
これにより、イントロ終了時において最初に押鍵する押
鍵時刻までの経過時間の計時が押鍵タイミングカウンタ
123により開始され、後述する押鍵時の処理におい
て、正しい押鍵タイミング時刻と比較判定がなされる。
なお、特には図示しないが、上記ステップ1408で
は、図12に示す1/96音符カウンタ121に1/9
6音符分の時間データを設定する処理も行っている。
Then, in step 1408, the key depression timing counter 123 is reset and the process is terminated.
As a result, at the end of the intro, the key depression timing counter 123 starts counting the elapsed time until the first key depression time, and in the key depression process described later, a correct key depression timing time and comparison determination are made. It
Although not particularly shown, in the step 1408, the 1/96 note counter 121 shown in FIG.
A process of setting time data for 6 notes is also performed.

【0114】また、上記ステップ1401でリズムスタ
ートキーが押されていない場合は直ちに処理を終了す
る。この実施例では、上述のリズムスタート時の処理が
終了すると、次には第1実施例の場合と同様に、後述す
る図16の押鍵時の処理フローチャートに示すステップ
1601〜1612の一連の処理を、ある一定時間毎に
繰り返し行う。そして、その押鍵時の処理フローチャー
トのように実行しているプログラムに割り込みを掛ける
タイマインタラプト処理により、リズム演奏中における
伴奏音の音源処理、及びメロディガイド111の点灯処
理、タイミング時間の計時等の処理を行っている。
If the rhythm start key is not pressed in step 1401, the process is immediately terminated. In this embodiment, when the above-described processing at the time of rhythm start is completed, next, as in the case of the first embodiment, a series of processing of steps 1601 to 1612 shown in the processing flow chart at the time of key pressing of FIG. 16 described later. Is repeatedly performed at regular intervals. Then, by a timer interrupt process that interrupts the program being executed as in the process flow chart at the time of key depression, the accompaniment sound source process during the rhythm performance, the melody guide 111 lighting process, the timing time measurement, etc. It is processing.

【0115】次に、そのタイマインタラプト処理につい
て図15のフローチャートを用いて説明する。CPU1
02は、まず、ステップ1501において、1/96音
符カウンタ121をデクリメントする。
Next, the timer interrupt process will be described with reference to the flowchart of FIG. CPU1
02 first decrements the 1/96 note counter 121 in step 1501.

【0116】次にステップ1502において、1/96
音符カウンタ121の計時時間が経過したか否か判別す
る。この処理も第1実施例の場合と同様に、1/96音
符カウンタ121のカウント値が「0」となっているか
を検出する処理である。
Next, in step 1502, 1/96
It is determined whether or not the time counting time of the note counter 121 has elapsed. This process is also a process for detecting whether the count value of the 1/96 note counter 121 is "0" as in the case of the first embodiment.

【0117】1/96音符カウンタ121のカウント値
が「0」でない、すなわち、まだ1/96音符カウンタ
121の計時時間が経過していなければ、ただちに処理
を終了する、ということを時間割込み毎に繰り返す。そ
して、上記ステップ1502で、1/96音符カウンタ
121のカウント値が「0」となったことを検出してス
テップ1503に進む。なお、カウント値が「0」とな
った1/96音符カウンタ121には、1/96音符分
の時間データを再設定する。
If the count value of the 1/96 note counter 121 is not "0", that is, if the time measured by the 1/96 note counter 121 has not yet elapsed, the processing is ended immediately. repeat. Then, in step 1502, it is detected that the count value of the 1/96 note counter 121 becomes "0", and the process proceeds to step 1503. Note that the 1/96 note counter 121 whose count value has become "0" is reset with time data for 1/96 note.

【0118】これにより、1/96音符分の時間が経過
する毎に、続くステップ1503〜1506の処理が実
行され、さらにステップ1507の判別がなされる。す
なわち、ステップ1503では、図1の自動伴奏メモリ
110から、自動伴奏データを読み出し、続いてステッ
プ1504で、その読み出した伴奏データに基づいて図
3に示すフォーマットの音源データを生成し、その音源
データの出力フラグを“100”にセットする。そし
て、ステップ1505で、上記自動伴奏データにより生
成した音源データを図1の音源103にセットする。
As a result, the processing of the following steps 1503 to 1506 is executed and the determination of step 1507 is made every time the time of 1/96 note has elapsed. That is, in step 1503, the automatic accompaniment data is read from the automatic accompaniment memory 110 in FIG. 1, and in step 1504, the sound source data in the format shown in FIG. 3 is generated based on the read accompaniment data, and the sound source data is generated. Output flag is set to "100". Then, in step 1505, the sound source data generated by the automatic accompaniment data is set in the sound source 103 in FIG.

【0119】したがって、音源データの出力フラグが
“100”であることにより、伴奏音の楽音データは、
音源103から#5のDSP105に出力される。これに
より、伴奏音の楽音には#5のDSP105によるエフェ
クトが付加される。
Therefore, since the output flag of the sound source data is "100", the musical sound data of the accompaniment sound is
Output from the sound source 103 to the DSP 105 of # 5. As a result, the effect of the DSP 105 of # 5 is added to the musical tone of the accompaniment sound.

【0120】次に、ステップ1506で、音長カウンタ
122をデクリメントし、続いてステップ1507で、
その音長カウンタ122の値と1/2音長レジスタ12
8の値とを比較し、一致しているか否か判別する。
Next, in step 1506, the tone length counter 122 is decremented, and then in step 1507,
The value of the note length counter 122 and the 1/2 note length register 12
The value of 8 is compared to determine whether they match.

【0121】ここで、イントロ演奏中は、1/2音長レ
ジスタ128には「FFFF」がセットされている。し
たがって、その場合は判別は必ず否であり、ステップ1
511へ進んで、押鍵タイミングカウンタ123をイン
クリメントし、押鍵タイミングカウンタ123による押
鍵タイミングの計時を進行させる。
During the intro performance, "FFFF" is set in the 1/2 tone length register 128. Therefore, in that case, the determination is always no and step 1
Proceeding to 511, the key depression timing counter 123 is incremented and the timing of the key depression timing by the key depression timing counter 123 is advanced.

【0122】次にステップ1512で、音長カウンタ1
22のカウント値を参照し、カウント時間が経過した、
すなわちそのカウント値が「0」となったか否か判別
し、まだ「0」となっていなければ直ちに処理を終わ
る。
Next, at step 1512, the tone length counter 1
With reference to the count value of 22, the count time has elapsed,
That is, it is determined whether or not the count value has become "0", and if it has not become "0", the processing is immediately terminated.

【0123】これにより、イントロ演奏中は、1/96
音符カウンタのカウント時間が経過したタイマインタラ
プト処理(以後、1/96音符分経過インタラプト処理
と称する)毎に、上記ステップ1501〜1507、1
511、及び1512までの処理が繰り返される。そし
て、音長カウンタ122に設定されたカウント値である
イントロ長データ、例えば「129」がデクリメントさ
れて「0」となるまで、1/96音符分経過インタラプ
ト処理が繰り返され、ステップ1503〜1505の処
理により、図17に示す時刻t0まで、イントロ演奏が
行われる。
As a result, 1/96 during the intro performance
For each timer interrupt process (hereinafter referred to as 1/96 note elapsed interrupt process) when the count time of the note counter has elapsed, the above steps 1501 to 1507, 1
The processing up to 511 and 1512 is repeated. Then, the intro length data, which is the count value set in the note length counter 122, for example, "129" is decremented to "0", and the 1/96 note lapse interrupt processing is repeated, and steps 1503 to 1505 are executed. By the processing, the intro performance is performed until time t0 shown in FIG.

【0124】そして、イントロ演奏が終了するタイミン
グで、上記ステップ1512において、音長カウンタ1
22のカウント値が「0」となったことを判別したとき
は、ステップ1513に進んで、次回音階No.レジス
タ125の値(音高データ)を現在音高No.レジスタ
126に転送する。
Then, at the timing when the intro performance ends, in step 1512, the tone length counter 1
When it is determined that the count value of No. 22 becomes "0", the process proceeds to step 1513, and the next scale No. The value of the register 125 (pitch data) is set to the current pitch No. Transfer to the register 126.

【0125】これにより、イントロ演奏が終了する最初
のステップ1513の処理では、前述した図14のリズ
ムスタート時の処理において次回音階No.レジスタ1
25に初期設定されたメロディデータの先頭データ、例
えば「C4」が現在音階No.レジスタ126に記憶さ
れる。すなわち図17の時刻t0において、それまで次
回押鍵音を示していた「C4」が、現在押鍵音を示す音
高となる。
As a result, in the processing of the first step 1513 at which the intro performance is finished, the next scale No. in the processing at the rhythm start of FIG. Register 1
The beginning data of the melody data initially set to 25, for example, "C4" is the current scale No. It is stored in the register 126. That is, at time t0 in FIG. 17, “C4”, which has been indicating the next key depression sound, becomes the pitch indicating the current key depression sound.

【0126】続いて、ステップ1514で、自動伴奏デ
ータメモリ110から自動伴奏のメロディデータの次回
音長データと次回音高の次の音高データを読み出す。こ
れにより、すでに読み出されている次回音高データ、例
えばメロディデータの先頭データ「C4」に対応する音
長データ「24」と、その次回音高データ「C4」の次
の音高データ「D4」が読み出される(図13(b) 及び
図17参照)。
Subsequently, at step 1514, the next note length data of the automatic accompaniment melody data and the next pitch data of the next pitch are read from the automatic accompaniment data memory 110. As a result, the next pitch data that has already been read, for example, the pitch data "24" corresponding to the head data "C4" of the melody data, and the pitch data "D4" next to the next pitch data "C4". Is read out (see FIG. 13 (b) and FIG. 17).

【0127】そして、ステップ1515で、その読み出
した自動伴奏のメロディデータの音高データを次回音階
No.レジスタ125にセットする。これにより、次回
のステップ1513の処理からは、今回ステップ151
4で自動伴奏データメモリ110から読み出され、ステ
ップ1515で次回音階No.レジスタ125に記憶さ
れたメロディデータの音高データが、現在音階No.レ
ジスタ126に記憶される。
Then, in step 1515, the pitch data of the read melody data of the automatic accompaniment is set to the next scale No. Set in register 125. As a result, from the processing of the next step 1513, the current step 151
4 is read from the automatic accompaniment data memory 110, and in step 1515, the next scale No. The pitch data of the melody data stored in the register 125 is the current scale No. It is stored in the register 126.

【0128】次に、ステップ1516で、上記読み出し
た自動伴奏のメロディデータの音長データを音長カウン
タ122にセットし、その音長データの1/2の値を1
/2音長レジスタ128にセットする。
Next, at step 1516, the note length data of the read automatic accompaniment melody data is set in the note length counter 122, and 1/2 of the note length data is set to 1.
Set to the / 2 tone length register 128.

【0129】これにより、上記音長カウンタ122にセ
ットされた音長データが、以降の1/96音符分経過イ
ンタラプト処理毎にステップ506でデクリメントされ
ることにより音長データの示す時間が計時される。そし
て、ステップ1507で音長データの示す時間の1/2
の経過が検出され、ステップ1512では音長データの
示す全時間の経過が検出される。
As a result, the tone length data set in the tone length counter 122 is decremented in step 506 for each subsequent 1 / 96th note lapse interrupt processing, whereby the time indicated by the tone length data is measured. . Then, at step 1507, 1/2 of the time indicated by the tone length data
Is detected, and in step 1512, the passage of the entire time indicated by the tone length data is detected.

【0130】続いてステップ1517で、次回音階N
o.レジスタ125に記憶された音高データに対応する
メロディガイド111のLEDを点滅すると共に、現在
音階No.レジスタ126に記憶された音高データに対
応するメロディガイド111のLEDを点滅して処理を
終了する。
Subsequently, in step 1517, the next scale N
o. While blinking the LED of the melody guide 111 corresponding to the pitch data stored in the register 125, the current scale No. The LED of the melody guide 111 corresponding to the pitch data stored in the register 126 is blinked, and the process ends.

【0131】これにより、ユーザに対して、現在押鍵す
べき鍵と次回押鍵すべき鍵が、それぞれメロディガイド
111により指示される。このように、タイマインタラ
プト処理においては、上記のステップ1512〜151
7において、音長データの示す全時間(現在押鍵指定さ
れているメロディ音の長さ)が経過したところで、次の
メロディデータが読み出され、現在及び次回のメロディ
音の押鍵指定が切り替わり、その新たに指定された現在
のメロディ音の音長データが示す時間の前半分の期間の
計測が開始される。
As a result, the melody guide 111 indicates to the user which key should be pressed now and which key should be pressed next time. As described above, in the timer interrupt processing, the above steps 1512 to 151 are performed.
In 7, the next melody data is read out after the entire time indicated by the tone length data (the length of the melody tone currently designated for key depression) has elapsed, and the key depression designation for the current and next melody tones is switched. , The measurement of the first half period of the time indicated by the note length data of the newly designated current melody tone is started.

【0132】そして、上記ステップ1507で、音長デ
ータの示す時間の1/2の経過を検出したならば、すな
わち、ステップ1506においてデクリメントされてい
る音長カウンタ122のカウント値と1/2音長レジス
タの値とが一致したことを検出したときはステップ15
08に進む。
If it is detected in step 1507 that half of the time indicated by the tone length data has been detected, that is, the count value of the tone length counter 122 decremented in step 1506 and 1/2 tone length. If it is detected that the register values match, step 15
Go to 08.

【0133】これにより、音長カウンタ122にセット
された音長データの示す時間が1/2経過する例えば図
17の時刻t1、t2、・・・毎に、ステップ1508
〜1510の処理が実行される。
As a result, step 1508 is performed every time the time indicated by the tone length data set in the tone length counter 122 has passed 1/2, for example, at times t1, t2, ... In FIG.
The processes of ˜1510 are executed.

【0134】すなわち、ステップ1508では、音長カ
ウンタ122の値を押鍵指定タイミングレジスタ123
にセットする。これにより、後述する押鍵時の処理にお
いて、押鍵タイミングの正しさ又は誤りの程度を判別す
るための判定基準が設定される。
That is, at step 1508, the value of the tone length counter 122 is set to the key-depression designation timing register 123.
Set to. As a result, in the processing at the time of key depression described later, a criterion for determining the correctness of key depression timing or the degree of error is set.

【0135】次に、ステップ1509では、次回音階N
o.レジスタ125の値を押鍵指定音階No.レジスタ
127にセットする。これにより、後述する押鍵時の処
理において、メロディに対応する音高を示す鍵が押鍵さ
れたか否か判別するための判定基準が設定される。
Next, in step 1509, the next scale N
o. The value of the register 125 is set to the key-depression designated scale No. It is set in the register 127. As a result, in the below-described key-pressing process, a criterion for determining whether or not the key indicating the pitch corresponding to the melody has been pressed is set.

【0136】そして、ステップ1510で、押鍵タイミ
ングカウンタをリセットする。これにより、後述する押
鍵時の処理において、押鍵タイミングを検出するための
時間の計測が開始される。
Then, in step 1510, the key depression timing counter is reset. As a result, the time for detecting the key pressing timing is started in the key pressing process described later.

【0137】このように、タイマインタラプト処理にお
いては、上記のステップ1507〜1510において、
音長データの1/2が示す時間(現在押鍵指定されてい
るメロディ音の長さの半分)が経過したところで次回押
鍵すべき音高データが設定され、その残り半分の時間を
利用して押鍵タイミングの計測が開始される。
As described above, in the timer interrupt process, in steps 1507 to 1510 described above,
When the time indicated by 1/2 of the pitch length data (half the length of the melody tone currently designated for key depression) has elapsed, the pitch data to be depressed next is set, and the remaining half time is used. Measurement of the key depression timing is started.

【0138】また、押鍵タイミングカウンタ123は今
のメロディ音の後半から次のメロディ音の前半までカウ
ントを継続して(図17の押鍵タイミングカウンタ参
照)次に押鍵される押鍵タイミングを検出しているの
で、正しい押鍵タイミングに対して実際の押鍵タイミン
グが遅い場合、早過ぎる場合のいずれについても、その
押鍵時間のずれを検出することができる。また、鍵指定
音階No.レジスタ127も、押鍵タイミングカウンタ
123と同様に、今のメロディ音の後半から次のメロデ
ィ音の前半まで次回押鍵すべきメロディ音の音高データ
を保持している(同じく図17の押鍵指定音階No.レ
ジスタ参照)ので、これに基づいて上記実際の押鍵操作
が遅い場合、早過ぎる場合のいずれについても、その押
鍵された鍵の示す音高が正しいか否か判別することがで
きる。
The key-depression timing counter 123 continues counting from the latter half of the current melody tone to the first half of the next melody tone (see the key-depression timing counter in FIG. 17) to determine the next key-depression timing. Since it is detected, it is possible to detect the deviation of the key pressing time whether the actual key pressing timing is later than the correct key pressing timing or when it is too early. Also, the key designation scale No. Similarly to the key depression timing counter 123, the register 127 holds the pitch data of the melody tone to be depressed next time from the latter half of the present melody tone to the first half of the next melody tone (also in the key depression of FIG. 17). It is possible to determine whether the pitch indicated by the depressed key is correct, based on this, regardless of whether the actual key depression operation is slow or too fast. it can.

【0139】次に、上記押鍵される音高及びタイミング
を判定して、その正誤に応じたエフェクトを付加するた
めの音源データを作成する図11のCPU102によっ
て実行される処理の動作を、図16に示すフローチャー
トを用いて説明する。
Next, the operation of the process executed by the CPU 102 of FIG. 11 for determining the pitch and timing of the key depression and creating the sound source data for adding the effect according to the correctness is shown in FIG. This will be described using the flowchart shown in FIG.

【0140】この処理も、CPU102が特には図示し
ないROMなどに記憶された制御プログラムを実行する
ことにより実現する。また、CPU102によるエンベ
ロープデータの生成処理についても、一般的な電子楽器
における処理と変わるところはないため、その説明は省
略する。
This processing is also realized by the CPU 102 executing a control program stored in a ROM (not shown) or the like. Also, the envelope data generation process by the CPU 102 is no different from the process in a general electronic musical instrument, and thus the description thereof is omitted.

【0141】同図のフローチャートにおいて、CPU1
02は、まず、ステップ1601で、図11の鍵盤10
1の鍵域を走査する。続いて、ステップ1602で、鍵
操作が行われたが否か、及び鍵操作が行われた場合は押
鍵操作であるか離鍵操作であるかを判別する。
In the flowchart of FIG.
02, first, in step 1601, the keyboard 10 of FIG.
Scan the key range of 1. Subsequently, in step 1602, it is determined whether or not a key operation has been performed, and if the key operation has been performed, it is a key pressing operation or a key releasing operation.

【0142】このステップ1602の判別で、押鍵操作
されていた(KEYON)の場合は、ステップ1603
に進む。ステップ1603では、現在押鍵操作された鍵
に対応する音高データと、前述したタイマインタラプト
処理で図12に示す押鍵指定音階No.レジスタ127
に格納されているメロディデータの音高データとを比較
する。
If it is determined in step 1602 that the key has been pressed (KEYON), step 1603 is executed.
Proceed to. In step 1603, the pitch data corresponding to the currently key-depressed key and the key-depression designated tone No. shown in FIG. 12 by the above-mentioned timer interrupt processing. Register 127
The pitch data of the melody data stored in is compared.

【0143】さらに、ステップ1604では、現在の押
鍵タイミングカウンタ123のカウント値と、押鍵指定
タイミングレジスタ124に格納されている値とを比較
する。
Further, in step 1604, the current count value of the key depression timing counter 123 and the value stored in the key depression designation timing register 124 are compared.

【0144】そして、ステップ1605では、上記の比
較結果に基づいて押鍵された鍵の正誤を判定し、さらに
その押鍵タイミングの正しさ及び誤りの程度を判定す
る。上記判別で、押鍵された鍵の音高データが押鍵指定
音階No.レジスタ127の音高データと一致し、且つ
押鍵タイミングカウンタ123のカウント値が押鍵指定
タイミングレジスタ124の値(音長データの1/2が
示す時間値)と一致している場合は、ステップ1606
上記の押鍵操作に基づいて波形メモリ104から波形デ
ータを読み出してメロディ音の発音を指示するための音
源データを作成する。
Then, in step 1605, the correctness of the key pressed is determined based on the above comparison result, and the correctness of the key depression timing and the degree of the error are determined. In the above discrimination, the pitch data of the depressed key is the key designation tone No. If it matches the pitch data of the register 127 and the count value of the key depression timing counter 123 matches the value of the key depression designation timing register 124 (time value indicated by 1/2 of the tone length data), step 1606
Based on the above key depression operation, the waveform data is read from the waveform memory 104 and the sound source data for instructing the pronunciation of the melody tone is created.

【0145】この処理は、第1実施例の図7のステップ
705〜708における音源データ作成の場合と同様で
ある。また、本実施例において以後のステップ1607
〜1609においても同様である。
This process is similar to the case of creating the sound source data in steps 705 to 708 of FIG. 7 of the first embodiment. Further, in this embodiment, the subsequent steps 1607
The same applies to ˜1609.

【0146】そして、ステップ1606では出力フラグ
には“000”をセットした後、後述するステップ16
11の処理に進む。これにより、押鍵された鍵(音高デ
ータ)が正しく、且つ押鍵タイミングも正しいときは、
その音源データによる楽音データの出力先として、図1
1の#1のDSP105が指定され、その楽音データには
#1のDSP105によるエフェクトが付加される。
Then, in step 1606, "000" is set in the output flag, and then in step 16 which will be described later.
Proceed to the process of 11. As a result, when the pressed key (pitch data) is correct and the key pressing timing is correct,
As an output destination of musical sound data based on the sound source data, FIG.
The DSP 105 of # 1 of 1 is specified, and its tone data is
The effect by the DSP 105 of # 1 is added.

【0147】また、上記ステップ1605における判別
で、押鍵された鍵の音高データが押鍵指定音階No.レ
ジスタ127の音高データと一致し、且つ押鍵タイミン
グカウンタ123のカウント値と押鍵指定タイミングレ
ジスタ124の値とのずれが1/32音符分の時間以内
であれば、ステップ1607に進み、音源データを作成
し、その音源データの出力フラグを“001”にした
後、1611の処理に進む。
Also, in the discrimination in the above step 1605, the pitch data of the depressed key is the designated key-pitch No. If it coincides with the pitch data of the register 127 and the difference between the count value of the key depression timing counter 123 and the value of the key depression designation timing register 124 is within the time of 1/32 note, the process proceeds to step 1607, and the sound source is generated. After creating the data and setting the output flag of the sound source data to "001", the process proceeds to 1611.

【0148】これにより、押鍵された鍵が正しく、且つ
押鍵タイミングのずれが1/32音符分の時間以内の
(すなわち大きくずれてはいない)ときは、その音源デ
ータによる楽音データの出力先として、図11の#2のD
SP105が指定され、その楽音データには#2のDSP
105によるエフェクトが付加される。
As a result, when the depressed key is correct and the key depression timing deviation is within the time of 1/32 note (that is, there is no large deviation), the tone data output destination of the sound source data is output. As shown in D of # 2 in FIG.
SP105 is specified, and the tone data is the DSP of # 2
The effect of 105 is added.

【0149】次に、上記ステップ1605における判別
で、押鍵された鍵の音高データが押鍵指定音階No.レ
ジスタ127の音高データと一致し、且つ押鍵タイミン
グカウンタ123のカウント値と押鍵指定タイミングレ
ジスタ124の値とのずれが1/32音符分の時間を越
えていれば、ステップ1608に進み、音源データを作
成し、その音源データの出力フラグを“010”にした
後、ステップ1611の処理に進む。
Next, in the discrimination in the above step 1605, the pitch data of the depressed key is the key designation tone No. If it coincides with the pitch data of the register 127 and the difference between the count value of the key depression timing counter 123 and the value of the key depression designation timing register 124 exceeds the time of 1/32 note, the process proceeds to step 1608. After the sound source data is created and the output flag of the sound source data is set to "010", the process proceeds to step 1611.

【0150】これにより、押鍵された鍵が正しく、且つ
押鍵タイミングのずれが1/32音符分の時間を越えて
いる(すなわち大きくずれている)ときは、その音源デ
ータによる楽音データの出力先として、図11の#3のD
SP105が指定され、その楽音データには#3のDSP
105によるエフェクトが付加される。
As a result, when the pressed key is correct and the key press timing deviation exceeds the time of 1/32 note (that is, a large deviation), the tone data is output by the sound source data. As the destination, D of # 3 in FIG. 11
SP105 is specified, and the tone data is DSP # 3
The effect of 105 is added.

【0151】さらにまた、上記ステップ1605におけ
る判別で、押鍵された鍵の音高データが押鍵指定音階N
o.レジスタ127の音高データと一致していない場合
は、ステップ1609に進み、音源データを生成し、そ
の出力フラグを“011”にした後、ステップ1611
の処理に進む。
Furthermore, in the discrimination in the above step 1605, the tone pitch data of the depressed key is the designated key depression scale N.
o. If the pitch does not match the pitch data of the register 127, the process proceeds to step 1609 to generate the sound source data and set its output flag to "011", and then to step 1611.
Go to processing.

【0152】これにより、押鍵された鍵が正しくない場
合は、押鍵タイミングの如何にかかわらず音源データの
楽音データの出力先として、図11の#4のDSP105
が指定され、#4のDSP105によるエフェクトが付加
される。
As a result, when the depressed key is not correct, the DSP 105 of # 4 in FIG. 11 is set as the output destination of the tone data of the tone generator data regardless of the key depression timing.
Is designated, and the effect by the DSP 105 of # 4 is added.

【0153】上記ステップ1602の判別で、鍵の操作
がなければ何も行わずただちに処置を終了するが、離鍵
操作(KEYOFF)されていた場合は、ステップ16
10に進む。
If it is determined in step 1602 that there is no key operation, nothing is performed and the procedure ends immediately, but if the key release operation (KEYOFF) is performed, step 16
Go to 10.

【0154】ステップ1610〜1612の処理は、第
1実施例における709〜711の処理と同様の処理で
ある。このように、ステップ1602〜1611の各処
理が、ユーザによって押鍵された鍵盤の全ての鍵に対し
て実行され、上述したステップ1606〜1609の処
理により生成した音源データが音源103にセットされ
る。
The processing of steps 1610 to 1612 is similar to the processing of 709 to 711 in the first embodiment. In this way, the processes of steps 1602 to 1611 are executed for all the keys of the keyboard pressed by the user, and the sound source data generated by the processes of steps 1606 to 1609 described above is set in the sound source 103. .

【0155】これにより、鍵盤の押鍵操作に対応する音
源データが、図1の音源103に供給される。以上の動
作により、CPU102から音源103に出力指示され
る楽音が、現在判別されているメロディデータの音高デ
ータに対する押鍵による音高データの正誤及びその押鍵
タイミングの正しさ又は不一致の程度により、出力フラ
グが“000”、“001”、“010”又は“01
1”にセットされる。そして、その結果、押鍵操作に基
づいて音源103で生成される楽音のうち、メロディデ
ータの音高データと一致する楽音に対しては、その押鍵
タイミングも正しいときは#1のDSP105においてエ
フェクト処理が施され、押鍵タイミングのずれが小さい
ときは、#2のDSP105で、押鍵タイミングのずれが
大きいときは、#3のDSP105でエフェクト処理が施
される。また、メロディデータの音高データと一致しな
い楽音に対しては、#4のDSP105においてエフェク
ト処理が施される。その結果、押鍵操作の鍵の正誤及び
タイミングによって、そのメロディ音に付加されるエフ
ェクトの効果が異なるようになる。このようにすれば、
初心から上達するに従い、正しい鍵に対する押鍵練習の
みでなく、正しいタイミングで押鍵する練習も楽しく行
うことができる。
As a result, the sound source data corresponding to the key depression operation on the keyboard is supplied to the sound source 103 in FIG. With the above operation, the musical tone output from the CPU 102 to the sound source 103 depends on whether the pitch data of the currently determined melody data is correct or not due to key pressing and the correctness or disagreement of the key pressing timing. , The output flag is “000”, “001”, “010” or “01”
As a result, among the musical tones generated by the tone generator 103 based on the key pressing operation, the tone pressing time is correct for the musical tone matching the pitch data of the melody data. The effect processing is performed by the DSP 105 of # 1. When the key press timing deviation is small, the effect processing is performed by the # 2 DSP 105, and when the key press timing deviation is large, the # 3 DSP 105 is executed. Further, the musical tone that does not match the pitch data of the melody data is subjected to effect processing in the DSP 105 of # 4. As a result, it is added to the melody tone depending on the correctness of the key operation and the timing. The effect will be different, so if you do this
As you improve from the beginning, you can enjoy not only the practice of pressing the correct key, but also the practice of pressing the key at the correct timing.

【0156】ところで、ユーザの技量は千差万別である
から、第1実施例における正しい鍵に対する押鍵の正誤
の程度を判定する場合では、初心者は、初心者なりに、
また第2実施例の押鍵タイミングの正誤の程度を判定す
る場合でも、上達者は、上達者なりに、ユーザによって
技能レベルは相当の違いがあると考えられる。したがっ
て、いずれの場合も、ある程度上達した者のレベルに合
わせた操作判定基準で、まだそれほど上達していない者
の正誤の程度を判定しようとすると、誤り判定ばかりが
出てしまい練習意欲を喪失する恐れがある。また、ある
程度上達した者は、誤り判定が少なくなったまま、それ
以上レベルが向上せず、練習に飽きてしまう恐れがあ
る。
By the way, since the skill of the user varies widely, in the case of judging the degree of correctness of the key pressing with respect to the correct key in the first embodiment, the beginner becomes a beginner,
Further, even in the case of determining the degree of correctness of the key depression timing of the second embodiment, it is considered that the skill level of the skill improver varies considerably depending on the user. Therefore, in any case, if you try to judge the degree of correctness of a person who has not improved so much based on the operation judgment standard that matches the level of a person who has improved to some extent, only an error judgment will be made and you will lose the desire to practice. There is a fear. Further, a person who has improved to a certain degree may be tired of practicing without further improving the level with less error determination.

【0157】したがって、常に現在のユーザーの技量に
合ったレベルで正誤判定を行うようにすると、なお一層
ユーザが興味をもって演奏の練習ができるようになり、
上達も速くなると考えられる。
Therefore, if the correctness determination is always performed at a level that matches the current skill of the user, the user can practice the performance more with interest.
It is thought that improvement will be faster.

【0158】図18は、このような、機能をさらに備え
た第3実施例の全体構成を示す図である。この第3実施
例においては、CPU102内部のレジスタの構成が上
述した第2実施例の構成に対して、後述するように、さ
らに数レジスタが増強される。また、これも後述する正
誤判定基準テーブルを内部のRAMに記憶する。
FIG. 18 is a diagram showing the overall structure of the third embodiment having such a function. In the third embodiment, the number of registers in the CPU 102 is further increased as compared with the configuration of the second embodiment described above, as will be described later. In addition, this also stores the correctness determination reference table, which will be described later, in the internal RAM.

【0159】ただし、その他の構成は第2実施例と同一
である。したがって、第3実施例の各構成部分には、第
2実施例の各構成部分の番号と同一の番号を付与して示
す。また、したがって、音源103の構成も、図4に示
したものと同一であり、その音源103の出力制御回路
512の構成も、図5に示したものと同一である。そし
て音源103の楽音加算器511の構成も、図6に示し
たものと同一であり、また、図18のCPU102によ
り作成される音源データのフォーマットも図3に示した
ものと同一である。
However, the other structure is the same as that of the second embodiment. Therefore, the same components as those of the second embodiment are designated by the same reference numerals as those of the third embodiment. Therefore, the configuration of the sound source 103 is the same as that shown in FIG. 4, and the configuration of the output control circuit 512 of the sound source 103 is also the same as that shown in FIG. The configuration of the tone adder 511 of the sound source 103 is the same as that shown in FIG. 6, and the format of the sound source data created by the CPU 102 in FIG. 18 is the same as that shown in FIG.

【0160】また、自動伴奏メモリ110に記憶される
自動伴奏データのメロディ部分及び伴奏部分のデータ構
成(フォーマット)は、第2実施例において、例として
図13(a) に示す楽譜に対応して同図(b),(c) に示した
ものと同様である。
The data structure (format) of the melody part and the accompaniment part of the automatic accompaniment data stored in the automatic accompaniment memory 110 corresponds to the musical score shown in FIG. 13A as an example in the second embodiment. It is the same as that shown in FIGS.

【0161】図18に示すCPU102は、この場合
も、鍵盤の押鍵状態を取り込み、各押鍵動作に基づいて
音源103に対してメロディ音の発音を指示するための
音源データを生成する。このとき、発音指示される楽音
が現在押鍵指定されている音高に一致するか否か正誤の
程度を判定する。そして、この場合、第1実施例と異な
るところは、押鍵された音高の一致又は不一致の程度に
よってセットしたフラグを、直ちに音源データのエフェ
クト選択用のために用いるのではなく、正誤判定基準テ
ーブルに対応するデータとして用いる。
Also in this case, the CPU 102 shown in FIG. 18 also takes in the key depression state of the keyboard and generates tone generator data for instructing the tone generator 103 to produce a melody tone based on each key depression operation. At this time, it is determined whether or not the musical tone instructed to be sounded matches the pitch currently designated for key depression. In this case, the difference from the first embodiment is that the flag set according to the degree of matching or non-matching of the pitches pressed is not immediately used for effect selection of the sound source data, but is a correctness determination criterion. Used as data corresponding to the table.

【0162】また、これと平行して、CPU102は、
読み出したメロディデータの音高データと押鍵操作によ
る音高データが一致したとき、その押鍵タイミングが、
上記押鍵指定されている楽音データに基づく押鍵指定タ
イミングに対して、一致するか否か正誤の程度を判定す
る。そして、第2実施例と異なるところは、押鍵タイミ
ングの一致又は不一致の程度によってセットしたフラグ
を、この場合も、直ちに音源データのエフェクト選択用
のために用いるのではなく、正誤判定基準テーブルに対
応するデータとして用いる。
In parallel with this, the CPU 102
When the pitch data of the read melody data matches the pitch data of the key depression operation, the key depression timing is
Whether or not there is a match with the key pressing designation timing based on the musical tone data for which the key pressing has been designated is judged to be correct or incorrect. The difference from the second embodiment is that the flag set according to the degree of coincidence or non-coincidence of the key depression timing is not used immediately for effect selection of the sound source data, but in the correctness determination reference table. Used as corresponding data.

【0163】すなわち、音高の一致又は不一致の程度及
び押鍵タイミングの一致又は不一致の程度の両程度が、
後述する算出された技能レベルの程度によって判別さ
れ、この結果として得られる4段階の正誤判定1〜正誤
判定4によって、始めて出力フラグが“001”〜“1
00”に設定される。
That is, both the degree of pitch match or mismatch and the degree of key press timing match or mismatch are as follows:
The output flag is judged to be “001” to “1” for the first time by four levels of correctness determination 1 to correctness determination 4 which are determined by the degree of the calculated skill level described later.
00 ".

【0164】そして、この設定された出力フラグにした
がって、音源103は、メロディ音の楽音データを、正
誤判定1のときは#1のDSP105へ出力し、正誤判定
2であれば#2のDSP105へ出力し、正誤判定3であ
れば#3のDSP105へ出力し、そして、正誤判定4で
あれば#4のDSP105へ出力する。そして、自動伴奏
音の楽音データを#5のDSP105へ出力する。
According to the set output flag, the sound source 103 outputs the musical tone data of the melody sound to the DSP 105 of # 1 when the correctness determination 1 is made, and to the DSP 105 of # 2 when the correctness determination 2 is made. If it is correct / wrong judgment 3, it is outputted to the DSP 105 of # 3, and if it is correct / wrong judgment 4, it is outputted to the DSP 105 of # 4. Then, the tone data of the automatic accompaniment tone is output to the DSP 105 of # 5.

【0165】こ結果、算定された技能レベルに応じて、
メロディデータの音高に対応して正しい鍵が押鍵された
か否かその正誤の程度と、そのメロディ音に対応して正
しいタイミングで押鍵されたか否かその正誤の程度と
が、両方同時に判定されて、#1のDSP105〜#4のD
SP105によりエフェクトが付加される。したがっ
て、ユーザが、同じように、押鍵操作を誤った場合で
も、現在の上達の程度(技能レベル)によって正誤の判
定が異なり、楽音に付加されるエフェクトも異なってく
る。
As a result, according to the calculated skill level,
Judgment is made simultaneously on whether the correct key is pressed according to the pitch of the melody data, whether it is correct or not, and whether the key is pressed at the correct timing corresponding to the melody sound and whether it is correct. Done for # 1 DSP 105- # 4
An effect is added by SP105. Therefore, even when the user makes a mistake in the key depression operation, the correctness determination is different depending on the current degree of improvement (skill level), and the effect added to the musical sound is also different.

【0166】図19は、このような現在の上達の程度に
よって正誤の判定を行うために内蔵のRAMに記憶され
ている正誤判定基準テーブルである。同図に示す正誤判
定基準テーブルは、その左端に示すように、上達の程度
によって、技能のレベルが低い基準のレベル1から、高
い基準のレベル7まで順次設定されている。これらのレ
ベル1〜レベル7に、それぞれ対応して、正誤判定基準
テーブルの上端に示すように、正誤判定基準が、高い判
定基準である正誤判定1から、低い判定基準である正誤
判定4まで順次設定されている。
FIG. 19 is a correctness / wrongness judgment reference table stored in the built-in RAM in order to judge the correctness according to the current degree of improvement. As shown on the left end, the correctness determination reference table shown in the same figure is sequentially set from a reference level 1 with a low skill level to a high reference level 7 according to the degree of improvement. Corresponding to each of these levels 1 to 7, as shown at the upper end of the correctness / incorrectness determination reference table, the correctness / incorrectness determination standard is sequentially increased from a high determination standard, that is, a correctness determination 1 to a low determination standard, that is, a correctness determination 4. It is set.

【0167】同図に示す正誤判定基準テーブルは、例え
ば低い基準のレベル1及びレベル2では、音高の一致の
程度(音程)のみを判定要素とし、押鍵タイミングまで
は判定要素に取り込まないようにしている。すなわち、
押鍵タイミングについてはNOP(ノン・オペレーショ
ン)処理である。そして、レベル1では、2音が同一
(音程が一致)でさえあれば、押鍵タイミングはどうで
あれ、高い判定基準である正誤判定1とする。もし音程
が2乃至4度の違いであるときは、次の判定基準である
正誤判定2とする。さらに音程が5乃至7度の違いであ
るときは、やや低い判定基準である正誤判定3とする。
そして、音程が8度以上も違っているときは、一番低い
判定基準である正誤判定4とする。
In the correctness determination reference table shown in the figure, for example, in the low reference levels 1 and 2, only the degree of matching (pitch) of pitches is used as the determination element, and the determination element is not incorporated until the key pressing timing. I have to. That is,
The key depression timing is NOP (non-operation) processing. Then, at level 1, as long as the two notes are the same (the pitches are the same), the correctness determination 1 which is a high determination criterion is set regardless of the key pressing timing. If there is a difference of 2 to 4 degrees between pitches, the correctness / incorrectness determination 2 which is the next determination criterion is made. Further, when there is a difference in pitch of 5 to 7 degrees, the correctness determination 3 which is a slightly lower determination criterion is set.
Then, when the pitch is different by 8 degrees or more, the correctness determination 4 which is the lowest determination criterion is set.

【0168】一方、ユーザが上達して、一番高いレベル
7であると算定された場合は、音程が一致していること
は勿論、押鍵タイミングの狂いも1/64拍である場合
に高い判定基準である正誤判定1とし、音程が一致して
押鍵タイミングの狂いが1/48拍である場合は次の判
定基準である正誤判定2とし、音程が一致していても押
鍵タイミングの狂いが1/32拍もずれている場合は、
やや低い判定基準である正誤判定2とし、そして、音程
が不一致であれば、その不一致の程度にかかわらず、ま
た押鍵タイミングはどうであっても、すべて最も低い判
定基準である正誤判定4とするようにしている。
On the other hand, when the user has improved and it is calculated that the level is the highest level 7, the pitches are of course coincident, and the deviation of the key depression timing is high when it is 1 / 64th beat. If the pitch is the same and the key press timing deviation is 1/48 beats, the next judgment standard is the true / false judgment 2, and the key press timing is determined even if the pitch is the same. If the deviation is 1/32 beat,
The correctness / incorrectness judgment 2 which is a slightly lower judgment criterion and the correctness / incorrectness judgment 4 which is the lowest judgment criterion irrespective of the degree of the disagreement and whatever the key pressing timing is, if the pitches do not match. I am trying to do it.

【0169】このように、上達のレベルに応じて、レベ
ルが低い期間は、指定された音高の一致度のみを重視す
るようにし、レベルが上がるにしたがって、音高の一致
度を第1の判定条件とし、第2に押鍵タイミングを判定
条件にして、そのタイミングの一致度により正誤判定基
準を変更していくようになっている。
As described above, according to the level of improvement, during the period when the level is low, only the matching degree of the designated pitch is emphasized, and as the level increases, the matching degree of the pitch becomes first. Secondly, the key press timing is used as the determination condition, and the correctness determination standard is changed according to the degree of coincidence of the timing.

【0170】次に、図20に、上記CPU102内部の
レジスタ群(カウンタを含む)を示す。同図に示すよう
に、CPU102は、第2実施例と同様に、1/96音
符カウンタ121、音長カウンタ122、1/2音長レ
ジスタ128、押鍵タイミングカウンタ123、押鍵指
定タイミングカウンタ124、次回音階No.レジスタ
125、現在音階No.レジスタ126、及び押鍵指定
音階No.レジスタ127を有している。これらのレジ
スタ群の機能は第2実施例と同様である。そして、CP
U102は、これらのレジスタ群に加えて、さらに新た
に、現在レベルレジスタ301、正誤判定1累計レジス
タ302、正誤判定2累計レジスタ303、正誤判定3
累計レジスタ304、正誤判定4累計レジスタ305、
及び総判定数レジスタ306を備えている。
Next, FIG. 20 shows a register group (including a counter) inside the CPU 102. As shown in the figure, the CPU 102, similar to the second embodiment, has a 1/96 note counter 121, a note length counter 122, a 1/2 note length register 128, a key depression timing counter 123, and a key depression designation timing counter 124. , Next scale No. Register 125, current scale No. The register 126 and the key-depression-specified scale No. It has a register 127. The functions of these register groups are the same as in the second embodiment. And CP
In addition to these register groups, U102 newly adds a current level register 301, a correct / wrong determination 1 cumulative register 302, a correct / wrong determination 2 cumulative register 303, and a correct / wrong determination 3
Total register 304, correct / incorrect judgment 4 total register 305,
And a total judgment number register 306.

【0171】現在レベルレジスタ301は、図19に示
した全くの初心者の技量レベルであるレベル1から、高
度な技量が必要とされる上達した技量レベルであるレベ
ル7まで、ユーザーの技量に応じた正誤判定のレベルを
保存しておくレジスタである。 正誤判定1累計レジス
タ302から、正誤判定4累計レジスタ305までは、
操作された押鍵に対する正誤判定を行う度に、その判定
結果毎にその判定回数をそれぞれ累計していくレジスタ
である。総判定数レジスタ306は、正誤判定が行われ
た全回数、すなわち上記正誤判定1累計レジスタ302
から正誤判定4累計レジスタ305まで4つのレジスタ
に、それぞれ累計・保存されている判定回数の合計数を
保存する。
The current level register 301 corresponds to the skill of the user from level 1 which is the skill level of the beginner shown in FIG. 19 to level 7 which is an improved skill level requiring a high skill. This is a register that stores the level of correctness determination. From the correct / wrong determination 1 cumulative register 302 to the correct / wrong determination 4 cumulative register 305,
This is a register for accumulating the number of determinations for each determination result every time a correctness determination is made for an operated key depression. The total determination number register 306 is the total number of times the correctness determination is performed, that is, the correctness determination 1 cumulative register 302.
Up to correct / incorrect judgment 4 total register 305 stores the total number of judgment times accumulated / saved in each of four registers.

【0172】次に、上述した構成の第3実施例における
処理動作について説明する。なお、CPU102が、電
源オンにより実行するリズムスタート時の処理は、第2
実施例において図14のフローチャートに示した処理と
同一である。また、後述する図21の押鍵時の処理フロ
ーチャートに示すステップS701〜S723の一連の
処理を、ある一定時間毎に繰り返し実行しているプログ
ラムに割り込みを掛けるタイマインタラプト処理も、第
2実施例において図15のフローチャートに示した処理
と同一である。
Next, the processing operation in the third embodiment having the above-mentioned configuration will be described. The process at the time of rhythm start executed by the CPU 102 when the power is turned on is the second process.
This is the same as the processing shown in the flowchart of FIG. 14 in the embodiment. Further, the timer interrupt processing for interrupting the program repeatedly executing the series of processing of steps S701 to S723 shown in the processing flow chart at the time of key depression in FIG. The process is the same as the process shown in the flowchart of FIG.

【0173】以下、上記リズムスタート時の処理及びタ
イマインタラプト処理において、押鍵される音高及びタ
イミングを判定して、その正誤に応じたエフェクトを付
加するための音源データを作成する押鍵時の処理につい
て、図21に示すフローチャートを用いて説明する。
Hereinafter, in the rhythm start process and the timer interrupt process, the pitch and timing of key depression are determined, and sound source data for adding an effect according to the correctness is created. The processing will be described with reference to the flowchart shown in FIG.

【0174】この処理も、CPU102が特には図示し
ないROMなどに記憶された制御プログラムを実行する
ことにより実現する。また、CPU102によるエンベ
ロープデータの生成処理についても、一般的な電子楽器
における処理と変わるところはないため、その説明は省
略する。
This processing is also realized by the CPU 102 executing a control program stored in a ROM (not shown) or the like. Also, the envelope data generation process by the CPU 102 is no different from the process in a general electronic musical instrument, and thus the description thereof is omitted.

【0175】同図のフローチャートにおいて、CPU1
02は、まず、ステップ201で、図18の鍵盤101
の鍵域を走査する。続いて、ステップ202で、鍵操作
が行われたが否か、及び鍵操作が行われた場合は押鍵操
作であるか離鍵操作であるかを判別する。
In the flowchart of FIG.
02, first, in step 201, the keyboard 101 of FIG.
Scan the key range of. Subsequently, in step 202, it is determined whether or not a key operation has been performed, and if the key operation has been performed, it is a key pressing operation or a key releasing operation.

【0176】このステップ202の判別で、押鍵操作さ
れていた(キーON)の場合は、ステップ203に進
む。ステップ203では、現在押鍵操作された鍵に対応
する音高データと、前述したタイマインタラプト処理で
図20に示す押鍵指定音階No.レジスタ127に格納
されているメロディデータの音高データとを比較する。
If it is determined in step 202 that the key has been pressed (key ON), the process proceeds to step 203. In step 203, the pitch data corresponding to the currently key-depressed key and the key-depression specified tone No. shown in FIG. 20 by the above-mentioned timer interrupt processing. The pitch data of the melody data stored in the register 127 is compared.

【0177】さらに、ステップ204では、現在の押鍵
タイミングカウンタ123のカウント値と、押鍵指定タ
イミングレジスタ124に格納されている値とを比較す
る。そして、ステップ205では、図19に示すRAM
の正誤判定基準テーブルから、現在レベルレジスタ30
1のレベル値の示すレベルの正誤判定基準、すなわち正
誤判定1〜4のいずれか1つを選択する。
Further, in step 204, the current count value of the key depression timing counter 123 and the value stored in the key depression designation timing register 124 are compared. Then, in step 205, the RAM shown in FIG.
From the correctness determination standard table of
The correctness determination standard of the level indicated by the level value of 1, that is, any one of the correctness determinations 1 to 4 is selected.

【0178】続いて、ステップ206で、上記選択した
正誤判定基準が、4通りある基準の正誤判定1〜4の内
のいずれであるか判別し、上記比較の結果得られた2音
の音程及び押鍵タイミングが、正誤判定1の条件を満た
していればステップ207に、正誤判定2の条件を満た
していればステップ209に、正誤判定3の条件を満た
していればステップ211に、又は正誤判定4の条件を
満たしていればステップ213の処理に進む。
Subsequently, in step 206, it is determined which of the four correctness determinations 1 to 4 is the selected correctness determination standard, and the pitch of the two notes obtained as a result of the comparison is determined. If the key depression timing satisfies the condition of the correctness determination 1, the step 207 is performed. If the condition of the correctness determination 2 is satisfied, the step 209 is performed. If the condition of the correctness determination 3 is satisfied, the step 211 is performed, or the correctness determination is performed. If the condition of 4 is satisfied, the process proceeds to step 213.

【0179】ステップ207では、上記の押鍵操作に基
づいて波形メモリ104から波形データを読み出してメ
ロディ音の発音を指示するための音源データを作成し、
その出力フラグに“000”をセットする。
At step 207, the sound source data for instructing the pronunciation of the melody tone is created by reading the waveform data from the waveform memory 104 based on the above-mentioned key depression operation.
The output flag is set to "000".

【0180】この音源データの作成処理は、第1実施例
の図7のステップ705〜708における音源データ作
成の場合と同様である。また、本実施例において以後の
ステップ209、211及び213においても同様であ
る。
This sound source data generation processing is the same as the case of the sound source data generation in steps 705 to 708 of FIG. 7 of the first embodiment. The same applies to subsequent steps 209, 211, and 213 in this embodiment.

【0181】上記ステップ207の処理により、例えば
レベル1のユーザでは、押鍵された鍵(音高データ)が
正しければ、押鍵タイミングの誤りの程度にはかかわり
なく、その音源データによる楽音データの出力先とし
て、図18の#1のDSP105が指定され、その楽音デ
ータには#1のDSP105によるエフェクトが付加され
る。また、レベル7のユーザでは、押鍵された鍵(音高
データ)が正しく、且つ押鍵タイミングのずれの程度が
1/64音符分の時間以内であるとき、その音源データ
による楽音データの出力先として、図18の#1のDSP
105が指定され、その楽音データには#1のDSP10
5によるエフェクトが付加される。
By the processing of the above step 207, for example, if the pressed key (pitch data) is correct for the level 1 user, regardless of the degree of error in the key pressing timing, the tone data of the sound source data is reproduced. The # 1 DSP 105 of FIG. 18 is designated as the output destination, and the effect by the # 1 DSP 105 is added to the musical sound data. Also, for a user of level 7, when the pressed key (pitch data) is correct and the deviation of the key pressing timing is within the time of 1/64 note, the tone data is output by the sound source data. As the destination, the DSP of # 1 in FIG. 18
105 is specified, and the DSP 10 of # 1 is used for the musical sound data.
The effect of 5 is added.

【0182】上記処理の後、ステップ208で、正誤判
定1レジスタを「1」インクリメントして、ステップ2
15に進む。これにより、レベルの程度にかかわりな
く、現在レベルの判定基準における高い程度を示す正誤
判定1の判定回数が計数される。
After the above processing, in step 208, the correctness / incorrectness determination 1 register is incremented by "1", and step 2
Proceed to 15. As a result, the number of determinations of the correctness determination 1 indicating the high level in the determination standard of the current level is counted regardless of the level.

【0183】上記ステップ206の判別により、ステッ
プ209に進んだ場合は、同様に音源データを作成した
後、その音源データの出力フラグを“001”にし、ス
テップ210で、正誤判定2レジスタを「1」インクリ
メントして、ステップ215に進む。
If the process proceeds to step 209 by the determination in step 206, the sound source data is similarly created, the output flag of the sound source data is set to "001", and the correctness / incorrectness determination 2 register is set to "1" in step 210. "Increment and proceed to step 215.

【0184】これにより、レベルの程度にかかわりな
く、現在レベルの判定基準において正誤判定2のとき
は、その音源データによる楽音データの出力先として、
図18の#2のDSP105が指定され、その楽音データ
には#2のDSP105によるエフェクトが付加される。
また、その正誤判定2の判定回数が計数される。
As a result, regardless of the level, when the current level judgment criterion is correct / wrong judgment 2, as the output destination of the musical sound data by the sound source data,
The # 2 DSP 105 in FIG. 18 is designated, and the effect by the # 2 DSP 105 is added to the musical sound data.
Further, the number of determinations of the correctness determination 2 is counted.

【0185】次に、上記ステップ206における判別に
より、ステップ211に進んだ場合は、同様に音源デー
タを作成し、その音源データの出力フラグを“010”
にした後、ステップ215の処理に進む。
Next, when the process proceeds to step 211 according to the determination in step 206, the sound source data is similarly created, and the output flag of the sound source data is set to "010".
After that, the process proceeds to step 215.

【0186】これにより、現在レベルの判定基準におい
て正誤判定3のときは、その音源データによる楽音デー
タの出力先として、図18の#3のDSP105が指定さ
れ、その楽音データには#3のDSP105によるエフェ
クトが付加される。また、その正誤判定3の判定回数が
計数される。
As a result, if the current level judgment criterion is true / false judgment 3, the DSP 105 of # 3 in FIG. 18 is designated as the output destination of the musical sound data by the sound source data, and the DSP 105 of # 3 is designated as the musical sound data. The effect by is added. Further, the number of determinations of the correctness determination 3 is counted.

【0187】さらにまた、上記ステップ206における
判別で、ステップ213に進んだ場合は、同様に音源デ
ータを作成し、その音源データの出力フラグを“01
1”にした後、ステップ215の処理に進む。
Furthermore, when the process proceeds to step 213 in the determination in step 206, the sound source data is similarly created, and the output flag of the sound source data is set to "01".
After setting to 1 ″, the process proceeds to step 215.

【0188】これにより、レベルの如何にかかわらず現
在レベルの判定基準において正誤判定4のときは、音源
データの楽音データの出力先として、図18の#4のDS
P105が指定され、#4のDSP105によるエフェク
トが付加される。また、その正誤判定4の判定回数が計
数される。
As a result, when the correctness / incorrectness judgment 4 is made in the judgment standard of the current level regardless of the level, as the output destination of the tone data of the sound source data, the DS of # 4 in FIG.
P105 is designated, and the effect by the DSP 105 of # 4 is added. In addition, the number of determinations of the correctness determination 4 is counted.

【0189】次に、ステップ215では、総判定数レジ
スタ306を「1」インクリメントする。これにより、
正誤判定基準の程度にかかわりなく、判定回数が全て計
数される。
Next, at step 215, the total judgment number register 306 is incremented by "1". This allows
All determination times are counted regardless of the degree of the correctness determination criteria.

【0190】続いて、ステップ216で、上記総判定数
レジスタ306の判定回数を示す値が一定値を越えてい
るか否か判別する。この処理は、ある程度、正誤判定回
数が累積されないと、すなわち練習時間が経過しなけれ
ば、ユーザの現在レベルの変更処理を行わないようにす
るためである。
Subsequently, in step 216, it is determined whether or not the value indicating the number of determinations in the total determination number register 306 exceeds a certain value. This process is to prevent the user from changing the current level unless the correctness determination frequency is accumulated to some extent, that is, unless the practice time elapses.

【0191】これによって、ユーザーの技量レベルを判
定する際には、かなり信頼の置ける判定データ(レベル
適正値)を得ることができる。そして、上記ステップ2
16で一定値を越えていれば(YES)、ステップ21
7〜ステップ220を実行する。これらの処理は、ユー
ザーの技量に応じて、現在レベルの変更を行う処理であ
る。
As a result, when judging the skill level of the user, it is possible to obtain fairly reliable judgment data (appropriate level value). And step 2 above
If it exceeds 16 at 16 (YES), step 21
7 to step 220 are executed. These processes are processes for changing the current level according to the skill of the user.

【0192】先ず、ステップ217では、レベル適性値
を算出する。このレベル適性値は、例えば次に示す式に
より求めるようにする。すなわち、 レベル適性値=(「正誤判定1累計」×4+「正誤判定
2累計」×3+「正誤判定3累計」×2+「正誤判定4
累計」×1)/総判定数 から算出する。
First, at step 217, a level suitability value is calculated. This level suitability value is obtained by the following formula, for example. That is, the level suitability value = (“correction determination 1 total” × 4 + “correction determination 2 total” × 3 + “correction determination 3 total” × 2 + “correction determination 4”
Calculated from "cumulative" x 1) / total number of judgments.

【0193】そして、ステップ218において、この算
出で得られたレベル適性値が、現在レベルレジスタ30
1に保存されている現在レベルに対して適切であるか否
か判別する。この判別は、上記算出で得られたレベル適
性値が、ある一定値以上又は他の一定値以下であるか否
かで判別される。例えば算出されたレベル適性値が一定
値「3.5」以上であればユーザの技量が現在レベルを
上回っていると判断し、一方、他の一定値、例えば
「0.5」以下であればユーザーの技量が現在レベルに
到達していないと判別する。そして、算出されたレベル
適性値が、これら2つの一定値の中間であればユーザー
の技量が現在レベルに合っていると判別する。
Then, in step 218, the level suitability value obtained by this calculation is set to the current level register 30.
It is determined whether the current level stored in 1 is appropriate. This determination is made based on whether or not the level suitability value obtained by the above calculation is equal to or more than a certain fixed value or less than another certain value. For example, if the calculated level aptitude value is equal to or higher than a constant value "3.5", it is determined that the skill of the user is higher than the current level, while if it is another constant value, for example, "0.5" or less. It is determined that the user's skill has not reached the current level. Then, if the calculated level suitability value is between these two constant values, it is determined that the skill of the user matches the current level.

【0194】この判別で、上記算出されたレベル適性値
が一定値「3.5」以上、すなわち、ユーザの技量が現
在レベルを上回っている、つまり、現在レベルレジスタ
301に保存されている現在レベルはユーザの実際の技
量に比較してレベルが低く設定されていたときは、ステ
ップ219で、現在レベルレジスタ301の現在レベル
値を「1」インクリメントし、正誤判定1累計レジスタ
302、正誤判定2累計レジスタ303、正誤判定3累
計レジスタ304及び正誤判定4累計レジスタ305を
「0」クリアし、さらに総判定レジスタ306を「0」
クリアして、ステップ222に進む。
In this determination, the calculated level suitability value is equal to or more than the constant value "3.5", that is, the skill of the user exceeds the current level, that is, the current level currently stored in the level register 301. When the level is set lower than the actual skill of the user, in step 219, the current level value of the current level register 301 is incremented by “1”, and the correctness / wrongness judgment 1 total register 302 and the correctness / wrong judgment 2 total are accumulated. The register 303, the correct / incorrect judgment 3 total register 304, and the correct / incorrect judgment 4 total register 305 are cleared to “0”, and the total judgment register 306 is set to “0”.
After clearing, the process proceeds to step 222.

【0195】また、上記ステップ218の判別で、上記
算出されたレベル適性値が一定値「0.5」以下、すな
わち、ユーザーの技量が現在レベル以下、つまり、現在
レベルレジスタ301に保存されている現在レベルがユ
ーザの実際の技量に比較してレベルが高く設定されてい
たときは、ステップ220で、現在レベルレジスタ30
1の現在レベル値を「1」ディクリメントすると共に、
この場合も、正誤判定1累計レジスタ302、正誤判定
2累計レジスタ303、正誤判定3累計レジスタ30
4、正誤判定4累計レジスタ305、及び総判定数レジ
スタ306の各レジスタをそれぞれ「0」クリアして、
ステップ222に進む。
Further, in the determination of the above step 218, the calculated level suitability value is a fixed value "0.5" or less, that is, the skill of the user is the current level or less, that is, it is currently stored in the level register 301. When the current level is set higher than the actual skill of the user, in step 220, the current level register 30
Decrement the current level value of 1 by "1",
Also in this case, the correct / wrong determination 1 cumulative register 302, the correct / wrong determination 2 cumulative register 303, and the correct / wrong determination 3 cumulative register 30
4, each of the correct / incorrect judgment 4 total register 305 and the total judgment number register 306 is cleared to “0”,
Proceed to step 222.

【0196】ステップ222では、一連の押鍵処理また
は離鍵処理を全鍵処理し終わるまで繰り返し、ステップ
223で、作成した音源データをまとめてセットする。
上記ステップ218の判別で、レベル適性値が2つの一
定値の中間にあって適切であると判別したときは、直ち
に上記ステップ222に進む。また、上記ステップ21
6の判別で、総判定数レジスタ306の値が一定値を越
えていない場合も、直ちに上記ステップ222に進む。
At step 222, a series of key pressing processing or key releasing processing is repeated until all the keys are processed, and at step 223, the created sound source data are collectively set.
When it is determined in step 218 that the level suitability value is appropriate between the two constant values, the process immediately proceeds to step 222. In addition, the above step 21
Even if the value of the total judgment number register 306 does not exceed the fixed value in the judgment of 6, the process immediately proceeds to step 222.

【0197】また、上記ステップ202の判別で、鍵の
操作がなければ何も行わず直ちに処理を終了するが、離
鍵操作(キーOFF)されていた場合は、ステップ22
1に進む。ステップ221〜223の処理は、第1実施
例における709〜711の処理と同様の処理である。
If it is determined in step 202 that there is no key operation, nothing is performed and the process ends immediately, but if the key is released (key OFF), step 22
Go to 1. The processing of steps 221 to 223 is the same as the processing of 709 to 711 in the first embodiment.

【0198】このように、ステップ201〜223の各
処理が、ユーザによって押鍵された鍵盤の全ての鍵に対
して実行され、上述したステップ207、209、21
1、及び213の処理により生成した音源データが音源
103にセットされる。
As described above, each processing of steps 201 to 223 is executed for all the keys of the keyboard depressed by the user, and the above-mentioned steps 207, 209, 21 are executed.
The sound source data generated by the processes 1 and 213 is set in the sound source 103.

【0199】これにより、鍵盤の押鍵操作に対応する音
源データが、図1の音源103に供給される。以上の動
作により、CPU102から音源103に出力指示され
る楽音が、ユーザの現在レベルに応じて判別されている
メロディデータの音高データに対する押鍵による音高デ
ータの正誤の程度及びその押鍵タイミングの正しさ又は
不一致の程度により、出力フラグが“000”、“00
1”、“010”又は“011”にセットされる。
As a result, the sound source data corresponding to the key depression operation of the keyboard is supplied to the sound source 103 of FIG. With the above operation, the musical tone instructed to be output from the CPU 102 to the sound source 103 is the correctness level of the pitch data by the key depression with respect to the pitch data of the melody data determined according to the current level of the user, and the key depression timing. Depending on the correctness or the degree of disagreement, the output flags are "000" and "00".
It is set to 1 ”,“ 010 ”or“ 011 ”.

【0200】そして、その結果、押鍵操作に基づいて音
源103で生成される楽音のうち、上記ユーザの現在レ
ベルに応じて判別された正誤判定1の押鍵に対しては#1
のDSP105、正誤判定2の押鍵に対しては#2のDS
P105、正誤判定3の押鍵に対しては#3のDSP10
5、そして正誤判定4の押鍵に対しては#4のDSP10
5で、それぞれエフェクト処理が施される。このよう
に、現在レベルに対応する押鍵操作の鍵の正誤の程度及
びタイミングのずれの程度によって、そのメロディ音に
付加されるエフェクトの効果が異なるようになる。
As a result, among the musical tones generated by the sound source 103 based on the key depression operation, the key depression of the correctness determination 1 determined according to the current level of the user is # 1.
DSP of No.2, DS of # 2 for the key depression of correctness judgment 2
For the key press of P105 and right / wrong judgment 3, the DSP 10 of # 3
5, and for the key press of the correctness judgment 4, the DSP 10 of # 4
In 5, the effect processing is applied. In this way, the effect of the effect added to the melody sound varies depending on the correctness of the key depression operation and the timing shift corresponding to the current level.

【0201】上述した第3の実施例におけるレベル適正
値の算出は、あまり長い期間を置くと、レベル適正値は
過去におけるレベルに対応する正誤判定結果の累計値に
基づいて算出されるので、ユーザがある一定レベルに止
まっていた後に急激に上達したような場合、上達したユ
ーザの技能に合ったレベル適正値であるとはいえなくな
ることも考えられる。
In the calculation of the level appropriate value in the above-mentioned third embodiment, if a too long period is put, the level appropriate value is calculated based on the cumulative value of the correctness determination results corresponding to the levels in the past. In the case where the user's skill level suddenly improves after being stopped at a certain level, it may not be said that the level is appropriate for the skill of the user who has improved.

【0202】このように、過去の低いレベルの累計がい
つまでも影響することを避けるため、急激に上達したよ
うな場合でも現在レベルによく合致するレベル適正値を
算出できるように、最新の一定個数の正誤判定累計結果
からレベル適正値を算出するようにする。このようにす
れば、上達結果が速く反映されて、ますます面白く練習
できるようになる。
In this way, in order to prevent the cumulative total of low levels in the past from influencing indefinitely, the latest fixed number of constants can be calculated so that an appropriate level value that well matches the current level can be calculated even when the level suddenly improves. An appropriate level value is calculated from the cumulative result of correctness determinations. In this way, the improvement results will be reflected quickly, and you will be able to practice even more interestingly.

【0203】[0203]

【発明の効果】以上説明したように、本発明によれば、
ユーザによる押鍵操作の正しさ又は誤りの程度により楽
音に付加するエフェクトを変化させることによりその押
鍵操作の正しさ又は誤りの程度を報知するようにできる
ので、押鍵操作の誤り報知の際ブザー等の楽音とは関係
のない警告音を発する不自然さが解消され、これによっ
て、初心者が練習の際頻繁におこる耳障りなブザー音に
気分を損ねて意欲が減退しメロディ演奏の練習に興味を
失ってしまうというような心配もなくなる。
As described above, according to the present invention,
By changing the effect added to the musical sound depending on the correctness or error of the key pressing operation by the user, it is possible to notify the correctness or error degree of the key pressing operation. This eliminates the unnatural sound of a warning sound that is not related to the sound of a buzzer, etc., which reduces the motivation and reduces motivation due to the harsh buzzer sounds that beginners often experience when practicing and is interested in practicing melody playing. You no longer have to worry about losing.

【0204】また、付加するエフェクトの程度を変化さ
せて押鍵操作の誤りの度合いを報知することによりユー
ザが効果音を楽しみながら押鍵操作の正しさや誤りの程
度も判別できようにしているので、面白味が加味され、
したがってユーザが興味をもってメロディ演奏の練習を
行うことができる。
Further, by changing the degree of the effect to be added and notifying the degree of the error in the key depression operation, the user can judge the correctness of the key depression operation and the degree of the error while enjoying the sound effect. So, the fun is added,
Therefore, the user can practice the melody performance with interest.

【0205】さらにまた、ユーザーの技量に合わせて、
適宜に正誤判定基準を変化させることができるので、各
ユーザーのレベルに合った正誤判定基準で練習を行うこ
とが可能となり、したがって飽きることなく継続的に練
習を行うようユーザの意欲を高めることが期待できる。
Furthermore, according to the skill of the user,
Since it is possible to change the correctness determination criteria as appropriate, it is possible to practice with the correctness determination criteria that suits each user's level, thus increasing the user's motivation to practice continuously without getting tired. Can be expected.

【図面の簡単な説明】[Brief description of drawings]

【図1】第1実施例の電子鍵盤楽器の全体構成図であ
る。
FIG. 1 is an overall configuration diagram of an electronic keyboard instrument of a first embodiment.

【図2】第1実施例のCPU内部レジスタのデータ構成
図である。
FIG. 2 is a data configuration diagram of a CPU internal register of the first embodiment.

【図3】音源データフォーマットを示す図である。FIG. 3 is a diagram showing a sound source data format.

【図4】音源の構成図である。FIG. 4 is a configuration diagram of a sound source.

【図5】出力制御回路の構成図である。FIG. 5 is a configuration diagram of an output control circuit.

【図6】楽音データ加算器の構成図である。FIG. 6 is a block diagram of a tone data adder.

【図7】第1実施例の押鍵時の処理フローチャートであ
る。
FIG. 7 is a processing flowchart when a key is pressed in the first embodiment.

【図8】第1実施例のタイマインタラプト処理のフロー
チャートである。
FIG. 8 is a flowchart of a timer interrupt process of the first embodiment.

【図9】音源の動作タイミングチャートである。FIG. 9 is an operation timing chart of a sound source.

【図10】DSPの動作フローチャートである。FIG. 10 is an operation flowchart of the DSP.

【図11】第2実施例の電子鍵盤楽器の全体構成図であ
る。
FIG. 11 is an overall configuration diagram of an electronic keyboard instrument of a second embodiment.

【図12】第2実施例のCPU内部レジスタのデータ構
成図である。
FIG. 12 is a data configuration diagram of a CPU internal register of the second embodiment.

【図13】(a),(b),(c) は自動伴奏のメロディデータ及
び伴奏データの構成を説明する図である。
13 (a), (b) and (c) are views for explaining the structure of melody data and accompaniment data of automatic accompaniment.

【図14】第2実施例のリズムスタート時のフローチャ
ートである。
FIG. 14 is a flowchart at the rhythm start of the second embodiment.

【図15】第2実施例のタイマインタラプト処理のフロ
ーチャートである。
FIG. 15 is a flowchart of a timer interrupt process of the second embodiment.

【図16】第2実施例の押鍵時の処理フローチャートで
ある。
FIG. 16 is a processing flowchart when a key is pressed in the second embodiment.

【図17】第2実施例の音長カウンタと押鍵タイミング
カウンタの関係を説明する図である。
FIG. 17 is a diagram for explaining the relationship between the tone length counter and the key depression timing counter of the second embodiment.

【図18】第3実施例の電子鍵盤楽器の全体構成図であ
る。
FIG. 18 is an overall configuration diagram of an electronic keyboard instrument of a third embodiment.

【図19】第3実施例の正誤判定基準テーブルである。FIG. 19 is a correct / wrong determination reference table according to the third embodiment.

【図20】第3実施例のCPU内部レジスタのデータ構
成図である。
FIG. 20 is a data configuration diagram of a CPU internal register of the third embodiment.

【図21】第3実施例の押鍵時の処理フローチャートで
ある。
FIG. 21 is a processing flowchart when a key is pressed according to the third embodiment.

【符号の説明】[Explanation of symbols]

101 鍵盤 102 CPU 103 音源 104 波形メモリ 105 DSP 106 ミキサ回路 107 D/A変換器 108 アンプ 109 スピーカ 110 自動伴奏データメモリ 111 メロディガイド 121、201 1/96音符カウンタ 202 押鍵指定音バッファ 122 音長カウンタ 123 押鍵タイミングカウンタ 124 押鍵指定タイミングレジスタ 125 次回音階No.レジスタ 126 現在音階No.レジスタ 127 押鍵指定音階No.レジスタ 301 現在レベルレジスタ 302 正誤判定1累計レジスタ 303 正誤判定2累計レジスタ 304 正誤判定3累計レジスタ 305 正誤判定4累計レジスタ 306 総判定数レジスタ 101 keyboard 102 CPU 103 sound source 104 waveform memory 105 DSP 106 mixer circuit 107 D / A converter 108 amplifier 109 speaker 110 automatic accompaniment data memory 111 melody guide 121, 201 1/96 note note counter 202 key-description sound buffer 122 note length counter 123 key depression timing counter 124 key depression designation timing register 125 next tone No. Register 126 Current scale No. Register 127 Key-designated scale No. Register 301 Current level register 302 Correctness judgment 1 total register 303 Correctness judgment 2 totaling register 304 Correctness judgment 3 Totaling register 305 Correctness judgment 4 Totaling register 306 Total judgment number register

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G10H 1/36 4236−5H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI technical display location G10H 1/36 4236-5H

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 予め設定されたタイミングで発生すべき
メロディ音を記憶する記憶手段と、 該記憶手段の記憶内容に基づき、発生すべきメロディ音
を指示するメロディ音指示手段と、 外部操作に基づいてメロディ音を順次発生するメロディ
音発生手段と、 該メロディ音発生手段により順次発生されるメロディ音
の信号にそれぞれ複数種の異なる処理を行って出力する
信号処理手段と、 前記メロディ音指示手段により指示されるメロディ音と
前記メロディ音発生手段により発生されるメロディ音と
の音程を検出する音程検出手段と、 前記外部操作のタイミングを検出する操作タイミング検
出手段と、 前記メロディ音指示手段により指示されるメロディ音に
対して予め設定されているタイミングと、前記操作タイ
ミング検出手段により検出される外部操作の操作タイミ
ングとの時間差を検出する時間差検出手段と、 前記メロディ音発生手段により順次発生されるメロディ
音のそれぞれの信号処理として、前記音程検出手段の検
出結果及び前記時間差検出手段の検出結果に応じて前記
信号処理手段の複数種の信号処理のいずれか1つを割り
当てる割当手段と、 演奏者の技能レベルに応じた複数個の正誤判定基準をも
つ正誤判定基準テーブルと、 前記割当手段の割当結果の累計を行うと共に、演奏者の
技能レベル適正値を算出するレベル適正値検出手段と、 該レベル適正値検出手段の算出結果によって、前記正誤
判定基準テーブルの中から適切な正誤判定基準を選択
し、前記割当手段の割当に反映させる割当反映手段と、 を有することを特徴とする電子楽器。
1. A storage means for storing a melody sound to be generated at a preset timing, a melody sound instructing means for instructing a melody sound to be generated based on the stored contents of the storage means, and an external operation. A melody sound generating means for sequentially generating a melody sound, a signal processing means for performing a plurality of different types of processing on respective signals of the melody sounds sequentially generated by the melody sound generating means, and outputting the melody sound instructing means. A pitch detecting means for detecting the pitch of the instructed melody sound and the melody sound generated by the melody sound generating means, an operation timing detecting means for detecting the timing of the external operation, and an instruction by the melody sound instructing means. The preset timing for the melody sound and the timing detected by the operation timing detection means. Time difference detecting means for detecting a time difference from the operation timing of the external operation, and as the signal processing of each of the melody sounds sequentially generated by the melody sound generating means, the detection result of the pitch detecting means and the detection of the time difference detecting means. An assigning unit that assigns any one of the plurality of types of signal processing of the signal processing unit according to a result, a correctness / incorrectness determination reference table having a plurality of correctness / incorrectness determination standards according to the skill level of the performer, and the assigning unit The appropriate level determination means for calculating the appropriate skill level value of the performer, and the calculation result of the level appropriate value detection means are used to calculate the appropriate correctness determination criteria from the correctness determination criteria table. And an allocation reflecting means for selecting and reflecting the allocation in the allocation means.
JP34570492A 1992-06-15 1992-12-25 Electronic musical instrument Expired - Fee Related JP3430267B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34570492A JP3430267B2 (en) 1992-06-15 1992-12-25 Electronic musical instrument

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP15480692 1992-06-15
JP4-154806 1992-06-15
JP34570492A JP3430267B2 (en) 1992-06-15 1992-12-25 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH0667653A true JPH0667653A (en) 1994-03-11
JP3430267B2 JP3430267B2 (en) 2003-07-28

Family

ID=26482990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34570492A Expired - Fee Related JP3430267B2 (en) 1992-06-15 1992-12-25 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP3430267B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0322655A2 (en) * 1987-12-29 1989-07-05 Nkk Corporation Plated steel sheet for cans
JPH08248955A (en) * 1995-03-07 1996-09-27 Yamaha Corp Key touch instructing device
JP2004500591A (en) * 1999-08-13 2004-01-08 シナプテック エル.エル.シー. Method and apparatus for improving learning ability
JP2007140067A (en) * 2005-11-17 2007-06-07 Casio Comput Co Ltd Musical sound generator, and program
JP2008253440A (en) * 2007-04-03 2008-10-23 Yudo:Kk Music reproduction control system, music performance program and synchronous reproduction method of performance data
US7538266B2 (en) 2006-03-27 2009-05-26 Yamaha Corporation Electronic musical apparatus for training in timing correctly
US7674968B2 (en) 2007-03-23 2010-03-09 Yamaha Corporation Musical instrument with electronic proof system, electric system and computer program
US7723598B2 (en) 2007-06-22 2010-05-25 Yamaha Corporation Electronic proof system and musical instrument equipped with the same
JP2011095530A (en) * 2009-10-30 2011-05-12 Casio Computer Co Ltd Automatic accompaniment device and program
CN110299126A (en) * 2018-03-23 2019-10-01 卡西欧计算机株式会社 Electronic musical instrument, electronic musical instrument course processing method
CN114627723A (en) * 2020-12-08 2022-06-14 卡西欧计算机株式会社 Playing teaching device, method and storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0322655A3 (en) * 1987-12-29 1989-07-12 Nkk Corporation Plated steel sheet for cans
US4897316A (en) * 1987-12-29 1990-01-30 Nkk Corporation Plated steel sheet for cans
EP0322655A2 (en) * 1987-12-29 1989-07-05 Nkk Corporation Plated steel sheet for cans
JPH08248955A (en) * 1995-03-07 1996-09-27 Yamaha Corp Key touch instructing device
JP4834266B2 (en) * 1999-08-13 2011-12-14 インタラクティブ メトロノーム, インコーポレイテッド Method and apparatus for improving learning ability
JP2004500591A (en) * 1999-08-13 2004-01-08 シナプテック エル.エル.シー. Method and apparatus for improving learning ability
JP2007140067A (en) * 2005-11-17 2007-06-07 Casio Comput Co Ltd Musical sound generator, and program
US7538266B2 (en) 2006-03-27 2009-05-26 Yamaha Corporation Electronic musical apparatus for training in timing correctly
US7674968B2 (en) 2007-03-23 2010-03-09 Yamaha Corporation Musical instrument with electronic proof system, electric system and computer program
JP2008253440A (en) * 2007-04-03 2008-10-23 Yudo:Kk Music reproduction control system, music performance program and synchronous reproduction method of performance data
US7723598B2 (en) 2007-06-22 2010-05-25 Yamaha Corporation Electronic proof system and musical instrument equipped with the same
JP2011095530A (en) * 2009-10-30 2011-05-12 Casio Computer Co Ltd Automatic accompaniment device and program
CN110299126A (en) * 2018-03-23 2019-10-01 卡西欧计算机株式会社 Electronic musical instrument, electronic musical instrument course processing method
CN114627723A (en) * 2020-12-08 2022-06-14 卡西欧计算机株式会社 Playing teaching device, method and storage medium
JP2022090963A (en) * 2020-12-08 2022-06-20 カシオ計算機株式会社 Musical performance device, method and program

Also Published As

Publication number Publication date
JP3430267B2 (en) 2003-07-28

Similar Documents

Publication Publication Date Title
JP2576700B2 (en) Automatic accompaniment device
JPH0667653A (en) Electronic musical instrument
JP3239411B2 (en) Electronic musical instrument with automatic performance function
JPH0746272B2 (en) Electronic musical instrument
JP3237421B2 (en) Automatic performance device
JP2940449B2 (en) Automatic performance device
JP2546467B2 (en) Electronic musical instrument
JP3620366B2 (en) Electronic keyboard instrument
JPH0631977B2 (en) Electronic musical instrument
JP2943560B2 (en) Automatic performance device
JPH07219548A (en) Electronic musical instrument
JP2990780B2 (en) Music signal generator
JP2586744B2 (en) Automatic accompaniment device for electronic musical instruments
JP2002221961A (en) Device for practicing musical performance
JP2513014B2 (en) Electronic musical instrument automatic performance device
JP3620321B2 (en) Automatic accompaniment device
JP3082294B2 (en) Accompaniment sound signal forming device
JP2569822B2 (en) Electronic keyboard instrument
JP2500490B2 (en) Automatic accompaniment device
JP2879742B2 (en) Automatic accompaniment device
JP3120806B2 (en) Automatic accompaniment device
JP2848322B2 (en) Automatic accompaniment device
JPH0954580A (en) Automatic player and automatic playing method
JP3171436B2 (en) Automatic accompaniment device
JPH0317699A (en) Electronic musical instrument

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030408

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

Free format text: PAYMENT UNTIL: 20080523

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090523

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090523

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100523

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees