JPH06242778A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH06242778A
JPH06242778A JP5029166A JP2916693A JPH06242778A JP H06242778 A JPH06242778 A JP H06242778A JP 5029166 A JP5029166 A JP 5029166A JP 2916693 A JP2916693 A JP 2916693A JP H06242778 A JPH06242778 A JP H06242778A
Authority
JP
Japan
Prior art keywords
note
information
midi
input
musical instrument
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5029166A
Other languages
Japanese (ja)
Inventor
Ichiro Abe
一郎 阿部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP5029166A priority Critical patent/JPH06242778A/en
Publication of JPH06242778A publication Critical patent/JPH06242778A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide the electronic musical instrument on which a player can visually recognize the interval and length of a musical sound being generated when playing a MIDI musical instrument. CONSTITUTION:When note-ON information is inputted from the external MIDI musical instrument to the electronic musical instrument, the note-ON information is detected at S7-2 (S is an abbreviation of a step) of MIDI input data read processing executed by a main loop and after flag-setting processing is performed at S7-3-S7-7, display processing is performed at S7-8 to display the interval of a musical sound corresponding to this note-ON information and an initial note, indicating the length of a sound of the least unit previously set with the value of a time base B, on a score on a display. Then, this display processing is repeatedly performed by timer interruption with time and the initial note which is displayed on the display is updated into a note having longer sound length and displayed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電子楽器に係わり、特
にMIDI(Musical Instrument Digital Interface)
規格の情報を入力し、その演奏情報を楽譜等としてリア
ルタイムで表示装置に表示することのできる電子楽器に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument, and more particularly to MIDI (Musical Instrument Digital Interface).
The present invention relates to an electronic musical instrument capable of inputting standard information and displaying the performance information as a musical score or the like on a display device in real time.

【0002】[0002]

【従来の技術】従来より、電子楽器の通信手順の統一規
格であるMIDI情報を入力することによって、音楽演
奏を五線譜等の楽譜に表示する電子楽器が知られてい
る。この電子楽器は、MIDI情報を入力するMIDI
入力端子および楽譜を表示するCRTやLCD等のディ
スプレーを備えており、例えば演奏者がキーボード等の
MIDI楽器を演奏してMIDI情報をこの電子楽器に
入力すれば、演奏者の音楽演奏がリアルタイムでディス
プレイ上に楽譜として表示される。
2. Description of the Related Art Conventionally, there is known an electronic musical instrument which displays a musical performance on a musical score such as a musical score by inputting MIDI information which is a unified standard of communication procedures of the electronic musical instrument. This electronic musical instrument is a MIDI that inputs MIDI information.
Equipped with an input terminal and a display such as a CRT or LCD for displaying a musical score. For example, if a performer plays a MIDI musical instrument such as a keyboard and inputs MIDI information to this electronic musical instrument, the musical performance of the performer is performed in real time. It is displayed as a score on the display.

【0003】ところで、この電子楽器は、MIDI情報
によって入力される音楽演奏を次のようにして楽譜表示
する。即ち、MIDI情報の内、楽音の発音を示す(鍵
盤楽器の場合、鍵盤が押されたことを示す)ノートオン
情報がMIDI入力端子より入力された場合、その楽音
の消音を示す(鍵盤楽器の場合、鍵盤が離されたことを
示す)ノートオフ情報が入力されるまで経過時間(ステ
ップタイム)を計数し、このステップタイムとノートオ
ン/オフ情報に含まれるノートナンバー(楽音の音程を
示す情報)とによって音の長さおよび音程が確定された
音符を、予め表示してある五線符に重ねて逐次楽譜表示
する。
By the way, this electronic musical instrument displays a musical performance input by MIDI information in the following manner. That is, in the MIDI information, when the note-on information indicating the pronunciation of a musical tone (in the case of a keyboard instrument, indicating that the keyboard is pressed) is input from the MIDI input terminal, it indicates the mute of the musical tone (of the keyboard instrument. In this case, the elapsed time (step time) is counted until the note-off information (indicating that the keyboard has been released) is input, and the note number (information indicating the pitch of a musical tone) included in this step time and the note-on / off information. ) And, the musical note whose length and pitch have been fixed is successively displayed in the score by superimposing it on the previously displayed staff.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の電子楽器においては、上述のように楽音の消音を示
すノートオフ情報が入力された後に初めてその楽音が音
符として表示されるため、演奏者が例えば鍵盤を押さえ
続ける等して発音中の状態であっても、鍵盤を離して発
音を停止するまでは、その音が楽譜上に表示されない。
よって、演奏者は現在発音している楽音の音程や長さな
どの情報を視認することができないという問題があっ
た。
However, in the above-described conventional electronic musical instrument, since the musical tone is displayed as a musical note only after the note-off information indicating the mute of the musical tone is input as described above, For example, even if the keyboard is being sounded by continuing to hold down the key, the sound is not displayed on the score until the keyboard is released and the sound is stopped.
Therefore, there is a problem that the player cannot visually recognize the information such as the pitch and the length of the musical sound currently being produced.

【0005】本発明は前記課題を解決するものであり、
演奏者が現在発音している楽音の音程や長さを視認する
ことのできる電子楽器を提供することを目的とする。
The present invention solves the above-mentioned problems.
It is an object of the present invention to provide an electronic musical instrument that allows a performer to visually recognize the pitch and length of a musical sound currently being produced.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
の本発明は、図1に例示する様に、外部からMIDI情
報を入力するMIDI情報入力手段M1を備え、該MI
DI情報入力手段M1より入力されるMIDI情報によ
り伝達される演奏情報を表示装置M2に表示する電子楽
器において、前記MIDI情報入力手段M1より入力さ
れるMIDI情報の内、楽音の発音を示すノートオン情
報を検知するノートオン情報検知手段M3と、前記MI
DI情報入力手段M1より入力されるMIDI情報の
内、楽音の消音を示すノートオフ情報を検知するノート
オフ情報検知手段M4と、前記ノートオン情報が前記ノ
ートオン情報検知手段M3により検知された場合には、
該ノートオン情報に対応する楽音の消音を示す前記ノー
トオフ情報の入力が前記ノートオフ情報検知手段M4に
より検知される前に、前記ノートオン情報に対応する楽
音の音程を前記表示装置M2に表示する音程表示制御手
段M5とを備えたことを特徴とする電子楽器を要旨とす
る。
The present invention for attaining this object includes a MIDI information input means M1 for inputting MIDI information from the outside, as shown in FIG.
In the electronic musical instrument for displaying the performance information transmitted by the MIDI information input from the DI information input means M1 on the display device M2, note-on indicating the pronunciation of a musical tone among the MIDI information input from the MIDI information input means M1. Note-on information detecting means M3 for detecting information, and the MI
Of the MIDI information input from the DI information input means M1, the note-off information detecting means M4 for detecting the note-off information indicating the muting of the musical tone, and the case where the note-on information is detected by the note-on information detecting means M3. Has
Before the input of the note-off information indicating the mute of the tone corresponding to the note-on information is detected by the note-off information detecting means M4, the pitch of the tone corresponding to the note-on information is displayed on the display device M2. The electronic musical instrument is characterized in that it is provided with a pitch display control means M5.

【0007】請求項2の発明は、図2に例示する様に、
外部からMIDI情報を入力するMIDI情報入力手段
M11を備え、該MIDI情報入力手段より入力される
MIDI情報により伝達される演奏情報を表示装置M1
2に表示する電子楽器において、前記MIDI情報入力
手段M11より入力されるMIDI情報の内、楽音の発
音を示すノートオン情報の入力を検知するノートオン情
報検知手段M13と、該ノートオン情報の入力が該ノー
トオン情報検知手段M13により検知された場合には、
前記ノートオン情報に対応する楽音の音程と予め設定さ
れている最小単位の音の長さとを示す初期音符を、前記
楽音の消音を示すノートオン情報の入力より前に表示装
置に表示する初期音符表示制御手段M14と、前記ノー
トオン情報の入力からの経過時間を計数する計時手段M
15と、該計時手段M15によって計時される前記経過
時間の増加に応じて、前記初期音符を順次音の長さの長
い音符に更新して前記表示装置に表示する音符表示更新
手段M16と、を備えたことを特徴とする電子楽器を要
旨とする。
The invention of claim 2 is, as illustrated in FIG.
A MIDI information input means M11 for inputting MIDI information from the outside is provided, and the performance information transmitted by the MIDI information input from the MIDI information input means is displayed on the display device M1.
In the electronic musical instrument shown in FIG. 2, among the MIDI information input from the MIDI information inputting means M11, note-on information detecting means M13 for detecting input of note-on information indicating the pronunciation of a musical sound, and input of the note-on information. Is detected by the note-on information detecting means M13,
An initial note indicating the pitch of a tone corresponding to the note-on information and a preset minimum unit note length, and an initial note displayed on the display device prior to the input of the note-on information indicating the mute of the tone. Display control means M14 and clock means M for counting the elapsed time from the input of the note-on information.
15 and a note display update unit M16 for sequentially updating the initial notes into notes having a longer note length and displaying the notes on the display device in accordance with the increase of the elapsed time measured by the time measuring unit M15. The gist is an electronic musical instrument characterized by having it.

