JPH08160948A - Electronic musical instrument with playing operation instruction function - Google Patents
Electronic musical instrument with playing operation instruction functionInfo
- Publication number
- JPH08160948A JPH08160948A JP6330101A JP33010194A JPH08160948A JP H08160948 A JPH08160948 A JP H08160948A JP 6330101 A JP6330101 A JP 6330101A JP 33010194 A JP33010194 A JP 33010194A JP H08160948 A JPH08160948 A JP H08160948A
- Authority
- JP
- Japan
- Prior art keywords
- key
- data
- sound
- performance
- processing
- 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
Links
Landscapes
- Auxiliary Devices For Music (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は、電子楽器演奏時の補
助として演奏者に手指の配置や操作すべき操作子を位置
や順番など表示する機能を備えた演奏操作指示機能付き
電子楽器に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument having a performance operation instructing function, which has a function of displaying the placement of fingers and the position and order of operators to be operated on the player as an aid when playing an electronic musical instrument.
【0002】[0002]
【従来の技術】従来、電子楽器演奏時の補助として演奏
者に操作すべき演奏操作子を指示する機能を備えた演奏
操作指示機能付き電子楽器としては、鍵盤の各鍵の上側
近傍に発光ダイオード(LED)を備え、演奏情報に従
って押鍵すべき鍵に対応したLEDを順次発光させるこ
とによって押鍵すべき鍵を指示するものがある。このよ
うな押鍵指示機能付き電子楽器の中には現在押鍵すべき
鍵に対応したLEDだけを点灯表示するものや、現在押
鍵すべき鍵に対応したLEDと共に次に押鍵すべき鍵に
対応したLEDを同時に表示するものなどがある。ま
た、このような押鍵指示機能付き電子楽器の中には、押
鍵すべき鍵に対応した音を押鍵すべきタイミングで発音
することによって演奏者に押鍵の指示を行うものもあ
る。2. Description of the Related Art Conventionally, as an electronic musical instrument having a performance operation instruction function having a function of instructing a performer to operate a music player as an aid when playing an electronic musical instrument, a light emitting diode is provided near the upper side of each key of a keyboard. There is one that has an (LED) and indicates the key to be pressed by sequentially emitting light corresponding to the key to be pressed according to the performance information. Among such electronic musical instruments with a key depression instruction function, only the LED corresponding to the key to be currently depressed is lit and displayed, or the LED corresponding to the key to be currently depressed and the key to be next depressed. There is a device that simultaneously displays LEDs corresponding to. Further, among such electronic musical instruments with a key-depression instructing function, there is also one that instructs the player to depress the key by producing a sound corresponding to the key to be depressed at the timing at which the key should be depressed.
【0003】[0003]
【発明が解決しようとする課題】ところが、押鍵すべき
鍵に対応したLEDを表示するものは、演奏者に対して
押鍵すべき鍵の位置を容易に認識させることはできる
が、演奏者は視覚によって認識している関係上、LED
発光タイミングから押鍵タイミングを認識することが困
難であるという問題を有する。一方、押鍵すべき鍵に対
応した音をその押鍵すべきタイミングで発音するもの
は、演奏者に対して押鍵タイミングを容易に認識させる
ことはできるが、演奏者がその鍵を押鍵した場合に押鍵
タイミングを示す音と押鍵に基づく音とが重複して発音
されることとなり、連符などのように押鍵が集中してい
る場合などには、演奏者はかえって押鍵タイミングを認
識しづらいという問題を有する。However, the LED display corresponding to the key to be pressed allows the player to easily recognize the position of the key to be pressed. LED is LED because it is visually recognized
There is a problem that it is difficult to recognize the key depression timing from the light emission timing. On the other hand, a note that produces a sound corresponding to a key to be pressed at the timing at which the key should be pressed allows the performer to easily recognize the key press timing, but the performer does not press the key. If the key is pressed, the sound indicating the key press timing and the sound based on the key press will be sounded in duplicate, and if the key press is concentrated such as a tuplet, the performer will instead press the key. There is a problem that it is difficult to recognize the timing.
【0004】この発明は、上述の点に鑑みてなされたも
のであり、演奏操作子を操作すべきタイミングを分かり
やすく指示することのできる演奏操作指示機能付き電子
楽器を提供することを目的とする。The present invention has been made in view of the above points, and an object of the present invention is to provide an electronic musical instrument with a performance operation instruction function capable of instructing the timing at which a performance operator should be operated in an easy-to-understand manner. .
【0005】[0005]
【課題を解決するための手段】この発明に係る演奏操作
指示機能付き電子楽器は、複数の演奏操作子と、演奏情
報を供給する演奏情報供給手段と、前記演奏情報供給手
段から順次供給される演奏情報に基づいて前記演奏操作
子を操作すべきタイミングで音程感のないリズム音を発
音する発音手段とを具備するものである。An electronic musical instrument with a performance operation instructing function according to the present invention is provided with a plurality of performance operators, performance information supply means for supplying performance information, and sequentially supplied from the performance information supply means. And a sounding means for producing a rhythm sound having no sense of pitch at a timing at which the performance operator should be operated based on performance information.
【0006】[0006]
【作用】演奏操作子は演奏に必要な複数の操作子で構成
される。例えば鍵盤楽器の場合には演奏に必要な複数の
鍵で構成される。演奏情報供給手段は楽曲に応じた演奏
情報を供給するものである。この発明では、発音手段が
演奏情報供給手段から順次供給される演奏情報に基づい
て演奏操作子を操作すべきタイミングで音程感のないリ
ズム音を発音する。従って、演奏者がその鍵を押鍵する
ことによって、このリズム音と押鍵に基づく音とが重複
して発音されることとなるが、リズム音は音程感のない
音、例えばメトロノーム音やクリック音などのように音
の強さと長さだけで規定されるような機械的な音であ
り、押鍵音と音楽的に干渉しにくいため、演奏者は自分
の押鍵音とリズム音とを明確に区別することができ、押
鍵すべきタイミングを容易かつ確実に理解することがで
きるようになる。The operation operator is composed of a plurality of operators required for performance. For example, a keyboard instrument is composed of a plurality of keys necessary for playing. The performance information supply means supplies performance information according to the music. According to the present invention, the sound producing means produces a rhythm sound having no sense of pitch at the timing at which the performance operator should be operated based on the performance information sequentially supplied from the performance information supplying means. Therefore, when the performer presses the key, the rhythm sound and the sound based on the key press are duplicated, but the rhythm sound is a sound with no sense of pitch, such as metronome sound or click sound. It is a mechanical sound such as sound that is defined only by the strength and duration of the sound, and it is difficult for the key press sound to interfere musically. The distinction can be made clearly, and it becomes possible to easily and surely understand the timing at which the key should be pressed.
【0007】[0007]
【実施例】以下、この発明の演奏操作指示機能付き電子
楽器の実施例として自動演奏装置を内蔵した電子鍵盤楽
器を例に説明する。図2はこの発明の一実施例に係る押
鍵指示機能付き電子鍵盤楽器のハードウェア構成例を示
すブロック図である。この押鍵指示機能付き電子鍵盤楽
器は鍵盤の各鍵の上側近傍に発光ダイオード(LED)
や液晶ディスプレイ(LCD)を有し、演奏データに従
って鍵盤上のどの鍵を押鍵すればよいか、すなわち現在
押鍵すべき鍵と次に押鍵すべき鍵を同時にLEDやLC
Dに表示するものである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An electronic keyboard instrument having a built-in automatic performance device will be described below as an example of an electronic musical instrument having a performance operation instruction function of the present invention. FIG. 2 is a block diagram showing a hardware configuration example of an electronic keyboard musical instrument with a key depression instruction function according to an embodiment of the present invention. This electronic keyboard instrument with a key-pressing instruction function has a light emitting diode (LED) near the upper side of each key on the keyboard.
Has a liquid crystal display (LCD), and which key on the keyboard should be pressed according to the performance data, that is, the key to be currently pressed and the key to be pressed next are simultaneously LED or LC.
It is displayed on D.
【0008】この実施例において、電子鍵盤楽器はマイ
クロプロセッサユニット(CPU)1、プログラムメモ
リ(ROM)2、ワーキングメモリ(RAM)3を含ん
で構成されるマイクロコンピュータの制御の下に各種の
処理を実行するようになっている。CPU1はこの電子
鍵盤楽器全体の動作を制御するものである。このCPU
1に対して、データ及びアドレスバス18を介してプロ
グラムメモリ2、ワーキングメモリ3、演奏情報メモリ
4、押鍵検出回路5、表示回路6、スイッチ検出回路
7、インターフェイス8及び音源回路9が接続されてい
る。In this embodiment, the electronic keyboard instrument performs various processes under the control of a microcomputer including a microprocessor unit (CPU) 1, a program memory (ROM) 2 and a working memory (RAM) 3. Ready to run. The CPU 1 controls the operation of the entire electronic keyboard instrument. This CPU
1, a program memory 2, a working memory 3, a performance information memory 4, a key pressing detection circuit 5, a display circuit 6, a switch detection circuit 7, an interface 8 and a tone generator circuit 9 are connected via a data and address bus 18. ing.
【0009】プログラムメモリ2はCPU1のシステム
プログラム、楽音に関する各種パラメータや各種データ
等を格納しているものであり、リードオンリーメモリ
(ROM)で構成されている。ワーキングメモリ3はC
PU1がプログラムを実行する際に発生する各種のデー
タやフラグを一時的に記憶するものであり、ランダムア
クセスメモリ(RAM)の所定のアドレス領域がそれぞ
れ割り当てられる。The program memory 2 stores the system program of the CPU 1, various parameters and various data relating to musical tones, and is composed of a read only memory (ROM). Working memory 3 is C
The PU1 temporarily stores various data and flags generated when the program is executed, and a predetermined address area of a random access memory (RAM) is allocated to each.
【0010】演奏情報メモリ4は演奏者が演奏しようと
する演奏曲に関する演奏データと、その演奏曲に付随し
た伴奏音(和音やベース音)に関する演奏データをそれ
ぞれの演奏曲毎に複数トラックに記憶している。この実
施例ではトラック数は9であり、その中の2つが右手及
び左手の押鍵に関する演奏データを記憶している。演奏
データは通常の自動伴奏で使用されるようなものであ
り、キーオンデータ、デュレーションデータ、音色デー
タ、エフェクトデータなどで構成されていて、押鍵に関
する演奏データはこれ以外にLEDの点灯表示に関する
LED点灯データ及びLED点滅データを含んで構成さ
れている。The performance information memory 4 stores performance data relating to a musical piece to be played by the performer and performance data relating to accompaniment tones (chords and bass tones) accompanying the musical performance piece in a plurality of tracks for each musical piece. are doing. In this embodiment, the number of tracks is nine, and two of them store performance data regarding right-hand and left-hand key depression. The performance data is like that used in normal automatic accompaniment, and is composed of key-on data, duration data, tone color data, effect data, etc., and the performance data related to key depression is in addition to the LED related to the LED lighting display. It is configured to include lighting data and LED blinking data.
【0011】鍵盤11は発音すべき楽音の音高を選択す
るための複数の鍵を備えており、各鍵に対応したキース
イッチを有しており、また必要に応じて押圧力検出装置
等のタッチ検出手段を有している。鍵盤11は音楽演奏
のための基本的な操作子であり、これ以外の演奏操作子
でもよいことはいうまでもない。押鍵検出回路5は発生
すべき楽音の音高を指定する鍵盤11のそれぞれの鍵に
対応して設けられたキースイッチ回路を含むものであ
る。この押鍵検出回路5は鍵盤11の離鍵状態から押鍵
状態への変化を検出してキーオンイベントを出力し、押
鍵状態から離鍵状態への変化を検出してキーオフイベン
トを出力すると共にそれぞれのキーオンイベント及びキ
ーオフイベントに関する鍵の音高を示すキーコード(ノ
ートナンバ)を出力する。押鍵検出回路5はこの他にも
鍵押し下げ時の押鍵操作速度や押圧力等を検出してベロ
シティデータやアフタタッチデータを出力する。The keyboard 11 is provided with a plurality of keys for selecting the pitch of a musical tone to be generated, has a key switch corresponding to each key, and if necessary, a pressing force detecting device or the like. It has a touch detection means. The keyboard 11 is a basic operator for playing music, and it goes without saying that other keyboard operators may be used. The key-depression detection circuit 5 includes a key switch circuit provided corresponding to each key of the keyboard 11 that specifies the pitch of a musical tone to be generated. The key-depression detection circuit 5 detects a change from the key-released state to the key-depressed state of the keyboard 11 and outputs a key-on event, and detects a change from the key-depressed state to the key-released state and outputs a key-off event. A key code (note number) indicating the pitch of the key for each key-on event and key-off event is output. In addition to this, the key-depression detection circuit 5 detects the key-depression operation speed and the pressure when the key is depressed, and outputs velocity data and after-touch data.
【0012】表示部12は鍵盤11の上側に隣接して設
けられた複数の発光ダイオード(LED群)や液晶ディ
スプレイ(LCD)などで構成される。表示回路6は演
奏情報メモリ4に記憶されている演奏データに従ってL
EDを発光させたり、LCDに所定の図記号を表示した
りするものである。The display unit 12 is composed of a plurality of light emitting diodes (LED group) and a liquid crystal display (LCD) provided adjacently on the upper side of the keyboard 11. The display circuit 6 displays L according to the performance data stored in the performance information memory 4.
The ED is caused to emit light and a predetermined graphic symbol is displayed on the LCD.
【0013】スイッチ検出回路7は各種のスイッチ群1
3に対応して設けられており、各々のスイッチ群の操作
状況に応じた操作データをイベント情報として出力す
る。スイッチ群13はディスク14からデータの読み出
しを制御するためのロードスイッチや自動演奏及び押鍵
指示のスタート/ストップを制御するためのスタート/
ストップスイッチや、発生すべき楽音の音色、音量、音
高、効果等を選択、設定、制御するための各種の操作子
を含むものである。The switch detection circuit 7 includes various switch groups 1
It is provided in correspondence with No. 3 and outputs operation data corresponding to the operation status of each switch group as event information. The switch group 13 includes a load switch for controlling the reading of data from the disk 14 and a start / stop for controlling the start / stop of the automatic performance and the key depression instruction.
It includes a stop switch and various operators for selecting, setting, and controlling the tone color, volume, pitch, effect, etc. of a musical tone to be generated.
【0014】ディスク14はフロッピーディスクなどの
記憶媒体であり、演奏曲に対応した各種の演奏データを
記憶しているものである。インターフェイス8はディス
ク14に記憶されている演奏データをマイクロコンピュ
ータ内で処理可能なデータに変換するものである。The disk 14 is a storage medium such as a floppy disk and stores various performance data corresponding to a performance song. The interface 8 converts the performance data stored in the disk 14 into data that can be processed in the microcomputer.
【0015】音源回路9は複数のチャンネルで楽音信号
の同時発生が可能であり、データ及びアドレスバス18
を経由して与えられる演奏データに基づいた楽音信号を
発生する。音源回路9における楽音信号発生方式はいか
なるものを用いてもよい。例えば、発生すべき楽音の音
高に対応して変化するアドレスデータに応じて波形メモ
リに記憶した楽音波形サンプル値データを順次読み出す
メモリ読み出し方式、又は上記アドレスデータを位相角
パラメータデータとして所定の周波数変調演算を実行し
て楽音波形サンプル値データを求めるFM方式、あるい
は上記アドレスデータを位相角パラメータデータとして
所定の振幅変調演算を実行して楽音波形サンプル値デー
タを求めるAM方式等の公知の方式を適宜採用してもよ
い。The tone generator circuit 9 is capable of simultaneously generating musical tone signals on a plurality of channels, and has a data and address bus 18
A musical tone signal is generated based on the performance data given via. Any tone signal generation method in the tone generator circuit 9 may be used. For example, a memory reading method for sequentially reading tone waveform sample value data stored in a waveform memory according to address data that changes corresponding to the pitch of a tone to be generated, or a predetermined frequency using the above address data as phase angle parameter data. A well-known method such as an FM method for performing a modulation operation to obtain musical tone waveform sample value data or an AM method for performing a predetermined amplitude modulation operation using the address data as phase angle parameter data to obtain a tone waveform sample value data. You may employ suitably.
【0016】音源回路9から発生される楽音信号はデジ
タル−アナログ変換器(DAC)15及びサウンドシス
テム16(アンプ及びスピーカからなる)を介して発音
される。タイマ17は時間間隔を計数したり、演奏情報
メモリ4から演奏データを読み出すためのクロックパル
スを発生するものであり、このクロックパルスの周波数
はスイッチ群13上のテンポスイッチ(図示していな
い)などによって調整される。発生したクロックパルス
はCPU1に対してインタラプト命令として与えられ、
CPU1はこのクロックパルスに従った割り込み処理を
実行して、楽音を発生したり、押鍵指示を行ったりす
る。The tone signal generated from the tone generator circuit 9 is sounded through a digital-analog converter (DAC) 15 and a sound system 16 (which is composed of an amplifier and a speaker). The timer 17 counts time intervals and generates clock pulses for reading performance data from the performance information memory 4. The frequency of this clock pulse is a tempo switch (not shown) on the switch group 13 or the like. Adjusted by The generated clock pulse is given to the CPU 1 as an interrupt instruction,
The CPU 1 executes interrupt processing according to this clock pulse to generate a musical sound or give a key depression instruction.
【0017】図3はこの演奏情報メモリ4に記憶されて
いる1トラック分(トラック番号TR=0)の演奏デー
タの構成例を示す図である。トラック番号TR=0は右
手の押鍵に関する演奏データを記憶しているトラックで
あり、トラック番号TR=1は左手の押鍵に関する演奏
データを記憶しているトラックである。これ以外のトラ
ック番号TR=2〜8は伴奏音(和音やベース音)に関
する各種演奏データを記憶しているトラックである。FIG. 3 is a diagram showing an example of the structure of performance data for one track (track number TR = 0) stored in the performance information memory 4. Track number TR = 0 is a track that stores performance data relating to right-hand key depression, and track number TR = 1 is a track that stores performance data relating to left-hand key depression. Other track numbers TR = 2 to 8 are tracks storing various performance data relating to accompaniment tones (chords and bass tones).
【0018】演奏データはLED点灯データ、LED点
滅データ、キーオンデータ、デュレーションデータ及び
エンドコードの組み合わせで構成されている。LED点
灯データは、これ以降のデータがLEDの点灯に関する
データであることを示すLED点灯コードと、点灯する
LEDの位置を示すキーコードとから構成される。LE
D点滅データは、これ以降のデータがLEDの点滅に関
するデータであることを示すLED点滅コードと、点滅
するLEDの位置を示すキーコードとから構成される。
キーオンデータは次のデータがキーオンに関するデータ
であることを示すキーオンコード、鍵の音高を示すキー
コード、押鍵操作速度を示すベロシティ及び音長を示す
ゲートタイムから構成される。デュレーションデータは
次のデータがデュレーションに関するデータであること
を示すデュレーションコードと、イベントの発生間隔を
示すデュレーションタイムとから構成される。エンドコ
ードは押鍵指示データの終了を示す。The performance data is composed of a combination of LED lighting data, LED blinking data, key-on data, duration data and end code. The LED lighting data is composed of an LED lighting code indicating that the subsequent data is data related to the lighting of the LED and a key code indicating the position of the LED to be lit. LE
The D blinking data is composed of an LED blinking code indicating that the data thereafter is data relating to blinking of the LED, and a key code indicating the position of the blinking LED.
The key-on data is composed of a key-on code indicating that the next data is data related to key-on, a key code indicating a pitch of a key, a velocity indicating a key pressing operation speed, and a gate time indicating a note length. The duration data is composed of a duration code indicating that the next data is data relating to the duration and a duration time indicating an event occurrence interval. The end code indicates the end of the key depression instruction data.
【0019】次に、マイクロコンピュータによって実行
される図2の電子鍵盤楽器の処理の一例を説明する。図
4はマイクロコンピュータが処理するメインルーチンの
一例を示す図である。このメインルーチンはつぎのよう
なステップで順番に実行される。 ステップ41:まず、電源が投入されると、CPU1は
プログラムメモリ2に格納されている制御プログラムに
応じた初期設定処理を開始する。そして、この「初期設
定処理」では、ワーキングメモリ3内の各種レジスタや
フラグ等を初期値に設定する。 ステップ42:押鍵検出回路5をスキャンして鍵盤11
の操作によるキーイベントが有るかどうかを判定し、キ
ーイベント有り(YES)の場合は次のステップ43に
進み、キーイベント無し(NO)の場合はステップ47
にジャンプする。Next, an example of processing of the electronic keyboard instrument of FIG. 2 executed by the microcomputer will be described. FIG. 4 is a diagram showing an example of a main routine processed by the microcomputer. This main routine is sequentially executed in the following steps. Step 41: First, when the power is turned on, the CPU 1 starts the initialization process according to the control program stored in the program memory 2. Then, in this "initial setting process", various registers and flags in the working memory 3 are set to initial values. Step 42: The key press detection circuit 5 is scanned and the keyboard 11 is pressed.
It is determined whether or not there is a key event by the operation of. If the key event is present (YES), the process proceeds to the next step 43, and if the key event is not present (NO), the step 47 is performed.
Jump to.
【0020】ステップ43〜45の処理は鍵盤11の操
作に対応したキーイベントが発生するたびに行われる処
理である。 ステップ43:キーイベントがキーオンイベントかどう
かを判定し、キーオンイベント(YES)の場合はステ
ップ45に進み、そうでないキーオフイベント(NO)
の場合はステップ44に進む。 ステップ44:前ステップでキーオフイベントと判定さ
れたので、それに対応した消音処理を行い、ステップ4
7に進む。 ステップ45:前ステップ43でキーオンイベントだと
判定されたので、そのイベントに対応した発音処理を行
う。 ステップ46:押鍵指示(この実施例ではLED点灯)
された鍵が全て押鍵されたかどうかの比較判定を行いな
がら演奏処理を進行させるかどうかを制御する比較進行
処理を行い、ステップ47に進む。The processing of steps 43 to 45 is performed every time a key event corresponding to the operation of the keyboard 11 occurs. Step 43: It is determined whether the key event is a key-on event, and if it is a key-on event (YES), the process proceeds to step 45, and if not, a key-off event (NO).
In the case of, the process proceeds to step 44. Step 44: Since the key-off event is determined in the previous step, the muffling process corresponding thereto is performed, and Step 4
Proceed to 7. Step 45: Since it is determined in the previous step 43 that the event is a key-on event, a sounding process corresponding to the event is performed. Step 46: Key depression instruction (LED lighting in this embodiment)
Comparison progress processing is performed to control whether or not the performance processing is to be performed while performing a comparison determination as to whether or not all of the played keys have been pressed, and the routine proceeds to step 47.
【0021】図5はステップ46の比較進行処理の詳細
を示す図である。この比較進行処理はつぎのようなステ
ップで順番に実行される。 ステップ51:待ち状態かどうかを判定する。すなわ
ち、待ち状態フラグWAITが『1』かどうかを判定
し、『1』(YES)の場合は次のステップ52に進
み、そうでない(NO)場合はリターンし、図4のステ
ップ47に進む。ここで、待ち状態フラグWAITは、
後述する割り込み処理の中で新たなキーオンデータが発
音キーコードリストに登録された場合に図1のステップ
104で『1』にセットされるものなので、このステッ
プ51でYESと判定されたということは、新たなキー
オンデータが発音キーコードリストに追加登録されたこ
とを意味する。FIG. 5 is a diagram showing the details of the comparison / progress process in step 46. This comparison progress processing is sequentially executed in the following steps. Step 51: It is judged whether or not it is in a waiting state. That is, it is determined whether or not the wait state flag WAIT is "1". If "1" (YES), the process proceeds to the next step 52, and if not (NO), the process returns and proceeds to step 47 of FIG. Here, the wait state flag WAIT is
When new key-on data is registered in the sounding key code list in the interrupt process described later, it is set to "1" in step 104 of FIG. 1, so that it is judged YES in this step 51. , Means that new key-on data is additionally registered in the pronunciation key code list.
【0022】ステップ52:発音キーコードリストに登
録されているキーコードが全て押鍵されているかどうか
判定し、全て押鍵されている(YES)場合は次のステ
ップ53以降に進み、全て押鍵されていない(NO)場
合はリターンし、図4のステップ47に進む。 ステップ53:前ステップ52で発音キーコードリスト
に登録されているキーコードが全て押鍵されたと判定さ
れたので、ここでは、その発音キーコードリストのキー
コードに対応するLEDを消灯する。これは、発音キー
コードリストに登録されているキーコードに対応するL
EDは図9のデータ処理のステップ95によって点灯状
態になっているからである。Step 52: It is judged whether or not all the key codes registered in the tone generation key code list have been pressed, and if all the key codes have been pressed (YES), the process proceeds to the next step 53 and subsequent steps to press all the keys. If not (NO), the process returns and proceeds to step 47 in FIG. Step 53: Since it is determined in the previous step 52 that all the key codes registered in the sound generation key code list have been pressed, the LED corresponding to the key code in the sound generation key code list is turned off here. This is the L corresponding to the key code registered in the pronunciation key code list.
This is because the ED is turned on in step 95 of the data processing in FIG.
【0023】ステップ54:待ち状態フラグWAITに
『0』をセットして、待ち状態を解除する。この待ち状
態の解除によって図7のステップ73以降の割り込み処
理が実行されるようになる。 ステップ55:発音キーコードリストをクリアする。す
なわち、発音キーコードに登録されている全キーコード
を消去し、図4のステップ47に進む。なお、この比較
進行処理は図7のステップ74でも実行されるので、ス
テップ51又はステップ52でNOと判定された場合、
及びステップ55の処理が終了した場合には図7のステ
ップ75に進む。Step 54: The wait state flag WAIT is set to "0" to cancel the wait state. By canceling this waiting state, the interrupt processing after step 73 in FIG. 7 is executed. Step 55: Clear the pronunciation key code list. That is, all key codes registered in the phonetic key code are erased, and the process proceeds to step 47 in FIG. Since this comparison progress processing is also executed in step 74 of FIG. 7, when NO is determined in step 51 or step 52,
If the process of step 55 is completed, the process proceeds to step 75 of FIG.
【0024】ステップ47:スイッチ群13をスキャン
し、その中のロードスイッチ(図示せず)のオンイベン
ト有りかどうかを判定し、オンイベント有り(YES)
の場合は次のステップ48に進み、そうでない(NO)
場合はステップ49にジャンプする。 ステップ48:ロードスイッチのオンイベントが発生し
たと前ステップ47で判定されたので、ここでは、ディ
スク14から図3に示すような演奏データを読み出し、
それを演奏情報メモリ4に書き込む。Step 47: The switch group 13 is scanned, and it is judged whether or not there is an on event of the load switch (not shown) therein, and there is an on event (YES).
If it is, proceed to the next step 48, otherwise (NO)
If so, jump to step 49. Step 48: Since it was determined in the previous step 47 that an ON event of the load switch has occurred, here, the performance data as shown in FIG.
It is written in the performance information memory 4.
【0025】ステップ49:スイッチ群13をスキャン
し、その中の演奏処理モード切換スイッチ(図示せず)
のオンイベント有りかどうかを判定し、オンイベント有
り(YES)場合は次のステップ4Aに進み、そうでな
い(NO)場合はステップ4Bにジャンプする。 ステップ4A:演奏処理モード切換スイッチのオンイベ
ントが発生したと前ステップ49で判定されたので、こ
こでは、モード番号レジスタMODの値を『0』、
『1』、『2』、『3』、『4』の順に切り換える。す
なわち、このステップ前にモードレジスタMODの値が
『0』の場合には『1』に、『2』の場合は『3』に、
『3』の場合は『4』に、『4』の場合は『0』に切り
換える。Step 49: The switch group 13 is scanned, and the performance processing mode changeover switch (not shown) in the switch group 13 is scanned.
If there is an on event (YES), the process proceeds to the next step 4A. If not (NO), the process jumps to step 4B. Step 4A: Since it was determined in the previous step 49 that the on event of the performance processing mode changeover switch has occurred, the value of the mode number register MOD is set to "0",
It switches in the order of "1", "2", "3", "4". That is, before this step, if the value of the mode register MOD is "0", it is "1", if it is "2", it is "3",
If it is "3", it is switched to "4", and if it is "4", it is switched to "0".
【0026】ここで、モード番号レジスタMODは電子
楽器の演奏処理モードを示すものである。モード番号レ
ジスタMOD=『0』は押鍵指示は一切行わない通常の
自動演奏モードである。モード番号レジスタMOD=
『1』はLEDで押鍵位置を指示すると共に押鍵すべき
鍵に対応した音を押鍵すべきタイミングで発音する押鍵
音発音指示モードである。モード番号レジスタMOD=
『2』はLEDで押鍵位置を指示すると共に押鍵すべき
タイミングで音程感のないリズム音(例えば、メトロノ
ーム音など)を発音するリズム音発音指示モードであ
る。モード番号レジスタMOD=『3』はLEDで押鍵
位置を指示すると共に押鍵すべき鍵に対応した音と音程
感のないリズム音を押鍵すべきタイミングで同時に発音
する押鍵音発音指示&リズム音発音指示モードである。
モード番号レジスタMOD=『4』は押鍵すべきタイミ
ングで押鍵音やリズム音を発音する押鍵指示は行わずに
LEDだけで押鍵位置を指示するLED押鍵指示モード
である。The mode number register MOD indicates the performance processing mode of the electronic musical instrument. The mode number register MOD = "0" is a normal automatic performance mode in which no key depression instruction is given. Mode number register MOD =
“1” is a key-depression tone generation instruction mode in which the LED is used to indicate the key-depression position and a tone corresponding to the key to be depressed is generated at the timing at which the key should be depressed. Mode number register MOD =
“2” is a rhythm sound instructing mode in which the LED is used to indicate the key pressing position and a rhythm sound (for example, a metronome sound) that does not have a pitch feeling is generated at the timing when the key should be pressed. The mode number register MOD = “3” indicates the key pressing position with the LED, and at the same time, the key pressing sound generation instruction & sound for producing a sound corresponding to the key to be pressed and a rhythm sound with no sense of pitch at the timing to press the key & Rhythm sound pronunciation instruction mode.
The mode number register MOD = “4” is an LED key pressing instruction mode in which the key pressing position is instructed only by the LED without issuing the key pressing instruction to generate the key pressing sound or the rhythm sound at the timing when the key should be pressed.
【0027】ステップ4B:スイッチ群13をスキャン
し、その中のスタート/ストップスイッチ(図示せず)
の操作によるオンイベントが発生したかどうかを判定
し、オンイベント有り(YES)の場合は次のステップ
4Cに進み、オンイベント無し(NO)の場合はステッ
プ4Gにジャンプする。Step 4B: The switch group 13 is scanned, and the start / stop switch (not shown) therein is scanned.
It is determined whether or not an on-event has occurred due to the above operation. If there is an on-event (YES), the process proceeds to the next step 4C, and if there is no on-event (NO), the process jumps to step 4G.
【0028】ステップ4C:走行状態フラグRUNを反
転する。すなわち、この実施例では、スタート/ストッ
プスイッチが操作される毎に、モード番号レジスタMO
Dの格納値に対応した自動演奏を開始したり、停止した
りする。走行状態フラグRUNは自動演奏の状態を示す
ものであり、『0』は停止中であることを示し、『1』
は自動演奏中であることを示す。 ステップ4D:走行状態フラグRUNが『1』かどうか
を判定し、『1』(YES)の場合は次のステップ4F
に進み、そうでない(NO)場合はステップ4Eに進
む。 ステップ4E:前ステップ4Dで走行状態フラグRUN
が『0』、すなわち自動演奏を停止すると判定されたの
で、ここでは自動演奏をストップする。Step 4C: The running state flag RUN is reversed. That is, in this embodiment, each time the start / stop switch is operated, the mode number register MO
The automatic performance corresponding to the stored value of D is started or stopped. The running state flag RUN indicates the state of automatic performance, "0" indicates that it is stopped, and "1".
Indicates that the automatic performance is being performed. Step 4D: It is determined whether or not the traveling state flag RUN is "1", and if "1" (YES), the next step 4F
If not (NO), go to step 4E. Step 4E: Running state flag RUN in the previous step 4D
Is "0", that is, it is determined that the automatic performance is stopped, so the automatic performance is stopped here.
【0029】ステップ4F:走行状態フラグRUNが
『1』だと判定されたので、ここでは図6に示すような
自動演奏スタート処理を行う。この自動演奏スタート処
理は次のようなステップで順番に処理される。 ステップ61:スタート/ストップスイッチが操作さ
れ、走行状態フラグRUNが『1』に反転した直後なの
で、全トラックの読み出しポインタを演奏情報メモリ4
のそれぞれ対応する記憶領域の先頭アドレスにセットす
る。 ステップ62:待ち状態フラグWAITに『0』をセッ
トし、待ち状態を解除する。この待ち状態の解除によっ
て図7のステップ73以降の割り込み処理が実行される
ようになる。 ステップ63:各トラック番号L=0〜8に対応したタ
イミングカウンタTM(L)をそれぞれ『0』にリセッ
トする。タイミングカウンタTM(L)は自動演奏及び
押鍵指示(LED点灯指示、押鍵音発音指示、リズム音
発音指示)のタイミングを計時するためのカウンタであ
り、各トラック毎に存在する。トラック番号Lは演奏情
報メモリ4の再生トラックを特定する『0』〜『8』の
値である。トラック番号L=0は右手の押鍵に関する演
奏データを記憶しているトラックであり、トラック番号
L=1は左手の押鍵に関する演奏データを記憶している
トラックである。これ以外のトラック番号L=2〜8は
伴奏音(和音やベース音)に関する演奏データを記憶し
ているトラックである。 ステップ64:発音キーコードリストをクリアし、図4
のステップ4Gにリターンする。 ステップ4G:スイッチ群13におけるその他の操作子
の操作に基づく処理や、その他の音量変更処理等の種々
の処理を行う。Step 4F: Since it is determined that the traveling state flag RUN is "1", the automatic performance start process as shown in FIG. 6 is performed here. This automatic performance start processing is sequentially processed in the following steps. Step 61: Since the start / stop switch has been operated and the running state flag RUN has been inverted to "1", the read pointers of all tracks are set to the performance information memory 4
Are set to the start addresses of the corresponding storage areas. Step 62: The waiting state flag WAIT is set to "0" to cancel the waiting state. By canceling this waiting state, the interrupt processing after step 73 in FIG. 7 is executed. Step 63: The timing counter TM (L) corresponding to each track number L = 0 to 8 is reset to “0”. The timing counter TM (L) is a counter for timing automatic performance and key depression instructions (LED lighting instruction, key depression sound pronunciation instruction, rhythm sound pronunciation instruction), and is present for each track. The track number L is a value of "0" to "8" that specifies the reproduction track of the performance information memory 4. Track number L = 0 is a track that stores performance data relating to right-hand key depression, and track number L = 1 is a track that stores performance data relating to left-hand key depression. Other track numbers L = 2 to 8 are tracks in which performance data regarding accompaniment tones (chords and bass tones) are stored. Step 64: Clear the pronunciation key code list, and then click FIG.
Return to step 4G. Step 4G: Various processes such as a process based on the operation of another operator in the switch group 13 and other volume changing process are performed.
【0030】図7は1小節当たり96回(96分音符長
毎)のタイミングで実行される割り込み処理を示す図で
ある。この割り込み処理では押鍵指示処理と自動伴奏処
理を行う。この割り込み処理はつぎのようなステップで
順番に実行される。 ステップ71:走行状態フラグRUNが『1』かどうか
を判定し、『1』(YES)の場合は次のステップ72
に進み、そうでない(NO)場合は直ちにリターンす
る。 ステップ72:待ち状態かどうか、すなわち、待ち状態
フラグWAITが『1』かどうかを判定し、待ち状態
『1』(YES)の場合はリターンし、待ち状態解除
『0』(NO)の場合は次のステップ73に進む。FIG. 7 is a diagram showing an interrupt process executed at a timing of 96 times per bar (every 96th note length). In this interrupt processing, key depression instruction processing and automatic accompaniment processing are performed. This interrupt processing is sequentially executed in the following steps. Step 71: It is determined whether or not the traveling state flag RUN is "1", and if "1" (YES), the next step 72
If not (NO), the process immediately returns. Step 72: It is determined whether or not the waiting state, that is, the waiting state flag WAIT is "1". If the waiting state is "1" (YES), the process returns, and if the waiting state is released "0" (NO), the process returns. Proceed to next step 73.
【0031】ステップ73:図8に示すような演奏デー
タの再生処理を行う。図8はこのステップ73の再生処
理の詳細を示す図である。この再生処理は演奏情報メモ
リ4内の9つのトラックに対して順番に同様の処理を行
うものである。この再生処理はつぎのようなステップで
順番に実行される。 ステップ81:図7のステップ71で走行状態フラグR
UNが『1』だと判定され、ステップ72で待ち状態で
ない(NO)と判定されたので、トラック番号レジスタ
TRを『0』にセットする。ここで、トラック番号レジ
スタTRは演奏情報メモリ4の再生トラックを特定する
ためのレジスタであり、『0』〜『8』の値が格納され
る。Step 73: Perform performance data reproduction processing as shown in FIG. FIG. 8 is a diagram showing details of the reproduction processing in step 73. In this reproducing process, the same process is sequentially performed on the nine tracks in the performance information memory 4. This reproduction process is sequentially executed in the following steps. Step 81: The traveling state flag R in step 71 of FIG.
Since it is determined that the UN is "1" and it is not in the waiting state (NO) in step 72, the track number register TR is set to "0". Here, the track number register TR is a register for specifying a reproduction track of the performance information memory 4, and stores values of "0" to "8".
【0032】ステップ82:タイミングカウンタTM
(TR)の格納値、すなわちトラック番号レジスタTR
の格納値に対応するトラックのタイミングカウント値が
『0』以下かどうかを判定し、『0』以下(YES)の
場合はステップ83に進み、『0』よりも大きい(N
O)場合はステップ84に進む。 ステップ83:前ステップ82でタイミングカウント値
が『0』以下であると判定されたので、トラック番号レ
ジスタTRに対応するトラックの読み出しポインタが指
す演奏データを読み出す。Step 82: Timing counter TM
Stored value of (TR), that is, track number register TR
It is determined whether the timing count value of the track corresponding to the stored value of "0" or less is equal to or less than "0" (YES), the process proceeds to step 83 and is greater than "0" (N
O), the process proceeds to step 84. Step 83: Since it is determined in the previous step 82 that the timing count value is "0" or less, the performance data pointed to by the read pointer of the track corresponding to the track number register TR is read.
【0033】ステップ84:前ステップ82でタイミン
グカウント値が『0』より大きいと判定されたというこ
とは、まだ演奏データの読み出しタイミングではないと
いうことを意味するので、ここでは、そのタイミングカ
ウンタTM(TR)の格納値を『1』だけデクリメント
処理して、ステップ8Aに進む。 ステップ85:前ステップ83で読み出されたデータが
エンドデータかどうかを判定し、エンドデータ(YE
S)の場合はトラック番号レジスタTRに対応するトラ
ックの全演奏データが読み出されたことを意味するの
で、ステップ8Aにジャンプし、それ以外のデータ(N
O)の場合はまだそのトラックの全演奏データが読み出
されていないことを意味するので、ステップ86に進
む。Step 84: The fact that the timing count value is judged to be larger than "0" in the previous step 82 means that it is not the timing for reading the performance data. Therefore, the timing counter TM ( The stored value of (TR) is decremented by "1", and the process proceeds to step 8A. Step 85: It is judged whether the data read in the previous step 83 is end data, and the end data (YE
In the case of S), it means that all the performance data of the track corresponding to the track number register TR has been read out, so the process jumps to step 8A and the other data (N
In the case of O), it means that all the performance data of the track has not been read yet, so the routine proceeds to step 86.
【0034】ステップ86:読み出しポインタを次のデ
ータの読み出しアドレスにセットする。例えば、ステッ
プ83で読み出されたデータがLED点灯データやLE
D点滅データの場合にはポインタを2つ進め、キーオン
データの場合にはポインタを4つ進め、デュレーション
データの場合にはポインタを2つ進める。 ステップ87:前ステップ83で読み出されたデータが
デュレーションデータかどうかの判定を行い、デュレー
ションデータ(YES)の場合はステップ88に進み、
それ以外のデータ(NO)の場合はステップ89に進
む。 ステップ88:前ステップ87でデュレーションデータ
だと判定されたので、そのデュレーションタイムをトラ
ック番号レジスタTRに対応するトラックのタイミング
カウンタTM(TR)に格納する。Step 86: Set the read pointer to the read address of the next data. For example, the data read in step 83 is the LED lighting data or LE.
In the case of D blink data, the pointer is advanced by two, in the case of key-on data, the pointer is advanced by four, and in the case of duration data, the pointer is advanced by two. Step 87: It is judged whether or not the data read in the previous step 83 is duration data, and if it is duration data (YES), the process proceeds to step 88,
For other data (NO), the process proceeds to step 89. Step 88: Since it was determined in the previous step 87 that the data is duration data, the duration time is stored in the timing counter TM (TR) of the track corresponding to the track number register TR.
【0035】ステップ89:前ステップ83で読み出さ
れたデータがエンドデータでもデュレーションデータで
もないと判定されたので、その読み出されたデータに対
して図9のデータ処理を行う。図9はこのステップ89
のデータ処理の詳細を示す図である。このデータ処理は
つぎのようなステップで順番に実行される。 ステップ91:図8のステップ83で読み出されたデー
タがキーオンデータかどうかの判定を行い、キーオンデ
ータ(YES)の場合はステップ92に進み、それ以外
のデータ(NO)の場合はステップ93に進む。Step 89: Since it is determined that the data read in the previous step 83 is neither end data nor duration data, the data processing of FIG. 9 is performed on the read data. FIG. 9 shows this step 89.
It is a figure which shows the detail of the data processing of. This data processing is sequentially executed in the following steps. Step 91: It is judged whether or not the data read in step 83 of FIG. 8 is key-on data. If the data is key-on data (YES), the process proceeds to step 92, and if it is other data (NO), the process proceeds to step 93. move on.
【0036】ステップ92:前ステップ91でキーオン
データだと判定されたので、図1のキーオン処理を行
う。図1はこのステップ92のキーオン処理の詳細を示
す図である。このキーオン処理はつぎのようなステップ
で順番に実行される。 ステップ101:モード番号レジスタMODの値が
『0』であるかどうかを判定し、『0』(YES)の場
合はステップ108にジャンプし、『1』、『2』
『3』又は『4』(NO)の場合はステップ102に進
む。Step 92: Since the key-on data is determined in the previous step 91, the key-on process of FIG. 1 is performed. FIG. 1 is a diagram showing details of the key-on processing in step 92. This key-on process is sequentially executed in the following steps. Step 101: It is determined whether or not the value of the mode number register MOD is "0". If "0" (YES), the process jumps to step 108 and "1", "2".
In the case of “3” or “4” (NO), the process proceeds to step 102.
【0037】ステップ102:図9のステップ91でキ
ーオンデータだと判定され、前ステップ101でモード
番号レジスタMODの値が『0』以外の値であると判定
されたので、キーコードレジスタKCに読み出されたキ
ーオンデータのキーコードを格納し、ベロシティレジス
タVLに読み出されたキーオンデータのベロシティデー
タを格納する。 ステップ103:前ステップ102でキーコードレジス
タKCに新たに格納されたキーコードを発音キーコード
リストにも追加格納する。 ステップ104:待ち状態フラグWAITに『1』をセ
ットし、待ち状態にセットする。Step 102: The key-on data is determined in step 91 of FIG. 9, and the value of the mode number register MOD is determined to be a value other than "0" in the previous step 101. Therefore, the key code register KC is read. The key code of the issued key-on data is stored, and the velocity data of the read key-on data is stored in the velocity register VL. Step 103: The key code newly stored in the key code register KC in the previous step 102 is additionally stored in the sounding key code list. Step 104: Set the wait state flag WAIT to "1" to set the wait state.
【0038】ステップ105:モード番号レジスタMO
Dの値が『2』又は『3』であるかどうかを判定し、
『2』又は『3』(YES)の場合は次のステップ10
6に進み、『1』又は『4』(NO)の場合はステップ
107にジャンプする。 ステップ106:前ステップ105でYESと判定され
たということは、演奏処理モードが少なくとも押鍵すべ
きタイミングで音程感のないリズム音(例えば、メトロ
ノーム音など)を発音するリズム音発音指示モードであ
ることを意味するので、ここではそのリズム音(この実
施例ではメトロノーム音)をベロシティレジスタVLの
格納値に対応した音量で発音する。Step 105: Mode number register MO
Determine whether the value of D is "2" or "3",
If "2" or "3" (YES), go to next step 10
In step 6, if "1" or "4" (NO), the process jumps to step 107. Step 106: The determination of YES in the previous step 105 is a rhythm sound pronunciation instruction mode in which the performance processing mode produces a rhythm sound (for example, a metronome sound) having no sense of pitch at least at the timing at which the key should be pressed. This means that the rhythm sound (the metronome sound in this embodiment) is sounded at a volume corresponding to the value stored in the velocity register VL.
【0039】ステップ107:今度はモード番号レジス
タMODの値が『1』又は『3』であるかどうかを判定
し、『1』又は『3』(YES)の場合は次のステップ
108に進み、『2』又は『4』(NO)の場合は図8
のステップ82にリターンする。ステップ108〜ステ
ップ10Aは前ステップ101でYESと判定された
か、又は前ステップ107でYESと判定された場合、
すなわち演奏処理モードが『0』、『1』又は『3』の
場合に行われる処理である。モード番号レジスタMOD
が『0』であるということは演奏処理モードが通常の自
動演奏モードであることを意味し、また、モード番号レ
ジスタMODが『1』又は『3』であるということは、
演奏処理モードが少なくとも押鍵すべき鍵に対応した音
を押鍵すべきタイミングで発音する押鍵音発音指示モー
ドであることを意味する。従って、読み出されたキーオ
ンデータ(キーコード、ベロシティ及びゲートタイム)
に応じた楽音を発音するために次のステップ108〜ス
テップ10Aの処理を行う。Step 107: This time, it is judged whether the value of the mode number register MOD is "1" or "3", and if it is "1" or "3" (YES), the process proceeds to the next step 108, In the case of "2" or "4" (NO), FIG.
And returns to step 82. When Step 108 to Step 10A are YES in the previous step 101 or YES in the previous step 107,
That is, this is a process performed when the performance processing mode is "0", "1" or "3". Mode number register MOD
"0" means that the performance processing mode is a normal automatic performance mode, and that the mode number register MOD is "1" or "3" means that
This means that the performance processing mode is a key-depression tone generation instruction mode in which a tone corresponding to at least a key to be depressed is generated at a timing at which the key should be depressed. Therefore, the read key-on data (key code, velocity and gate time)
The following steps 108 to 10A are performed in order to generate a musical sound corresponding to.
【0040】ステップ108:そのキーオンデータ(キ
ーコード及びベロシティ)に対応した発音処理を行う。
すなわち、発音可能なチャンネルを割り当て、そのチャ
ンネルでキーコードに対応した音高の発音を行う。 ステップ109:前ステップ108で割り当てられたチ
ャンネルのチャンネル番号をチャンネルレジスタCHに
格納する。 ステップ10A:前ステップで割り当てられたチャンネ
ルレジスタCHに対応するゲートタイムレジスタGT
(CH)にキーオンデータ内のゲートタイムを格納し、
図8のステップ82にリターンする。なお、発音の停止
すなわちキーオフ処理はチャンネルレジスタCH及びゲ
ートタイムレジスタGT(CH)に格納されたチャンネ
ル番号及びゲートタイムに基づいて、図7のステップ7
5〜ステップ7Aによって行われる。Step 108: A sounding process corresponding to the key-on data (key code and velocity) is performed.
That is, a soundable channel is assigned, and the pitch corresponding to the key code is generated on that channel. Step 109: The channel number of the channel assigned in the previous step 108 is stored in the channel register CH. Step 10A: Gate time register GT corresponding to the channel register CH allocated in the previous step
Store the gate time in the key-on data in (CH),
The process returns to step 82 in FIG. Note that the stop of sound generation, that is, the key-off process, is performed based on the channel number and the gate time stored in the channel register CH and the gate time register GT (CH) based on the step 7 in FIG.
5 to step 7A.
【0041】ステップ93:前ステップ91でキーオン
データでないと判定されたので、今度は、図8のステッ
プ83で読み出されたデータがLED点灯データかどう
かの判定を行い、LED点灯データ(YES)の場合は
ステップ94に進み、そうでない(NO)場合は次のス
テップ96に進む。 ステップ94:前記ステップ101と同じようにモード
番号レジスタMODが『0』であるかどうかを判定し、
『0』以外(NO)の場合は次のステップ95に進み、
『0』(YES)の場合は図8のステップ82にリター
ンする。 ステップ95:読み出されたデータがLED点灯データ
であり、モード番号レジスタMODが『0』以外である
と判定されたので、ここでは、そのLED点灯データの
キーコードに対応するLEDを点灯し、図8のステップ
82にリターンする。Step 93: Since it is determined in the previous step 91 that the data is not key-on data, it is determined whether or not the data read out in step 83 of FIG. 8 is LED lighting data, and the LED lighting data (YES). If No, the process proceeds to Step 94. If not (NO), the process proceeds to the next Step 96. Step 94: It is judged whether the mode number register MOD is "0" as in the step 101,
If the value is other than “0” (NO), proceed to the next Step 95,
If "0" (YES), the process returns to step 82 of FIG. Step 95: Since the read data is LED lighting data and it is determined that the mode number register MOD is other than "0", here, the LED corresponding to the key code of the LED lighting data is lit, The process returns to step 82 in FIG.
【0042】ステップ96:前ステップ91でキーオン
データでない(NO)と判定され、前ステップ93でL
ED点灯データでない(NO)と判定されたので、図8
のステップ83で読み出されたデータがLED点滅デー
タかどうかの判定を行い、LED点滅データ(YES)
の場合はステップ97に進み、そうでない(NO)場合
はステップ99に進む。 ステップ97:前記ステップ94と同じようにモード番
号レジスタMODが『0』であるかどうかを判定し、
『0』以外(NO)の場合は次のステップ98に進み、
『0』(YES)の場合は図8のステップ82にリター
ンする。 ステップ98:読み出されたデータがLED点滅データ
であり、モード番号レジスタMODが『0』以外である
と判定されたので、ここでは、そのLED点滅データの
キーコードに対応するLEDを点滅し、図8のステップ
82にリターンする。 ステップ99:前ステップ96でNOと判定されたとい
うことは、図8のステップ83で読み出されたデータが
キーオンデータでも、LED点灯データでも、LED点
滅データでもないということなので、その読み出された
データに対応したその他の処理を行う。Step 96: In the previous step 91, it is determined that it is not key-on data (NO), and in the previous step 93, L
Since it is determined that it is not the ED lighting data (NO), FIG.
It is determined whether or not the data read in step 83 is LED blinking data, and LED blinking data (YES)
If NO, the process proceeds to step 97. If not (NO), the process proceeds to step 99. Step 97: It is judged whether the mode number register MOD is "0" as in the step 94,
If the value is other than “0” (NO), the process proceeds to the next step 98,
If "0" (YES), the process returns to step 82 of FIG. Step 98: Since the read data is LED blinking data and it is determined that the mode number register MOD is other than "0", here, the LED corresponding to the key code of the LED blinking data is blinked, The process returns to step 82 in FIG. Step 99: The determination of NO in the previous step 96 means that the data read in step 83 of FIG. 8 is not key-on data, LED lighting data, or LED blinking data. Other processing corresponding to the data is performed.
【0043】ステップ8A:このステップは、ステップ
84でタイミングカウンタTM(TR)の格納値が
『1』だけデクリメント処理されたか、ステップ85で
現在のトラック番号TRのデータがエンドデータだと判
定されたか、又はステップ88でタイミングカウンタT
M(TR)にデュレーションタイムが格納された場合に
行われるものであり、次のトラックに対して前述と同様
の再生処理を行うために、トラック番号レジスタTRの
値を『1』だけインクリメント処理する。Step 8A: In this step, whether the stored value of the timing counter TM (TR) is decremented by "1" in step 84 or is it judged in step 85 that the data of the current track number TR is the end data? , Or at step 88 the timing counter T
This is performed when the duration time is stored in M (TR), and the value of the track number register TR is incremented by "1" in order to perform the same reproduction processing as described above for the next track. .
【0044】ステップ8B:前ステップ8Aのインクリ
メント処理によってトラック番号レジスタTRの値が
『9』になったかどうか、すなわち、全トラックに対し
て再生処理が終了したかどうかを判定し、YESの場合
は図7のステップ74に進み、NOの場合はステップ8
2にリターンし、次のトラックに対して前述と同様の再
生処理を繰り返し実行する。Step 8B: It is judged whether or not the value of the track number register TR becomes "9" by the increment processing of the previous step 8A, that is, whether the reproduction processing is completed for all the tracks. Proceeding to step 74 of FIG. 7, step 8 if NO
The process returns to 2 and the same reproduction process as described above is repeatedly executed for the next track.
【0045】ステップ74:図5と同じ比較進行処理を
行う。このステップにおける比較進行処理は、図9のス
テップ95によるLEDの点灯表示による押鍵指示、図
1のステップ106のメトロノーム音発音による押鍵指
示又はステップ10Bの押鍵音発音による押鍵指示より
も先に演奏者が押鍵してしまった場合に行われる処理で
ある。すなわち、これらの押鍵指示前に押鍵されたとい
うことは、図1のステップ103によって押鍵指示すべ
きキーコードが発音キーコードリストに格納される前に
押鍵されたことを意味するので、この時点で図4のステ
ップ46の比較進行処理が行われたとしても、図5のス
テップ52でNOと判定されてしまうので、この比較進
行処理の意味がなくなる。従って、このような場合に対
処するため、ここでは図5と同じ比較進行処理を行って
いる。Step 74: The same comparison process as in FIG. 5 is performed. The comparison progress processing in this step is more preferable than the key depression instruction by the LED lighting display in step 95 of FIG. 9, the key depression instruction by the metronome sound generation in step 106 of FIG. 1 or the key depression instruction by the key depression sound generation in step 10B. This is a process performed when the player presses a key first. That is, the fact that the key has been depressed before these key depression instructions means that the key has been depressed before the key code to be instructed to be depressed in step 103 of FIG. 1 is stored in the tone generation key code list. Even if the comparison progress processing of step 46 of FIG. 4 is performed at this point, it is determined as NO in step 52 of FIG. 5, so this comparison progress processing is meaningless. Therefore, in order to deal with such a case, the same comparison progress processing as in FIG. 5 is performed here.
【0046】ステップ75〜ステップ7Aでは、図1の
ステップ108で発音された楽音を停止するためのキー
オフ処理を全チャンネルに対して行う。 ステップ75:チャンネルレジスタCHの値を『0』に
セットする。 ステップ76:ゲートタイムレジスタGT(CH)の
値、すなわちチャンネルレジスタCHの値に対応するチ
ャンネルのゲートタイムが『0』以下かどうかを判定
し、『0』以下(YES)の場合はステップ77に進
み、『0』よりも大きい(NO)場合はステップ78に
進む。In steps 75 to 7A, the key-off process for stopping the musical sound generated in step 108 of FIG. 1 is performed on all channels. Step 75: Set the value of the channel register CH to "0". Step 76: It is judged whether or not the value of the gate time register GT (CH), that is, the gate time of the channel corresponding to the value of the channel register CH is "0" or less, and if it is "0" or less (YES), the process goes to step 77. If it is larger than "0" (NO), the process proceeds to step 78.
【0047】ステップ77:前ステップ76でゲートタ
イムが『0』以下だと判定されたので、ここでは、その
チャンネルの発音を終了するために、そのチャンネル番
号CHとキーオフ信号を音源回路9に出力する。 ステップ78:前ステップ76でゲートタイムが『0』
より大きいと判定されたので、ここでは、そのゲートタ
イムレジスタGT(CH)の格納値を『1』だけデクリ
メント処理する。 ステップ79:次のチャンネルに対してステップ76〜
ステップ78の処理を行うために、チャンネルレジスタ
CHの値を『1』だけインクリメント処理する。 ステップ7A:チャンネルレジスタCHの格納値が『1
6』かどうか、すなわち全部で16個のチャンネルに対
してステップ77又はステップ78の処理が行われたか
どうかを判定し、YESの場合はリターンして次の割込
タイミングまで待機し、NOの場合はステップ76にリ
ターンし、同様の処理を残りのチャンネルに対して繰り
返し実行する。Step 77: Since the gate time was judged to be "0" or less in the previous step 76, the channel number CH and the key-off signal are output to the tone generator circuit 9 in order to end the sounding of that channel. To do. Step 78: The gate time is “0” in the previous step 76.
Since it is determined to be larger, the value stored in the gate time register GT (CH) is decremented by "1". Step 79: Step 76 to the next channel
In order to perform the process of step 78, the value of the channel register CH is incremented by "1". Step 7A: The value stored in the channel register CH is "1".
6 ”, that is, whether the processing of step 77 or step 78 has been performed for all 16 channels. If YES, return and wait until next interrupt timing, and if NO, Returns to step 76 and repeats the same processing for the remaining channels.
【0048】図10はこの発明に係る押鍵指示機能付き
電子鍵盤楽器がどのようにして押鍵の指示を行うのか、
その動作例を模式的に示した図である。図10(A)は
図3の演奏データに基づく楽譜例を示す図であり、図1
0(B)〜(E)はその楽譜例に従って鍵盤11の上側
近傍に設けられたLED群12を点灯・点滅させること
によって押鍵指示する様子を時系列的に示す図である。
LED群12の点灯・点滅の状態は図10(B)から図
10(E)の順番で変化する。なお、図では点灯してい
るLEDを黒塗り円で、発光していないLEDを白塗り
円で、点滅しているLEDを編目円でそれぞれ示してあ
る。また、鍵盤上のC4〜E5の英数字は、その鍵のキ
ーコードである。FIG. 10 shows how the electronic keyboard musical instrument with a key depression instruction function according to the present invention issues a key depression instruction.
It is the figure which showed the operation example typically. FIG. 10A is a diagram showing an example of a musical score based on the performance data of FIG.
0 (B) to (E) are time-series diagrams showing a key depression instruction by turning on / blinking the LED group 12 provided near the upper side of the keyboard 11 according to the musical score example.
The lighting / blinking state of the LED group 12 changes in the order of FIG. 10 (B) to FIG. 10 (E). In the figure, the LEDs that are lit are shown as black circles, the LEDs that are not emitting light are shown as white circles, and the blinking LEDs are shown as stitch circles. The alphanumeric characters C4 to E5 on the keyboard are the key code of the key.
【0049】図10(A)の楽譜例に従えば、『ファ
(F4)』、『ソ(G4)』、『ラ(A4)』の順番で
押鍵することとなる。カッコ内の英数字はキーコードで
ある。まず、ロードスイッチが操作されると、図4のス
テップ48の処理によって、図3のような演奏データが
ディスク14から読み出され演奏情報メモリ4に書き込
まれる。そして、図4のステップ4Aの処理によってモ
ード番号レジスタMODの値が『3』にセットされたと
する。次に自動演奏のスタートスイッチが操作される
と、図4のステップ4F(図6)の自動演奏スタート処
理が行われる。According to the example of the musical score of FIG. 10A, the keys are pressed in the order of "Fa (F4)", "So (G4)" and "La (A4)". The alphanumeric characters in parentheses are key codes. First, when the load switch is operated, the performance data as shown in FIG. 3 is read from the disk 14 and written in the performance information memory 4 by the process of step 48 in FIG. Then, it is assumed that the value of the mode number register MOD is set to "3" by the processing of step 4A of FIG. Next, when the automatic performance start switch is operated, the automatic performance start process of step 4F (FIG. 6) of FIG. 4 is performed.
【0050】図10(B)は、以上の処理が終了した後
に図7の割り込み処理が最初に行われた場合のLED1
2の点灯・点滅の状態を示す。上述の図4のステップ4
Cの処理によって走行状態フラグRUNに『1』が設定
され、図6のステップ62の処理によって待ち状態が解
除(待ち状態フラグWAITに『0』が設定)されてい
るので、この割り込み処理におけるステップ71ではY
ES、ステップ72ではNOと判定され、ステップ73
(図8)の再生処理が行われるようになる。FIG. 10B shows the LED1 when the interrupt processing of FIG. 7 is first performed after the above processing is completed.
2 shows the lighting / blinking state. Step 4 of FIG. 4 above
Since the traveling state flag RUN is set to "1" by the process of C and the waiting state is released (the waiting state flag WAIT is set to "0") by the process of step 62 of FIG. 71 for Y
ES, NO in step 72, step 73
The reproduction process of (FIG. 8) is performed.
【0051】図8の再生処理では、ステップ81を経
て、ステップ82でYESと判定される。そして、ステ
ップ83の処理によって図3の最初のデータすなわち
『ファ(F4=65)』のLED点灯データが読み出さ
れ、ステップ85〜ステップ87を経てステップ89
(図9)のデータ処理が行われる。図9のデータ処理で
は、ステップ83で読み出されたデータがLED点灯デ
ータであり、モード番号レジスタMODの値も『3』な
ので、ステップ91、ステップ93及びステップ94を
経て、ステップ95の処理が行われる。ステップ95の
処理によって、図10(B)のようにキーコード『F4
=65』に対応するLEDが点灯するようになる。In the reproducing process of FIG. 8, after step 81, it is judged YES in step 82. Then, the first data of FIG. 3, that is, the LED lighting data of “Fa (F4 = 65)” is read out by the process of step 83, and through step 85 to step 87, step 89.
The data processing of FIG. 9 is performed. In the data processing of FIG. 9, since the data read in step 83 is the LED lighting data and the value of the mode number register MOD is “3”, the processing of step 95 is performed through step 91, step 93 and step 94. Done. By the processing of step 95, the key code "F4" is displayed as shown in FIG.
The LED corresponding to “= 65” comes on.
【0052】以上の処理を経て、再び図8のステップ8
2の判定が行われる。この時点では、まだデュレーショ
ンデータは読み出されていないので、ステップ82の判
定はYESとなり、ステップ83の処理によって図3の
『ソ(G4=67)』のLED点滅データが読み出さ
れ、ステップ85〜ステップ87を経てステップ89
(図9)のデータ処理が行われる。図9のデータ処理で
は、ステップ83で読み出されたデータがLED点滅デ
ータであり、モード番号レジスタMODの値も『3』な
ので、ステップ91、ステップ93、ステップ96及び
ステップ97を経て、ステップ98の処理が行われる。
ステップ98の処理によって、図10(B)のようにキ
ーコード『G4=67』に対応するLEDが点滅するよ
うになる。After the above processing, step 8 in FIG. 8 is again executed.
A determination of 2 is made. At this point, the duration data has not been read yet, so the determination in step 82 is YES, and the LED blink data of “SO (G4 = 67)” in FIG. 3 is read by the processing in step 83, and step 85 ~ Step 89 through step 89
The data processing of FIG. 9 is performed. In the data processing of FIG. 9, since the data read in step 83 is the LED blinking data and the value of the mode number register MOD is “3”, step 91, step 93, step 96 and step 97 are performed, and then step 98. Is processed.
By the processing of step 98, the LED corresponding to the key code "G4 = 67" blinks as shown in FIG. 10 (B).
【0053】以上の処理を経て、再び図8のステップ8
2の判定が行われる。この時点でも、まだデュレーショ
ンデータは読み出されていないので、ステップ82の判
定はYESとなり、ステップ83の処理によって図3の
最初のキーオンデータすなわち『ファ(F4=65)』
に関するキーオンデータが読み出され、ステップ85〜
ステップ87及び図9のステップ91を経て、図9のス
テップ92(図1)のキーオン処理が行われる。図1の
キーオン処理では、モード番号レジスタMODの値が
『3』なので、ステップ101、ステップ105及びス
テップ107の判定を経て、ステップ102〜ステップ
104、ステップ106及びステップ108〜ステップ
10Aの処理が行われる。After the above processing, step 8 in FIG. 8 is again executed.
A determination of 2 is made. At this point in time, the duration data has not been read yet, so the determination in step 82 is YES, and the first key-on data in FIG. 3, that is, “Fa (F4 = 65)” is determined by the processing in step 83.
Key-on data regarding
After step 87 and step 91 of FIG. 9, the key-on process of step 92 (FIG. 1) of FIG. 9 is performed. In the key-on process of FIG. 1, since the value of the mode number register MOD is “3”, the processes of step 102 to step 104, step 106 and step 108 to step 10A are performed through the determinations of step 101, step 105 and step 107. Be seen.
【0054】ステップ102ではキーコード『F4=6
5』がキーコードレジスタKCに、ベロシティ『15』
がベロシティレジスタVLにそれぞれ格納される。ステ
ップ103ではそのキーコード『F4=65』が発音キ
ーコードリストに追加格納される。ステップ104では
待ち状態フラグWAITに『1』が設定される。ステッ
プ106ではメトロノーム音がベロシティ『15』の音
量で発音される。ステップ108ではキーコード『F4
=65』及びベロシティ『15』の楽音が音源回路9に
よって発音される。ステップ109では発音の割り当て
られチャンネル番号がチャンネルレジスタCHに格納さ
れる。ステップ10AではゲートタイムレジスタGT
(CH)にゲートタイム『17』が格納される。In step 102, the key code "F4 = 6
5 ”is in the key code register KC and velocity is“ 15 ”
Are stored in the velocity register VL. In step 103, the key code "F4 = 65" is additionally stored in the tone generation key code list. In step 104, the wait state flag WAIT is set to "1". In step 106, the metronome sound is produced at a volume of velocity "15". In step 108, the key code "F4
= 65 ”and velocity“ 15 ”are generated by the tone generator circuit 9. In step 109, the channel number to which the sound is assigned is stored in the channel register CH. In step 10A, the gate time register GT
The gate time “17” is stored in (CH).
【0055】以上の処理を経て、再び図8のステップ8
2の判定が行われるが、この時点でも、まだデュレーシ
ョンデータは読み出されていないので、ステップ82の
判定はYESとなり、ステップ83の処理によって図3
の最初のデュレーションデータすなわデュレーションタ
イム『24』が読み出され、ステップ85及びステップ
86を経て、ステップ87の判定処理が行われる。今回
は、デュレーションデータなのでステップ87でYES
と判定され、ステップ88の処理が行われる。このステ
ップ88ではデュレーションタイム『24』がタイミン
グカウンタTM(0)に格納される。そして、ステップ
8Aではトラック番号レジスタTRの値が『1』だけイ
ンクリメントされる。これ以降はトラック番号レジスタ
TRの『1』〜『8』のトラックに対して前述と同様の
再生処理が繰り返し行われ、ステップ8Bによってトラ
ック番号レジスタTRの値が『9』になった時点で、図
7のステップ74以降の処理が行われる。After the above processing, step 8 in FIG.
Although the determination of step 2 is performed, since the duration data has not yet been read out at this point, the determination of step 82 is YES, and the processing of step 83 is performed.
The first duration data, that is, the duration time "24" is read out, and the determination process of step 87 is performed through steps 85 and 86. This time, since it is duration data, YES at step 87.
Then, the processing of step 88 is performed. In step 88, the duration time "24" is stored in the timing counter TM (0). Then, in step 8A, the value of the track number register TR is incremented by "1". After that, the same reproduction process as described above is repeatedly performed on the tracks "1" to "8" of the track number register TR, and when the value of the track number register TR becomes "9" by step 8B, The processing from step 74 onward in FIG. 7 is performed.
【0056】ステップ74(図5の比較進行処理)で
は、図1のステップ104によって待ち状態にセットさ
れているので、ステップ51でYESと判定され、次の
ステップ52の処理が行われる。この実施例では、押鍵
指示後(すなわちLED点灯後)に演奏者の押鍵が行わ
れるので、このステップ52の判定時点では、未だ演奏
者の押鍵は無いことになる。従って、ステップ52では
NOと判定され、各トラックから読み出された演奏デー
タに対してステップ75〜ステップ7Aの処理がチャン
ネル番号CH=『0』〜『15』の16チャンネルに対
して行われる。At step 74 (comparison progress processing of FIG. 5), since the waiting state is set at step 104 of FIG. 1, YES is determined at step 51, and the processing of the next step 52 is performed. In this embodiment, since the player's key depression is performed after the key depression instruction (that is, after the LED is turned on), the player's key depression is not present at the time of the determination in step 52. Therefore, in step 52, it is determined to be NO, and the processing from step 75 to step 7A is performed on the 16 channels of channel numbers CH = “0” to “15” for the performance data read from each track.
【0057】一連の割り込み処理が終了した時点、すな
わちステップ95の処理によってキーコードレジスタK
Cの格納値である『ファ(F4=65)』に対応するL
EDが図10(B)のように点灯(同時にメトロノーム
音及び押鍵音が発音)し、次の押鍵音『ソ(G4=6
7)』に対応するLEDが図10(B)のように点滅し
た後に、演奏者が点灯している鍵を押鍵すると、図4の
メインルーチンのステップ43でYESと判定されてス
テップ45でその押鍵に対する発音処理が行われる。そ
して、次のステップ46で図5の比較進行処理が行われ
る。この比較進行処理では、ステップ51でYESと判
定され、ステップ52の判定処理が行われる。ステップ
52の時点では、発音キーコードリストに格納されてい
るのはキーオンデータ『ファ(F4=65)』の『F4
=65』だけなので、ここでもYESと判定され、ステ
ップ53〜55の処理が行われる。すなわち、点灯して
いた『ファ(F4=65)』に対応するLEDが消灯状
態となり、待ち状態フラグWAITに『0』が設定され
て待ち状態は解除され、発音キーコードリストから『F
4=65』がクリアされる。At the time when a series of interrupt processing is completed, that is, the processing of step 95, the key code register K
L corresponding to “Fa (F4 = 65)” which is the stored value of C
The ED lights up as shown in FIG. 10 (B) (at the same time, the metronome sound and the key depression sound are emitted), and the next key depression sound "SO (G4 = 6
7) ”blinks as shown in FIG. 10B, and then the player presses the lit key, it is judged as YES in step 43 of the main routine of FIG. Sound generation processing for the key depression is performed. Then, in the next step 46, the comparison progress processing of FIG. 5 is performed. In this comparison progress process, YES is determined in step 51, and the determination process of step 52 is performed. At step 52, what is stored in the pronunciation key code list is "F4" of the key-on data "Fa (F4 = 65)".
= 65 ”only, so YES is determined here and the processes of steps 53 to 55 are performed. That is, the LED corresponding to the turned on "Fa (F4 = 65)" is turned off, the waiting state flag WAIT is set to "0", the waiting state is canceled, and "F" is displayed from the sound generation key code list.
4 = 65 ”is cleared.
【0058】この待ち状態の解除によって、図7のステ
ップ73以降の割り込み処理が実行されるようになる。
但し、これ以降は図8のステップ84及び図7のステッ
プ78のデクリメント処理が実行される。そして、先に
ゲートタイムレジスタGT(CH)の値が『0』とな
り、ステップ77の処理によって『ファ(F4=6
5)』に対応する押鍵音が停止する。次にタイミングカ
ウンタTM(0)の値が『0』となり、ステップ83処
理が行われる。今度は、ステップ83の処理によって図
3の『ソ(G4=67)』に関する2番目のLED点灯
データが読み出される。そして、図9のデータ処理で
は、ステップ95の処理が行われ、図10(B)のよう
に点滅していたキーコード『G4=67』に対応するL
EDが今度は図10(C)のように点灯するようにな
る。By releasing this waiting state, the interrupt processing from step 73 onward in FIG. 7 is executed.
However, after that, the decrement process of step 84 of FIG. 8 and step 78 of FIG. 7 is executed. Then, the value of the gate time register GT (CH) becomes “0” first, and the process of step 77 causes “F (F4 = 6
5) ”, the key depression sound stops. Next, the value of the timing counter TM (0) becomes "0", and the processing of step 83 is performed. This time, the second LED lighting data regarding "SO (G4 = 67)" in FIG. 3 is read by the processing of step 83. Then, in the data processing of FIG. 9, the processing of step 95 is performed, and L corresponding to the key code “G4 = 67” which is blinking as shown in FIG.
The ED will now come on as shown in FIG.
【0059】このステップ95の処理の後、図8のステ
ップ83の処理によって図3の『ラ(A4=69)』に
関するLED点滅データが読み出される。そして、ステ
ップ98の処理が行われ、図10(C)のようにキーコ
ード『A4=69』に対応するLEDが点滅するように
なる。そして、ステップ98の処理を経て、再び図8の
ステップ83の処理が行われ、図3の『ソ(G4=6
7)』に関する2番目のキーオンデータが読み出され、
図9のステップ92(図1)のキーオン処理が行われ
る。After the processing of step 95, the LED blinking data regarding "LA (A4 = 69)" of FIG. 3 is read by the processing of step 83 of FIG. Then, the process of step 98 is performed, and the LED corresponding to the key code "A4 = 69" blinks as shown in FIG. Then, after the processing of step 98, the processing of step 83 of FIG. 8 is performed again, and “SO (G4 = 6
7) ”and the second key-on data is read out,
The key-on process of step 92 (FIG. 1) of FIG. 9 is performed.
【0060】図1のキーオン処理の各ステップ102〜
104、106、108〜10Aの処理によって、キー
コード『G4=67』がキーコードレジスタKCに、ベ
ロシティ『15』がベロシティレジスタVLにそれぞれ
格納され、そのキーコード『G4=67』が発音キーコ
ードリストに追加格納され、待ち状態フラグWAITに
『1』が設定され、メトロノーム音がベロシティ『1
5』の音量で発音され、キーコード『G4=67』及び
ベロシティ『15』の楽音が音源回路9によって発音さ
れ、発音の割り当てられたチャンネル番号がチャンネル
レジスタCHに格納され、ゲートタイムレジスタGT
(CH)にゲートタイム『17』が格納される。Steps 102 to 102 of the key-on process of FIG.
By the processing of 104, 106, 108 to 10A, the key code "G4 = 67" is stored in the key code register KC and the velocity "15" is stored in the velocity register VL, and the key code "G4 = 67" is generated. It is additionally stored in the list, the waiting flag WAIT is set to "1", and the metronome sound is velocity "1".
5 ”, the tone of key code“ G4 = 67 ”and velocity“ 15 ”is sounded by the tone generator circuit 9, the channel number to which the sound is assigned is stored in the channel register CH, and the gate time register GT
The gate time “17” is stored in (CH).
【0061】以上の処理を経て図8のステップ83の処
理によって図3の2番目のデュレーションデータが読み
出され、ステップ88の処理が行われ、デュレーション
タイム『24』がタイミングカウンタTM(0)に格納
される。そして、ステップ8Aでトラック番号レジスタ
TRの値が『1』だけインクリメントされ、これ以降は
トラック番号レジスタTRの『1』〜『8』のトラック
に対して前述と同様の再生処理が繰り返し行われ、ステ
ップ8Bによってトラック番号レジスタTRの値が
『9』になった時点で、図7のステップ74以降の処理
が行われる。After the above processing, the second duration data of FIG. 3 is read by the processing of step 83 of FIG. 8, the processing of step 88 is performed, and the duration time “24” is set in the timing counter TM (0). Is stored. Then, in step 8A, the value of the track number register TR is incremented by "1", and thereafter, the same reproduction process as described above is repeatedly performed on the tracks "1" to "8" of the track number register TR, When the value of the track number register TR becomes "9" in step 8B, the processes after step 74 in FIG. 7 are performed.
【0062】前述と同様に『ソ(G4=67)』に対応
するLEDが図10(C)のように点灯しているので、
その鍵が押鍵されると、図4のステップ45の発音処理
及びステップ46の比較進行処理が行われる。点灯して
いた『ソ(G4=67)』に対応するLEDが消灯状態
となり、待ち状態フラグWAITに『0』が設定されて
待ち状態は解除され、発音キーコードリストもクリアさ
れる。Similarly to the above, the LED corresponding to "SO (G4 = 67)" is lit as shown in FIG.
When the key is pressed, the tone generation process of step 45 and the comparison progress process of step 46 of FIG. 4 are performed. The LED corresponding to “SO (G4 = 67)” that has been turned on is turned off, the waiting state flag WAIT is set to “0”, the waiting state is canceled, and the sounding key code list is also cleared.
【0063】この待ち状態の解除によって、図7のステ
ップ73以降の割り込み処理が実行されるようになり、
以下前述と同様にして図3の『ラ(A4=69)』に関
するLED点灯データ、『ド(C5=72)』に関する
LED点滅データ、『ラ(A4=69)』に関するキー
オンデータ及び3番目のデュレーションデータが順番に
読み出され、図10(D)のようにキーコード『A4=
69』に対応するLEDが点灯し、『ド(C5=7
2)』に対応するLEDが点滅し、キーコード『A4=
69』及びベロシティ『15』の楽音が音源回路9によ
って発音される。By releasing this waiting state, the interrupt processing after step 73 in FIG. 7 is executed,
In the same manner as described above, the LED lighting data regarding "LA (A4 = 69)", the LED blinking data regarding "DO (C5 = 72)", the key-on data regarding "LA (A4 = 69)" and the third data in FIG. The duration data is read out in order, and the key code "A4 =
The LED corresponding to “69” lights up, and “DO (C5 = 7
2) ”blinks and the key code“ A4 =
69 "and velocity" 15 "are generated by the tone generator circuit 9.
【0064】図10の動作例では、モード番号レジスタ
MODの値が『3』の場合について説明したが、モード
番号レジスタMODの値が『1』の場合には図1のステ
ップ106のメトロノーム音の発音による押鍵指示処理
が行われない。『2』の場合には図1のステップ109
〜ステップ10Aの押鍵音発音による押鍵指示処理が行
われない。『4』の場合には図10のようなLEDによ
る押鍵指示は行われるがメトロノーム音及び押鍵音によ
る押鍵指示処理は行われない。In the operation example of FIG. 10, the case where the value of the mode number register MOD is "3" has been described, but when the value of the mode number register MOD is "1", the metronome sound of step 106 of FIG. Key depression instruction processing by pronunciation is not performed. In the case of “2”, step 109 in FIG.
The key depression instruction processing by the key depression sound generation in step 10A is not performed. In the case of "4", the key depression instruction by the LED as shown in FIG. 10 is performed, but the key depression instruction processing by the metronome sound and the key depression sound is not performed.
【0065】なお、上述の実施例では、ステップ106
でメトロノーム音をベロシティに対応した音量で発音す
る場合について説明したが、これに限らず、予め設定さ
れた所定の音量で発音してもよいことはいうまでもな
い。また、上述の実施例ではLEDを用いて押鍵指示す
る場合について説明したが、これに限らず、LCD等に
黒塗り円、白塗り円などの図記号を用いて押鍵指示する
ようにしてもよい。上述の実施例では、鍵盤の上側近傍
に表示部を有する電子楽器を例に説明したが、表示部を
有しない楽器に表示部だけを設けて、上述のような押鍵
指示を行うようにしてもよい。また、上述の実施例で
は、押鍵指示された鍵が実際に押鍵された場合に次の押
鍵指示に進行するように、押鍵指示と実際の押鍵との間
で同期して動作する場合について説明したが、押鍵指示
と実際の押鍵との間は無関係に進行するようにしてもよ
い。In the above embodiment, step 106 is performed.
In the above, the case where the metronome sound is pronounced at a volume corresponding to the velocity has been described, but the present invention is not limited to this, and it goes without saying that it may be pronounced at a preset predetermined volume. Further, in the above-described embodiment, the case where the key depression instruction is given using the LED has been described, but the present invention is not limited to this, and the key depression instruction may be given to the LCD or the like by using a graphic symbol such as a black circle or a white circle. Good. In the above-mentioned embodiment, the electronic musical instrument having the display portion near the upper side of the keyboard has been described as an example, but only the display portion is provided to the musical instrument having no display portion so that the key depression instruction as described above is given. Good. Further, in the above-described embodiment, when the key instructed to press a key is actually pressed, the key press instruction and the actual key press operate synchronously so as to proceed to the next key press instruction. Although the case has been described, the key pressing instruction and the actual key pressing may be performed independently of each other.
【0066】上述の実施例では、LEDは1色点灯の場
合について説明したが、2色以上点灯可能なLEDであ
ってもよい。この場合右手押鍵指示と左手押鍵指示との
間でそれぞれ異なる色のLEDを点灯させるようにして
もよい。また、現押鍵音対応のLED点灯と次押鍵音対
応のLED点滅との間でそれぞれ異なる色を点灯点滅さ
せるようにしてもよい。また、次押鍵音対応のLED点
灯は暗く、現押鍵対応のLED点灯はそれよりも明るく
なるように、それぞれの間で明度を異ならせるようにし
てもよい。上述の実施例とは逆に次押鍵音対応のLED
を点灯し、現押鍵対応のLEDを点滅表示してもよい。
上述の実施例ではLEDが1列に配置されている場合に
ついて説明したが、上下2列配置にしてもよい。この場
合、上下方向で点灯色を異ならせてもよいし、また、い
ずれか一方のLEDを現押鍵音対応に使用し、他方のL
EDを次押鍵対応に使用してもよい。In the above embodiment, the case where the LED is lit with one color has been described, but an LED capable of lighting with two or more colors may be used. In this case, the LEDs of different colors may be turned on between the right hand key depression instruction and the left hand key depression instruction. Further, different colors may be lit and blinked between the LED lighting corresponding to the current key depression sound and the LED blinking corresponding to the next key depression sound. Further, the brightness of the LED corresponding to the next key depression sound may be dark and the brightness of the LED corresponding to the current key depression may be brighter than that. Contrary to the above embodiment, the LED corresponding to the next key depression sound
May be lit and the LED corresponding to the current key press may be displayed in a blinking manner.
In the above embodiment, the case where the LEDs are arranged in one row has been described, but the LEDs may be arranged in two rows above and below. In this case, the lighting color may be different in the vertical direction, or one of the LEDs is used for the current key press sound and the other L is used.
The ED may be used for the next key depression.
【0067】上述の実施例では、現押鍵音対応のLED
と次押鍵音対応のLEDだけを点灯点滅表示する場合に
ついて説明したが、演奏データを適当なフレーズに分割
し、そのフレーズに対応するLEDをフレーズ切り換わ
り時点に一瞬だけ表示したり、フレーズ切り換わり時点
から所定時間経過するまで表示したり、フレーズ切り換
わり時点から最初に押鍵指示された鍵が押鍵されるまで
表示したり、フレーズ切り換わり時点から所定数(2、
3)音符が押鍵されるまで表示したり、フレーズ切り換
わり時点から所定拍数経過するまで表示したりしてもよ
い。また、フレーズ対応のLEDを次押鍵対応のLED
点滅周期よりも大きな周期で点滅させてもよい。In the above embodiment, the LED corresponding to the current key depression sound
The explanation has been given on the case where only the LED corresponding to the next key press sound is lit and blinked, but the performance data is divided into appropriate phrases, and the LED corresponding to that phrase is displayed for a moment at the time of phrase switching, or phrase switching is performed. It is displayed until a predetermined time elapses from the time when the phrase is switched, is displayed until the first key instructed to be pressed from the time when the phrase is switched, or a predetermined number (2,
3) The note may be displayed until a key is pressed, or may be displayed until a predetermined number of beats elapses from the phrase switching time. In addition, the LED corresponding to the phrase is changed to the LED corresponding to the next keypress.
The blinking may be performed in a cycle longer than the blinking cycle.
【0068】上述の実施例では、電子鍵盤楽器を例に説
明したが、これ以外の電子楽器においても操作タイミン
グをメトロノーム音などのような音程感のないリズムで
指示するようにしてもよいことはいうまでもない。上述
の実施例では、1つのトラックにLED点灯データ、L
ED点滅データ、キーオンデータ及びデュレーションデ
ータの組み合わせからなる演奏データが記憶されている
場合について説明したが、LEDに関するデータ(LE
D点灯データ及びLED点滅データ)とキーオンに関す
るデータとがそれぞれ別々のトラックに記録してあって
もよいことはいうまでもない。さらに、このような場
合、LEDに関するデータは右手の押鍵に関する演奏デ
ータ及び左手の押鍵に関する演奏データに基づいてそれ
ぞれ作成することができるので、演奏情報メモリには左
手及び右手の押鍵に関する演奏データのみを記憶し、後
からこの演奏データに基づいてLEDに関するデータを
作成するようにしてもよい。In the above-mentioned embodiment, the electronic keyboard instrument has been described as an example. However, in other electronic instruments, the operation timing may be instructed by a rhythm without a sense of pitch such as a metronome sound. Needless to say. In the above embodiment, the LED lighting data, L
The case where performance data consisting of a combination of ED blink data, key-on data, and duration data is stored has been described.
It goes without saying that the D-lighting data and the LED blinking data) and the key-on data may be recorded in different tracks. Further, in such a case, since the data regarding the LEDs can be created based on the performance data regarding the right-hand key depression and the performance data regarding the left-hand key depression, respectively, the performance information memory stores the performance regarding the left-hand and right-hand key depressions. You may make it memorize | store only data and create the data regarding LED based on this performance data later.
【0069】[0069]
【発明の効果】この発明によれば、演奏者は押鍵すべき
タイミングを音程感のないリズム音によって容易に認識
することができるという効果がある。According to the present invention, there is an effect that the player can easily recognize the timing at which the key should be depressed by the rhythm sound having no sense of pitch.
【図1】 図9のステップ92のキーオン処理の詳細を
示す図である。FIG. 1 is a diagram showing details of key-on processing in step 92 of FIG.
【図2】 この発明の一実施例に係る押鍵指示機能付き
電子鍵盤楽器のハードウェア構成例を示すブロック図で
ある。FIG. 2 is a block diagram showing a hardware configuration example of an electronic keyboard instrument with a key depression instruction function according to an embodiment of the present invention.
【図3】 図2の演奏情報メモリに記憶されている1ト
ラック分の演奏データの構成例を示す図である。FIG. 3 is a diagram showing a configuration example of performance data for one track stored in the performance information memory of FIG.
【図4】 マイクロコンピュータが処理するメインルー
チンの一例を示す図である。FIG. 4 is a diagram showing an example of a main routine processed by a microcomputer.
【図5】 図4のステップ46及び図7のステップ74
の比較進行処理の詳細を示す図である。5 shows step 46 of FIG. 4 and step 74 of FIG.
It is a figure which shows the detail of the comparison progress process of.
【図6】 図4のステップ4Gの自動演奏スタート処理
の詳細を示す図である。FIG. 6 is a diagram showing details of an automatic performance start process in step 4G of FIG.
【図7】 1小節当たり96回の割り込みで実行される
割り込み処理を示す図である。FIG. 7 is a diagram showing an interrupt process executed by 96 interrupts per bar.
【図8】 図7のステップ73の再生処理の詳細を示す
図である。FIG. 8 is a diagram showing details of a reproduction process in step 73 of FIG.
【図9】 図8のステップ89のデータ処理の詳細を示
す図である。9 is a diagram showing details of the data processing of step 89 of FIG.
【図10】 この発明に係る押鍵指示機能付き電子鍵盤
楽器がLEDをどのように発光して押鍵の指示を行うの
か、その動作例を模式的に示した図である。FIG. 10 is a diagram schematically showing an operation example of how an electronic keyboard instrument with a key depression instruction function according to the present invention emits an LED to issue a key depression instruction.
1…CPU、2…プログラムメモリ、3…ワーキングメ
モリ、4…演奏情報メモリ、5…押鍵検出回路、6…表
示回路、7…スイッチ検出回路、8…インターフェイ
ス、9…音源回路、11…鍵盤、12…表示部、13…
スイッチ群、14…ディスク、15…デジタル−アナロ
グ変換器、16…サウントシステム、17…タイマ、1
8…データ及びアドレスバス1 ... CPU, 2 ... Program memory, 3 ... Working memory, 4 ... Performance information memory, 5 ... Key detection circuit, 6 ... Display circuit, 7 ... Switch detection circuit, 8 ... Interface, 9 ... Sound source circuit, 11 ... Keyboard , 12 ... Display, 13 ...
Switch group, 14 ... Disk, 15 ... Digital-analog converter, 16 ... Sound system, 17 ... Timer, 1
8 ... Data and address bus
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G10H 1/40 7/02 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location G10H 1/40 7/02
Claims (3)
づいて前記演奏操作子を操作すべきタイミングで音程感
のないリズム音を発音する発音手段とを具備することを
特徴とする演奏操作指示機能付き電子楽器。1. A plurality of performance operators, performance information supply means for supplying performance information, and a pitch sense at a timing at which the performance operators should be operated based on the performance information sequentially supplied from the performance information supply means. An electronic musical instrument with a performance operation instructing function, comprising:
音量に関する情報に対応した音量で前記音程感のないリ
ズム音を発音することを特徴とする請求項1に記載の演
奏操作指示機能付き電子楽器。2. The electronic device with performance operation instructing function according to claim 1, wherein the sound producing means produces the rhythm sound without the pitch feeling at a volume corresponding to the information regarding the volume included in the performance information. Musical instrument.
して設けられた複数の表示手段と、 前記演奏情報供給手段から順次供給される演奏情報に対
応して前記表示手段を表示させ、操作すべき演奏操作子
を指示する指示手段とを具備することを特徴とする請求
項1に記載の演奏操作指示機能付き電子楽器。3. A plurality of display means provided respectively corresponding to the plurality of performance operators, and displaying the display means corresponding to the performance information sequentially supplied from the performance information supply means, The electronic musical instrument with a performance operation instructing function according to claim 1, further comprising an instruction means for instructing a performance operator to be operated.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33010194A JP3567513B2 (en) | 1994-12-05 | 1994-12-05 | Electronic musical instrument with performance operation instruction function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP33010194A JP3567513B2 (en) | 1994-12-05 | 1994-12-05 | Electronic musical instrument with performance operation instruction function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08160948A true JPH08160948A (en) | 1996-06-21 |
| JP3567513B2 JP3567513B2 (en) | 2004-09-22 |
Family
ID=18228811
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP33010194A Expired - Fee Related JP3567513B2 (en) | 1994-12-05 | 1994-12-05 | Electronic musical instrument with performance operation instruction function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3567513B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007140067A (en) * | 2005-11-17 | 2007-06-07 | Casio Comput Co Ltd | Musical sound generator and program |
| JP2007264058A (en) * | 2006-03-27 | 2007-10-11 | Yamaha Corp | Electronic musical instruments |
| US10726821B2 (en) | 2016-06-23 | 2020-07-28 | Yamaha Corporation | Performance assistance apparatus and method |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5643673A (en) * | 1979-09-18 | 1981-04-22 | Nippon Musical Instruments Mfg | Electronic musical instrument |
| JPH03103472U (en) * | 1990-02-06 | 1991-10-28 | ||
| JPH06301332A (en) * | 1993-04-16 | 1994-10-28 | Matsushita Electric Ind Co Ltd | Electronic musical instrument |
-
1994
- 1994-12-05 JP JP33010194A patent/JP3567513B2/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5643673A (en) * | 1979-09-18 | 1981-04-22 | Nippon Musical Instruments Mfg | Electronic musical instrument |
| JPH03103472U (en) * | 1990-02-06 | 1991-10-28 | ||
| JPH06301332A (en) * | 1993-04-16 | 1994-10-28 | Matsushita Electric Ind Co Ltd | Electronic musical instrument |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007140067A (en) * | 2005-11-17 | 2007-06-07 | Casio Comput Co Ltd | Musical sound generator and program |
| JP2007264058A (en) * | 2006-03-27 | 2007-10-11 | Yamaha Corp | Electronic musical instruments |
| US10726821B2 (en) | 2016-06-23 | 2020-07-28 | Yamaha Corporation | Performance assistance apparatus and method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3567513B2 (en) | 2004-09-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1465150B1 (en) | Apparatus and method for practicing musical instrument | |
| WO1997026645A1 (en) | Keyboard musical instrument equipped with keyboard range display | |
| US4757736A (en) | Electronic musical instrument having rhythm-play function based on manual operation | |
| JPH0448234B2 (en) | ||
| JP2002372967A (en) | Device for guiding keyboard playing | |
| JP3588828B2 (en) | Musical instrument with key press function | |
| US6211452B1 (en) | Electronic musical instrument having a function of dividing performance information into phrases and displaying keys to be operated for each phrase | |
| JP3567513B2 (en) | Electronic musical instrument with performance operation instruction function | |
| JP2003208155A (en) | Electronic musical instrument | |
| JP3348549B2 (en) | Electronic musical instrument with key press function | |
| JP2947116B2 (en) | Performance instruction device | |
| JP3005915B2 (en) | Electronic musical instrument | |
| JP3620366B2 (en) | Electronic keyboard instrument | |
| JP3158944B2 (en) | Phrase division device | |
| JP2001184063A (en) | Electronic musical instrument | |
| JPH09152867A (en) | Keyboard musical instrument | |
| JP3296202B2 (en) | Performance operation instruction device | |
| JP2570411B2 (en) | Playing equipment | |
| JP2510091Y2 (en) | Electronic musical instrument instruction display device | |
| JP3033393B2 (en) | Automatic accompaniment device | |
| JP2513014B2 (en) | Electronic musical instrument automatic performance device | |
| JP2621276B2 (en) | Automatic performance device | |
| JP2536272B2 (en) | Electronic musical instrument | |
| JPH0320874Y2 (en) | ||
| JP3543159B2 (en) | Automatic accompaniment device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040127 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040329 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040525 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040607 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080625 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090625 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100625 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100625 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110625 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120625 Year of fee payment: 8 |
|
| LAPS | Cancellation because of no payment of annual fees |