JP3282675B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JP3282675B2
JP3282675B2 JP01947792A JP1947792A JP3282675B2 JP 3282675 B2 JP3282675 B2 JP 3282675B2 JP 01947792 A JP01947792 A JP 01947792A JP 1947792 A JP1947792 A JP 1947792A JP 3282675 B2 JP3282675 B2 JP 3282675B2
Authority
JP
Japan
Prior art keywords
data
panning
automatic accompaniment
tone
track
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP01947792A
Other languages
Japanese (ja)
Other versions
JPH05188933A (en
Inventor
真一 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=12000421&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP3282675(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP01947792A priority Critical patent/JP3282675B2/en
Publication of JPH05188933A publication Critical patent/JPH05188933A/en
Application granted granted Critical
Publication of JP3282675B2 publication Critical patent/JP3282675B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、メモリに記憶された
所定時間長の演奏データを繰返し読出して演奏音を得る
自動伴奏(自動リズムを含む)またはメモリに記憶され
た任意時間長の演奏データを読出して演奏音を得る自動
演奏を行なう電子楽器に関し、特に自動伴奏または自動
演奏においても常に所望のパンニングを設定できる電子
楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic accompaniment (including an automatic rhythm) for repeatedly reading out performance data of a predetermined time length stored in a memory to obtain a performance sound, or performance data of an arbitrary time length stored in a memory. More specifically, the present invention relates to an electronic musical instrument that performs an automatic performance to obtain a performance sound by reading the same, and particularly to an electronic musical instrument that can always set a desired panning even in an automatic accompaniment or an automatic performance.

【0002】[0002]

【従来の技術】従来より、電子楽器においてはモノラル
で発生した楽音信号を所定の割合で左右の楽音信号に振
り分ける処理(いわゆるパンニング)が行なわれてい
る。パンニングを行なうことにより、モノラルで発生し
た楽音がステレオの所定の位置で発生しているように、
楽音の定位する位置を設定することができる。これによ
り、広がり感のある楽音発生が実現できる。
2. Description of the Related Art Conventionally, in an electronic musical instrument, processing (so-called panning) of distributing a tone signal generated in monaural to right and left tone signals at a predetermined ratio has been performed. By performing panning, the musical sound generated in monaural is generated at a predetermined position in stereo,
It is possible to set the position where the sound is localized. As a result, it is possible to generate a musical sound with a sense of spaciousness.

【0003】また、自然楽器の中にはピアノのように発
音機構が左右に並べられているようなものがある。この
ような自然楽器では、楽音が発音される位置がその楽音
の音高に応じて変化する。例えば、ピアノの演奏者の位
置では、音高が低い音は左側から聞こえ、音高が高い音
は右側から聞こえる。電子楽器においても、自然楽器の
このような性質を実現するため、発音する楽音の音高に
応じてパンニングを変化させるいわゆるキースケールパ
ンニングが実現されている。
[0003] Some natural musical instruments have a sound generating mechanism arranged right and left like a piano. In such a natural musical instrument, the position at which a musical tone is generated changes according to the pitch of the musical tone. For example, at the position of a piano player, low pitched sounds are heard from the left, and high pitched sounds are heard from the right. Also in electronic musical instruments, so-called key-scale panning in which panning is changed in accordance with the pitch of a musical tone to be played is realized in order to realize such properties of a natural musical instrument.

【0004】一方、自動演奏や自動伴奏においてもパン
ニングは行なわれている。例えば、自動演奏や自動伴奏
を行なうためのパターンデータのヘッダ部分にパンニン
グデータを記憶しておき、自動演奏や自動伴奏を行なう
ときにこのパンニングデータにしたがってパンニングを
行なう電子楽器がある。また、選択した音色などに応じ
て定められているデフォルトのパンニングデータにした
がってパンニングを行なうものもある。
On the other hand, panning is also performed in automatic performance and automatic accompaniment. For example, there is an electronic musical instrument that stores panning data in a header portion of pattern data for performing an automatic performance or an automatic accompaniment, and performs panning according to the panning data when performing an automatic performance or an automatic accompaniment. In some cases, panning is performed in accordance with default panning data defined according to a selected tone color or the like.

【0005】さらに、電子楽器のうちでもいわゆるディ
ジタルシーケンサーなどではMIDI(Musical instru
ment digatal interface)規格のデータを記憶できるの
で、パンニングデータについてのコントロールチェンジ
も記憶できる。したがって、送出すべきMIDIデータ
中にパンニングデータについてのコントロールチェンジ
を入れておけば、動作途中(演奏途中)でもパンニング
データを変更することができる。
Further, among electronic musical instruments, a so-called digital sequencer or the like has a MIDI (Musical instrument).
ment digatal interface) Standard data can be stored, so control changes for panning data can also be stored. Therefore, if a control change for panning data is included in the MIDI data to be transmitted, the panning data can be changed even during operation (during playing).

【0006】[0006]

【発明が解決しようとする課題】上述したパターンデー
タのヘッダ部分に記憶したパンニングデータあるいは音
色などに応じたデフォルトのパンニングデータを用いて
自動演奏や自動伴奏におけるパンニングを実現する方式
では、自動演奏や自動伴奏の途中でパンニングを変更す
ることができないという問題点がある。
In the above-described system for performing panning in automatic performance and automatic accompaniment using the panning data stored in the header portion of the pattern data or default panning data corresponding to the tone, etc. There is a problem that panning cannot be changed during automatic accompaniment.

【0007】また、ディジタルシーケンサーによれば、
コントロールチェンジを用いることにより演奏途中でパ
ンニングを変更することはできる。しかし、一旦パンニ
ングを変更してしまうと、簡単に元のパンニングの状況
を再現できない。例えば、音色に応じたパンニングが行
なわれているときにコントロールチェンジでパンニング
を変更することはできる。しかし、その後に元のパンニ
ングに戻すためには、元のパンニングデータがどれ程の
値であったかを電子楽器の動作を停止させて調べ、その
調べた値を設定するという面倒な操作を行なわなければ
ならない。
According to the digital sequencer,
By using the control change, the panning can be changed during the performance. However, once the panning is changed, the original panning situation cannot be easily reproduced. For example, panning can be changed by a control change while panning is being performed in accordance with the tone color. However, in order to return to the original panning after that, it is necessary to stop the operation of the electronic musical instrument and check the value of the original panning data and perform the troublesome operation of setting the checked value. No.

【0008】さらに、音色にパンニングがプリセットさ
れている電子楽器では、通常、演奏者は各音色にどのよ
うなパンニングがプリセットされているかを知ることが
できない。したがって、このような電子楽器にMIDI
のコントロールチェンジを送ってパンニングを変えてし
まうと、元のパンニングに戻すためにはパンニングデー
タを少しずつ変更して聴感上で確かめたり、リセットを
行なうなどしなければならない。
Further, in an electronic musical instrument in which panning is preset for a tone, a player cannot usually know what panning is preset for each tone. Therefore, such an electronic musical instrument has MIDI
When the panning is changed by sending a control change of, the panning data must be changed little by little to check on the auditory sense or to perform a reset in order to return to the original panning.

【0009】この発明は、上述の従来例における問題点
に鑑み、自動伴奏や自動演奏途中でパンニングを容易に
変更することができ、さらに自動伴奏や自動演奏を停止
することなく容易に元のパンニングに戻すことができる
電子楽器を提供することを目的とする。
In view of the above-mentioned problems in the prior art, the present invention can easily change panning during automatic accompaniment or automatic performance, and can easily return to the original panning without stopping automatic accompaniment or automatic performance. It is an object of the present invention to provide an electronic musical instrument that can be returned to the electronic musical instrument.

【0010】[0010]

【課題を解決するための手段】この目的を達成するた
め、請求項1に係る発明は、演奏データを記憶するとと
もに、パンニングをデフォルト状態に戻すあるいは所定
の状態に設定することを指示するパンニングデータを
前記演奏データを構成するトラック毎に、記憶する記憶
手段と、該記憶手段から読出した演奏データに基づいて
発音を指示するとともに、前記トラックに記憶された
ンニングデータを読出した場合はそのパンニングデータ
にしたがってパンニングをデフォルト状態に戻しまたは
所定の状態に設定することを指示する制御手段と、上記
制御手段からの指示を受けて、前記トラックのパンニン
グをデフォルト状態に戻しまたは所定の状態に設定する
パンニング手段とを具備することを特徴とする。さらに
請求項2に係る発明は、デフォルト状態のパンニングデ
ータを含む音色データを予め音色毎に記憶した音色デー
タ記憶手段と、演奏データを記憶するとともに、パンニ
ングをデフォルト状態に戻すあるいは所定の状態に設定
することを指示するパンニングデータおよび発音する音
色を、前記演奏データを構成するトラック毎に、記憶す
る演奏データ記憶手段と、該演奏データ記憶手段から読
出した演奏データに基づいて発音を指示するとともに、
前記トラックに記憶されたパンニングデータを読出した
場合はそのパンニングデータにしたがってパンニングを
デフォルト状態に戻しまたは所定の状態に設定すること
を指示する制御手段と、上記制御手段からの指示を受け
て、前記トラックのパンニングを前記トラックの音色に
対応した前記音色データが示すデフォルト状態に戻しま
たは所定の状態に設定するパンニング手段とを具備する
ことを特徴とする。
In order to achieve this object, the invention according to claim 1 stores panning data for storing performance data and for instructing to return panning to a default state or set panning to a predetermined state. the,
A storage means for storing , for each track constituting the performance data, a tone generation instruction based on the performance data read from the storage means, and reading of the panning data stored in the track. Control means for instructing that panning be returned to a default state or set to a predetermined state in accordance with the panning data, and receiving the instruction from the control means, sets panning of the track to a default state. And a panning means for returning or setting to a predetermined state. further
The invention according to claim 2 is a panning decoder in a default state.
Timbre data that contains timbre data containing data for each timbre in advance.
Data storage means and performance data
To the default state or set to the specified state
Data and sound to pronounce
The color is stored for each track constituting the performance data.
Performance data storage means, and read from the performance data storage means.
While instructing the pronunciation based on the performance data issued,
Read the panning data stored in the track
Panning according to the panning data
Revert to default state or set to desired state
Receiving the instruction from the control means.
The panning of the track to the tone of the track
Restores the default state indicated by the corresponding tone data.
Or panning means for setting to a predetermined state.
It is characterized by the following.

【0011】上記のパンニングのデフォルト状態および
所定の状態には、パンニングデータとして一定値を設定
する状態(すなわち、楽音信号を左右に振り分ける割合
が一定の状態)は勿論のこと、上述のキースケールパン
ニングやエンベロープでパンニングを変えるもの、ある
いはパンニングを行なわない指定などの種々のパンニン
グの状態を含む。
The panning default state and the predetermined state include a state in which a constant value is set as panning data (ie, a state in which the ratio of distributing a tone signal to the left and right is constant), as well as the above-described key scale panning. And various panning states such as changing panning with an envelope or specifying no panning.

【0012】[0012]

【作用】演奏データを記憶する記憶手段の中に、パンニ
ングデータを記憶するようにしており、そのパンニング
データが読み出されたときは、そのデータにしたがって
パンニングの状態が設定される。記憶手段に伴奏データ
とともに記憶されるパンニングデータは、デフォルト状
態に戻すあるいは所定の状態に設定することを指示する
データであるので、一旦パンニングを変更した後でも簡
単にデフォルト状態に戻すことができる。
The panning data is stored in the storage means for storing the performance data, and when the panning data is read out, the panning state is set according to the data. Since the panning data stored together with the accompaniment data in the storage means is data indicating that the panning should be returned to the default state or set to a predetermined state, the panning data can be easily returned to the default state even after the panning is changed once.

【0013】[0013]

【実施例】以下、図面を用いてこの発明の実施例を説明
する。ここでは、自動伴奏の機能を有する電子楽器に本
発明を適用した例につき説明する。
Embodiments of the present invention will be described below with reference to the drawings. Here, an example in which the present invention is applied to an electronic musical instrument having an automatic accompaniment function will be described.

【0014】図1は、この発明の一実施例に係る電子楽
器のブロック構成を示す。この実施例の電子楽器は、複
数の鍵を有する鍵盤1、その鍵盤1からの出力(キ−オ
ン信号、キ−オフ信号、音高情報であるキ−コ−ドな
ど)をバスライン12に対して受渡しするための鍵盤イ
ンタ−フェ−ス2、種々のスイッチや表示装置などを備
えたパネル3、このパネル3からの出力をバスライン1
2に対して受渡しするためのパネルインタ−フェ−ス
4、この電子楽器の全体の動作を制御する中央処理装置
(CPU)5、このCPU5に対して所定の時間間隔で
タイマ割込をかけるタイマ6、CPU5が実行するプロ
グラムおよび各種のテ−ブルや定数などを記憶したリ−
ドオンリメモリ(ROM)7、および各種のワ−クレジ
スタやフラグなどが割当てられているランダムアクセス
メモリ(RAM)8を備えている。ROM7には、後述
するような(図5)自動伴奏パターンデ−タおよび音色
デ−タが記憶されている。
FIG. 1 shows a block configuration of an electronic musical instrument according to an embodiment of the present invention. The electronic musical instrument of this embodiment has a keyboard 1 having a plurality of keys, and outputs (key-on signal, key-off signal, key code as pitch information, etc.) from the keyboard 1 to a bus line 12. A keyboard interface 2 for receiving and transferring data to and from the user, a panel 3 having various switches and display devices, etc., and an output from the panel 3 to a bus line 1.
A central processing unit (CPU) 5 for controlling the overall operation of the electronic musical instrument; and a timer for interrupting the CPU 5 at predetermined time intervals. 6. A program storing a program executed by the CPU 5 and various tables and constants.
It has a do-only memory (ROM) 7 and a random access memory (RAM) 8 to which various work registers and flags are assigned. The ROM 7 stores automatic accompaniment pattern data and timbre data as described later (FIG. 5).

【0015】また、この電子楽器は、CPU5の指示に
基づき所望の楽音信号を形成する音源9、音源9から与
えられたパンニングデ−タにしたがってやはり音源9か
ら入力した楽音信号を左右に振り分けるパンニング回路
10、およびパンニング回路10からの左右の楽音信号
に基づいてそれぞれ楽音を発生する左右のサウンドシス
テム11L,11Rを備えている。12は双方向のバス
ラインを示す。
This electronic musical instrument also has a sound source 9 for forming a desired tone signal based on instructions from the CPU 5, and a panning circuit for distributing the tone signal input from the sound source 9 to the left and right in accordance with panning data given from the tone source 9. 10 and left and right sound systems 11L and 11R for generating musical tones based on the left and right musical signals from the panning circuit 10, respectively. Reference numeral 12 denotes a bidirectional bus line.

【0016】次に、図2の詳細図を参照して、パンニン
グ回路10を詳細に説明する。パンニング回路10は、
2つの乗算器21L,21Rを有する。パンニング回路
10に入力した楽音信号は、これら左右の乗算器21
L,21Rに入力する。乗算器21Lは、入力した楽音
信号に係数αを乗算してL側(左側)楽音信号として出
力する。同様に乗算器21Rは、入力した楽音信号に係
数βを乗算してR側(右側)楽音信号として出力する。
係数α,βは、音源9から入力する係数である。
Next, the panning circuit 10 will be described in detail with reference to the detailed diagram of FIG. The panning circuit 10
It has two multipliers 21L and 21R. The tone signal input to the panning circuit 10 is divided into these left and right multipliers 21.
L, 21R. The multiplier 21L multiplies the input tone signal by a coefficient α and outputs the result as an L-side (left) tone signal. Similarly, the multiplier 21R multiplies the input tone signal by a coefficient β and outputs the result as an R-side (right) tone signal.
The coefficients α and β are coefficients input from the sound source 9.

【0017】図3は、パンニングデ−タの値と上記パン
ニング回路における係数α,βとの関係を示すグラフで
ある。横軸は音源9に与えられたパンニングデ−タ、縦
軸はそれに対応して音源9がパンニング回路10へと出
力する係数α,βを示す。パンニングデ−タは、CPU
5から音源9に与えられる。パンニングデ−タは「0」
〜「7」または「9」〜「15」の整数値をとる。
FIG. 3 is a graph showing the relationship between the value of panning data and the coefficients α and β in the panning circuit. The horizontal axis represents panning data given to the sound source 9, and the vertical axis represents coefficients α and β output from the sound source 9 to the panning circuit 10 correspondingly. Panning data is CPU
5 to the sound source 9. Panning data is "0"
To "7" or an integer value of "9" to "15".

【0018】グラフ31Lから分かるように、係数α
は、パンニングデ−タが「0」のとき「1.0」パンニ
ングデ−タが「2」「3」と増えていくにしたがって
「1.0」から徐々に減少し、パンニングデ−タが「1
5」のとき「0」になる。グラフ31Rから分かるよう
に、係数βは、パンニングデ−タが「0」のとき
「0」、パンニングデ−タが「2」「3」と増えていく
にしたがって「0」から徐々に増加し、パンニングデ−
タが「15」のとき「1.0」になる。これらのグラフ
はいわゆるサインカ−ブになっている。
As can be seen from the graph 31L, the coefficient α
When the panning data is "0", the panning data gradually decreases from "1.0" as the panning data increases to "2" and "3", and the panning data becomes "1".
It becomes "0" when it is "5". As can be seen from the graph 31R, the coefficient β gradually increases from “0” when the panning data is “0”, and gradually increases from “0” as the panning data increases to “2” and “3”. −
When the data is "15", it becomes "1.0". These graphs are so-called sine curves.

【0019】図2のパンニング回路10の構成および図
3のグラフから分かるように、パンニングデ−タが
「0」のときL側楽音信号のレベルが最大でR側楽音信
号のレベルが「0」となる。パンニングデ−タが「2」
「3」と増加していくにしたがって、(L側楽音信号の
レベルがR側楽音信号のレベルより大きい範囲内で)L
側楽音信号のレベルが徐々に減少しR側楽音信号のレベ
ルが徐々に増加する。そして、パンニングデ−タが
「7」のときL側楽音信号とR側楽音信号とが同レベル
となる。さらに、パンニングデ−タが「9」「10」と
増加していくにしたがって、(L側楽音信号のレベルが
R側楽音信号のレベルより小さい範囲内で)L側楽音信
号のレベルが徐々に減少しR側楽音信号のレベルが徐々
に増加する。パンニングデ−タが「15」のときL側楽
音信号のレベルが「0」でR側楽音信号のレベルが最大
となる。このようにして、パンニング回路10は入力楽
音信号をL側とR側の2系統に振り分けて出力する。
As can be seen from the configuration of the panning circuit 10 of FIG. 2 and the graph of FIG. 3, when the panning data is "0", the level of the L side tone signal is maximum and the level of the R side tone signal is "0". Become. Panning data is "2"
As it increases to “3”, L (within a range where the level of the L-side tone signal is larger than the level of the R-side tone signal)
The level of the side tone signal gradually decreases and the level of the R side tone signal gradually increases. When the panning data is "7", the L-side tone signal and the R-side tone signal have the same level. Further, as the panning data increases to "9" and "10", the level of the L side tone signal gradually decreases (within a range where the level of the L side tone signal is smaller than the level of the R side tone signal). Then, the level of the R side tone signal gradually increases. When the panning data is "15", the level of the L side tone signal is "0" and the level of the R side tone signal is maximum. In this way, the panning circuit 10 distributes and outputs the input tone signal to two systems of the L side and the R side.

【0020】次に、図4のパネル外観図を参照して、こ
の実施例の電子楽器のパネル上のスイッチおよびその機
能につき説明する。図4において、パネル40(図1の
パネル3の一部に相当する)上には、各種のスイッチお
よび表示装置が配置されている。21は10個の音色選
択スイッチ、23は5個のスタイル選択スイッチ、24
は各スタイル選択スイッチの近くに設けられたLEDで
ある。
Next, the switches on the panel of the electronic musical instrument of this embodiment and their functions will be described with reference to the panel external view of FIG. 4, various switches and a display device are arranged on a panel 40 (corresponding to a part of the panel 3 in FIG. 1). Reference numeral 21 denotes ten tone selection switches, 23 denotes five style selection switches, 24
Is an LED provided near each style selection switch.

【0021】また、25は自動伴奏の開始を指示するた
めのスタ−トスイッチ、27は自動伴奏の終了を指示す
るためのストップスイッチである。スタ−トスイッチ2
5およびストップスイッチ27の近くにも、それぞれL
ED26,28が設けられている。さらに、29および
30は自動伴奏のテンポを設定するテンポ設定スイッチ
であり、29はテンポを上げるためのテンポアップスイ
ッチ、30はテンポを下げるためのテンポダウンスイッ
チである。31は現在設定されているテンポを1分間の
4分音符の数によって示す表示装置である。
Reference numeral 25 denotes a start switch for instructing the start of the automatic accompaniment, and reference numeral 27 denotes a stop switch for instructing the end of the automatic accompaniment. Start switch 2
5 and near the stop switch 27, respectively.
EDs 26 and 28 are provided. Further, 29 and 30 are tempo setting switches for setting the tempo of the automatic accompaniment, 29 is a tempo up switch for increasing the tempo, and 30 is a tempo down switch for decreasing the tempo. A display device 31 indicates the currently set tempo by the number of quarter notes per minute.

【0022】各スタイル選択スイッチ23を押下するこ
とにより、自動伴奏のスタイルを選択することができ
る。例えばスタイル選択スイッチ23−1を押下すると
8ビ−ト、スタイル選択スイッチ23−2を押下すると
サンバ、…というようにスタイルを選択でき、以後は選
択されたスタイルで自動伴奏が可能となる。なお、押下
したスタイル選択スイッチ23の近くのLED24が点
灯して、現在選択されている自動伴奏のスタイルが分か
るようになっている。
By pressing each style selection switch 23, the style of the automatic accompaniment can be selected. For example, when the style selection switch 23-1 is pressed, the style can be selected such as 8 bits, when the style selection switch 23-2 is pressed, a style such as samba can be selected, and thereafter, the automatic accompaniment can be performed in the selected style. The LED 24 near the pressed style selection switch 23 is turned on, so that the currently selected automatic accompaniment style can be known.

【0023】スタ−トスイッチ25を押下することによ
りその時点で選択されているスタイルで自動伴奏が開始
される。このときLED26が点灯する。ストップスイ
ッチ27を押下することにより自動伴奏が停止する。こ
のときLED28が点灯する。
When the start switch 25 is pressed, the automatic accompaniment is started in the style selected at that time. At this time, the LED 26 lights up. Pressing the stop switch 27 stops the automatic accompaniment. At this time, the LED 28 lights up.

【0024】テンポアップスイッチ29を押下すると、
その押下回数あるいは押下時間に応じて自動伴奏のテン
ポが上げられる。これに伴い、表示装置31に表示され
ている数値は増加する。一方、テンポダウンスイッチ3
0を押下すると、その押下回数あるいは押下時間に応じ
て自動伴奏のテンポが下げられる。これに伴い、表示装
置31に表示されている数値は減少する。
When the tempo up switch 29 is pressed,
The tempo of the automatic accompaniment is increased according to the number of times or the pressing time. Accordingly, the numerical value displayed on the display device 31 increases. On the other hand, tempo down switch 3
When 0 is pressed, the tempo of the automatic accompaniment is reduced according to the number of times or the pressing time. Accordingly, the numerical value displayed on the display device 31 decreases.

【0025】次に、この実施例の電子楽器で用いている
レジスタおよびテ−ブルなどを説明する。 (a)RUN:ランフラグである。「1」で自動伴奏実
行中、「0」で自動伴奏停止中を示す。 (b)PC:割込カウンタである。タイマ6によるタイ
マ割込があったとき「1」カウントアップされていくカ
ウンタである。所定数F0(「95」よりも大きい値と
する)を上限とする。この実施例の電子楽器では、1小
節を96個の小時間区間に等分割し、その各タイミング
で自動伴奏のために発音すべき楽音があれば発音するよ
うになっている。割込カウンタPCがカウントアップさ
れるタイマ割込の時間間隔はこの小区間の時間間隔に等
しくされている。
Next, registers and tables used in the electronic musical instrument of this embodiment will be described. (A) RUN: Run flag. “1” indicates that the automatic accompaniment is being executed, and “0” indicates that the automatic accompaniment is stopped. (B) PC: an interrupt counter. This counter is incremented by "1" when the timer 6 is interrupted by the timer. The upper limit is a predetermined number F0 (a value larger than “95”). In the electronic musical instrument of this embodiment, one bar is equally divided into 96 short time sections, and at each timing there is a musical tone to be generated for automatic accompaniment. The time interval of the timer interrupt in which the interrupt counter PC counts up is set equal to the time interval of this small section.

【0026】(c)OC:自動伴奏処理カウンタであ
る。自動伴奏の発音を行なうべきタイミングで「1」カ
ウントアップされる。このタイミングは上述したように
タイマ割込のタイミングに等しい。ただし、この実施例
では、自動伴奏処理カウンタOCの値と上記の割込カウ
ンタPCの値とを比較することによりタイマ割込があっ
たことを検出するようにしている。その処理手順につい
ては、フロ−チャ−トを参照して後述する。 (d)TN:自動伴奏として発音される楽音(自動伴奏
音)の音色を特定する音色番号が設定される音色番号レ
ジスタである。自動伴奏音の音色番号は、後述する自動
伴奏パターンデータにトラックごとにあらかじめ記憶さ
れている。
(C) OC: an automatic accompaniment processing counter. The count is incremented by "1" at the timing when the automatic accompaniment should be sounded. This timing is equal to the timer interrupt timing as described above. However, in this embodiment, the timer interrupt is detected by comparing the value of the automatic accompaniment processing counter OC with the value of the above-mentioned interrupt counter PC. The processing procedure will be described later with reference to a flowchart. (D) TN: a timbre number register in which a timbre number specifying a timbre of a musical tone (automatic accompaniment tone) to be pronounced as an automatic accompaniment is set. The timbre number of the automatic accompaniment sound is stored in advance in the automatic accompaniment pattern data described later for each track.

【0027】(e)TMP:現在設定されている自動伴
奏のテンポの値が設定されるテンポデータレジスタであ
る。 (f)APAN:現在設定されているパンニングデータ
(パンデータ)が設定されるパンデータレジスタであ
る。パンデータとしては図3のグラフの横軸に示した
「0」〜「15」の整数値をとる。グラフ上では「8」
がないが、パンデータAPANが「8」のときはパンニ
ングをデフォルト状態とすることを示す。この実施例で
は現在設定されている音色に応じたパンデータがデフォ
ルト値とされている。 (g)TRP:自動伴奏パターンデータを順次読出して
処理していく際のトラックポインタである。 (h)TIM:自動伴奏パターンデータのうちのタイミ
ングデータを読出してセットするためのタイミングデー
タレジスタである。
(E) TMP: a tempo data register in which the currently set tempo value of the automatic accompaniment is set. (F) APAN: a pan data register in which currently set panning data (pan data) is set. As the pan data, an integer value of “0” to “15” shown on the horizontal axis of the graph of FIG. 3 is taken. "8" on the graph
However, when the pan data APAN is “8”, it indicates that panning is in a default state. In this embodiment, the default value is pan data corresponding to the currently set tone color. (G) TRP: a track pointer for sequentially reading and processing automatic accompaniment pattern data. (H) TIM: a timing data register for reading and setting timing data of the automatic accompaniment pattern data.

【0028】(i)自動伴奏パターンデータ:図5
(a)に自動伴奏パターンデータの内容を示す。自動伴
奏パターンデータは各スタイルごとに用意されており、
図4のスタイル選択スイッチ23により選択されたスタ
イルに対応する自動伴奏パターンデータが読み出されて
自動伴奏が行なわれることとなる。各スタイルの自動伴
奏パターンデータは4つのトラックデータに分かれてい
る。各トラックデータは1つの音色で発音される1小節
分のパターンを表す。例えば、スタイル2の自動伴奏パ
ターンデータの4つのトラックのうち、トラック1はド
ラム、トラック2はベース、トラック3はピアノ、…と
いうように割り当てられている。
(I) Automatic accompaniment pattern data: FIG.
(A) shows the contents of the automatic accompaniment pattern data. Automatic accompaniment pattern data is prepared for each style,
The automatic accompaniment pattern data corresponding to the style selected by the style selection switch 23 in FIG. 4 is read out, and the automatic accompaniment is performed. The automatic accompaniment pattern data of each style is divided into four track data. Each track data represents a pattern for one bar which is generated by one tone. For example, among the four tracks of the style 2 automatic accompaniment pattern data, track 1 is assigned to a drum, track 2 is assigned to a bass, track 3 is assigned to a piano, and so on.

【0029】各トラックデータは、先頭にヘッダデータ
として音色番号とテンポデータを有する。音色番号はそ
のトラックのパターンで発音される楽音の音色を特定す
る番号である。テンポデータはそのトラックのパターン
で自動伴奏音を発音するときのテンポの初期値を表す。
ヘッダデータに引き続いて伴奏データが並べられる。伴
奏データは、発音のタイミングを示すタイミングデー
タ、音高を示すノートナンバ、および音量を示すベロシ
ティデータからなる。なお、ベロシティが「0」以外の
値のときその伴奏データはキーオンを示し、ベロシティ
が「0」のときその伴奏データはキーオフを示す。
Each track data has a timbre number and tempo data as header data at the beginning. The timbre number is a number that specifies the timbre of a tone generated by the pattern of the track. The tempo data indicates an initial value of the tempo when the automatic accompaniment sound is generated in the pattern of the track.
Accompaniment data is arranged following the header data. The accompaniment data includes timing data indicating the timing of sound generation, note numbers indicating pitches, and velocity data indicating volume. When the velocity is a value other than "0", the accompaniment data indicates key-on, and when the velocity is "0", the accompaniment data indicates key-off.

【0030】トラックデータ中にはパンデータを含める
ことができる。パンデータは伴奏データのどこにいれて
もよい。パンデータは、上述したように「0」〜「1
5」の整数値をとり、「8」のときはデフォルトに戻す
指示、それ以外の値のときはその値にパンニングを設定
する指示を示す。
The track data can include pan data. The pan data may be placed anywhere in the accompaniment data. The pan data is “0” to “1” as described above.
Takes an integer value of "5", an instruction of "8" indicates an instruction to return to the default, and any other value indicates an instruction to set panning to that value.

【0031】(j)音色データ:図5(b)に音色デー
タの内容の概略を示す。音色データは各音色ごとに用意
されている。演奏者の演奏に対しては、図4の音色選択
スイッチ21により選択されている音色に対応する音色
データが読み出されてその音色で楽音が発生される。ま
た、自動伴奏に対しては、各トラックデータのヘッダの
音色番号に応じた音色データが読み出されてその音色で
自動伴奏音が発生される。なお、上記のレジスタなどの
名称は、そのレジスタなどを表すとともに、その内容を
も表すものとする。例えば、PCというときは、割込カ
ウンタレジスタそのものを表すとともに、このレジスタ
に記憶された割込カウンタの値(カウンタ値)をも表す
ものとする。
(J) Tone data: FIG. 5B schematically shows the contents of the tone data. The timbre data is prepared for each timbre. For the performer's performance, tone color data corresponding to the tone color selected by the tone color selection switch 21 in FIG. 4 is read out, and a tone is generated in the tone color. For automatic accompaniment, timbre data corresponding to the timbre number in the header of each track data is read out, and an automatic accompaniment sound is generated in the timbre. Note that the names of the above-described registers and the like represent the registers and the like and also the contents thereof. For example, the term PC indicates the interrupt counter register itself and also indicates the value (counter value) of the interrupt counter stored in this register.

【0032】次に、図6〜図11のフローチャートを参
照して、この実施例の電子楽器の動作を説明する。
Next, the operation of the electronic musical instrument of this embodiment will be described with reference to the flowcharts of FIGS.

【0033】図6のメインルーチンを参照して、この電
子楽器の動作がスタートすると、まずステップS1で各
レジスタなどのイニシャライズを行う。次に、ステップ
S2でパネル処理を行ない、ステップS3で鍵盤処理を
行ない、ステップS4で自動伴奏処理を行ない、ステッ
プS5でその他の処理を行ない、ステップS2に戻る。
そして、ステップS2以降の処理を繰り返す。
Referring to the main routine of FIG. 6, when the operation of the electronic musical instrument starts, first, in step S1, initialization of each register and the like is performed. Next, panel processing is performed in step S2, keyboard processing is performed in step S3, automatic accompaniment processing is performed in step S4, other processing is performed in step S5, and the process returns to step S2.
Then, the processing after step S2 is repeated.

【0034】図7のフローチャートを参照して、タイマ
インタラプトルーチンを説明する。タイマインタラプト
ルーチンは、タイマ6からタイマ割込があったとき実行
される。タイマ6のタイマ割込は1小節の間に等時間間
隔で96回行なわれる。その時間間隔は、レジスタTM
Pの値に応じて定められる。
The timer interrupt routine will be described with reference to the flowchart of FIG. The timer interrupt routine is executed when the timer 6 receives a timer interrupt. The timer 6 is interrupted 96 times at equal time intervals during one bar. The time interval is set in the register TM
It is determined according to the value of P.

【0035】タイマインタラプトルーチンにおいては、
ステップS11で割込カウンタPCが所定値F0より小
さいか否かを判別する。小さいときは、ステップS12
で割込カウンタPCを「1」カウントアップし、リター
ンする。割込カウンタPCが所定値F0より小さくない
ときは、そのままリターンする。
In the timer interrupt routine,
In step S11, it is determined whether or not the interrupt counter PC is smaller than a predetermined value F0. If smaller, step S12
To increment the interrupt counter PC by "1" and return. If the value of the interrupt counter PC is not smaller than the predetermined value F0, the process returns.

【0036】次に図8を参照して、パネル処理ルーチン
(図6ステップS2)につき説明する。パネル処理ルー
チンでは、まず、ステップS21で伴奏パターン選択処
理を行なう。これはスタイル選択スイッチ23のオンイ
ベントがあったかどうかを判別して、オンイベントがあ
ったときにそのスイッチに対応するスタイルの伴奏パタ
ーンを選択する処理である。次に、ステップS22でス
タ−トスイッチ25のオンイベントがあるか否かを判別
する。スタートスイッチ25のオンイベントがある場合
はステップS23へ、ない場合はステップS33へ、進
む。
Next, a panel processing routine (step S2 in FIG. 6) will be described with reference to FIG. In the panel processing routine, first, an accompaniment pattern selection process is performed in step S21. This is a process of determining whether or not there is an ON event of the style selection switch 23 and selecting an accompaniment pattern of a style corresponding to the switch when there is an ON event. Next, in a step S22, it is determined whether or not there is an ON event of the start switch 25. If there is an ON event of the start switch 25, the process proceeds to step S23, and if not, the process proceeds to step S33.

【0037】ステップS23でランフラグRUNをオン
(「1」)に設定し、ステップS24で割込カウンタP
Cと自動伴奏処理カウンタOCを初期化する。初期値
は、割込カウンタPCが「1」、自動伴奏処理カウンタ
OCが「0」である。ここでは、自動伴奏開始時に必ず
自動伴奏処理を行なうように強制的に割込カウンタPC
を自動伴奏処理カウンタOCより大きく設定している。
これらカウンタの初期値とカウントアップのタイミン
グ、および自動伴奏のタイミングの検出については、後
に詳しく説明する。
In step S23, the run flag RUN is set to ON ("1"), and in step S24, the interrupt counter P
Initialize C and the automatic accompaniment processing counter OC. The initial values are “1” for the interrupt counter PC and “0” for the automatic accompaniment processing counter OC. Here, the interrupt counter PC is forcibly set so that the automatic accompaniment process is always performed when the automatic accompaniment starts
Is set larger than the automatic accompaniment processing counter OC.
The detection of the initial values of these counters, the timing of counting up, and the timing of automatic accompaniment will be described later in detail.

【0038】次に、ステップS25で選択されているス
タイルの自動伴奏パターンデータのヘッダデータを読出
し、音色番号を音色番号レジスタTNに、テンポデータ
をテンポデータレジスタTMPに、それぞれ設定する。
なおここでは1つのトラックのみに着目して以下説明す
るが、選択されたスタイルのパターンデータの全トラッ
クについて同様の処理が行なわれるものとする。次に、
ステップS26でパンデータレジスタAPANに「8」
を設定する。これはパンデータとしてデフォルト値を用
いることを示す。
Next, the header data of the automatic accompaniment pattern data of the style selected in step S25 is read, and the tone number is set in the tone number register TN, and the tempo data is set in the tempo data register TMP.
The following description focuses on only one track, but the same processing is performed on all tracks of the pattern data of the selected style. next,
"8" is set in the pan data register APAN in step S26.
Set. This indicates that a default value is used as pan data.

【0039】次に、ステップS27で自動伴奏パターン
データを読出すためのトラックポインタTRPに初期値
として「0」をセットし、自動伴奏パターンデータの先
頭のデータを読出す。そして、ステップS28でその読
出したデータが、タイミングデータか、パンデータか、
またはその他のデータか、を判別する。タイミングデー
タのときはステップS29に、パンデータのときはステ
ップS30に、その他のデータのときはステップS31
に、それぞれ分岐する。
Next, in step S27, "0" is set as an initial value in the track pointer TRP for reading out the automatic accompaniment pattern data, and the head data of the automatic accompaniment pattern data is read out. Then, in step S28, whether the read data is timing data or pan data,
Or other data. If it is timing data, step S29; if it is pan data, step S30; if it is other data, step S31.
, Respectively.

【0040】読出したパターンデータがタイミングデー
タのときは、ステップS29でそのタイミングデータを
タイミングデータレジスタTIMにセットし、ステップ
S33に進む。読出したパターンデータがパンデータの
ときは、ステップS30でそのパンデータをパンデータ
レジスタAPANにセットし、ステップS32に進む。
読出したパターンデータがその他のデータのときは、ス
テップS31でそのデータに対する処理を行ない、ステ
ップS32に進む。ステップS32でトラックポインタ
TRPを「1」進めて次のパターンデータを読出し、ス
テップS28に戻る。
If the read pattern data is timing data, the timing data is set in the timing data register TIM in step S29, and the flow advances to step S33. If the read pattern data is pan data, the pan data is set in the pan data register APAN in step S30, and the process proceeds to step S32.
If the read pattern data is other data, a process for the data is performed in step S31, and the process proceeds to step S32. In step S32, the track pointer TRP is advanced by "1" to read the next pattern data, and the process returns to step S28.

【0041】ステップS33ではストップスイッチ27
のオンイベントがあるか否かを判別する。ストップスイ
ッチ27のオンイベントがある場合は、自動伴奏を停止
させるということであるからステップS34へ、ない場
合はステップS36へ、進む。ステップS34で割込カ
ウンタPCを上限値であるF0とし、ステップS35で
ランフラグRUNをオフ(「0」)として、ステップS
36に進む。ステップS33でストップスイッチ27の
オンイベントがない場合は、ステップS36に進む。
In step S33, the stop switch 27
It is determined whether or not there is an ON event. If there is an ON event of the stop switch 27, it means that the automatic accompaniment is to be stopped, and the process proceeds to step S34. If not, the process proceeds to step S36. In step S34, the interrupt counter PC is set to F0, which is the upper limit, and in step S35, the run flag RUN is turned off ("0"), and
Proceed to 36. If there is no ON event of the stop switch 27 in step S33, the process proceeds to step S36.

【0042】ステップS36では、テンポ設定処理を行
なう。テンポ設定処理は、テンポ設定スイッチ29,3
0のオンイベントがあったかどうかを判別して、オンイ
ベントがあったときに新しいテンポの値をテンポレジス
タTMPに設定する処理である。ステップS36の後、
リターンする。
In step S36, a tempo setting process is performed. The tempo setting process is performed by the tempo setting switches 29 and 3
This is a process of determining whether there is an ON event of 0 and setting a new tempo value in the tempo register TMP when an ON event occurs. After step S36,
To return.

【0043】次に図9のフローチャートを参照して、図
6のステップS4の自動伴奏処理につき説明する。自動
伴奏処理においては、まず、ステップS41でランフラ
グRUNがオンされているかを判別する。ランフラグR
UNがオンされていないときは、自動伴奏処理を行なう
必要がないので、そのままリターンする。ランフラグR
UNがオンされているときは、ステップS42で割込カ
ウンタPCが自動伴奏処理カウンタOCより大きいかど
うか判別する。割込カウンタPCが自動伴奏処理カウン
タOCより大きくないときは、自動伴奏処理を行なうタ
イミングではないということであるから、そのままリタ
ーンする。
Next, the automatic accompaniment process in step S4 in FIG. 6 will be described with reference to the flowchart in FIG. In the automatic accompaniment process, first, it is determined whether or not the run flag RUN is turned on in a step S41. Run flag R
When the UN is not turned on, there is no need to perform the automatic accompaniment process, and the process returns. Run flag R
If the UN is ON, it is determined in a step S42 whether or not the interrupt counter PC is larger than the automatic accompaniment processing counter OC. If the interrupt counter PC is not larger than the automatic accompaniment processing counter OC, it means that it is not the timing for performing the automatic accompaniment processing, and the process returns.

【0044】ステップS42で割込カウンタPCが自動
伴奏処理カウンタOCより大きいときは、タイマ割込が
発生して割込カウンタPCがカウントアップされたとい
うことであり、自動伴奏処理を行なうタイミングである
ということであるから、ステップS43に進む。
If the interrupt counter PC is larger than the automatic accompaniment processing counter OC in step S42, it means that a timer interrupt has occurred and the interrupt counter PC has counted up, and it is time to perform the automatic accompaniment processing. Therefore, the process proceeds to step S43.

【0045】ステップS43で自動伴奏処理カウンタO
CとタイミングデータTIMが一致しているかどうか判
別する。一致しているときは、現タイミングで発生すべ
き自動伴奏音があるということだから、自動伴奏の楽音
発生処理などを行なうべくステップS44に進む。カウ
ンタOCとタイミングデータTIMが一致していないと
きは、現タイミングで発生すべき自動伴奏音がないとい
うことであるから、ステップS54に分岐する。
In step S43, the automatic accompaniment processing counter O
It is determined whether or not C and the timing data TIM match. If they match, it means that there is an automatic accompaniment sound to be generated at the current timing, and the process proceeds to step S44 to perform a musical sound generation process for automatic accompaniment. If the counter OC does not match the timing data TIM, it means that there is no automatic accompaniment sound to be generated at the current timing, and the process branches to step S54.

【0046】ステップS44では現在トラックポインタ
TRPが指しているパターンデータからノートナンバお
よびベロシティデータを読出す。次に、ステップS45
で読出したベロシティが「0」かどうか判別する。ベロ
シティが「0」でないときは、自動伴奏音の発音処理を
行なうべく、ステップS46でノートナンバおよびベロ
シティとともにその時点のパンデータAPANをパラメ
ータとして発音ルーチン(図10)をコールする。これ
により、指示された音高(ノートナンバ)および音量
(ベロシティ)で、かつ指示されたパンデータにしたが
うパンニングで自動伴奏音が発生される。
In step S44, note number and velocity data are read from the pattern data currently pointed to by the track pointer TRP. Next, step S45
It is determined whether or not the read velocity is "0". If the velocity is not "0", the sounding routine (FIG. 10) is called in step S46 using the pan data APAN at that time together with the note number and velocity in step S46 in order to perform sounding processing of the automatic accompaniment sound. As a result, an automatic accompaniment sound is generated at the designated pitch (note number) and volume (velocity), and by panning according to the designated pan data.

【0047】ステップS45でベロシティが「0」のと
きは、自動伴奏音の消音が指示されているということだ
から、ステップS47で対応するノートナンバの楽音を
発音しているチャンネルのキーオフを音源9に指示し、
消音を行なう。ステップS46、S47の後、ステップ
S48でトラックポインタTRPを「1」進めて次のパ
ターンデータを読出し、ステップS49に進む。
If the velocity is "0" in step S45, it means that the automatic accompaniment sound has been silenced. Therefore, in step S47, the key-off of the channel that is producing the tone of the corresponding note number is transmitted to the sound source 9. Instruct,
Silence the sound. After steps S46 and S47, the track pointer TRP is advanced by "1" in step S48 to read the next pattern data, and the flow advances to step S49.

【0048】ステップS49で読出したパターンデータ
が、タイミングデータか、パンデータか、その他のデー
タか、またはエンドデータか、を判別する。タイミング
データのときはステップS50に、パンデータのときは
ステップS51に、その他のデータのときはステップS
52に、エンドデータのときはステップS53に、それ
ぞれ分岐する。
It is determined whether the pattern data read in step S49 is timing data, pan data, other data, or end data. Step S50 for timing data, step S51 for pan data, step S51 for other data
52, and if it is end data, the flow branches to step S53.

【0049】読出したパターンデータがタイミングデー
タのときは、ステップS50でそのタイミングデータを
タイミングデータレジスタTIMにセットし、ステップ
S54に進む。読出したパターンデータがパンデータの
ときは、ステップS51でそのパンデータをパンデータ
レジスタAPANにセットし、ステップS48に戻る。
読出したパターンデータがその他のデータのときは、ス
テップS52でそのデータに対する処理を行ない、ステ
ップS48に戻る。読出したパターンデータがエンドデ
ータのときは、再びパターンデータの先頭に戻るため、
ステップS53でパンデータAPANをデフォルト値の
「8」としトラックポインタTRPを「0」に初期化し
てパターンデータの先頭のデータを読出し、ステップS
49に戻る。
If the read pattern data is timing data, the timing data is set in the timing data register TIM in step S50, and the flow advances to step S54. If the read pattern data is pan data, the pan data is set in the pan data register APAN in step S51, and the process returns to step S48.
If the read pattern data is other data, a process for the data is performed in step S52, and the process returns to step S48. If the read pattern data is end data, it returns to the beginning of the pattern data again.
In step S53, the pan data APAN is set to the default value "8", the track pointer TRP is initialized to "0", and the head data of the pattern data is read out.
Return to 49.

【0050】次に、ステップS54では自動伴奏処理カ
ウンタOCが「95」であるかどうか判別する。カウン
タOCが「95」のときは、現在のタイミングが小節の
最後であるということだから、ステップS56で自動伴
奏処理カウンタOCおよび割込カウンタPCを「0」と
し、リターンする。ステップS54でカウンタOCが
「95」でないときは、ステップS55でカウンタPC
と同じ値になるようにカウンタOCを「1」カウントア
ップして、リターンする。
Next, in a step S54, it is determined whether or not the automatic accompaniment processing counter OC is "95". When the counter OC is "95", it means that the current timing is at the end of the bar, so the automatic accompaniment processing counter OC and the interrupt counter PC are set to "0" in step S56, and the routine returns. If the counter OC is not "95" in step S54, the counter PC is determined in step S55.
The counter OC is counted up by "1" so that the value becomes the same as the above, and the process returns.

【0051】次に図10のフローチャートを参照して、
図9のステップS46の発音処理につき説明する。発音
処理ルーチンでは、まず、ステップS61で発音チャン
ネル割当て処理を行なう。次に、ステップS62で音色
番号TNに対応する音色データ(図5(b))をメモリ
から読出し、ステップS63でパンデータAPANがデ
フォルト指示の「8」であるかどうか判別する。
Next, referring to the flowchart of FIG.
The sound generation processing in step S46 in FIG. 9 will be described. In the sounding processing routine, first, a sounding channel assignment processing is performed in step S61. Next, in step S62, the timbre data (FIG. 5B) corresponding to the timbre number TN is read from the memory, and in step S63, it is determined whether or not the pan data APAN is the default instruction "8".

【0052】パンデータAPANが「8」のときは、音
色に対応するパンデータをそのまま用いればよいから、
ステップS64で音色データ(図5(b)で示したよう
に既に音色に対応するパンデータを含んでいる)を先の
ステップS61で割当てられたチャンネルに送出し、ス
テップS66に進む。ステップS63でパンデータAP
ANが「8」でないときは、そのパンデータの値に設定
すると言うことだから、ステップS65で音色データの
うちパンデータのみをパンデータAPANに置換え、そ
の他の音色データとともに割当てられたチャンネルに送
出し、ステップS66に進む。
When the pan data APAN is "8", the pan data corresponding to the timbre may be used as it is.
In step S64, the timbre data (which already includes pan data corresponding to the timbre as shown in FIG. 5B) is transmitted to the channel assigned in step S61, and the process proceeds to step S66. Pan data AP in step S63
If AN is not "8", it means that the pan data is set to the value of the pan data. Therefore, in step S65, only the pan data of the timbre data is replaced with the pan data APAN and transmitted to the assigned channel together with the other timbre data. The process proceeds to step S66.

【0053】ステップS66でノートナンバ、ベロシテ
ィおよびキーオン信号をそのチャンネルに送出して、リ
ターンする。これにより指示されたパンニングにて自動
伴奏音が発音される。
In step S66, a note number, velocity and key-on signal are sent to the channel, and the routine returns. Thereby, the automatic accompaniment sound is generated by the specified panning.

【0054】次に図11のフローチャートを参照して、
図6ステップS5のその他の処理のうちタイマ処理ルー
チンにつき説明する。タイマ処理ルーチンでは、まず、
ステップS71でテンポレジスタTMPの値が変更され
ているかどうか判別する。変更されているときは、ステ
ップS72で新しいテンポTMPをタイマに送出し、リ
ターンする。これにより、タイマ6はテンポTMPの値
に応じた時間間隔でタイマ割込をかけるように設定され
る。ステップS71でテンポTMPの変更がないとき
は、そのままリターンする。
Next, referring to the flowchart of FIG.
A timer processing routine among the other processes in step S5 in FIG. 6 will be described. In the timer processing routine, first,
In a step S71, it is determined whether or not the value of the tempo register TMP has been changed. If it has been changed, a new tempo TMP is sent to the timer in step S72, and the routine returns. As a result, the timer 6 is set to interrupt the timer at a time interval corresponding to the value of the tempo TMP. If there is no change in the tempo TMP in step S71, the process returns.

【0055】この実施例の電子楽器では、自動伴奏が行
なわれていない状態では図9の自動伴奏処理でステップ
S41からすぐにリターンし、自動伴奏処理は行なわれ
ない。このときタイマ割込はかかるがカウンタPCは上
限値F0で保持されたままとなる。
In the electronic musical instrument of this embodiment, when the automatic accompaniment is not performed, the process immediately returns from step S41 in the automatic accompaniment processing of FIG. 9, and the automatic accompaniment processing is not performed. At this time, the timer PC is interrupted, but the counter PC is kept at the upper limit value F0.

【0056】スタートスイッチ25をオンすると図8の
ステップS23でランフラグRUNがオンされ自動伴奏
が開始する。自動伴奏音を発音するタイミングは、割込
カウンタPCと自動伴奏処理カウンタOCにより判断す
るようになっている。すなわち、まず初期値として図8
のステップS24で割込カウンタPCが「1」に、自動
伴奏処理カウンタOCが「0」に設定される。強制的に
割込カウンタPCが自動伴奏処理カウンタOCよりも大
きい値とされるため、図9の自動伴奏処理ではステップ
S42からS43に進み発音すべき自動伴奏音(96等
分した小節の先頭タイミングの楽音)があればその発音
が実行される。そして、ステップS54からS55に進
み、自動伴奏処理カウンタOCが「1」カウントアップ
される。したがって、割込カウンタPCおよび自動伴奏
処理カウンタOCはともに「1」となる。
When the start switch 25 is turned on, the run flag RUN is turned on in step S23 in FIG. 8 and automatic accompaniment starts. The timing of generating the automatic accompaniment sound is determined by the interrupt counter PC and the automatic accompaniment processing counter OC. That is, first, FIG.
In step S24, the interrupt counter PC is set to "1" and the automatic accompaniment processing counter OC is set to "0". Since the value of the interrupt counter PC is forcibly set to a value larger than the value of the automatic accompaniment processing counter OC, the process goes from step S42 to step S43 in the automatic accompaniment processing of FIG. If there is a tone, the pronunciation is executed. Then, the process proceeds from step S54 to S55, and the automatic accompaniment processing counter OC is counted up by "1". Therefore, both the interrupt counter PC and the automatic accompaniment processing counter OC become “1”.

【0057】割込カウンタPCおよび自動伴奏処理カウ
ンタOCがともに「1」となるので、次からの自動伴奏
処理ではステップS42からすぐにリターンする。所定
の時間の後、タイマ割込がかかるとタイマインタラプト
ルーチン(図7)により割込カウンタPCがカウントア
ップされ、「1」から「2」になる。すると、割込カウ
ンタPCが「2」、自動伴奏処理カウンタOCが「1」
であるので、次の自動伴奏処理ではステップS42から
S43に進み発音すべき自動伴奏音(96等分した小節
の第2番目のタイミングの楽音)があればその発音が実
行される。そして、ステップS54からS55に進み、
自動伴奏処理カウンタOCはカウントアップされ「2」
となる。
Since both the interrupt counter PC and the automatic accompaniment processing counter OC become "1", the process returns immediately from step S42 in the subsequent automatic accompaniment processing. After a predetermined time, when a timer interrupt occurs, the interrupt counter PC is counted up by a timer interrupt routine (FIG. 7) and changes from "1" to "2". Then, the interrupt counter PC is "2" and the automatic accompaniment processing counter OC is "1".
Therefore, in the next automatic accompaniment process, the process proceeds from step S42 to step S43, and if there is an automatic accompaniment sound to be sounded (a musical tone at the second timing of a bar divided into 96), the sounding is executed. Then, the process proceeds from step S54 to S55,
The automatic accompaniment processing counter OC is counted up to "2".
Becomes

【0058】割込カウンタPCおよび自動伴奏処理カウ
ンタOCはともに「2」となるので、次からの自動伴奏
処理ではステップS42からすぐにリターンする。以上
のような処理を繰返し、タイマ割込で割込カウンタPC
が「1」進み自動伴奏処理カウンタOCより「1」大き
くなると、発音処理が行なわれ自動伴奏処理カウンタO
Cが「1」進む。そして、96等分した小節の最後のタ
イミングでステップS42からS43に進んだとき、自
動伴奏処理カウンタOCは「95」であるのでステップ
S54からS55に進む。そして、次の小節の先頭タイ
ミングを検出する準備として割込カウンタPCおよび自
動伴奏処理カウンタOCは、ともに「0」とされる。
Since both the interrupt counter PC and the automatic accompaniment processing counter OC become "2", the process returns immediately from step S42 in the subsequent automatic accompaniment processing. The above process is repeated, and the timer interrupt causes the interrupt counter PC
Is increased by "1" from the automatic accompaniment processing counter OC by "1", the tone generation processing is performed and the automatic accompaniment processing counter O
C advances "1". Then, when the process proceeds from step S42 to S43 at the last timing of the bar divided into 96 equal parts, the automatic accompaniment processing counter OC is “95”, so that the process proceeds from step S54 to S55. Then, in preparation for detecting the start timing of the next bar, both the interrupt counter PC and the automatic accompaniment processing counter OC are set to “0”.

【0059】上記の実施例によれば、パターンデータ中
にパンデータを含めることができ、そのパンデータが
「0」〜「7」または「9」〜「15」のときは、その
パンデータにしたがったパンニングで自動伴奏音が発音
される。また、パターンデータ中のパンデータが「8」
のときは、デフォルトのパンデータとして音色に応じた
パンデータでパンニングが実行される。したがって、自
動伴奏の途中で容易にパンニングを変更でき、変更後も
容易に元のパンニングに戻すことができる。
According to the above embodiment, the pan data can be included in the pattern data. When the pan data is "0" to "7" or "9" to "15", the pan data is included in the pan data. An automatic accompaniment sound is generated according to the panning according to the panning. The pan data in the pattern data is "8".
In the case of, panning is performed using pan data corresponding to the timbre as default pan data. Therefore, the panning can be easily changed during the automatic accompaniment, and the original panning can be easily restored after the change.

【0060】なお、上記の実施例は自動伴奏装置つきの
電子楽器に本発明を適用した例であるが、本発明は自動
演奏装置に対しても適用することができる。例えば、シ
ーケンサなどに適用する場合は、デフォルトの指定とパ
ンニングの指定とを識別するコードを記憶しておき、読
出した後でそれを識別し、その指定に基づいてパンニン
グを制御すればよい。
Although the above embodiment is an example in which the present invention is applied to an electronic musical instrument with an automatic accompaniment device, the present invention can also be applied to an automatic performance device. For example, when applied to a sequencer or the like, a code for identifying a default designation and a panning designation may be stored, read and identified, and panning may be controlled based on the designation.

【0061】また、上記の実施例ではパターンデータ中
に出現したパンニングデータの値にしたがってパンニン
グを行なうようにしているが、値そのものに基づくパン
ニングを行なうのではなく、所定のパンエンベロープで
パンニングを行なったり、スケーリングパンを行なうな
どの指示を示すコードを含めて、これらのコードが出現
したときにはそのコードにしたがったパンニングの状態
とするようにしてもよい。
In the above embodiment, the panning is performed according to the value of the panning data appearing in the pattern data. However, the panning is not performed based on the value itself, but is performed using a predetermined pan envelope. Alternatively, when these codes appear, including a code indicating an instruction to perform a scaling pan or the like, the panning state may be set according to the code.

【0062】さらに、上記実施例ではモノラル信号を左
右に振り分けるパンニングを行なう例を説明したが、左
右とは限らず、サウンドシステムのスピーカの配置に応
じて振り分けるようにしてよい。
Further, in the above-described embodiment, an example in which the panning for distributing the monaural signal to the left and right has been described. However, the distribution is not limited to the left and right, and the monaural signal may be distributed according to the speaker arrangement of the sound system.

【0063】[0063]

【発明の効果】以上説明したように、この発明によれ
ば、自動伴奏または自動演奏のための伴奏データを記憶
する記憶手段の中に、パンニングデータを記憶するよう
にしており、そのパンニングデータが読み出されたとき
は、そのデータにしたがってパンニングの状態が設定さ
れ、さらにデフォルト状態に戻す指定もできるので、自
動伴奏や自動演奏途中でパンニングを容易に変更するこ
とができ、さらに自動伴奏や自動演奏を停止することな
く容易に元のパンニングに戻すことができる。
As described above, according to the present invention, the panning data is stored in the storage means for storing the accompaniment data for automatic accompaniment or automatic performance. When read, the panning state is set according to the data, and it can be specified to return to the default state. Therefore, panning can be easily changed during automatic accompaniment or automatic performance, and automatic accompaniment and automatic It is possible to easily return to the original panning without stopping the performance.

【0064】近年ではエンベロープでパンニングを動か
していくもの、音高によってパンニングを異ならせるス
ケーリングパン、あるいは既にパンニングの状態も含め
てステレオサンプリングしたデータを再生するものな
ど、種々のパンニングが用いられるが、この発明によれ
ば、このようなパンニングを自動伴奏や自動演奏に取り
入れたり、逆にそれらのパンニングを外したりできる。
したがって、種々のパンニングを積極的に取入れたり、
曲のバランスを崩すと思われるときは外すなど、柔軟に
自動演奏や自動伴奏のパンニングを設定できる。これに
より、自動演奏や自動伴奏による表現がより豊かにな
る。さらに、音色に適したパンニングが種々設定できる
ため、スタイルのバリエーションを増やすこともでき
る。
In recent years, various types of panning have been used, such as one that moves panning with an envelope, one that changes panning depending on the pitch, and one that reproduces stereo-sampled data including the state of panning. According to the present invention, it is possible to incorporate such panning into automatic accompaniment and automatic performance, or to remove such panning.
Therefore, we take various panning positively,
You can flexibly set the panning for automatic performance and automatic accompaniment, such as removing when you think the balance of the song will be lost. Thereby, the expression by the automatic performance and the automatic accompaniment is further enriched. Further, since various types of panning suitable for the timbre can be set, style variations can be increased.

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

【図1】 この発明の一実施例に係る電子楽器のブロ
ック構成図
FIG. 1 is a block diagram of an electronic musical instrument according to an embodiment of the present invention.

【図2】 パンニング回路の詳細な構成図FIG. 2 is a detailed configuration diagram of a panning circuit.

【図3】 パンニングデ−タとパンニング回路の係数
α,βとの関係図
FIG. 3 is a diagram showing the relationship between panning data and coefficients α and β of a panning circuit.

【図4】 この実施例の電子楽器のパネル外観図FIG. 4 is an external view of a panel of the electronic musical instrument of this embodiment.

【図5】 自動伴奏パターンデータおよび音色データ
の詳細図
FIG. 5 is a detailed diagram of automatic accompaniment pattern data and timbre data.

【図6】 メインルーチンのフローチャートFIG. 6 is a flowchart of a main routine.

【図7】 タイマインタラプトルーチンのフローチャ
ート
FIG. 7 is a flowchart of a timer interrupt routine.

【図8】 パネル処理ルーチンのフローチャートFIG. 8 is a flowchart of a panel processing routine.

【図9】 自動伴奏処理ルーチンのフローチャートFIG. 9 is a flowchart of an automatic accompaniment processing routine.

【図10】 発音処理ルーチンのフローチャートFIG. 10 is a flowchart of a sound processing routine;

【図11】 タイマ処理ルーチンのフローチャートFIG. 11 is a flowchart of a timer processing routine.

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

1…鍵盤、2…鍵盤インタ−フェ−ス、3…パネル、4
…パネルインタ−フェ−ス、5…中央処理装置(CP
U)、6…タイマ、7…リ−ドオンリメモリ(RO
M)、8…ランダムアクセスメモリ(RAM)、9…音
源、10…パンニング回路、11L,11R…サウンド
システム、12…バスライン。
1 ... keyboard, 2 ... keyboard interface, 3 ... panel, 4
... panel interface, 5 ... central processing unit (CP
U), 6: timer, 7: read-only memory (RO)
M), 8 random access memory (RAM), 9 sound source, 10 panning circuit, 11L, 11R sound system, 12 bus line.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】演奏データを記憶するとともに、パンニン
グをデフォルト状態に戻すあるいは所定の状態に設定す
ることを指示するパンニングデータを、前記演奏データ
を構成するトラック毎に、記憶する記憶手段と、 該記憶手段から読出した演奏データに基づいて発音を指
示するとともに、前記トラックに記憶されたパンニング
データを読出した場合はそのパンニングデータにしたが
ってパンニングをデフォルト状態に戻しまたは所定の状
態に設定することを指示する制御手段と、 上記制御手段からの指示を受けて、前記トラックのパン
ニングをデフォルト状態に戻しまたは所定の状態に設定
するパンニング手段とを具備することを特徴とする電子
楽器。
1. A stores the performance data, the panning data for instructing to set or predetermined state back to the default state panning, the performance data
Storage means for storing , for each of the tracks constituting, a sound generation instruction based on the performance data read from the storage means, and when the panning data stored in the track is read, panning is performed according to the panning data. Control means for instructing a return to a default state or setting to a predetermined state; and receiving an instruction from the control means, returning the panning of the track to a default state or setting to a predetermined state. An electronic musical instrument comprising panning means.
【請求項2】デフォルト状態のパンニングデータを含む
音色データを予め音色毎に記憶した音色データ記憶手段
と、 演奏データを記憶するとともに、パンニングをデフォル
ト状態に戻すあるいは所定の状態に設定することを指示
するパンニングデータおよび発音する音色を、前記演奏
データを構成するトラック毎に、記憶する演奏データ記
憶手段と、 該演奏データ記憶手段から読出した演奏データに基づい
て発音を指示するとともに、前記トラックに記憶された
パンニングデータを読出した場合はそのパンニングデー
タにしたがってパンニングをデフォルト状態に戻しまた
は所定の状態に設定することを指示する制御手段と、 上記制御手段からの指示を受けて、前記トラックのパン
ニングを前記トラックの音色に対応した前記音色データ
が示すデフォルト状態に戻しまたは所定の状態に設定す
るパンニング手段とを具備することを特徴とする電子楽
器。
2. Includes panning data in a default state
Tone data storage means in which tone data is stored in advance for each tone
The performance data and panning
To return to the default state or set to the specified state
The panning data to be played and the tone
Performance data records to be stored for each track making up the data
Storage means and performance data read from the performance data storage means.
And instruct the user to pronounce
When the panning data is read, the panning data
Return the panning to the default state according to the
Control means for instructing setting to a predetermined state, and panning of the track in response to an instruction from the control means.
Tone data corresponding to the tone of the track
Return to the default state shown in
Electronic music having panning means
vessel.
JP01947792A 1992-01-08 1992-01-08 Electronic musical instrument Expired - Lifetime JP3282675B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01947792A JP3282675B2 (en) 1992-01-08 1992-01-08 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01947792A JP3282675B2 (en) 1992-01-08 1992-01-08 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH05188933A JPH05188933A (en) 1993-07-30
JP3282675B2 true JP3282675B2 (en) 2002-05-20