【0008】[0008]

【作用】前記構成を有する請求項1の電子楽器において
は、外部のMIDI楽器より、楽音の発音を示すノート
オン情報をMIDI情報入力手段M1に入力すると、こ
のノートオン情報はノートオン情報検知手段M3によっ
て検知される。そして、ノートオン情報が検知された場
合、このノートオン情報に対応する楽音の消音を示すノ
ートオフ情報の入力がノートオフ情報検知手段M4によ
り検知される前に、音程表示制御手段M5が、前記ノー
トオン情報に対応する楽音の音程を表示装置M2に表示
する。
According to the electronic musical instrument of the present invention having the above-mentioned structure, when note-on information indicating the pronunciation of a musical tone is input to the MIDI information input means M1 from an external MIDI instrument, the note-on information is detected. Detected by M3. When the note-on information is detected, the pitch display control means M5 detects the note-off information indicating the mute of the musical tone corresponding to the note-on information before the note-off information detection means M4 detects the input. The pitch of the musical tone corresponding to the note-on information is displayed on the display device M2.

【0009】つまり、例えば鍵盤楽器等のMIDI楽器
を演奏し、MIDI情報をMIDI情報入力手段M1よ
り入力して演奏を楽譜表示する場合、MIDI楽器の所
望の鍵盤を押して発音すると、その押している鍵盤の離
鍵を待つことなく、直ちにその楽音の音程が例えばCR
T等の表示装置M2の上に表示される。
That is, for example, when a MIDI musical instrument such as a keyboard musical instrument is played and MIDI information is input from the MIDI information input means M1 to display the musical score as a musical score, when a desired keyboard of the MIDI musical instrument is pressed to generate a sound, the pressed keyboard is pressed. Without waiting for the key to be released, the pitch of the tone is immediately CR
It is displayed on the display device M2 such as T.

【0010】また、請求項2の電子楽器においては、楽
音の発音を示すノートオン情報がMIDI情報入力手段
M11に入力されると、このノートオン情報はノートオ
ン情報検知手段M13によって検知され、初期音符表示
制御手段M14によって、このノートオン情報に対応す
る楽音の音程と予め設定されている最小単位の音の長さ
とを示す初期音符が、前記楽音の消音を示すノートオフ
情報の入力より前に表示装置M12に表示される。そし
て、計時手段M15は、ノートオン情報の入力からの経
過時間を計数しており、計時手段M15によって計時さ
れる経過時間の増加に応じて、音符表示更新手段M16
は、初期音符を順次音の長さの長い音符に更新して表示
装置M2に表示する。
Further, in the electronic musical instrument of the second aspect, when the note-on information indicating the pronunciation of a musical tone is input to the MIDI information input means M11, the note-on information is detected by the note-on information detecting means M13 and is initialized. By the note display control means M14, the initial note indicating the pitch of the musical tone corresponding to the note-on information and the preset length of the minimum unit of the tone is input before the input of the note-off information indicating the mute of the musical tone. It is displayed on the display device M12. Then, the time measuring means M15 counts the elapsed time from the input of the note-on information, and the note display updating means M16 according to the increase of the elapsed time measured by the time measuring means M15.
Causes the initial note to be sequentially updated to a note having a longer note length and displayed on the display device M2.

【0011】つまり、例えば鍵盤楽器等のMIDI楽器
を演奏して、その演奏を表示装置M12に楽譜表示する
場合、最小単位の音の長さを例えば16分音符に予め設
定した上で演奏を開始し、MIDI楽器の所望の鍵盤を
押して発音すると、その押している鍵盤の離鍵を待つこ
となく、直ちにその楽音の音程を示す16分音符の初期
音符が、表示装置M12の上に表示される。そして、鍵
盤を押さえ続けると、経過時間の増加に応じて、最初に
表示された16分音符の初期音符が、8分音符や4分音
符等の音長の長い音符に順次更新されて表示装置M12
に表示される。
That is, when a MIDI musical instrument such as a keyboard musical instrument is played and the musical score is displayed on the display device M12, the minimum unit note length is preset to, for example, a sixteenth note and the performance is started. Then, when a desired key of the MIDI musical instrument is pressed to produce a sound, an initial note of a sixteenth note indicating the pitch of the musical tone is immediately displayed on the display device M12 without waiting for the key being pressed to be released. When the keyboard is kept pressed, the initial note of the 16th note displayed first is sequentially updated to a note having a longer note such as an eighth note or a quarter note as the elapsed time increases, and the display device is updated. M12
Is displayed in.

【0012】[0012]

【実施例】以上説明した本発明の一実施例を図面に基づ
いて説明する。図3は、本実施例の電子楽器1の主要な
電気的構成を示すブロック図である。図3に示すよう
に、電子楽器1は、MIDI楽器2よりMIDI情報を
入力するMIDI入力端子3,他のMIDI楽器にMI
DI情報を出力するMIDI出力端子5,MIDI楽器
2(本実施例の場合は電子オルガンである)による演奏
を楽譜表示するCRTディスプレイ7,場合に応じて演
奏のテンポの基準となるメトロノーム音等を発するスピ
ーカー9,後述する「楽譜表示状態」を開始するスター
トスイッチ11aや、各種設定値を入力して実際の動作
のコントロールを行うその他の各種スイッチ類(図示せ
ず)が設けられた操作パネル11,電子制御装置13等
が配設されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention described above will be described with reference to the drawings. FIG. 3 is a block diagram showing the main electrical configuration of the electronic musical instrument 1 of this embodiment. As shown in FIG. 3, the electronic musical instrument 1 has a MIDI input terminal 3 for inputting MIDI information from the MIDI musical instrument 2 and MI for other MIDI musical instruments.
A MIDI output terminal 5 for outputting DI information, a CRT display 7 for displaying a musical score of a performance by a MIDI musical instrument 2 (an electronic organ in this embodiment), a metronome sound or the like serving as a reference for the tempo of the performance depending on the case. An operation panel 11 provided with a speaker 9 for emitting a sound, a start switch 11a for starting a "score display state" described later, and other various switches (not shown) for inputting various set values and controlling actual operation. , An electronic control unit 13 and the like are provided.

【0013】電子制御装置13は、周知のCPU15,
ROM17,RAM19,タイマー21およびそれらを
接続するバス23等から構成されており、CPU15,
ROM17,RAM19,タイマー21はバスライン2
3を介して、上記のMIDI入力端子3,MIDI出力
端子5,ディスプレイ7,スピーカー9,操作パネル1
1と相互に接続されている。
The electronic control unit 13 includes a well-known CPU 15,
It is composed of a ROM 17, a RAM 19, a timer 21 and a bus 23 connecting them, and the like.
ROM17, RAM19, timer 21 is the bus line 2
Via the above MIDI input terminal 3, MIDI output terminal 5, display 7, speaker 9, operation panel 1
1 is mutually connected.

【0014】ここで、本実施例の電子楽器1に入力され
るMIDI情報について説明する。MIDI楽器2の発
音や消音等の演奏情報を電子楽器1に伝送するMIDI
情報は、通常下記表1に示す様に、1バイトのステータ
スバイト(第1バイト)及び2バイトのデータバイト
(第2,第3バイト)からなる3バイトを1単位とする
データとして構成されている。
The MIDI information input to the electronic musical instrument 1 of this embodiment will be described below. MIDI for transmitting performance information such as pronunciation and mute of the MIDI musical instrument 2 to the electronic musical instrument 1.
As shown in Table 1 below, the information is usually structured as data with 1 unit of 3 bytes consisting of 1 byte status byte (1st byte) and 2 bytes data byte (2nd and 3rd bytes). There is.

【0015】このうち第1バイト(ステータスバイト)
には、ノートオン情報(つまり発音を示す情報),ノー
トオフ情報(消音を示す情報)等を示すステータスと、
個々のMIDI情報がどの楽器(16種類まで設定可
能)からの情報であるかを示すチャンネルコードとが設
定されている。また、第2バイトには、音程の種類(即
ち、鍵の種類)を示すノートナンバー(音程)が設定さ
れ、第3バイトには、鍵盤2a〜2cの打鍵スピードを
示すベロシティ(音量)等を示すデータが設定されてい
る。
Of these, the first byte (status byte)
Includes a status indicating note-on information (that is, information indicating pronunciation), note-off information (information indicating mute), and the like,
A channel code indicating from which musical instrument (up to 16 types can be set) the individual MIDI information is set. In the second byte, a note number (pitch) indicating the type of pitch (that is, key type) is set, and in the third byte, velocity (volume) indicating the keystroke speed of the keyboards 2a to 2c is set. The data shown is set.

【0016】[0016]

【表1】 [Table 1]

【0017】また、MIDI情報には、前述のように演
奏情報を送るデータの他に、楽器システムの動作を制御
するデータも含まれており、これには、例えば1バイト
形式のスタート(FAH)、ストップ(FCH)、タイ
ミングクロック(MIDIクロックとも言う:F8H)
等のデータがある。
Further, the MIDI information includes data for controlling the operation of the musical instrument system in addition to the data for transmitting the performance information as described above, which includes, for example, a 1-byte format start (FAH). , Stop (FCH), timing clock (also called MIDI clock: F8H)
There is data such as.

【0018】次に、本実施例の電子楽器1の動作につい
て説明する。本実施例の電子楽器1は、MIDI楽器2
による演奏を前述のMIDI情報として入力することに
よって、図4に示す様に、その演奏をディスプレイ7上
にリアルタイムで楽譜表示するものである。
Next, the operation of the electronic musical instrument 1 of this embodiment will be described. The electronic musical instrument 1 of this embodiment is a MIDI musical instrument 2
By inputting the performance by the above as MIDI information, the performance is displayed on the display 7 in real time as shown in FIG.

【0019】ここで、具体的にその操作を述べると、ま
ずMIDI楽器2の演奏を開始して楽譜表示を開始する
前に、操作パネル11のスイッチを操作して、演奏しよ
うとする楽曲の拍子(例えば4/4拍子や6/8拍子
等),演奏のテンポT,タイムベースBを予め入力す
る。
The operation will be described concretely. First, before starting the performance of the MIDI musical instrument 2 and displaying the score, the switch of the operation panel 11 is operated to measure the beat of the music to be played. (For example, 4/4 time signature, 6/8 time signature, etc.), performance tempo T, and time base B are input in advance.

【0020】ここで、演奏のテンポTの値は、一般にメ
トロノーム等で用いられるように、1分間に4分音符を
何回打つかを示すものである。例えば、T=40であれ
ば、1分間に4分音符を40回打つ速さである。また、
タイムベースBとは、例えば、1,2,3,4,8,1
6等の整数値から選択されるものであり、4分音符をい
くつに分解するかを表し、この分解された音符が、予め
設定された最小単位の音の長さの音符となる。つまり、
例えばB=4に設定すれば、4分音符の4分の1の長さ
の16分音符が最小単位となり、図4(a)に示す様
に、鍵盤を押した場合に、まず16分音符が表示される
ことになる。また、16分音符より短い音符の演奏はす
べて16分音符として楽譜上に表示される。尚、B=1
とすれば4分音符単位であり、B=3とすれば8分3連
符単位である。
Here, the value of the tempo T of the performance indicates how many times a quarter note is struck in one minute, as is generally used in a metronome or the like. For example, if T = 40, it is the speed of striking a quarter note 40 times in 1 minute. Also,
The time base B is, for example, 1, 2, 3, 4, 8, 1
It is selected from integer values such as 6, and represents how many quarter notes are to be decomposed. The decomposed notes are notes having a preset minimum unit note length. That is,
For example, if B = 4 is set, the minimum unit is a 16th note that is a quarter of a quarter note, and as shown in FIG. Will be displayed. Also, all performances of notes shorter than 16th notes are displayed on the score as 16th notes. B = 1
Is a quarter note unit, and B = 3 is an eighth note triplet unit.

【0021】そして、この様に各種設定値を入力した
後、操作パネル11のスタートスイッチ11a(図1参
照)を押して「楽譜表示状態」をスタートを指示すると
同時に、MIDI楽器2の演奏を開始し、例えば鍵盤2
aの「ド」の音の鍵盤2dを押さえると、ノートオン情
報がMIDI入力端子3より入力され、図4(a)に示
すように、直ちに(つまり、鍵盤2dの離鍵を待つこと
なく)この「ド」の音が最小単位の長さの16分音符4
1として五線譜上に表示される。
After inputting various setting values in this manner, the start switch 11a (see FIG. 1) of the operation panel 11 is pressed to instruct the start of the "musical score display state", and at the same time, the performance of the MIDI musical instrument 2 is started. , For example, keyboard 2
When the keyboard 2d of the "do" sound of a is pressed, note-on information is input from the MIDI input terminal 3 and immediately (that is, without waiting for the key release of the keyboard 2d) as shown in FIG. 4 (a). This "do" sound is a 16th note 4 with the minimum unit length.
1 is displayed on the staff.

【0022】そして、この「ド」の音の鍵盤2dを、8
分音符に相当する時間押え続けると、図4(a)に示す
16分音符の表示が、図4(b)に示す様に、8分音符
43に更新される。更に、鍵盤を押さえ続けると、図4
(c)〜(e)に示すように、順次4分音符45、付点
4分音符47、2分音符49という様に、音の長い音符
に表示が更新されていく。
Then, the keyboard 2d of this "do" sound is set to 8
When the pressing is continued for a time corresponding to a quarter note, the display of the 16th note shown in FIG. 4A is updated to the eighth note 43 as shown in FIG. 4B. If you continue to press the keyboard,
As shown in (c) to (e), the display is sequentially updated to long notes such as quarter note 45, dotted quarter note 47, and half note 49.

【0023】続いて、前述の様に動作する電子楽器1に
て行われる制御処理を、フローチャートに基づいて詳細
に説明する。図5は、電子楽器1の制御処理の概略を示
すメインループのフローチャートである。このメインル
ープは、4つの大きなステップに分かれている。即ち、
S1−1(Sはステップの略称である)の初期設定処理
では、例えばRAM19のクリア等といった、電子制御
装置13の基本的な初期設定を行い、S1−2のパネル
スイッチスキャン処理では、前述した操作パネル11の
スイッチ類の操作の検知し、「楽譜表示状態」のスター
ト,ストップ等の制御や、タイムベースB,演奏テンポ
T,拍子等の各種設定等を行う。そして、S1−3のM
IDI入力データ読み出し処理では、一旦RAM19に
記憶されたMIDI入力データを読み出し、ノートオン
情報を検知するとともに、前述のように演奏を楽譜表示
する表示処理を行ない、S1−4のその他の処理では、
S1−1〜3に含まれないその他の処理を行なう。尚、
S1−2のパネルスイッチスキャン処理及びS1−3の
MIDI入力データ読み出し処理の詳細な制御処理につ
いては、後に述べる。
Next, the control process performed by the electronic musical instrument 1 operating as described above will be described in detail with reference to the flowchart. FIG. 5 is a flowchart of the main loop showing an outline of the control processing of the electronic musical instrument 1. This main loop is divided into four major steps. That is,
In the initialization process of S1-1 (S is an abbreviation for step), basic initialization of the electronic control unit 13 such as clearing of the RAM 19 is performed, and the panel switch scan process of S1-2 described above. The operation of the switches of the operation panel 11 is detected, and control such as start and stop of the "musical score display state" and various settings such as the time base B, performance tempo T, and time signature are performed. And M of S1-3
In the IDI input data reading process, the MIDI input data once stored in the RAM 19 is read, note-on information is detected, and the display process of displaying the musical score as described above is performed. In the other processes of S1-4,
Other processing not included in S1-1 to 3 is performed. still,
Detailed control processing of the panel switch scan processing of S1-2 and the MIDI input data reading processing of S1-3 will be described later.