Family

ID=12000421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01947792A Expired - Lifetime JP3282675B2 (en) 1992-01-08 1992-01-08 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP3282675B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7169996B2 (en) * 2002-11-12 2007-01-30 Medialab Solutions Llc Systems and methods for generating music using data/music data file transmitted/received via a network

Also Published As

Publication number Publication date
JPH05188933A (en) 1993-07-30

Similar Documents

Publication Publication Date Title
JPH04349497A (en) Electronic musical instrument
JP3266149B2 (en) Performance guide device
JP3489503B2 (en) Sound signal analyzer, sound signal analysis method, and storage medium
JP3239411B2 (en) Electronic musical instrument with automatic performance function
EP1391873A1 (en) Rendition style determination apparatus and method
JP3282675B2 (en) Electronic musical instrument
JP3353777B2 (en) Arpeggio sounding device and medium recording a program for controlling arpeggio sounding
JP2660462B2 (en) Automatic performance device
US4311077A (en) Electronic musical instrument chord correction techniques
JP3609045B2 (en) Automatic performance device
JP3661963B2 (en) Electronic musical instruments
US5418324A (en) Auto-play apparatus for generation of accompaniment tones with a controllable tone-up level
JPH0527762A (en) Electronic musical instrument
JP5200368B2 (en) Arpeggio generating apparatus and program for realizing arpeggio generating method
JP2623175B2 (en) Automatic performance device
JPH04274297A (en) Automatic musical performance device
JP3407563B2 (en) Automatic performance device and automatic performance method
JP2972364B2 (en) Musical information processing apparatus and musical information processing method
JP2660457B2 (en) Automatic performance device
JP2671889B2 (en) Electronic musical instrument
JPH05188961A (en) Automatic accompaniment device
JP2679308B2 (en) Sound source determination device and electronic musical instrument using the same
JPH0844332A (en) Character display device
JP3450542B2 (en) Accompaniment pattern creation device
JP3499672B2 (en) Automatic performance device

Legal Events

Date Code Title Description
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 (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090301

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090301

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100301

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110301

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110301

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120301

Year of fee payment: 10

EXPY Cancellation because of completion of term