【0024】そして、上記メインループの実行中に、図
6〜図8に各々示す、第1割り込み処理、第2割り込み
処理、第3割り込み処理が実行される。このうち、図6
に示す第1割り込み処理は、MIDI入力端子3(図3
参照)よりシリアル入力されたMIDIデータが、CP
U15に内蔵されたシリアル入力ポートに格納された時
に実行されるものであり、S2−1において、シリアル
入力ポートよりMIDIデータを読み込み、S2−2に
て、このデータをRAM19のFIFO第1メモリに一
旦セーブしてバッファリング処理する。尚、このセーブ
されたMIDIデータは、後にメインループ(図5参
照)のMIDI入力データ読み出し処理(S1−3)に
て読み出される。
Then, during execution of the main loop, the first interrupt processing, the second interrupt processing, and the third interrupt processing shown in FIGS. 6 to 8 are executed. Of these, Figure 6
The first interrupt process shown in is the MIDI input terminal 3 (see FIG.
MIDI data serially input from
It is executed when it is stored in the serial input port built in U15. In S2-1, MIDI data is read from the serial input port, and in S2-2, this data is stored in the FIFO first memory of the RAM 19. Save and buffer processing once. The saved MIDI data is later read in the MIDI input data read processing (S1-3) of the main loop (see FIG. 5).

【0025】また、図7に示す第2割り込み処理は、シ
リアル出力ポート(同じくCPU15に内蔵されてい
る)に格納されたデータが出力完了したときに実行され
るものであり、まずS3−1にて、MIDI出力モード
であるか否かを判断する。ここで、MIDI出力モード
とは、MIDIデータをMIDI出力端子3より出力し
て、他のMIDI楽器に送信するモードである。そし
て、S3−1にて否定判断されればそのまま処理を終了
してメインループに戻るが、肯定判断された場合、即ち
MIDI出力モードである場合は、S3−2に進んで、
FIFO第2メモリよりMIDIデータを読み出し、S
3−3にてシリアル出力ポートにこのMIDIデータを
セットする。つまり、この処理は、バッファリングされ
ているMIDIデータを非同期にシリアル出力する処理
である。
The second interrupt process shown in FIG. 7 is executed when the data stored in the serial output port (also built in the CPU 15) is completely output. First, in S3-1. Then, it is determined whether or not the MIDI output mode is set. Here, the MIDI output mode is a mode in which MIDI data is output from the MIDI output terminal 3 and transmitted to another MIDI musical instrument. Then, if a negative determination is made in S3-1, the processing is terminated and the process returns to the main loop, but if an affirmative determination is made, that is, in the MIDI output mode, the process proceeds to S3-2,
Read the MIDI data from the FIFO second memory,
At 3-3, this MIDI data is set to the serial output port. That is, this process is a process for asynchronously serially outputting the buffered MIDI data.

【0026】そして、図8に示す第3割り込み処理は、
「内部クロックモード」において、電子制御装置13内
部のシステムクロック信号(例えば1msecごとに発
生する信号)ごとに割り込み実行されるものであり、各
種カウンタの計数を行うとともに、図4にて示した様に
音符の長さを更新して表示する際の基準時間となるゲー
トタイム等を計時するルーチンである。このルーチンで
は、まずS4−1にてランニングフラグ(スタートスイ
ッチ11aが押されて「楽譜表示状態」となっている場
合にオンとなるフラグである。)がオンか否かを検知
し、オンであれば(即ち「楽譜表示モード」であれ
ば)、S4−2に進んで、計時処理を行なう。
Then, the third interrupt processing shown in FIG.
In the "internal clock mode", an interrupt is executed for each system clock signal inside the electronic control unit 13 (for example, a signal generated every 1 msec), and various counters are counted and as shown in FIG. This is a routine for measuring a gate time, which is a reference time when the note length is updated and displayed. In this routine, first in S4-1, it is detected whether or not the running flag (which is a flag that is turned on when the start switch 11a is pressed to be in the "musical score display state") is turned on, and the running flag is turned on. If there is (that is, if it is the "musical score display mode"), the process proceeds to S4-2 to perform the time counting process.

【0027】この計時処理について、図9に詳細に示
す。まず、S5−1にてランニングフラグのオン/オフ
を検知し、オフであれば一旦処理を終了するが、オンで
あれば、S5−2にてカウンタの値を1加算してS5−
3に進み、このカウンタの値が所定のカウント値Nに達
したか否かを判断する。
The timing process is shown in detail in FIG. First, on / off of the running flag is detected in S5-1, and if it is off, the process is temporarily terminated. If it is on, the counter value is incremented by 1 in S5-2 and S5-
In step 3, it is determined whether or not the value of this counter has reached a predetermined count value N.

【0028】このカウント値Nは、テンポT,タイムベ
ースB,システムクロックの周期C(msec)に基づ
き、次の式によって決定される。 60×103(msec)/T=N×B×C(mse
c) つまり、カウンタ値がN回カウントされて経過する時間
C×N(msec)は、タイムベースB及びテンポTに
よって決まる最小単位の音の長さの音符の発音時間60
×103/T/B(msec)に等しく、このカウント
値Nに基づいて最小単位の音長の音符を基準とする表示
処理等を行うことができる。尚、テンポTを細かい精度
で得るためには、システムクロックの周期Cの値を小さ
くし、タイムベースBの値を大きくすることが望まし
い。
The count value N is determined by the following equation based on the tempo T, the time base B, and the system clock cycle C (msec). 60 × 10 3 (msec) / T = N × B × C (mse
c) In other words, the time C × N (msec) that elapses after the counter value is counted N times is the sound generation time 60 of the note having the minimum unit length determined by the time base B and the tempo T.
It is equal to × 10 3 / T / B (msec), and based on this count value N, display processing or the like can be performed with a note of the minimum unit of note length as a reference. In order to obtain the tempo T with fine accuracy, it is desirable to reduce the value of the cycle C of the system clock and increase the value of the time base B.

【0029】尚、本実施例の電子楽器1においては、
「外部クロックモード」に設定すると、上述の計時処理
は、システムクロックではなく、MIDI情報の中のM
IDIクロックのタイミングに基づいて行われる。この
MIDIクロックは、それ自体が24のタイムベースに
て送られて来る(つまり、4分音符の1/24のタイミ
ングで送られて来る)信号であるため、カウント値N
は、前記の式とは異なり、N=24/Bとなる。
In the electronic musical instrument 1 of this embodiment,
When the "external clock mode" is set, the above-mentioned timing processing does not use the system clock but the M in the MIDI information.
It is performed based on the timing of the IDI clock. Since this MIDI clock is a signal which is itself sent in a time base of 24 (that is, sent at a timing of 1/24 of a quarter note), the count value N
Is different from the above equation, N = 24 / B.

【0030】そして、前記5−3にて、カウンタ値が所
定のカウント値Nに達しないと判断されれば、一旦処理
を終了するが、カウンタ値Nとなった場合は、S5−4
に進んでカウンタ値をクリアし、S5−5に進んでステ
ップカウンタを1加算する。このステップカウンタは、
「楽譜表示モード」開始からの時間経過を示すステップ
タイムを計数するものである。次に、S5−6に進ん
で、このステップカウンタの値がタイムベースBの値に
達したか否かを判断し、否定判断されればS5−12に
進むが、タイムベースBの値と等しい場合は、S5−7
にてステップカウンタの値をクリアし、S5−8にて拍
カウンタを1加算する。そして、S5−9にて拍カウン
タ値が所定の拍数(例えば4/4拍子であれば4)に達
したか否かを判断し、否定判断されればS5−12に進
むが、所定の拍数に達した場合は、S5−10に進ん
で、拍カウンタをゼロクリアして、S5−11にて小節
カウンタの値を1加算する。尚、これらのステップカウ
ンタ,拍カウンタ,小節カウンタの値は、後述する表示
処理(図13参照)において、ディスプレイ7上に音符
を表示する際のX軸(横軸)方向の位置を規定するもの
である。
If it is determined in 5-3 that the counter value does not reach the predetermined count value N, the process is temporarily terminated, but if the counter value becomes N, S5-4.
In step S5-5, the counter value is cleared, and in step S5-5, the step counter is incremented by one. This step counter is
The step time, which indicates the passage of time from the start of the "musical score display mode", is counted. Next, in S5-6, it is determined whether or not the value of the step counter has reached the value of the time base B. If a negative determination is made, the process proceeds to S5-12, which is equal to the value of the time base B. In the case of S5-7
The value of the step counter is cleared at, and the beat counter is incremented by 1 at S5-8. Then, in S5-9, it is determined whether or not the beat counter value has reached a predetermined number of beats (for example, 4 in the case of 4/4 beat), and if a negative determination is made, the process proceeds to S5-12, When the number of beats is reached, the process proceeds to S5-10, the beat counter is cleared to zero, and the value of the bar counter is incremented by 1 in S5-11. The values of these step counter, beat counter, and bar counter define the position in the X-axis (horizontal axis) direction when a note is displayed on the display 7 in the display processing (see FIG. 13) described later. Is.

【0031】そして、S5−12では、ゲートタイムを
1加算する処理を行う。このゲートタイムは、S5−3
にてカウンタの値がNに達する毎に1加算されるととも
に、ノートオン情報が入力された場合には、後述するM
IDI入力データ読み出し処理(図11参照)にて、ク
リアされる。つまり、このゲートタイムは、ある楽音の
ノートオン(発音開始)からの経過時間を表すものであ
り、図4に示した様な表示音符の更新の時間の基準とな
る。
Then, in S5-12, a process of adding 1 to the gate time is performed. This gate time is S5-3
The counter is incremented by 1 each time it reaches N, and when note-on information is input, M will be described later.
It is cleared in the IDI input data read process (see FIG. 11). That is, this gate time represents the elapsed time from the note-on (start of sound generation) of a certain musical sound, and serves as a reference for the time for updating the displayed musical note as shown in FIG.

【0032】次に、S5−13に進んで、ディスプレイ
7に音符を表示する表示処理(図13参照)を行い、処
理を終了する。尚、この表示処理については後に詳述す
る。以上の様に、図8の第3割り込み処理は、一定時間
毎に常に実行され、「楽譜表示状態」である場合は、ス
テップタイムやゲートタイム等の計時を行うものであ
る。
Next, in S5-13, a display process (see FIG. 13) for displaying a note on the display 7 is performed, and the process is terminated. The display process will be described later in detail. As described above, the third interrupt process of FIG. 8 is always executed at regular time intervals, and in the "musical score display state", step time, gate time, etc. are measured.

【0033】続いて、図5のメインループの各ステップ
について詳細に説明する。まず、図10のフローチャー
トに基づいて、S1−2のパネルスイッチスキャン処理
について説明する。このパネルスイッチスキャン処理
は、前述のように操作パネル11のスイッチ類の操作の
検知するものであり、まず、S6−1にて、スイッチイ
ベントがあるか否か(スイッチイベントは、操作パネル
11の任意のスイッチが押されたときに発生する)を判
断し、否定判断されれば処理を終了する。
Next, each step of the main loop of FIG. 5 will be described in detail. First, the panel switch scan processing of S1-2 will be described based on the flowchart of FIG. This panel switch scanning process is to detect the operation of the switches of the operation panel 11 as described above. First, in S6-1, whether or not there is a switch event (the switch event is the operation panel 11 Occurs when any switch is pressed), and if negative, the process ends.

【0034】一方、スイッチイベントがあれば、S6−
2に進んで、前述の「外部クロックモード」のスイッチ
イベントであるか否かを判断し、肯定判断された場合
は、S6−3に進んで、「外部クロックモード」にセッ
トした後、S6−6にて前述のカウント値Nをセットす
る。尚、初期状態においては、「内部クロックモード」
である。
On the other hand, if there is a switch event, S6-
If it is determined that the switch event is the above-mentioned "external clock mode", the process proceeds to step S6-3 to set the "external clock mode", and then step S6- At 6, the above-mentioned count value N is set. In the initial state, "internal clock mode"
Is.

【0035】一方、S6−2にて否定判断された場合
は、「内部クロックモード」であり、S6−4に進ん
で、タイムベースBの設定スイッチのイベントであるか
否かを判断し、肯定判断された場合は、タイムベースB
の値を読み込んでS6−6に進み、カウント値Nをセッ
トする。
On the other hand, if a negative determination is made in S6-2, it is the "internal clock mode", the flow proceeds to S6-4, it is determined whether or not it is an event of the setting switch of the time base B, and the determination is affirmative. If judged, time base B
Value is read and the process proceeds to S6-6 to set the count value N.

【0036】次に、S6−4にて否定判断されれば、S
6−5に進んで、テンポTの設定スイッチのイベントで
あるか否かを判断し、肯定判断されれば、テンポTの値
を読み込んでS6−6に進み、カウント値Nをセットす
る。次に、S6−5にて否定判断されれば、S6−7に
進んで、拍子の設定スイッチのイベントであるか否かを
判断し、肯定判断されれば、S6−8に進んで、拍子の
値を読み込み、処理を終了する。
Next, if a negative determination is made in S6-4, S
Proceeding to 6-5, it is determined whether or not it is an event of the tempo T setting switch, and if a positive determination is made, the value of tempo T is read and the process proceeds to S6-6 to set the count value N. Next, if a negative determination is made in S6-5, the flow proceeds to S6-7 to determine whether or not it is an event of a beat setting switch. If an affirmative determination is made, the flow proceeds to S6-8 to obtain a beat. The value of is read and the process ends.

【0037】一方、S6−7にて否定判断されれば、S
6−9に進んで「楽譜表示状態」の開始を指示するスタ
ートスイッチ11aのイベントであるか否かを判断し、
肯定判断されれば、S6−10に進んで、ランニングフ
ラグをセットし、S6−11に進んで、前述の計時処理
(図9参照)にて計数されている、カウンタ、ステップ
カウンタ、拍カウンタ、小節カウンタの値をすべてゼロ
クリアする全カウンタクリア処理を行う。そして、S6
−12に進んで、「MIDI出力モード」か否かを判断
し、否定判断されれば一旦処理を終了するが、「MID
I出力モード」であれば、S6−13に進んで、FIF
O第2メモリにスタートスイッチ11aのイベントデー
タをセットした後、一旦処理を終了する。尚、このS6
−13にてセットされたデータは、前述の第2割り込み
処理(図7参照)にて読み出される。
On the other hand, if a negative determination is made in S6-7, S
Going to 6-9, it is judged whether or not it is the event of the start switch 11a for instructing the start of the "musical score display state",
If an affirmative decision is made, the routine proceeds to S6-10, the running flag is set, and the routine proceeds to S6-11, where the counter, step counter, beat counter, which has been counted in the above-described timing processing (see FIG. 9), Performs all counter clear processing to clear all bar counter values to zero. And S6
The process proceeds to -12, and it is determined whether or not the mode is the "MIDI output mode". If a negative determination is made, the process ends, but "MID
If it is the “I output mode”, the process proceeds to S6-13 and the FIF
After the event data of the start switch 11a is set in the O second memory, the process is temporarily terminated. In addition, this S6
The data set in -13 is read by the above-mentioned second interrupt processing (see FIG. 7).

【0038】次に、S6−9にて否定判断された場合
は、S6−15に進んで、「楽譜表示状態」を終了を指
示するストップスイッチのイベントであるか否かを判断
し、肯定判断されれば、S6−16にてランニングフラ
グをクリアするストップ処理を行い、S6−17,18
にて前述のS6−12,13と同様なMIDI出力デー
タのセット処理を行なう。
Next, if a negative determination is made in S6-9, the flow proceeds to S6-15 to determine whether or not the event is a stop switch instruction for ending the "musical score display state", and an affirmative determination is made. If so, stop processing for clearing the running flag is performed in S6-16, and S6-17, 18
Then, the same MIDI output data setting process as in S6-12 and S13 is performed.

【0039】次に、S6−15にて否定判断された場合
は、S6−19に進んで、「MIDI出力モード」に設
定するスイッチのイベントであるか否かを判断し、否定
判断されれば、そのまま一旦処理を終了するが、肯定判
断されれば、S6−20に進んで「MIDI出力モー
ド」にセットした後、一旦処理を終了する。
Next, when a negative determination is made in S6-15, the processing proceeds to S6-19, it is determined whether or not it is an event of the switch set to the "MIDI output mode", and if a negative determination is made. The processing is ended as it is, but if an affirmative decision is made, the operation proceeds to S6-20 to set the "MIDI output mode" and then ends the processing once.

【0040】続いて、図3のS1−3のMIDI入力デ
ータ読み出し処理について、図11に基づいて詳細に説
明する。図11に示すMIDI入力データ読み出し処理
は、FIFO第1メモリに一旦記憶したMIDI入力デ
ータを読み出し、ノートオン情報を検知するとともに、
ノートオン情報を検知した場合には、このノートオン情
報に対応する楽音を五線譜上に音符として表示する表示
処理(図13参照)を行なうものである。
Next, the MIDI input data read processing of S1-3 in FIG. 3 will be described in detail with reference to FIG. In the MIDI input data read processing shown in FIG. 11, the MIDI input data once stored in the FIFO first memory is read, note-on information is detected, and
When the note-on information is detected, a display process (see FIG. 13) for displaying the musical tone corresponding to the note-on information as a musical note on the staff is performed.

【0041】このMIDI入力データ読み出し処理で
は、まずS7−1において、FIFO第1メモリにセー
ブされているMIDIデータを読み出す。そして、S7
−2にて、読み出したMIDIデータがノートオン情報
であるか否かを判断し、ノートオン情報であれば、S7
−3以降に進んで以下の様なノートオン・表示処理を行
う。
In this MIDI input data read processing, first, in S7-1, the MIDI data saved in the FIFO first memory is read. And S7
-2, it is determined whether the read MIDI data is note-on information, and if it is note-on information, S7
-3 or later, the following note-on / display processing is performed.

【0042】即ち、まずS7−3にて、ランニングフラ
グがオンか否かを判断し、否定判断されれば、一旦処理
を終了するが、肯定判断された場合(即ち「楽譜表示状
態」である)であれば、S7−4に進んで、ノートオン
情報のMIDIチャンネル情報より、キーマップを選
ぶ。即ち、前記表1にも示したように、ノートオン情報
は、例えば「90H/40H/7FH」の様な3バイト
形式の信号であり、1バイト目の「90H」の「9」が
ノートオンの情報であることを示すとともに、「0」が
MIDIチャンネル(0チャンネル)を示す。そして、
本実施例においては、電子オルガン2の上鍵盤2aが0
チャンネルに、下鍵盤2bが1チャンネルに、足鍵盤が
2チャンネルに対応するとともに、これらのチャンネル
毎にキーマップがRAM上に用意されており、上記の例
では、チャンネル0(即ち上鍵盤2a)に対応するキー
マップが選ばれる。
That is, first, in S7-3, it is judged whether or not the running flag is ON, and if a negative judgment is made, the process is once ended, but if an affirmative judgment is made (that is, the "musical score display state"). If so, the process proceeds to S7-4, and a key map is selected from the MIDI channel information of the note-on information. That is, as shown in Table 1 above, the note-on information is a signal of a 3-byte format such as "90H / 40H / 7FH", and "9" of the first byte "90H" is a note-on. Information, and "0" indicates the MIDI channel (0 channel). And
In this embodiment, the upper keyboard 2a of the electronic organ 2 is 0.
For the channels, the lower keyboard 2b corresponds to one channel, and the foot keyboard corresponds to two channels, and a key map is prepared on the RAM for each of these channels. In the above example, channel 0 (that is, the upper keyboard 2a). The keymap corresponding to is selected.

【0043】次に、S7−5に進んで、ノートオン情報
の2バイト目のノートナンバー(上記の例では「40
H」)より、ノートオンしたキーにフラグをセットす
る。即ち、キーマップとは、00H〜7FHの値を持つ
ノートナンバーに順にアドレス対応させて各々のノート
の発音状況を管理するメモリであるので、例えば上記の
ノートオン情報では、2バイト目の「40H」から0チ
ャンネルのキーマップ上のポインタを得て、「40H」
に相当するバッファに、発音を示すフラグをセットす
る。
Next, in S7-5, the note number of the second byte of the note-on information ("40 in the above example"
H ”), the flag is set to the key on which the note is on. That is, the key map is a memory that manages the pronunciation status of each note by sequentially addressing note numbers having values of 00H to 7FH, so that, for example, in the above note-on information, the second byte "40H" is used. , Get the pointer on the keymap of channel 0 from "40H"
A flag indicating the pronunciation is set in the buffer corresponding to.

【0044】次にS7−6に進んで、図9に示した計時
処理にてカウントされているステップカウンタ,拍カウ
ンタ,小節カウンタの値を参照し、これをキーマップに
記入する。即ち、図12に示すように、ステップカウン
タの値が「3」,拍カウンタの値が「1」,小節カウン
タの値が「0」の時にノートオン「40H」が発生した
場合は、キーマップのノートナンバー「40H」にこれ
らの値が記入される。
Next, in S7-6, the values of the step counter, beat counter, and bar counter counted in the timekeeping process shown in FIG. 9 are referenced, and these are entered in the key map. That is, as shown in FIG. 12, when note-on "40H" occurs when the value of the step counter is "3", the value of the beat counter is "1", and the value of the bar counter is "0", the key map These values are written in the note number "40H" of.

【0045】そして、S7−6の処理が終了すると、S
7−7に進んで、計時処理(図9参照)のS5−12に
て数えられているゲートタイムをゼロクリアする。そし
て、S7−8に進んで、ノートオン情報に対応するノー
ト(音符)をディスプレイ7上に表示する表示処理を行
う。
When the processing of S7-6 is completed, S
Proceeding to 7-7, the gate time counted in S5-12 of the timing processing (see FIG. 9) is cleared to zero. Then, the process proceeds to S7-8, and a display process of displaying a note (note) corresponding to the note-on information on the display 7 is performed.

【0046】この表示処理は、図13のフローチャート
に示す様に、まずS8−1にて、キーマップのノートオ
ンフラグがセットされているか否かを判断し、否定判断
された場合は一旦処理を終了するが、フラグがセットさ
れている場合は、S8ー2に進んで、前述のMIDIチ
ャンネルより、パートを選ぶ。ここで、パートとは、一
般の楽譜にある高音部と低音部や、楽器別といった、上
下に分かれた楽譜の部分を意味し、図14(a)に示す
様にMIDIチャンネル毎(即ち鍵盤2a〜2c毎)に
パート51a〜51cを充てている。尚、楽器(あるい
は音色)毎にパートを割り振って充てても良い。この場
合には、MIDIメッセージのプログラムナンバーにパ
ートが対応する。
In this display processing, as shown in the flowchart of FIG. 13, first in S8-1, it is judged whether or not the note-on flag of the key map is set, and if the judgment is negative, the processing is once executed. If the flag is set, the process goes to S8-2 to select a part from the MIDI channel. Here, the part means a part of a musical score that is divided into upper and lower parts such as a high pitch part and a low pitch part in a general musical score, and a musical instrument, and as shown in FIG. 14A, for each MIDI channel (that is, the keyboard 2a Every 2 to 2c) are filled with parts 51a to 51c. It should be noted that parts may be assigned and allocated for each musical instrument (or timbre). In this case, the part corresponds to the program number of the MIDI message.

【0047】次に、S8−3に進んで、MIDIメッセ
ージのノートナンバーより、ディスプレイ7上のY座標
を得る。即ち、ノートナンバーは、音程(音の高さ)を
示す情報であるので、図14(b)に示す様に、ノート
ナンバーに応じて、五線譜の上に表示される4分音符5
3,55の上下の位置(Y座標)が決定される。
Next, in S8-3, the Y coordinate on the display 7 is obtained from the note number of the MIDI message. That is, since the note number is information indicating the pitch (pitch of the pitch), as shown in FIG. 14B, the quarter note 5 displayed on the staff according to the note number.
The upper and lower positions (Y coordinate) of 3,55 are determined.

【0048】そして、S8−4に進んで、前述のMID
I入力データ読み出し処理(図11参照)のS7−6に
てセットされたステップカウンタ,拍カウンタ,小節カ
ウンタの値より、ディスプレイ7上のX座標を得る。つ
まり、これらのカウンタの値は、発音のタイミングを示
し、楽曲の進行方向、即ち左右方向の位置(X座標)を
表すので、例えば図14(c)に示す様に、ステップタ
イムが0,1,2と増加するに従って、16分音符55
は五線譜の右寄りの位置に表示される。
Then, in S8-4, the above-mentioned MID
The X coordinate on the display 7 is obtained from the values of the step counter, beat counter, and bar counter set in S7-6 of the I input data reading process (see FIG. 11). That is, since the values of these counters indicate the timing of sound generation and the position (X coordinate) in the traveling direction of the music, that is, in the left-right direction, the step times are 0, 1 as shown in FIG. 14C, for example. , As the number increases by 2, the 16th note 55
Is displayed on the right side of the staff.

【0049】次に、S8−8に進んで、計時処理(図9
参照)にて計時されているゲートタイムの値を参照し
て、音符の種類(フォント又は図柄)を決定する。即
ち、ゲートタイムは、ノートオン情報の入力が検出され
てからの経過時間、つまり発音している音の長さを示す
ものであり、図14(d)に示す様に、ゲートタイムが
0であれば、最小単位の音の長さの音符(タイムベース
B=4であれば、16分音符57)がフォントとして選
ばれ、ディスプレイ7上に表示される。また、発音時間
が経過して、ゲートタイムが1となった場合は、16分
音符の2倍の長さの8分音符59がフォントとして選ば
れ、表示される。
Next, the procedure proceeds to S8-8, and the timing processing (FIG. 9) is performed.
The type of the note (font or pattern) is determined by referring to the value of the gate time measured in (See Reference). That is, the gate time indicates the elapsed time after the input of the note-on information is detected, that is, the length of the sound being produced. As shown in FIG. 14D, the gate time is 0. If there is, a note having the minimum unit note length (16th note 57 if the time base B = 4) is selected as the font and displayed on the display 7. When the sounding time has elapsed and the gate time has become 1, the eighth note 59, which is twice as long as the 16th note, is selected and displayed as the font.

【0050】そして、以上の様に座標やフォントを得た
後、S8−6に進んで、表示装置(ディスプレイ7)に
音符を出力して表示を行い、一旦処理を終了する。尚、
この図13に示す表示処理は、図9に示した計時処理の
S5−13においても行われる。即ち、S5−2にてカ
ウンタがN回数えられ、ゲートタイムが1加算される毎
に行われる。
After obtaining the coordinates and fonts as described above, the process proceeds to S8-6 to output and display the musical notes on the display device (display 7), and the processing is terminated. still,
The display process shown in FIG. 13 is also performed in S5-13 of the timekeeping process shown in FIG. That is, the counter is counted N times in S5-2 and is performed every time the gate time is incremented by one.

【0051】ここで、図11に戻り、S7−2にて否定
判断された場合、即ちMIDI情報がノートオン情報で
ない場合、S7−9に進んで、ノートオフ情報であるか
否かを判断する。そして、ノートオフ情報であれば、S
7−10にてランニングフラグがオンか否かを判断し、
否定判断されれば一旦処理を終了するが、肯定判断され
た場合は、S7−11に進んで、S7−4と同様にして
MIDIチャンネルよりキーマップを選び、S7−12
に進んで、ノートオフ情報のノートナンバーよりオフし
たキーのフラグをクリアした後、一旦処理を終了する。
Here, returning to FIG. 11, when the negative determination is made in S7-2, that is, when the MIDI information is not the note-on information, the process proceeds to S7-9, and it is determined whether or not it is the note-off information. . If it is the note-off information, S
In 7-10, determine whether the running flag is on,
If a negative decision is made, the processing is once ended, but if a positive decision is made, the processing advances to S7-11, where a key map is selected from the MIDI channel in the same manner as in S7-4, and S7-12.
Then, the process proceeds to step S6 after clearing the flag of the key turned off from the note number of the note-off information.

【0052】そして、S7−9にて否定判断された場合
は、S7−13に進んで、前述の「外部クロックモー
ド」であるか否かを判断し、否定判断されれば一旦処理
を終了するが、「外部クロックモード」である場合は、
S7−14以降のステップに進んで、MIDIメッセー
ジ信号に基づいた計時処理やスタート処理等を行う。即
ち、S7−14にて、MIDIデータがMIDIクロッ
クであるか否かを判断し、肯定判断されれば、S7−1
5にて前述の計時処理(図9参照)を行った後、一旦処
理を終了する。つまり、外部クロックモードでは、内部
クロックモードの様に、システムクロックではなく、M
IDIクロックによって計時処理を行なう。 そして、
S7−14にて否定判断された場合は、S7−16に進
んで、MIDIデータがスタート(FAH)であるか否
かを判断し、肯定判断されればS7−17に進んでラン
ニングフラグをセットし、S7−18にて前述の計時処
理(図9参照)の全てのカウンタをクリアする全カウン
タクリア処理を行い、一旦処理を終了する。
If a negative determination is made in S7-9, the flow proceeds to S7-13 to determine whether the "external clock mode" is set, and if the negative determination is made, the processing is once terminated. Is in "external clock mode",
In step S714 and subsequent steps, timing processing and start processing based on the MIDI message signal are performed. That is, it is determined in S7-14 whether the MIDI data is the MIDI clock, and if an affirmative determination is made, S7-1.
After performing the above-described timing processing (see FIG. 9) at 5, the processing is temporarily terminated. That is, in the external clock mode, unlike the internal clock mode, M
Timing processing is performed by the IDI clock. And
When a negative determination is made in S7-14, the process proceeds to S7-16 to determine whether or not the MIDI data is start (FAH). If an affirmative determination is made, the process proceeds to S7-17 to set the running flag. Then, in step S7-18, all counters clearing processing for clearing all counters in the above-described time counting processing (see FIG. 9) is performed, and the processing ends.

【0053】次に、S7−16にて否定判断された場合
は、S7−19に進んで、MIDIデータがストップ
(FCH)であるか否かを判断し、否定判断されれば、
一旦処理を終了するが、肯定判断されれば、S7−20
にてランニングフラグをクリアするストップ処理を行
い、一旦処理を終了する。
Next, if a negative determination is made in S7-16, the flow proceeds to S7-19 to determine whether or not the MIDI data is stop (FCH), and if a negative determination is made,
The process is ended once, but if an affirmative decision is made, S7-20
At, the stop process for clearing the running flag is performed, and the process ends.

【0054】以上、本実施例の電子楽器1の制御処理を
図5〜図14のフローチャート等に基づいて詳細に説明
したが、ここで、これらのフローチャート及び図4に従
って、電子楽器1の動作をまとめて説明する。まず、M
IDI楽器2の演奏の前に、タイムベースB(ここでは
B=4とする)やテンポT等の設定値を操作パネル11
より入力すると、図5のメインループのパネルスイッチ
スキャン処理(図10参照)にて、これらの値が読み込
まれてセットされる。
The control processing of the electronic musical instrument 1 of the present embodiment has been described in detail above with reference to the flow charts of FIGS. 5 to 14. Here, the operation of the electronic musical instrument 1 will be described with reference to these flow charts and FIG. I will explain together. First, M
Before the performance of the IDI musical instrument 2, set values such as the time base B (here, B = 4) and the tempo T are set on the operation panel 11.
When further input, these values are read and set in the panel switch scan process (see FIG. 10) of the main loop of FIG.

【0055】次に、操作パネル11のスタートスイッチ
11aを押すと同時に、MIDI楽器2の演奏を開始
し、「ド」の音の鍵盤2dを押すと、このノートオン情
報が一旦図6の第1割り込み処理によってFIFO第1
メモリにセーブされた後、図11のMIDI入力データ
読み出し処理のS711にて読み出され、S7−2にて
このノートオン情報が検知される。そして、S7−3以
降に進んで、ノートオン・表示処理を行い、S7−7に
てゲートタイムをゼロクリアした後に、S7−8に進
み、図13の表示処理が行われる。ここで、ゲートタイ
ムの値が「0」であり、タイムベースB=4であるの
で、図4(a)に示す様に、「ド」の音を示す16分音
符41がディスプレイ7の五線譜の上に表示される。つ
まり、この「ド」の音の鍵盤2dが離されてノートオン
情報が入力される前に、直ちにこの「ド」の音が楽譜上
に表示される。
Next, when the start switch 11a of the operation panel 11 is pressed and the MIDI musical instrument 2 is started to be played, and the keyboard 2d of the "do" sound is pressed, this note-on information is once displayed as the first note in FIG. FIFO 1 by interrupt processing
After being saved in the memory, it is read in S711 of the MIDI input data reading process of FIG. 11, and this note-on information is detected in S7-2. Then, the process proceeds to S7-3 and subsequent steps, the note-on / display process is performed, and after the gate time is cleared to zero in S7-7, the process proceeds to S7-8, and the display process of FIG. 13 is performed. Here, since the gate time value is “0” and the time base B = 4, as shown in FIG. 4A, the sixteenth note 41 indicating the sound “do” is displayed on the display 7 in the notation. Displayed above. That is, before the note 2d of the "do" sound is released and the note-on information is input, the "do" sound is immediately displayed on the score.

【0056】そして、この「ド」の音の鍵盤2dを押え
続け、8分音符に相当する時間が経過すると、常時タイ
マ割り込みによって実行されている図8の第3割り込み
処理のS4−2の計時処理(図9参照)において、計時
されているゲートタイムが1加算され(S5−13参
照)、S5−13の表示処理(図13参照)が実行され
る。ここで、ゲートタイムの値は「1」に増加している
ので、図13の表示処理のS8−5において、フォント
としてより音の長い8分音符が選ばれ、図4(a)に示
した16分音符は、図4(b)に示す様に8分音符に更
新されてディスプレイ7上に表示される。
Then, when the keyboard 2d of this "do" sound is kept pressed and the time corresponding to the eighth note elapses, the timing of S4-2 of the third interrupt processing of FIG. In the process (see FIG. 9), the clocked gate time is incremented by 1 (see S5-13), and the display process of S5-13 (see FIG. 13) is executed. Here, since the value of the gate time has increased to “1”, in S8-5 of the display processing of FIG. 13, the eighth note with a longer note is selected as the font, and is shown in FIG. The 16th note is updated to the 8th note and displayed on the display 7 as shown in FIG.

【0057】そして、更に「ド」の音の鍵盤2dを押さ
え続けると、図9の計時処理のゲートタイムが順次加算
され、その都度S5−13の表示処理が行われ、図4
(c)〜(e)に示すように、順次4分音符45、付点
4分音符47、2分音符49という様に、音の長い音符
に表示が更新されていく。
When the keyboard 2d of the "do" sound is kept pressed, the gate times of the clocking process of FIG. 9 are sequentially added, and the display process of S5-13 is performed each time.
As shown in (c) to (e), the display is sequentially updated to long notes such as quarter note 45, dotted quarter note 47, and half note 49.

【0058】以上の様に、本実施例の電子楽器1によれ
ば、MIDI楽器2楽音の発音を示すノートオン情報が
入力されると、ノートオン情報が検知され、このノート
オン情報に対応する楽音の音程とタイムベースBの値に
よって予め設定されている最小単位の音の長さとを示す
初期音符が、この楽音の消音を示すノートオフ情報の入
力より前にディスプレイ7に表示される。そして、この
ノートオン情報の入力からの経過時間の増加に応じて、
初期音符が順次音の長さの長い音符に更新されてディス
プレイ7上に表示される。
As described above, according to the electronic musical instrument 1 of this embodiment, when the note-on information indicating the pronunciation of the musical tone of the MIDI musical instrument 2 is input, the note-on information is detected and corresponds to this note-on information. Initial notes indicating the pitch of a musical tone and the length of the minimum unit preset by the value of the time base B are displayed on the display 7 before the input of the note-off information indicating the mute of the musical tone. And according to the increase of the elapsed time from the input of this note-on information,
The initial note is sequentially updated to a note having a long note length and displayed on the display 7.

【0059】よって、本実施例の電子楽器1を用いれ
ば、演奏者は現在発音している楽音の音程及び音の長さ
を楽譜上で確認することができ、正しい演奏の習得等に
効果がある。以上の様に、本発明の実施例について詳述
したが、本発明は、上記実施例に何等限定されず、その
要旨の範囲内において各種の態様で実施できることは勿
論である。
Therefore, by using the electronic musical instrument 1 of this embodiment, the performer can confirm the pitch and the length of the musical tone that is currently sounded on the score, which is effective for learning the correct performance. is there. As described above, the embodiments of the present invention have been described in detail, but the present invention is not limited to the above embodiments and can be implemented in various modes without departing from the scope of the invention.

【0060】[0060]

【発明の効果】以上の様に、本発明の請求項1の電子楽
器によれば、ノートオン情報が入力されると、このノー
トオン情報に対応する楽音の消音を示すノートオフ情報
が入力・検知される前に、このノートオン情報に対応す
る楽音の音程が表示装置に表示されるので、演奏者は現
在発音している楽音の音程を視認することができ、正し
い演奏技術の習得等に顕著な効果がある。
As described above, according to the electronic musical instrument of claim 1 of the present invention, when the note-on information is input, the note-off information indicating the mute of the musical tone corresponding to the note-on information is input. Before being detected, the pitch of the musical tone corresponding to this note-on information is displayed on the display device, allowing the performer to visually recognize the pitch of the musical tone currently being pronounced, and to learn the correct playing technique. It has a remarkable effect.

【0061】また、本発明の請求項2の電子楽器によれ
ば、ノートオン情報が入力されると、このノートオン情
報に対応する楽音の音程と予め設定されている最小単位
の音の長さとを示す初期音符が、この楽音の消音を示す
ノートオン情報の入力より前に表示装置に表示され、更
に経過時間の増加に応じて、この初期音符が順次音の長
さの長い音符に更新されて表示されるので、演奏者は現
在発音している楽音の音程及び音の長さを同時に視認す
ることができ、正しい演奏技術の習得等に顕著な効果が
ある。
According to the electronic musical instrument of claim 2 of the present invention, when the note-on information is input, the pitch of the musical tone corresponding to the note-on information and the preset length of the minimum unit are The initial note indicating is displayed on the display device before the note-on information indicating the mute of this musical tone is input, and as the elapsed time increases, the initial note is updated to a note with a longer note length. Since it is displayed, the performer can visually recognize the pitch and the length of the musical tone that is currently being pronounced, which has a remarkable effect on the acquisition of correct playing technique.

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

【図1】 請求項1の発明の基本的構成の例示図であ
る。
FIG. 1 is an exemplary diagram of a basic configuration of the invention of claim 1.

【図2】 請求項2の発明の基本的構成の例示図であ
る。
FIG. 2 is an exemplary diagram of a basic configuration of the invention of claim 2;

【図3】 実施例の電子楽器の概略構成を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a schematic configuration of an electronic musical instrument of the embodiment.

【図4】 実施例の電子楽器の楽譜表示の動作を示す
説明図である。
FIG. 4 is an explanatory diagram showing an operation of displaying a musical score of the electronic musical instrument of the embodiment.

【図5】 実施例のメインループを示すフローチャー
トである。
FIG. 5 is a flowchart showing a main loop of the embodiment.

【図6】 第1割り込み処理を示すフローチャートで
ある。
FIG. 6 is a flowchart showing first interrupt processing.

【図7】 第2割り込み処理を示すフローチャートで
ある。
FIG. 7 is a flowchart showing second interrupt processing.

【図8】 第3割り込み処理を示すフローチャートで
ある。
FIG. 8 is a flowchart showing a third interrupt process.

【図9】 計時処理を示すフローチャートである。FIG. 9 is a flowchart showing a timing process.

【図10】 パネルスイッチスキャン処理を示すフロー
チャートである。
FIG. 10 is a flowchart showing a panel switch scan process.

【図11】 MIDI入力データ読み出し処理を示すフ
ローチャートである。
FIG. 11 is a flowchart showing a MIDI input data reading process.

【図12】 各種カウンタ値のキーマップへの記入方法
を示す説明図である。
FIG. 12 is an explanatory diagram showing a method of writing various counter values in a key map.

【図13】 表示処理を示すフローチャートである。FIG. 13 is a flowchart showing a display process.

【図14】 表示処理の動作を示す説明図である。FIG. 14 is an explanatory diagram showing the operation of display processing.

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

M1,M11・・・MIDI情報入力手段 M2,M12・・・表示装置 M3,M13・・・ノートオン情報検知手段 M4・・・ノートオフ情報検知手段 M5・・・音程表示手段 M14・・・初期音符表示制御手段 M15・・・計時手段 M16・・・音符表示更新手段 1・・・電子楽器 2・・・MIDI楽器 3・・・MIDI入力端子 7・・・ディスプレイ 41〜49,53〜59・・・音符 M1, M11 ... MIDI information input means M2, M12 ... Display device M3, M13 ... Note-on information detection means M4 ... Note-off information detection means M5 ... Pitch display means M14 ... Initial stage Musical note display control means M15 ... Clock measuring means M16 ... Musical note display updating means 1 ... Electronic musical instrument 2 ... MIDI musical instrument 3 ... MIDI input terminal 7 ... Display 41-49, 53-59. ··note

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 外部からMIDI情報を入力するMID
I情報入力手段を備え、 該MIDI情報入力手段より入力されるMIDI情報に
より伝達される演奏情報を表示装置に表示する電子楽器
において、 前記MIDI情報入力手段より入力されるMIDI情報
の内、楽音の発音を示すノートオン情報を検知するノー
トオン情報検知手段と、 前記MIDI情報入力手段より入力されるMIDI情報
の内、楽音の消音を示すノートオフ情報を検知するノー
トオフ情報検知手段と、 前記ノートオン情報が前記ノートオン情報検知手段によ
り検知された場合には、該ノートオン情報に対応する楽
音の消音を示す前記ノートオフ情報の入力が前記ノート
オフ情報検知手段により検知される前に、前記ノートオ
ン情報に対応する楽音の音程を前記表示装置に表示する
音程表示制御手段とを備えたことを特徴とする電子楽
器。
1. A MID for inputting MIDI information from outside
An electronic musical instrument comprising I information input means for displaying performance information transmitted by the MIDI information input by the MIDI information input means on a display device. Note-on information detecting means for detecting note-on information indicating pronunciation, note-off information detecting means for detecting note-off information indicating mute of a musical tone in the MIDI information input from the MIDI information input means, When the on-information is detected by the note-on information detecting means, the input of the note-off information indicating the mute of the musical sound corresponding to the note-on information is detected by the note-off information detecting means. A pitch display control means for displaying the pitch of a musical tone corresponding to the note-on information on the display device. An electronic musical instrument.
【請求項2】 外部からMIDI情報を入力するMID
I情報入力手段を備え、 該MIDI情報入力手段より入力されるMIDI情報に
より伝達される演奏情報を表示装置に表示する電子楽器
において、 前記MIDI情報入力手段より入力されるMIDI情報
の内、楽音の発音を示すノートオン情報の入力を検知す
るノートオン情報検知手段と、 該ノートオン情報の入力が該ノートオン情報検知手段に
より検知された場合には、前記ノートオン情報に対応す
る楽音の音程と予め設定されている最小単位の音の長さ
とを示す初期音符を、前記楽音の消音を示すノートオン
情報の入力より前に表示装置に表示する初期音符表示制
御手段と、 前記ノートオン情報の入力からの経過時間を計数する計
時手段と、 該計時手段によって計時される前記経過時間の増加に応
じて、前記初期音符を順次音の長さの長い音符に更新し
て前記表示装置に表示する音符表示更新手段とを備えた
ことを特徴とする電子楽器。
2. A MID for inputting MIDI information from outside
An electronic musical instrument comprising I information input means for displaying performance information transmitted by the MIDI information input by the MIDI information input means on a display device. Note-on information detecting means for detecting input of note-on information indicating pronunciation, and a tone pitch corresponding to the note-on information when the input of the note-on information is detected by the note-on information detecting means. Initial note display control means for displaying an initial note indicating a preset minimum unit note length on a display device prior to input of note-on information indicating mute of the musical tone, and input of the note-on information Time counting means for counting the elapsed time from, and the initial notes are sequentially sounded in accordance with the increase of the elapsed time measured by the time measuring means. Electronic musical instrument characterized by comprising a note display updating means for displaying on said display device to update the long notes.
JP5029166A 1993-02-18 1993-02-18 Electronic musical instrument Pending JPH06242778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5029166A JPH06242778A (en) 1993-02-18 1993-02-18 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5029166A JPH06242778A (en) 1993-02-18 1993-02-18 Electronic musical instrument

Publications (1)

Publication Number Publication Date
JPH06242778A true JPH06242778A (en) 1994-09-02

Family

ID=12268664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5029166A Pending JPH06242778A (en) 1993-02-18 1993-02-18 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH06242778A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09258729A (en) * 1996-03-26 1997-10-03 Yamaha Corp Tune selecting device
CN111933099A (en) * 2020-07-27 2020-11-13 北京爱其科技有限公司 MIDI music playing circuit and method based on single chip microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09258729A (en) * 1996-03-26 1997-10-03 Yamaha Corp Tune selecting device
CN111933099A (en) * 2020-07-27 2020-11-13 北京爱其科技有限公司 MIDI music playing circuit and method based on single chip microcomputer

Similar Documents

Publication Publication Date Title
JP7160068B2 (en) Electronic musical instrument, method of sounding electronic musical instrument, and program
JPH06242778A (en) Electronic musical instrument
JP2020064187A (en) Electronic keyboard instrument, method and program
JP2830065B2 (en) Electronic musical instrument
US6534699B2 (en) Instruction input device for electronic musical instrument
JP3045915B2 (en) Electronic musical instrument data setting device
JP4093001B2 (en) Storage medium storing score display data, score display apparatus and program using the score display data
JP2570045B2 (en) Electronic musical instrument
JPH06230773A (en) Electronic musical instrument
JP4093000B2 (en) Storage medium storing score display data, score display apparatus and program using the score display data
JP3088047B2 (en) Electronic musical instrument input information changing device
JP4197489B2 (en) Electronic musical instruments
JP2570214B2 (en) Performance information input device
JP2972404B2 (en) Musical information processing apparatus and musical information processing method
JPH03284798A (en) Electronic instrument
JPH06314096A (en) Device for detecting front code of electronic musical instrument
JP3356326B2 (en) Electronic musical instrument
JPH06202642A (en) Electronic musical instrument
JP2518061B2 (en) Electronic musical instrument
JP2915753B2 (en) Electronic musical instrument
JPH06161438A (en) Data input device of electronic musical instrument
JPH09319293A (en) Method for forming fingering guide display data and keyboard musical instrument
JPH05108070A (en) Timbre controller of electronic musical instrument
JPH0581898U (en) Electronic musical instrument display
JPH09319372A (en) Device and method for automatic accompaniment of electronic musical instrument