Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0721718B2 - Electronic musical instrument - Google Patents
[go: Go Back, main page]

JPH0721718B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH0721718B2
JPH0721718B2 JP62332650A JP33265087A JPH0721718B2 JP H0721718 B2 JPH0721718 B2 JP H0721718B2 JP 62332650 A JP62332650 A JP 62332650A JP 33265087 A JP33265087 A JP 33265087A JP H0721718 B2 JPH0721718 B2 JP H0721718B2
Authority
JP
Japan
Prior art keywords
rhythm
sound
tone
percussion instrument
type
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
JP62332650A
Other languages
Japanese (ja)
Other versions
JPH01179094A (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
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP62332650A priority Critical patent/JPH0721718B2/en
Priority to US07/291,275 priority patent/US4991486A/en
Priority to DE3888655T priority patent/DE3888655T2/en
Priority to KR1019880017876A priority patent/KR920005713B1/en
Priority to EP88121918A priority patent/EP0322927B1/en
Publication of JPH01179094A publication Critical patent/JPH01179094A/en
Priority to SG165894A priority patent/SG165894G/en
Publication of JPH0721718B2 publication Critical patent/JPH0721718B2/en
Priority to HK33095A priority patent/HK33095A/en
Priority to US09/493,518 priority patent/USRE37459E1/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、複数の楽音形成チャンネルを有する電子楽
器に関し、特に楽音形成チャンネルに対して楽音種類指
定情報を割当てる技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument having a plurality of tone forming channels, and more particularly to a technique for assigning tone type specifying information to the tone forming channels.

[発明の概要] この発明は、発音すべき楽音種類を複数の楽音形成チャ
ンネルのいずれかに割当てて該楽音種類に対応した楽音
信号を発生させる場合において、楽音種類割当て済みの
各チャンネル毎に発音残り時間を計測し、発音残り時間
が最も少ないチャンネルに新たな楽音種類を割当てるこ
とにより少ないチャンネル数で楽音種類指定に忠実な演
奏を行なえるようにしたものである。
SUMMARY OF THE INVENTION In the present invention, when a tone type to be generated is assigned to any one of a plurality of tone forming channels and a tone signal corresponding to the tone type is generated, the tone generation is performed for each channel to which the tone type has been assigned. By measuring the remaining time and assigning a new musical tone type to the channel with the least remaining pronunciation time, it is possible to perform a performance faithful to the musical tone type designation with a small number of channels.

[従来の技術] 従来、リズム演奏装置としては、複数種類のリズム音
(例えばシンバル、ドラム、スネアドラム…)にそれぞ
れ対応した複数のリズム音形成チャンネル(リズム音
源)を設け、各リズム音種類毎に対応するリズム音形成
チャンネルからリズム音を発生させるようにしたものが
知られている(例えば、実公昭59−18471号公報参
照)。
[Prior Art] Conventionally, a rhythm playing device is provided with a plurality of rhythm sound forming channels (rhythm sound sources) respectively corresponding to a plurality of kinds of rhythm sounds (for example, cymbals, drums, snare drums, etc.). It is known that a rhythm sound is generated from a rhythm sound forming channel corresponding to the above (see, for example, Japanese Utility Model Publication No. 59-18471).

[発明が解決しようとする問題点] 上記した従来技術によると、リズム音種類とリズム音形
成チャンネルとが1対1に対応しているので、発音可能
なリズム音の種類を増加させようとすれば、それに対応
してリズム音形成チャンネルを増設しなければならず、
構成が複雑化するという問題点があった。
[Problems to be Solved by the Invention] According to the above-mentioned conventional technique, since the rhythm sound type and the rhythm sound forming channel have a one-to-one correspondence, it is attempted to increase the kinds of rhythm sounds that can be produced. In that case, it is necessary to add more rhythm sound forming channels,
There is a problem that the configuration becomes complicated.

このような問題点を解決するための1つの手段として、
所定の複数(例えば8つ)のリズム音形成チャンネルを
設け、これらのチャンネルに対して複数(例えば16)の
リズム音種類を適宜割当てて発音させるようにすること
が考えられるが、このようにした場合には、例えば8チ
ャンネル全部が発音中の状態で新たなリズム音を発生さ
せることができず、テンポの速いリズム演奏や短い時間
間隔でのリズム音発生において演奏表現が制約されると
いう問題点があった。
As one means for solving such a problem,
It is conceivable to provide a plurality of predetermined (for example, eight) rhythm sound forming channels and appropriately allocate a plurality (for example, 16) of rhythm sound types to these channels for sound generation. In this case, for example, a new rhythm sound cannot be generated while all 8 channels are being sounded, and performance expression is restricted in rhythm performance with a fast tempo or rhythm sound generation at short time intervals. was there.

[問題点を解決するための手段] この発明の目的は、チャンネル数を特に増加させること
なく、短時間内に多種類の楽音を発生可能にすることに
ある。
[Means for Solving Problems] An object of the present invention is to enable generation of various kinds of musical sounds in a short time without increasing the number of channels.

この発明に係る電子楽器は、 (a)複数Nの楽音形成チャンネルを有する音源手段で
あって、各楽音形成チャンネル毎に複数M(M>N)の
楽音種類のうち指定された楽音種類に対応した楽音信号
を発生するように構成されたものと、 (b)前記複数Mの楽音種類のうち発音すべき楽音種類
を指定する楽音種類指定情報を発生する指定手段と、 (c)この指定手段から楽音種類指定情報が発生される
たびに前記複数Nの楽音形成チャンネルのいずれかに該
楽音種類指定情報を割当てることにより割当てに係る楽
音形成チャンネルにて該楽音種類指定情報に応じて楽音
種類を指定する割当手段と、 (d)前記複数Mの楽音種類のうちの各楽音種類毎にそ
の発音期間の長さに対応したトランケート制御情報を記
憶した記憶手段と、 (e)前記割当手段による割当てがなされた楽音形成チ
ャンネル毎に指定された楽音種類に対応したトランケー
ト制御情報を前記記憶手段から読出し、該トランケート
制御情報が示す値から所定時間毎に一定値を減算して発
生中の楽音信号の発音残り時間を計測する計測手段であ
って、前記一定値は、楽音種類によらずに一定であるも
のと、 (f)この計測手段で計測される発音残り時間に基づい
て前記割当手段のチャンネル割当てを制御する制御手段
であって、発音残り時間が最も少ない楽音形成チャンネ
ルに前記指定手段からの新たな楽音種類指定情報を割当
てるようにチャンネル割当てを制御するものと をそなえたものである。
The electronic musical instrument according to the present invention is (a) sound source means having a plurality of N musical tone forming channels, and corresponds to a designated musical tone type among a plurality M (M> N) musical tone types for each musical tone forming channel. And (b) a designating means for generating musical tone type designating information for designating a musical tone type to be pronounced among the plurality of M musical tone types, and (c) this designating means. Each time the musical tone type designation information is generated from the musical tone type designation information, the musical tone type designation information is assigned to any one of the N musical tone formation channels. Assigning means for designating, (d) storage means for storing truncate control information corresponding to the length of the tone generation period for each tone type among the plurality of tone types M, (e) The truncation control information corresponding to the musical tone type designated for each musical tone formation channel assigned by this means is read from the storage means, and a constant value is subtracted from the value indicated by the truncated control information at predetermined time intervals And (f) the constant value is constant regardless of the type of musical sound, and the constant value is constant based on the remaining sound generation time measured by the measuring means. Control means for controlling the channel assignment of the assigning means, which controls the channel assignment so that new tone type designation information from the designation means is assigned to the tone forming channel with the shortest remaining tone generation time. Is.

このような構成にあっては、楽音を打楽器音(リズム
音)としてリズム演奏を可能にしてもよい。
In such a configuration, rhythm performance may be enabled by using musical tones as percussion instrument sounds (rhythm sounds).

[作 用] この発明の構成によれば、楽音種類割当て済みの各チャ
ンネル毎に発音残り時間を計測し、発音残り時間が最も
少ないチャンネルに新たな楽音種類を割当てるようにし
たので、例えば8チャンネル全部が発音中の状態で新た
な楽音種類が指定されると、この楽音種類は発音残り時
間が最も少ないチャンネルに割当てられて発音されるよ
うになる。
[Operation] According to the configuration of the present invention, the remaining tone generation time is measured for each channel to which the tone generation type has been assigned, and a new tone type is assigned to the channel with the least tone generation time. When a new musical tone type is designated while all are being sounded, this musical tone type is assigned to the channel with the shortest remaining tone generation time and is sounded.

従って、チャンネル数を特に増加させなくても、短時間
内にチャンネル数より多い種類の楽音を発生可能とな
り、例えばリズム演奏等において速いテンポで又は短い
時間間隔での演奏表現が可能となる。
Therefore, even if the number of channels is not particularly increased, it is possible to generate more kinds of musical sounds than the number of channels within a short period of time, and it is possible to express a musical performance at a fast tempo or at short time intervals, for example, in a rhythm performance.

[実施例] 第1図は、この発明の一実施例による電子楽器の構成を
示すもので、この電子楽器では、鍵盤操作に基づくマニ
アル演奏音の発生、プログラムモード時におけるリズム
パターン書込み並びにマニアルリズム音及びオートリズ
ム音の発生、プレイモード時におけるオートリズム音の
発生等がマイクロコンピュータによって制御されるよう
になっている。なお、第1図及び第2図において、例え
ば第1図のTDのように斜線を付した信号線は、複数の信
号線であること又は複数ビットの信号の流れを表わす。
[Embodiment] FIG. 1 shows a structure of an electronic musical instrument according to an embodiment of the present invention. In this electronic musical instrument, a manual performance sound is generated based on a keyboard operation, a rhythm pattern is written in a program mode, and a manual rhythm is generated. The generation of sounds and autorhythm sounds, the generation of autorhythm sounds in the play mode, etc. are controlled by a microcomputer. Note that, in FIGS. 1 and 2, for example, a signal line hatched as in TD in FIG. 1 is a plurality of signal lines or represents a signal flow of a plurality of bits.

電子楽器の構成(第1図) 第1図において、データバス10には、鍵盤12、パネル装
置14、中央処理装置(CPU)16、プログロム及びデータR
OM(リード・オンリィ・メモリ)18、データ及びワーキ
ングRAM(ランダム・アクセス・メモリ)20、テンポタ
イマ22、ロールタイマ24、トランケートタイマ26、鍵盤
用トーンジェネレータ(TG)28、リズム用トーンジェネ
レータ(TG)30等が接続されている。
Structure of Electronic Musical Instrument (FIG. 1) In FIG. 1, a keyboard 12, a panel device 14, a central processing unit (CPU) 16, a program and a data R are connected to a data bus 10.
OM (Read Only Memory) 18, Data and Working RAM (Random Access Memory) 20, Tempo Timer 22, Roll Timer 24, Truncate Timer 26, Keyboard Tone Generator (TG) 28, Rhythm Tone Generator (TG) ) 30 etc. are connected.

鍵盤12は、多数の鍵を有するもので、各鍵毎に押鍵情報
が検出されるようになっている。
The keyboard 12 has a large number of keys, and key pressing information is detected for each key.

パネル装置14は、楽音制御用乃至演奏制御用の各種の操
作子並びに各種の表示素子が設けられたもので、各操作
子毎に操作情報が検出されるようになっている。
The panel device 14 is provided with various operators for musical tone control or performance control and various display elements, and operation information is detected for each operator.

パネル装置14において、この発明の実施に関係する操作
子としては、ハンドパーカッション用のパッド操作子PD
Sと、リズム選択操作子RSSと、ロール指定操作子RLS
と、プログラムモード指定操作子PMSと、スタート/ス
トップ操作子SPSと、テンポ調整操作子TMNとが設けられ
ている。
In the panel device 14, as an operator related to the implementation of the present invention, a pad operator PD for hand percussion is used.
S, rhythm selection operator RSS, role specification operator RLS
And a program mode designating operator PMS, a start / stop operator SPS, and a tempo adjusting operator TMN.

パッド操作子PDSとしては、例えばバスドラム、スネア
ドラム、シンバル…等の32種類のリズム音にそれぞれ対
応した32個の自己復帰型パッドスイッチが設けられてい
る。
As the pad operator PDS, for example, 32 self-restoration type pad switches respectively corresponding to 32 kinds of rhythm sounds such as bass drum, snare drum, cymbal, etc. are provided.

リズム選択操作子RSSとしては、例えばマーチ、ワル
ツ、ルンバ…等のN(任意の複数)種類のファクトリー
セットされたリズムパターンにそれぞれ対応した第1〜
第Nのリズム選択スイッチと、演奏者がプログラムした
リズムパターンを選択するための第Mのリズム選択スイ
ッチとが設けられている。また、各リズム選択操作子毎
に発光ダイオードからなる表示素子LDが設けられてお
り、所望のリズムを選択すべくリズム選択操作子をオン
操作すると、それに対応する表示素子LDが点灯するよう
になっている。
As the rhythm selection operator RSS, for example, first to first corresponding to N (arbitrary plural) kinds of factory-set rhythm patterns such as march, waltz, rumba ...
An Nth rhythm selection switch and an Mth rhythm selection switch for selecting a rhythm pattern programmed by the performer are provided. A display element LD including a light emitting diode is provided for each rhythm selection operator, and when the rhythm selection operator is turned on to select a desired rhythm, the corresponding display element LD is turned on. ing.

ロール指定操作子RLSは、例えば自己復帰型スイッチか
らなるもので、所望のパッド操作子(例えばスネアドラ
ムに対応するもの)と同時的にオン操作することにより
該パッド操作子に対応するリズム音のロール(連打)発
音を指定可能である。
The roll designating operator RLS is composed of, for example, a self-reset type switch, and by simultaneously turning on a desired pad operator (for example, one corresponding to a snare drum), a rhythm sound corresponding to the pad operator is produced. It is possible to specify the roll (continuous hit) sound.

プログラムモード指定操作子PMSは、例えば自己復帰型
スイッチからなるもので、操作のたびにプログラムモー
ドとプレイモードとを交互に指定可能である。また、操
作子PMSの近傍には、発光ダイオードからなる表示素子P
LDが設けられており、この表示素子PLDは、プログラム
モードの指定時に点灯するようになっている。
The program mode designating operator PMS is composed of, for example, a self-reset type switch, and it is possible to designate the program mode and the play mode alternately for each operation. In addition, in the vicinity of the operator PMS, a display element P consisting of a light emitting diode
An LD is provided, and this display element PLD is lit when the program mode is designated.

スタート/ストップ操作子SPSは、例えば自己復帰型ス
イッチからなるもので、操作のたびにスタートとストッ
プとを交互に指示可能である。
The start / stop operator SPS is composed of, for example, a self-reset type switch, and can alternately instruct start and stop each time it is operated.

テンポ調整操作子TMNは、例えば回転式のつまみからな
るもので、所望のテンポを設定するためのものである。
操作子TMNの近傍には、一列状に配置された4個の発光
ダイオードからなるテンポ表示素子TLDが設けられてお
り、プログラムモード時及びプレイモード時に設定テン
ポに対応した速さで順次に点灯することによりテンポを
表示するようになっている。
The tempo adjusting operator TMN is composed of, for example, a rotary knob and is used for setting a desired tempo.
A tempo display element TLD composed of four light emitting diodes arranged in a line is provided near the manipulator TMN, and sequentially lights at a speed corresponding to the set tempo in the program mode and the play mode. By doing so, the tempo is displayed.

CPU16は、ROM18にストアされたプログラムに従って各種
の処理を実行するもので、これらの処理の詳細について
は第6図乃至第17図を参照して後述する。
The CPU 16 executes various processes according to the program stored in the ROM 18, and details of these processes will be described later with reference to FIGS. 6 to 17.

ROM18は、各種処理用のプログラムの他に、ファクトリ
ーセットのリズムパターン等に関するデータも記憶して
おり、その記憶内容については第3図を参照して後述す
る。
The ROM 18 stores data relating to the rhythm pattern of the factory set as well as various processing programs, and the stored contents will be described later with reference to FIG.

RAM20は、演奏者がプログラムしたリズムパターンに関
するデータを記憶するための記憶部を有するもので、こ
の他にも、CPU16による各種処理に際してワーキングレ
ジスタ等として利用される記憶部を含んでいる。RAM20
の記憶内容については第5図を参照して後述する。
The RAM 20 has a storage unit for storing data relating to the rhythm pattern programmed by the performer, and in addition to this, includes a storage unit used as a working register or the like for various processes by the CPU 16. RAM20
The stored contents of will be described later with reference to FIG.

テンポタイマ22は、テンポデータTDに応じた周波数を有
するテンポクロック信号TCLを発生するもので、この信
号TCLの各クロックパルスは第13図のテンポクロック割
込処理を開始させるのに使用される。
The tempo timer 22 generates a tempo clock signal TCL having a frequency according to the tempo data TD, and each clock pulse of this signal TCL is used to start the tempo clock interrupt processing of FIG.

ロールタイマ24は、ロール用クロック信号RCLを発生す
るもので、この信号RCLの各クロックパルスは第16図の
ロールタイマ割込処理を開始させるのに使用される。ロ
ールタイマ24のクロック発生周期は、一例として数10
[ms]に設定されるが、これは演奏者の操作又は外部信
号に応じて任意に可変設定できるようにしてもよい。
The roll timer 24 generates a roll clock signal RCL, and each clock pulse of this signal RCL is used to start the roll timer interrupt process of FIG. The clock generation cycle of the roll timer 24 is, for example, several tens.
Although it is set to [ms], it may be variably set according to the player's operation or an external signal.

トランケートタイマ26は、トランケート用クロック信号
KCLを発生するもので、この信号KCLの各クロックパルス
は第17図のトランケートタイマ割込処理を開始させるの
に使用される。トランケートタイマ26のクロック発生周
期は、一例として数10[ms]に設定される。
The truncate timer 26 is a clock signal for truncation.
KCL is generated, and each clock pulse of this signal KCL is used to start the truncate timer interrupt processing of FIG. The clock generation cycle of the truncate timer 26 is set to several tens [ms] as an example.

この実施例では、3つのタイマ22,24,26をそれぞれ独立
に設けたが、1つのタイマの出力を適宜分周して必要と
するクロック信号を得ることもできる。
In this embodiment, the three timers 22, 24 and 26 are provided independently of each other, but the output of one timer can be appropriately divided to obtain the required clock signal.

鍵盤用TG28は、鍵盤12から検出された押鍵情報に基づい
て押された鍵に対応する楽音信号KTSを発生するもので
ある。
The keyboard TG 28 is for generating a tone signal KTS corresponding to the pressed key based on the key pressing information detected from the keyboard 12.

リズム用TG30は、パッド操作子PDSの操作及び/又は選
択されたリズムパターンに基づいてリズム音信号RTSを
発生するものであり、詳しくは第2図について後述す
る。
The rhythm TG 30 generates a rhythm sound signal RTS based on the operation of the pad operator PDS and / or the selected rhythm pattern, which will be described later in detail with reference to FIG.

サウンドシステム32は、楽音信号KTS及びリズム音信号R
TSを音響に変換するためのものである。
The sound system 32 has a musical sound signal KTS and a rhythm sound signal R.
It is for converting TS into sound.

リズム用TG30の構成(第2図) 第2図は、リズム用TG30の一構成例を示すもので、この
例にあっては、8つのリズム音源チャンネルを時分割的
に駆動することにより最大で8種類のリズム音を同時発
音可能である。
Structure of Rhythm TG30 (Fig. 2) Fig. 2 shows an example of the structure of the TG30 for rhythm. In this example, by driving eight rhythm sound source channels in a time-divisional manner, the maximum can be obtained. Eight kinds of rhythm sounds can be pronounced simultaneously.

データバス10に接続されたレジスタ40,42,44,46のう
ち、40はチャンネルナンバ(CHナンバ)がストアされる
もの、42はリズム音種類を表わす楽器コードICODEがス
トアされるもの、44はエンベロープ波形データEVに関し
て示すようにエンベロープのアタックレベルに対応した
ボリューム値VLMがストアされるもの、46はリズム音の
発生開始を指示するキーオン情報KONがストアされるも
のである。これらのレジスタ40,42,44,46への情報転送
は、各リズム音種類毎に発音すべきタイミングで同時的
に行なわれる。
Of the registers 40, 42, 44, 46 connected to the data bus 10, 40 stores the channel number (CH number), 42 stores the instrument code ICODE indicating the rhythm tone type, and 44 represents As shown with respect to the envelope waveform data EV, the volume value VLM corresponding to the attack level of the envelope is stored, and 46 is the key-on information KON for instructing the start of rhythm sound generation. Information transfer to these registers 40, 42, 44, 46 is carried out simultaneously at the timing of sound generation for each rhythm sound type.

書込制御回路48は、ICODE記憶回路50に含まれている8
つの時分割チャンネルのうちレジスタ40からのCHナンバ
に対応したチャンネルにレジスタ42からの楽器コードIC
ODEを割当てるように書込制御を行なうもので、記憶回
路50は、割当てられた楽器コードを循環的に記憶し、割
当てに係るチャンネルのタイミングで送出するようにな
っている。
The write control circuit 48 is included in the ICODE storage circuit 50.
Instrument code IC from register 42 to the channel corresponding to the CH number from register 40 among the two time division channels
The write control is performed so that the ODEs are assigned, and the storage circuit 50 cyclically stores the assigned instrument chords and sends them at the timing of the channel related to the assignment.

書込制御回路52は、VLM記憶回路54に含まれている8つ
の時分割チャンネルのうちレジスタ40からのCHナンバに
対応したチャンネルにレジスタ44からのボリューム値VL
Mを割当てるように書込制御を行なうもので、記憶回路5
4は、割当てられたボリューム値を循環的に記憶し、割
当てに係るチャンネルのタイミングで送出するようにな
っている。
The write control circuit 52 outputs the volume value VL from the register 44 to the channel corresponding to the CH number from the register 40 among the eight time division channels included in the VLM storage circuit 54.
Write control is performed so that M is assigned.
The number 4 cyclically stores the assigned volume value and sends it at the timing of the channel related to the assignment.

書込制御回路56は、KON記憶回路58に含まれている8つ
の時分割チャンネルのうちレジスタ40からのCHナンバに
対応したチャンネルにレジスタ46からのキーオン情報KO
Nを割当てるように書込制御を行なうもので、記憶回路5
8は、割当てられたキーオン情報を循環的に記憶し、割
当てに係るチャンネルのタイミングでキーオンパルスKO
NPとして送出するようになっている。
The write control circuit 56 outputs the key-on information KO from the register 46 to the channel corresponding to the CH number from the register 40 among the eight time division channels included in the KON storage circuit 58.
Write control is performed so as to allocate N, and the memory circuit 5
8 cyclically stores the assigned key-on information, and at the timing of the channel related to the assignment, the key-on pulse KO
It is designed to be sent as NP.

アドレス発生器60は、8チャンネル分のアドレス情報を
時分割的に発生可能なもので、キーオンパルスKONPを受
取ると、KONPの割当チャンネルのタイミングでアドレス
情報を発生する。
The address generator 60 is capable of time-divisionally generating address information for eight channels, and when receiving the key-on pulse KONP, generates address information at the timing of the channel assigned to KONP.

リズム音波形メモリ62は、一例としてPCM(パルス符号
変調)録音方式により実際の打楽器から採取したリズム
音波形(立上り開始から減衰終了までのもの)を記憶し
たもので、このようなリズム音波形としてはパッド操作
子PDSで指定可能な32種類のリズム音それぞれに対応し
たものが記憶されている。
The rhythm sound waveform memory 62 stores, for example, rhythm sound waveforms (from the start of rising to the end of attenuation) collected from an actual percussion instrument by the PCM (pulse code modulation) recording method. Is stored for each of the 32 types of rhythm sounds that can be specified by the pad operator PDS.

波形メモリ62からは、各チャンネル毎に割当てに係る楽
器コードに対応したリズム音波形がアドレス発生器60か
らのアドレス情報に応じて読出される。例えば、第1チ
ャンネルにバスドラムが割当てられたものとすれば、第
1チャンネルのタイミングでバスドラム音波形が読出さ
れる。
From the waveform memory 62, the rhythm sound waveform corresponding to the musical instrument code assigned to each channel is read according to the address information from the address generator 60. For example, if a bass drum is assigned to the first channel, the bass drum sound waveform is read at the timing of the first channel.

エンベロープ発生器64は、各チャンネル毎に割当てに係
る楽器コードに対応するリズム音のためのエンベロープ
波形データEVをキーオンパルスKONPに応じて発生するも
ので、エンベロープ波形データEVの示すエンベロープに
おけるアタックレベルは記憶回路54からのボリューム値
VLMに応じて決定される。
The envelope generator 64 generates the envelope waveform data EV for the rhythm sound corresponding to the musical instrument chord associated with each channel in response to the key-on pulse KONP, and the attack level in the envelope indicated by the envelope waveform data EV is Volume value from storage circuit 54
Determined according to VLM.

波形メモリ62からのリズム音波形データWD及びエンベロ
ープ発生器64からのエンベロープ波形データEVは乗算器
66に供給され、各チャンネル毎に乗算される。そして、
乗算器66の乗算出力MO(ディジタル楽音信号)は、すで
に知られているようにアキュムレータ、D/A変換器等を
介してアナログ形式のリズム音信号RTSに変換されてか
ら、サウンドシステム32に供給される。
The rhythm sound waveform data WD from the waveform memory 62 and the envelope waveform data EV from the envelope generator 64 are multipliers.
It is supplied to 66 and is multiplied for each channel. And
The multiplication output MO (digital tone signal) of the multiplier 66 is supplied to the sound system 32 after being converted into an analog rhythm tone signal RTS via an accumulator, a D / A converter, etc. as already known. To be done.

上記したリズム用TG30によれば、8チャンネル分のリズ
ム音信号を同時に発生可能であると共に、各チャンネル
毎に楽器コードICODEによりリズム音種類を指定するこ
とで波形メモリ62の記憶波形に対応する種々のリズム音
信号を発生可能である。
According to the rhythm TG30 described above, rhythm sound signals for eight channels can be simultaneously generated, and various kinds of rhythm sound signals corresponding to the waveforms stored in the waveform memory 62 can be specified by designating the rhythm sound type by the instrument code ICODE for each channel. The rhythm sound signal of can be generated.

ROM18の記憶内容(第3図) 第3図は、ROM18の記憶内容を示すもので、このROM18に
は、(A)に示すようにリズムパターンメモリとして使
用される記憶部と、(B)に示すようにトランケート値
メモリとして使用される記憶部と、(C)に示すように
ボリューム値メモリとして使用される記憶部と、その他
音色パラメータ、効果パラメータ等の記憶部(図示せ
ず)とが含まれている。
Storage Content of ROM 18 (FIG. 3) FIG. 3 shows the storage content of the ROM 18. The ROM 18 has a storage section used as a rhythm pattern memory as shown in (A) and a storage section used in (B). A storage unit used as a truncate value memory as shown, a storage unit used as a volume value memory as shown in (C), and a storage unit (not shown) for storing other tone color parameters, effect parameters, etc. are included. Has been.

(A)のリズムパターンメモリにあっては、N種類のリ
ズム(リズム1〜リズムN)にそれぞれ対応するリズム
パターンを記憶した記憶ブロックRPMEM(1)〜RPMEM
(N)と、これらの記憶ブロックの記憶トラック数をそ
れぞれ記憶したトラック数記憶領域PTNNUM(1)〜PTNN
UM(N)とが設けられている。
In the rhythm pattern memory of (A), storage blocks RPMEM (1) to RPMEM storing rhythm patterns respectively corresponding to N types of rhythms (rhythm 1 to rhythm N).
(N) and track number storage areas PTNNUM (1) to PTNN storing the number of storage tracks of these storage blocks, respectively.
UM (N) is provided.

リズム1に対応する記憶ブロックRPMEM(1)には、16
個の記憶トラックが設けられており、各記憶トラック毎
に楽器コード記憶領域PICODEと、ロール指定情報記憶領
域PRLFLGと、タイミング情報記憶領域とが設けられてい
る。このような記憶トラック及び記憶領域の配置は他の
リズム2〜リズムNについても同様であるが、記憶トラ
ックの数は各リズム毎にそれに必要な数とされる。例え
ば、リズム1についてはトラック数が16(PTNNUM(1)
=16)であり、リズム2についてはトラック数が9(PT
NNUM(2)=9)であり、リズムNについてはトラック
数が3(PTNNUM(N)=3)である。
The memory block RPMEM (1) corresponding to rhythm 1 has 16
Individual storage tracks are provided, and an instrument code storage area PICODE, a roll designation information storage area PRLFLG, and a timing information storage area are provided for each storage track. The arrangement of such storage tracks and storage areas is the same for the other rhythms 2 to N, but the number of storage tracks is the number required for each rhythm. For example, for rhythm 1, the number of tracks is 16 (PTNNUM (1)
= 16), and for rhythm 2, the number of tracks is 9 (PT
NNUM (2) = 9), and for the rhythm N, the number of tracks is 3 (PTNNUM (N) = 3).

各楽器コード記憶領域PICODEには、リズム音種類を表わ
す楽器コードが記憶され、各ロール指定情報記憶領域PR
LFLGには、ロール指定の有り又は無しをそれぞれ表わす
ロール指定情報1又は0が記憶される。この場合、同一
のリズム音種類であってもロール指定の有るものと無い
ものとでは別々のリズム音種類として扱われる。例え
ば、単なるスネアドラムとスネアドラムロールとでは別
々の記憶トラックが与えられ、これらの記憶トラックに
おいてPICODEの楽器コードはスネアドラム用のもので同
じであるが、PRLFLGのロール指定情報は単なるスネアド
ラムでは0、スネアドラムロールでは1とされる。
Each instrument chord storage area PICODE stores an instrument chord representing a rhythm sound type, and each roll designation information storage area PR
In the LFLG, roll designation information 1 or 0 indicating whether or not there is a roll designation is stored. In this case, even the same rhythm sound type is treated as different rhythm sound types with and without roll designation. For example, separate storage tracks are given for a simple snare drum and a snare drum roll, and the instrument code of PICODE is the same for the snare drum in these storage tracks, but the roll designation information of PRLFLG is not for a simple snare drum. 0, and 1 for snare drum rolls.

各タイミング情報記憶領域には、テンポカウンタTPCTR
のカウント値0〜63(発音可能タイミング)にそれぞれ
対応した64個の記憶セルPTNが設けられており、発音要
のタイミングに対応する記憶セルには1が、発音不要の
タイミングに対応する記憶セルには0がそれぞれ記憶さ
れる。テンポカウンタTPCTRは、後述するようにRAM20に
属するもので、テンポクロック信号TCLを2小節毎に反
復的に計数するものである。従って、各タイミング情報
記憶領域の記憶情報は2小節分の発音制御パターンを表
わすものである。
Each timing information storage area has a tempo counter TPCTR.
64 storage cells PTN corresponding to the count values 0 to 63 (timing generation timing) of each are provided, and 1 is stored in the storage cells corresponding to the timing when the pronunciation is required, and storage cells corresponding to the timing when the pronunciation is not required. 0 is stored in each. The tempo counter TPCTR belongs to the RAM 20, as will be described later, and repeatedly counts the tempo clock signal TCL every two bars. Therefore, the stored information in each timing information storage area represents a sound emission control pattern for two measures.

第4図は、一例としてバスドラム、スネアドラム及びス
ネアドラムロールに関する1小節分のタイミングデータ
を示したものであり、これに続く1小節についても図示
したものと同じタイミングデータが記憶される。
FIG. 4 shows the timing data for one bar regarding the bass drum, snare drum, and snare drum roll as an example, and the same timing data as shown in the figure is stored for the following one bar.

第4図において、1拍内には8つの発音可能タイミング
(例えばTPCTRの値にして0〜7)があり、バスドラ
ム、スネアドラム、スネアドラムロールのいずれについ
ても各発音可能タイミング毎に1(発音要)又は0(発
音不要)の情報が配置される。1又は0から右方向に延
長する矢印は同じ情報が続くことを表わしている。
In FIG. 4, there are eight soundable timings (for example, a TPCTR value of 0 to 7) within one beat, and one (1) at each soundable timing for the bass drum, snare drum, and snare drum roll. Information of whether pronunciation is required or 0 (no pronunciation is required) is arranged. An arrow extending from 1 or 0 to the right indicates that the same information continues.

第4図のタイミングデータによれば、バスドラムは1拍
目の頭と、3拍目の頭で発音開始されると共に、スネア
ドラムは2拍目の頭と、4拍目の頭で発音開始される。
また、スネアドラムロールは1拍目の頭から2拍目の終
りまでの期間にわたってロール発音が指示され、この期
間に相当する期間中第16図のロールタイマ割込処理によ
りロール音が発生される。
According to the timing data of FIG. 4, the bass drum starts to sound at the first beat and the third beat, and the snare drum starts at the second beat and the fourth beat. To be done.
Further, the snare drum roll is instructed to roll sound over the period from the beginning of the first beat to the end of the second beat, and during the period corresponding to this period, the roll sound is generated by the roll timer interrupt processing of FIG. .

リズム1〜リズムNについては、予めリズムコード1〜
Nが定められており、RAM20内のリズムコードレジスタR
CODEには、選択されたリズム(例えばマーチ)に対応す
るリズムコードがセットされる。また、RAM20内のトラ
ックナンバレジスタTRNには、後述するようにトラック
ナンバがセットされる。従って、RCODE及びTRNを用いる
ことで特定のリズムに関する特定の記憶トラックを読出
指定することができる。
For rhythm 1 to rhythm N, rhythm code 1 to
N is defined and the rhythm code register R in RAM20
A rhythm code corresponding to the selected rhythm (for example, march) is set in CODE. A track number is set in the track number register TRN in the RAM 20 as described later. Therefore, by using RCODE and TRN, it is possible to read out and specify a specific storage track relating to a specific rhythm.

例えば、第3図(A)にリズム1について示すように、
RCODE=1、TRN=10とすれば、リズム1の記憶トラック
10を指定して記憶領域PICODE及びPRLFLGの情報を読出す
ことができ、さらにTPCTRを用いれば記憶セルPTNを指定
して1発音可能タイミング分の発音制御情報(1又は
0)を読出可能である。
For example, as shown for rhythm 1 in FIG.
If RCODE = 1 and TRN = 10, rhythm 1 memory track
It is possible to read out the information in the storage areas PICODE and PRLFLG by designating 10, and by using the TPCTR, it is possible to designate the storage cell PTN and read out the tone generation control information (1 or 0) for one tone generation timing. .

ところで、第3図(R)のトランケート値メモリにあっ
ては、パッド操作子PDSで指定可能な32種類のリズム音
(楽器1〜楽器32)にそれぞれ対応してトランケート値
が記憶される。各トランケート値は、対応するリズム音
種類の発音期間(特に減衰時間)を考慮して決定され、
この例では発音期間が長いほど大きな値となっている。
第3図(B)において、「楽器1」はバスドラム、「楽
器2」はスネアドラム、「楽器32」はコンガの例であ
る。この例では、トランケート値を、通常音とロール音
とで区別していないが、別々に記憶させるようにしても
よい。
By the way, in the truncate value memory of FIG. 3 (R), truncate values are stored respectively corresponding to 32 kinds of rhythm sounds (instrument 1 to instrument 32) which can be designated by the pad operator PDS. Each truncate value is determined in consideration of the pronunciation period (especially the decay time) of the corresponding rhythm sound type,
In this example, the longer the pronunciation period, the larger the value.
In FIG. 3 (B), "Musical instrument 1" is a bass drum, "Musical instrument 2" is a snare drum, and "Musical instrument 32" is a conga. In this example, the truncate value is not distinguished between the normal sound and the roll sound, but it may be stored separately.

第3図(C)のボリューム値メモリにあっては、上記し
たトランケート値メモリの場合と同様に楽器1〜楽器32
にそれぞれ対応してボリューム値VLMが記憶される。こ
の場合、各リズム音種類毎に通常音とロール音とで異な
るボリューム値が記憶され、ロール音のボリューム値は
通常音のそれに対して約半分の値とされる。これは、例
えば第4図に示したようにスネアドラムとスネアドラム
ロールが同時に発音されるような場合に同一音量で発音
させると、スネアドラム音がスネアドラムロール音でマ
スクされてひきたたなくなり、音楽的に好ましくないか
らである。
In the volume value memory of FIG. 3 (C), musical instruments 1 to 32 are used in the same manner as the above-mentioned truncated value memory.
The volume value VLM is stored corresponding to each of the. In this case, different volume values are stored for the normal sound and the roll sound for each rhythm sound type, and the volume value of the roll sound is about half the value of the normal sound. This is because, for example, when the snare drum and the snare drum roll are sounded at the same time, as shown in FIG. 4, when the sound is played at the same volume, the snare drum sound is masked by the snare drum roll sound, and it becomes messy. , Because it is not musically preferable.

RAM20の記憶内容(第5図) 第5図は、RAM20の記憶内容を示すもので、このRAM20に
は、(A)に示すようにリズムパターンプログラムメモ
リとして使用される記憶部と、(B)に示すようにチャ
ンネル割当用メモリとして使用される記憶部と、(C)
に示すようにワーキングメモリとして使用される記憶部
と、その他パネル操作子、発音割当等に関する記憶部
(図示せず)とが含まれている。
Storage Content of RAM 20 (FIG. 5) FIG. 5 shows the storage content of the RAM 20. In the RAM 20, as shown in (A), a storage section used as a rhythm pattern program memory and (B). A storage unit used as a memory for channel allocation as shown in FIG.
As shown in FIG. 3, a storage unit used as a working memory and a storage unit (not shown) for other panel operators, sound allocation, etc. are included.

(A)のリズムパターンプログラムメモリにあっては、
リズムコードMに対応するリズムパターンを記憶するた
めの記憶ブロックRPMEM(M)と、この記憶ブロックで
使用された記憶トラックの数を記憶するためのトラック
数記憶領域PTNNUM(M)とが設けられている。
In the rhythm pattern program memory of (A),
A storage block RPMEM (M) for storing a rhythm pattern corresponding to the rhythm code M and a track number storage area PTNNUM (M) for storing the number of storage tracks used in this storage block are provided. There is.

記憶ブロックRPMEM(M)には、16個の記憶トラックが
設けられており、各記憶トラック毎に楽器コード記憶領
域PICODEと、ロール指定情報記憶領域PRLFLGと、タイミ
ング情報記憶領域とが設けられている。これらの記憶領
域におけるデータフォーマットは、先に第3図(A)の
リズムパターンメモリに関して述べたのと同様である。
The storage block RPMEM (M) is provided with 16 storage tracks, and an instrument chord storage area PICODE, a roll designation information storage area PRLFLG, and a timing information storage area are provided for each storage track. . The data format in these storage areas is the same as that described above with respect to the rhythm pattern memory in FIG. 3 (A).

プログラムモード時にあっては、32個のパッド操作子PD
Sのうち任意のものを操作すると、まずトラック1の記
憶領域PICODEに、操作されたパッド操作子に対応するリ
ズム音種類を表わす楽器コードが書込まれる。このと
き、ロール指定操作子RLSを同時に操作したのであれば
トラック1の記憶領域PRLFLGには1が書込まれ、操作子
RLSを操作しなかったのであればPRLFLGには0が書込ま
れる。また、トラック1のタイミング情報記憶領域に
は、このときのTPCTRの値に対応する記憶セルPTNに1が
書込まれる。
32 pad controls PD in program mode
When any one of S is operated, first, a musical instrument code representing a rhythm sound type corresponding to the operated pad operator is written in the storage area PICODE of the track 1. At this time, if the roll specification operators RLS are simultaneously operated, 1 is written in the storage area PRLFLG of track 1 and the operators
If the RLS was not operated, 0 will be written in PRLFLG. In the timing information storage area of track 1, 1 is written in the storage cell PTN corresponding to the value of TPCTR at this time.

次に、別のパッド操作子を操作すると、トラック1につ
いて上記したと同様にしてトラック2の記憶領域PICOD
E、PRLFLG及びタイミング情報記憶領域にそれぞれ楽器
コード、ロール指定情報及びタイミング情報が書込まれ
る。
Next, when another pad operator is operated, the storage area PICOD of track 2 is recorded in the same manner as described above for track 1.
Instrument chords, roll designation information, and timing information are written in the E, PRLFLG, and timing information storage areas, respectively.

次に、最初に操作したのと同じパッド操作子を操作する
と、トラック1について上記したと同様にしてトラック
1の記憶領域PICODE、PRLFLG及びタイミング情報記憶領
域にそれぞれ楽器コード、ロール指定情報及びタイミン
グ情報が書込まれる。
Next, when the same pad operator that was operated first is operated, the instrument code, roll designation information, and timing information are respectively stored in the storage areas PICODE, PRLFLG and timing information storage area of track 1 in the same manner as described above for track 1. Is written.

このようにして、割当て済みのものとは別の新たなパッ
ド操作子が操作されるたびに新たなトラックを割当てる
ようにしてパターン書込みが行なわれ、例えば8種類の
リズム音でリズムパターンが完成したのであれば、トラ
ック1〜8にリズムパターンが記憶されると共に、記憶
領域PTNNUM(M)の値は最終的に8となる。
In this way, pattern writing is performed so that a new track is assigned each time a new pad operator other than the assigned one is operated, and a rhythm pattern is completed with, for example, eight types of rhythm sounds. If so, the rhythm pattern is stored in the tracks 1 to 8 and the value of the storage area PTNNUM (M) finally becomes 8.

プログラムモード時及びプレイモード時にあっては、例
えばトラック8について示すように、RCODE及びTRNを用
いて記憶領域PICODE及びPRLFLGを指定でき、さらにTPCT
Rを用いることで記憶セルPTNを指定できる。
In the program mode and the play mode, for example, as shown for the track 8, the storage areas PICODE and PRLFLG can be specified by using RCODE and TRN.
The memory cell PTN can be specified by using R.

ところで、第5図(B)のチャンネル割当用メモリにあ
っては、チャンネルCH1〜CH8にそれぞれ対応して8つの
楽器コードレジスタICODE(1)〜ICODE(8)と、8つ
のトランケートカウンタTCTR(1)〜TCTR(8)と、8
つのロールフラグRLFLG(1)〜RLFLG(8)と、8つの
ボリューム値レジスタVLM(1)〜VLM(8)とが設けら
れている。
By the way, in the memory for channel allocation shown in FIG. 5B, eight instrument code registers ICODE (1) to ICODE (8) and eight truncation counters TCTR (1) are associated with the channels CH1 to CH8, respectively. ) ~ TCTR (8) and 8
One roll flag RLFLG (1) to RLFLG (8) and eight volume value registers VLM (1) to VLM (8) are provided.

各楽器コードレジスタは、対応するチャンネルに関して
楽器コードがストアされるものである。各トランケート
カウンタは、対応するチャンネルに関して第3図(B)
のトランケート値メモリから読出されたトランケート値
がストアされるもので、ストアされたトランケート値は
第17図のトランケートタイマ割込処理により1ずつ減算
(ダウンカウント)される。各ロールフラグは、対応す
るチャンネルに関してロール指定情報がストアされるも
のである。各ボリューム値レジスタは、対応するチャン
ネルに関して第3図(C)のボリューム値メモリから読
出されたボリューム値VLMがストアされるものである。
Each instrument code register stores an instrument code for the corresponding channel. Each truncate counter has a corresponding channel in FIG. 3 (B).
The truncate value read from the truncate value memory is stored, and the stored truncate value is decremented (down-counted) by 1 by the truncate timer interrupt processing of FIG. Each roll flag stores roll designation information regarding the corresponding channel. Each volume value register stores the volume value VLM read from the volume value memory of FIG. 3 (C) for the corresponding channel.

第5図(C)のワーキングメモリにあっては、次のよう
なレジスタ類が設けられている。
The working memory shown in FIG. 5C has the following registers.

(1)リズムコードレジスタRCODE…これは、操作され
たリズム選択操作子RSSに対応するリズムコード(1〜
N、Mのいずれか)がストアされるものである。
(1) Rhythm code register RCODE ... This is the rhythm code (1 to 1 corresponding to the operated rhythm selection operator RSS.
Either N or M) is stored.

(2)パッドコードレジスタPDCODE…これは、操作され
たパッド操作子PDSに対応するリズム音種類を表わす楽
器コード(1〜32のいずれか)がストアされるものであ
る。
(2) Pad code register PDCODE ... This stores the instrument code (any one of 1 to 32) representing the rhythm sound type corresponding to the operated pad operator PDS.

(3)テンポカウンタTPCTR…これは、テンポクロック
信号TCLを2小節毎に反復的に計数するもので、2小節
内で0〜63のカウント値をとり、64になるタイミングで
0にリセットされる。
(3) Tempo counter TPCTR ... This counts the tempo clock signal TCL repeatedly every two measures, takes a count value of 0 to 63 within two measures, and is reset to 0 at the timing of 64. .

(4)プログラムモードフラグPRGFLG…これは、1なら
ばプログラムモードを、0ならばプレイモードをそれぞ
れ表わすものである。
(4) Program mode flag PRGFLG ... This indicates a program mode if 1 and a play mode if 0.

(5)スタートフラグSTART…これは、1ならばリズム
走行を、0ならばリズム停止をそれぞれ表わすものであ
る。
(5) Start flag START This indicates a rhythm running when 1 and a rhythm stop when 0.

(6)ロール指定情報レジスタRLSW…これは、ロール指
定操作子RLSが操作中であれば、1が、操作中でなけれ
ば0がそれぞれセットされるものである。
(6) Roll designation information register RLSW ... This is set to 1 when the roll designation operator RLS is in operation, and to 0 when it is not in operation.

(7)トラックナンバレジスタTRN…これは、トラック
ナンバ(1〜16のいずれか)がストアされるものであ
る。
(7) Track number register TRN ... This is for storing the track number (any one of 1 to 16).

(8)割当チャンネルナンバレジスタACH…これは、楽
器コードを割当てるべきチャンネルに対応するチャンネ
ルナンバがストアされるものである。
(8) Assigned channel number register ACH ... This stores the channel number corresponding to the channel to which the instrument code is to be assigned.

(9)チャンネルナンバレジスタCHN…これは、チャン
ネルナンバ(1〜8のいずれか)がストアされるもので
ある。
(9) Channel number register CHN ... This stores the channel number (any one of 1 to 8).

(10)テンポカウント値レジスタDTPCTR…これは、前回
のテンポクロック割込時におけるテンポカウント値(TP
CTRの値から1を差引いた値)がセットされるものであ
る。
(10) Tempo count value register DTPCTR ... This is the tempo count value (TP
The value obtained by subtracting 1 from the CTR value) is set.

リズム演奏関係のパネル操作(第1図) ここで、第6図以降の各種処理を説明するに先立って、
リズム演奏関係のパネル操作の概要を述べる。
Rhythm performance related panel operation (FIG. 1) Here, prior to explaining various processes after FIG. 6,
The outline of panel operation related to rhythm performance is described.

リズムパターンをプログラムしたいときは、プログラム
モード指定操作子PMSを操作してプログラムモードを選
択する(表示素子PLD点灯)。そして、リズム選択操作
子RSSのうちリズムコードMに対応するものをオン操作
して、記憶ブロックRPMEM(M)への書込を可能とす
る。さらに、所望によりテンポ調整操作子TMNによりテ
ンポを設定する。この後、スタート/ストップ操作子SP
Sによりスタートを指令すると、設定テンポに従って表
示素子TLDが点灯するので、その表示テンポに合わせて
パッド操作子PDSのうちの1つを何回か操作して特定の
リズム音種類(例えばバスドラム)に関するタイミング
情報をリアルタイムで入力する。このとき、入力操作の
たびに入力に係るリズム音(マニアルリズム音)が発生
される。
To program a rhythm pattern, select the program mode by operating the program mode specification operator PMS (display element PLD lit). Then, one of the rhythm selection operators RSS corresponding to the rhythm code M is turned on to enable writing to the storage block RPMEM (M). Further, if desired, the tempo is set by the tempo adjustment operator TMN. After this, start / stop operator SP
When the start command is issued by S, the display element TLD lights up according to the set tempo, so one of the pad operators PDS is operated several times according to the display tempo, and a specific rhythm sound type (for example, bass drum) Enter timing information about in real time. At this time, a rhythm sound (manual rhythm sound) related to the input is generated each time the input operation is performed.

このような入力が一通り終ったら、他のリズム音種類
(例えばスネアドラム)について同様にして入力操作を
行なう。このとき、先に入力されているタイミング情報
に基づいてオートリズム音が発生されると共に入力中の
マニアルリズム音も発生される。以下同様にして必要数
のリズム音種類について入力操作を行なうことによりリ
ズムコードMに対応するリズムパターンを完成させるこ
とができ、入力を完了したら、スタート/ストップ操作
子SPSによりストップを指令する。
When such input is completed, input operation is similarly performed for other rhythm sound types (for example, snare drum). At this time, the auto rhythm sound is generated based on the timing information that has been previously input, and the manual rhythm sound being input is also generated. In the same manner, the rhythm pattern corresponding to the rhythm code M can be completed by performing the input operation for the required number of rhythm sound types, and when the input is completed, the stop command is issued by the start / stop operator SPS.

一方、所望のリズムパターンに基づいて自動リズム演奏
を行なわせたいときは、プログラムモード指定操作子PM
Sによりプレイモードを選択する(表示素子PLD消灯)。
そして、リズム選択操作子RSSのうち所望のリズムに対
応するもの(リズムコード1〜N、Mのいずれか)をオ
ン操作する。さらに、所望によりテンポ調整操作子TMN
によりテンポを設定した後、スタート/ストップ操作子
SPSによりスタートを指令する。すると、設定テンポに
従って表示素子TLDが点灯すると共に、選択されたリズ
ムパターンに従ってオートリズム音が発生される。
On the other hand, if you want to perform an automatic rhythm performance based on a desired rhythm pattern, program mode designating element PM
The play mode is selected by S (display element PLD off).
Then, one of the rhythm selection operators RSS corresponding to a desired rhythm (one of rhythm codes 1 to N and M) is turned on. In addition, if desired, tempo adjustment operator TMN
After setting the tempo with, start / stop operator
Command start by SPS. Then, the display element TLD is turned on according to the set tempo, and the autorhythm sound is generated according to the selected rhythm pattern.

このようなオートリズム音の発生中には、それを伴奏と
して鍵盤12でマニアル演奏を行なえる一方、所望により
パッド操作子PDSを操作することでマニアルリズム音を
発生させることもできる。
While such an autorhythm sound is being generated, a manual performance can be performed on the keyboard 12 as an accompaniment, while a manual rhythm sound can be generated by operating the pad operator PDS as desired.

メインルーチン(第6図) 第6図は、メインルーチンの処理の流れを示すもので、
このルーチンは電源投入等に応じてスタートする。
Main Routine (FIG. 6) FIG. 6 shows the flow of processing of the main routine.
This routine starts when the power is turned on.

まず、ステップ70では、各種レジスタを初期セットす
る。例えば、START、PRGFLG、TPCTR等には0をセットす
る。
First, in step 70, various registers are initially set. For example, 0 is set to START, PRGFLG, TPCTR, etc.

次に、ステップ72では、押鍵検出・発音割当処理を行な
う。これは、鍵盤12から押鍵情報を検出して鍵盤用TG28
の適宜のチャンネルに割当てることにより押された鍵に
対応する楽音信号KTSを発生させるもので、これにより
押鍵操作に応じたマニアル演奏音発生が可能となる。ス
テップ72の後は、ステップ74に移る。
Next, at step 72, key depression detection / sound generation assignment processing is performed. This is the TG28 for the keyboard that detects key depression information from the keyboard 12.
The musical tone signal KTS corresponding to the depressed key is generated by allocating the channel to the appropriate channel, thereby enabling the generation of the manual performance sound in response to the key depression operation. After step 72, the process moves to step 74.

ステップ74では、第7図について後述するようにリズム
選択のサブルーチンを実行する。そして、ステップ76に
移り、第8図について後述するようにモード選択のサブ
ルーチンを実行する。この後、ステップ78に移り、第9
図について後述するようにスタート/ストップのサブル
ーチンを実行する。ステップ78の後は、ステップ80に移
る。
In step 74, a rhythm selection subroutine is executed as described later with reference to FIG. Then, the routine proceeds to step 76, where a mode selection subroutine is executed as described later with reference to FIG. After this, move to step 78, the ninth
A start / stop subroutine is executed as described later with reference to the drawing. After step 78, the process proceeds to step 80.

ステップ80では、テンポ制御処理を行なう。すなわち、
テンポ調整操作子TMNによる設定テンポに対応したテン
ポデータTDをテンポタイマ22を送出することによりテン
ポデータTDに応じてテンポクロック信号TCLの周波数を
設定する。そして、ステップ82に移る。
In step 80, tempo control processing is performed. That is,
The frequency of the tempo clock signal TCL is set according to the tempo data TD by transmitting the tempo data TD corresponding to the tempo set by the tempo adjustment operator TMN to the tempo timer 22. Then, the process proceeds to step 82.

ステップ82では、第10図について後述するようにパッド
操作のサブルーチンを実行する。そして、ステップ84に
移る。
In step 82, a pad operation subroutine is executed as described later with reference to FIG. Then, the process proceeds to step 84.

ステップ84では、その他のパネル操作子(例えば音色、
効果等に関するもの)の処理を行なう。この後は、ステ
ップ72に戻り、上記のような処理を繰返す。
In step 84, other panel controls (for example, timbre,
Processing related to effects etc.). After that, the process returns to step 72 and the above-mentioned processing is repeated.

リズム選択のサブルーチン(第7図) 第7図は、リズム選択のサブルーチンを示すものであ
る。
Rhythm Selection Subroutine (FIG. 7) FIG. 7 shows a rhythm selection subroutine.

リズム選択操作子RSSのいずれかにオンイベントが生ず
ると、ステップ90において、操作されたリズム選択操作
子に対応するリズムコードをRCODEにセットする。そし
て、ステップ92に移る。
When an on event occurs in any of the rhythm selection operators RSS, in step 90, the rhythm code corresponding to the operated rhythm selection operator is set in RCODE. Then, the process proceeds to step 92.

ステップ92では、操作されたリズム選択操作子に対応す
る表示素子LDを点灯させ、他の表示素子LDを消灯させ
る。この後は、第6図のルーチンにリターンする。な
お、第7図以降に示される「RET」はリターンを意味す
る。
In step 92, the display element LD corresponding to the operated rhythm selection operator is turned on and the other display elements LD are turned off. After that, the process returns to the routine of FIG. Note that “RET” shown in FIG. 7 and subsequent figures means return.

モード選択のサブルーチン(第8図) 第8図は、モード選択のサブルーチンを示すものであ
る。
Mode Selection Subroutine (FIG. 8) FIG. 8 shows a mode selection subroutine.

プログラムモード指定操作子PMSにオンイベントが生ず
ると、ステップ100において、PRGFLGの内容を反転させ
る。すなわち、PRGFLGの値が0であったときは1にし、
1であったときは0にする。そして、ステップ102に移
る。
When an on event occurs in the program mode designating operator PMS, in step 100, the contents of PRGFLG are inverted. That is, if the value of PRGFLG was 0, set it to 1,
If it was 1, set it to 0. Then, the process proceeds to step 102.

ステップ102では、PRGFLGの値が1か(プログラムモー
ドか)判定する。そして、この判定結果が肯定的(Y)
であればステップ104に移る。
In step 102, it is determined whether the value of PRGFLG is 1 (program mode). And this judgment result is affirmative (Y)
If so, the process proceeds to step 104.

ステップ104では、記憶ブロックRPMEM(M)の内容をす
べてクリアすると共に、記憶領域PTNNUM(M)もクリア
する。そして、ステップ106に移り、第5図(B)のチ
ャンネル割当用メモリの内容をすべてクリアする。この
後、ステップ108では、RCODEにリズムコードMをセット
する。これらの処理は、新たなリズムパターンの書込み
を可能にするためのものである。ステップ108の後は、
ステップ110に移る。
In step 104, the contents of the storage block RPMEM (M) are all cleared and the storage area PTNNUM (M) is also cleared. Then, the process proceeds to step 106 to clear all the contents of the channel allocation memory of FIG. 5 (B). Thereafter, in step 108, the rhythm code M is set in RCODE. These processes are for enabling writing of a new rhythm pattern. After step 108,
Move to step 110.

ステップ110では、表示素子RLDを点灯し、プログラムモ
ードであることを表示させる。この後は、第6図のルー
チンにリターンする。
In step 110, the display element RLD is turned on to display that it is in the program mode. After that, the process returns to the routine of FIG.

ステップ102の判定結果が否定的(N)であったとき
は、プレイモードであり、ステップ112で表示素子PLDを
消灯してから第6図のルーチンにリターンする。
If the determination result in step 102 is negative (N), the mode is the play mode, and the display element PLD is turned off in step 112, and then the process returns to the routine in FIG.

スタート/ストップのサブルーチン(第9図) 第9図は、スタート/ストップのサブルーチンを示すも
のである。
Start / Stop Subroutine (FIG. 9) FIG. 9 shows a start / stop subroutine.

スタート/ストップ操作子SPSにオンイベントが生ずる
と、ステップ120において、STARTの内容を反転させる。
すなわち、STARTの値が0であったときは1にし、0で
あったときは1にする。そして、ステップ122に移る。
When an on event occurs in the start / stop operator SPS, the contents of START are inverted in step 120.
That is, when the value of START is 0, it is set to 1, and when it is 0, it is set to 1. Then, the process proceeds to step 122.

ステップ122では、STARTの値が1か(スタートか)判定
する。そして、この判定結果が肯定的(Y)であればス
テップ124に移り、TPCTRに0をセットする。これは、リ
ズムスタート時にリズムパターンを第1小節の頭から読
出すのを可能にするためである。
In step 122, it is determined whether the START value is 1 (start). Then, if this determination result is affirmative (Y), the routine proceeds to step 124, where TPCTR is set to 0. This is to allow the rhythm pattern to be read from the beginning of the first measure at the start of the rhythm.

ステップ124の処理が終ったとき又はステップ122の判定
結果が否定的(N)であったとき(ストップであったと
き)は、第6図のルーチンにリターンする。
When the processing of step 124 is completed or when the determination result of step 122 is negative (N) (when it is stop), the routine returns to the routine of FIG.

パッド操作のサブルーチン(第10図) 第10図は、パッド操作のサブルーチンを示すものであ
る。
Pad Operation Subroutine (FIG. 10) FIG. 10 shows a pad operation subroutine.

パッド操作子PDSのいずれかにオンイベントが生ずる
と、ステップ130において、PRGFLGの値が1か(プログ
ラムモードか)判定する。この判定結果が否定的(N)
であれば、プレイモードであり、第6図のルーチンにリ
ターンする。また、ステップ130の判定結果が肯定的
(Y)であれば、プログラムモードであり、ステップ13
2に移る。
When an on event occurs in any of the pad operators PDS, it is determined in step 130 whether the value of PRGFLG is 1 (program mode). This judgment result is negative (N)
If so, it is the play mode, and the process returns to the routine of FIG. If the determination result of step 130 is affirmative (Y), the program mode is set, and step 13
Move on to 2.

ステップ132では、操作されたパッド操作子に対応する
リズム音種類を表わす楽器コードをPDCODEにセットす
る。そして、ステップ134に移る。
In step 132, the instrument code indicating the rhythm sound type corresponding to the operated pad operator is set in PDCODE. Then, the process proceeds to step 134.

ステップ134では、ロール指定操作子RLSがオン中か判定
し、この判定結果が肯定的(Y)であればステップ136
でRLSWに1をセットし、否定的(N)であればステップ
138でRLSWに0をセットする。ステップ136又はステップ
138の後は、ステップ140に移る。
In step 134, it is determined whether the role designation operator RLS is on, and if this determination result is affirmative (Y), step 136
RLSW is set to 1, and if negative (N), step
At 138, RLSW is set to 0. Step 136 or step
After 138, the process proceeds to step 140.

ステップ140では、TRNに0をセットする。そして、ステ
ップ142に移り、TRNの値を1アップする。ステップ142
の後は、ステップ144に移る。
In step 140, TRN is set to 0. Then, the process proceeds to step 142 and the value of TRN is incremented by 1. Step 142
After that, the process proceeds to step 144.

ステップ144では、RCODEのリズムコードM及びTRNのト
ラックナンバによって指定される記憶領域PICODE(M、
TRN)の楽器コードとPDCODEの楽器コードとが等しく且
つリズムコードM及びTRNのトラックナンバによって指
定される記憶領域PRLFLG(M、TRN)のロール指定情報
とRLSWのロール指定情報とが等しいか(今回の操作で指
定されたリズム音種類がM及びTRN対応のトラックに割
当て済みか)判定する。例えば、プログラムモードを指
定した後最初に所望のパッド操作子を操作したときは、
PICODE(M、1)の値は0であるので、ステップ144の
判定結果は否定的(N)となり、ステップ146に移る。
At step 144, the storage area PICODE (M, M specified by the rhythm code M of RCODE and the track number of TRN is specified.
(TRN) is equal to the PDCODE instrument chord, and the roll designation information of the storage area PRLFLG (M, TRN) designated by the rhythm code M and the TRN track number is equal to the roll designation information of the RLSW (this time. It is determined whether the rhythm sound type specified by the operation of is already assigned to the tracks corresponding to M and TRN. For example, when you first operate the desired pad operator after specifying the program mode,
Since the value of PICODE (M, 1) is 0, the determination result of step 144 is negative (N), and the process proceeds to step 146.

ステップ146では、TRNの値がリズムコードMによって指
定される記憶領域PTNNUM(M)の値(現在までの使用ト
ラック数)より大か判定する。最初のパッド操作時にあ
っては、PTNNUM(M)の値が第8図のステップ104で0
にされており且つTRN=1であるので、ステップ146の判
定結果が肯定的(Y)となり、ステップ148に移る。
In step 146, it is determined whether the value of TRN is larger than the value of the storage area PTNNUM (M) designated by the rhythm code M (the number of used tracks up to the present). At the time of the first pad operation, the value of PTNNUM (M) is 0 in step 104 of FIG.
And TRN = 1, the determination result of step 146 becomes affirmative (Y), and the process proceeds to step 148.

ステップ148では、TRNの値が使用可能な最大トラック数
16より大か判定する。この判定結果が肯定的(Y)であ
れば書込不能であるので、第6図のルーチンにリターン
する。
In step 148, the TRN value is the maximum number of tracks available
Determine if it is greater than 16. If the result of this determination is affirmative (Y), it means that writing is not possible, and the routine returns to FIG.

ステップ148の判定結果が否定的(N)であったとき
は、書込可能であるので、ステップ150に移る。
If the determination result of step 148 is negative (N), it means that the data is writable, and the process proceeds to step 150.

このステップ150では、PDCODEの楽器コードをPICODE
(M、TRN)に、RLSWのロール指定情報をPRLFLG(M、T
RN)に、TRNのチャンネルナンバをPTNNUM(M)にそれ
ぞれ書込む。そして、ステップ152に移る。
In this step 150, the instrument code of PDCODE is changed to PICODE.
(M, TRN) with PRLFLG (M, T)
Write the channel number of TRN to PTNNUM (M). Then, the process proceeds to step 152.

ステップ152では、リズムコードM、TRNのチャンネルナ
ンバ及びTPCTRのカウント値によって指定される記憶セ
ルPTN(M、TRN、TPCTR)に1を書込む。なお、TPCTR
は、第13図について後述するようにプレイモード中のみ
ならずプログラムモード中も計数動作を行なうようにな
っている。
In step 152, 1 is written in the memory cell PTN (M, TRN, TPCTR) designated by the channel number of the rhythm code M, TRN and the count value of TPCTR. In addition, TPCTR
As described later with reference to FIG. 13, the counting operation is performed not only during the play mode but also during the program mode.

ところで、前述例のように最初のパッド操作子を操作し
た後、2回目のパッド操作を行なったものとすると、こ
のとき操作されたパッド操作子が最初のものと同じであ
ればステップ144の判定結果が肯定的(Y)となり、ス
テップ152に移る。そして、ステップ152では、前回と同
じTRN=1のトラックに前回と同様にしてタイミング情
報が書込まれる。
By the way, if the second pad operation is performed after operating the first pad operator as in the above example, if the operated pad operator is the same as the first one, the determination in step 144 is made. The result is positive (Y), and the process moves to step 152. Then, in step 152, timing information is written in the same TRN = 1 track as in the previous time in the same manner as in the previous time.

この場合、最初のものと異なるパッド操作子が操作され
るか又は最初のものと同じパッド操作子及びロール指定
操作子が同時に操作されたものとすると、ステップ144
の判定結果が否定的(N)となり、ステップ146に移
る。
In this case, assuming that a pad operator different from the first one is operated, or the same pad operator and roll designation operator as the first one are operated at the same time, step 144
Is negative (N), the process proceeds to step 146.

ステップ146では、TRN=1、PTNNUM(M)=1であるの
で、判定結果が否定的(N)となり、ステップ142に戻
る。そして、ステップ142でTRNを2にしてからステップ
144に移る。
In step 146, TRN = 1 and PTNNUM (M) = 1, so the determination result is negative (N), and the process returns to step 142. Then, in step 142, set TRN to 2 and then step
Move on to 144.

ステップ144では、トラック2の記憶領域PICODE(M、
2)及びPRLFLG(M、2)の情報がいずれも0(未割
当)であるので、判定結果が否定的(N)となり、ステ
ップ146に移る。
At step 144, the storage area PICODE (M,
Since the information of 2) and PRLFLG (M, 2) are both 0 (unallocated), the determination result is negative (N), and the process proceeds to step 146.

ステップ146では、TRN=2、PTNNUM(M)=1であるの
で、判定結果が肯定的(Y)となり、ステップ148を介
してステップ150に移る。
In step 146, since TRN = 2 and PTNNUM (M) = 1, the determination result is affirmative (Y), and the process proceeds to step 150 via step 148.

ステップ150では、前回と異なるTRN=2のトラックに前
回と同様にして楽器コード及びロール指定情報が書込ま
れると共にPTNNUM(M)に2が書込まれる。この後、ス
テップ152では、TRN=2のトラックに前回と同様にして
タイミング情報が書込まれる。
In step 150, the musical instrument chord and roll designation information are written in the same TRN = 2 track as in the previous time, and 2 is written in PTNNUM (M) in the same manner as the previous time. After that, in step 152, timing information is written in the TRN = 2 track in the same manner as the previous time.

さらに別の例として、何回かのパッド操作によりPTNNUM
(M)が5である場合に新たなパッド操作に応じて第10
図のルーチンに入り、ステップ146にきたときは、TRN=
1、PTNNUM(M)=5であるので、ステップ146の判定
結果が否定的(N)となり、ステップ142に戻る。そし
て、ステップ142以下の処理を上記したと同様に行な
う。
As yet another example, PTNNUM can be obtained by several pad operations.
If (M) is 5, the tenth operation is performed in response to a new pad operation.
When the routine shown in the figure is entered and step 146 is reached, TRN =
Since 1 and PTNNUM (M) = 5, the determination result of step 146 becomes negative (N), and the process returns to step 142. Then, the processes after step 142 are performed in the same manner as described above.

このようにして、TRN=5まで調べても割当て済みのト
ラックがなければ、ステップ142でTRNが6になった後ス
テップ144の判定結果が否定的(N)となる。これは、
トラック6に何の楽器コードも割当てられていない(PI
CODE(M、6)=0である)からである。
In this way, if there is no assigned track even after checking TRN = 5, the judgment result of step 144 becomes negative (N) after TRN becomes 6 in step 142. this is,
No instrument chord is assigned to track 6 (PI
CODE (M, 6) = 0).

この後、ステップ146では、TRN=6、PTNNUM(M)=5
であるので、判定結果が肯定的(Y)となり、ステップ
148を介してステップ150に移る。そして、ステップ150
及びステップ152では、TRN=6に関する書込処理が上記
したと同様に行なわれる。
After that, in step 146, TRN = 6, PTNNUM (M) = 5
Therefore, the determination result is affirmative (Y), and the step
Go to step 150 via 148. And step 150
Then, at step 152, the writing process for TRN = 6 is performed in the same manner as described above.

また、上記のようにTRN=2,3,4,5の順に順次に調べてい
く過程で、今回のパッド操作に係るリズム音種類がいず
れかのトラックに割当て済みであることが判明すれば、
その時点でステップ144からステップ152に移り、このと
きのTRNのトラックナンバに関してタイミング情報の書
込処理が行なわれる。例えば、TRN=4のトラックが割
当て済みのトラックと判明すれば、その時点でステップ
144からステップ152に移り、TRN=4に関してタイミン
グ情報の書込処理が行なわれる。この場合、さらにTRN
=5のトラックについては調べない。
In the process of sequentially checking TRN = 2, 3, 4, and 5 as described above, if it is found that the rhythm sound type related to the pad operation this time has already been assigned to any track,
At that time, the routine proceeds from step 144 to step 152, and the timing information write processing is performed for the TRN track number at this time. For example, if the track with TRN = 4 is found to be the assigned track, step at that time.
The routine proceeds from 144 to step 152, where timing information is written for TRN = 4. In this case, TRN
= 5 is not checked.

上記したステップ132〜152の処理によれば、リズム音種
類が指定されるたびに、該リズム音種類がいずれかのト
ラックに割当て済みか判定され、割当て済みのトラック
があればそのトラックに該リズム音種類に関連したタイ
ミング情報が書込まれる一方、割当て済みのトラックが
なければ未割当のトラックの1つに該リズム音種類が割
当てられると共に該リズム音種類に関連したタイミング
情報が書込まれる。そして、このような処理が繰返され
ることにより、第5図(A)のリズムパターンプログラ
ムメモリへの所望のリズムパターンの書込みが可能とな
る。
According to the processing of steps 132 to 152 described above, each time the rhythm sound type is designated, it is determined whether the rhythm sound type is assigned to any track, and if there is an assigned track, the rhythm sound is assigned to that track. While the timing information related to the tone type is written, if there is no assigned track, the rhythm tone type is assigned to one of the unassigned tracks and the timing information associated with the rhythm tone type is written. Then, by repeating such processing, it becomes possible to write a desired rhythm pattern to the rhythm pattern program memory of FIG. 5 (A).

ステップ152の後は、ステップ154に移り、第11図につい
て後述するように割当チャンネル(CH)検出のサブルー
チンを実行する。このサブルーチンでは、楽器コードを
割当てるべきチャンネルが検出され、そのチャンネルに
対応するチャンネルナンバがACHにセットされる。そし
て、ステップ156に移る。
After step 152, the routine proceeds to step 154, where a sub-channel (CH) detection subroutine is executed as described later with reference to FIG. In this subroutine, the channel to which the instrument chord should be assigned is detected, and the channel number corresponding to that channel is set to ACH. Then, the process proceeds to step 156.

ステップ156では、ACHのチャンネルナンバに対応するレ
ジスタICODE(ACH)にPICODE(M、TRN)の楽器コード
をセットすると共に、ACHのチャンネルナンバに対応す
るフラグRLFLG(ACH)にPRLFLG(M、TRN)のロール指
定情報をセットする。この結果、ステップ154で検出し
たチャンネルには、指定されたリズム音種類が割当てら
れたことになる。RLFLG(ACH)に1がセットされたとき
は、第16図のロールタイマ割込処理により自動的にロー
ル音発生が行なわれる。ステップ156の後は、ステップ1
58に移る。
In step 156, the instrument code of PICODE (M, TRN) is set in the register ICODE (ACH) corresponding to the channel number of ACH, and PRLFLG (M, TRN) is set in the flag RLFLG (ACH) corresponding to the channel number of ACH. Set the role specification information of. As a result, the specified rhythm sound type is assigned to the channel detected in step 154. When RLFLG (ACH) is set to 1, the roll sound is automatically generated by the roll timer interrupt processing shown in FIG. After step 156, step 1
Go to 58.

ステップ158では、第3図(B)のトランケート値メモ
リからICODE(ACH)の楽器コードに対応するトランケー
ト値を読出し、ACHのチャンネルナンバに対応するカウ
ンタTCTR(ACH)にセットする。このTCTR(ACH)のトラ
ンケート値は、第17図のトランケートタイマ割込処理に
より以後1ずつ減算される。
In step 158, the truncate value corresponding to the instrument code of ICODE (ACH) is read from the truncate value memory of FIG. 3B and set in the counter TCTR (ACH) corresponding to the channel number of ACH. The TCTR (ACH) truncate value is subsequently decremented by 1 by the truncate timer interrupt processing of FIG.

次に、ステップ160では、第3図(C)のボリューム値
メモリからICODE(ACH)の楽器コードとRLFLG(ACH)の
ロール指定情報とに対応するボリューム値VLMを読出
し、ACHのチャンネルナンバに対応するレジスタVLM(AC
H)にセットする。
Next, at step 160, the volume value VLM corresponding to the instrument code of ICODE (ACH) and the roll designation information of RLFLG (ACH) is read from the volume value memory of FIG. 3 (C) and corresponds to the channel number of ACH. Register VLM (AC
H).

この後、ステップ162では、リズム用TG30のレジスタ40,
42,44,46に対して、ACHのチャンネルナンバ、ICODE(AC
H)の楽器コード、VLM(ACH)のボリューム値、キーオ
ン情報KONをそれぞれ送出する。このため、リズム用TG3
0にあっては、ACHのチャンネルナンバに対応するチャン
ネルからICODE(ACH)の楽器コードの示すリズム音種類
に対応したリズム音信号がVLM(ACH)のボリューム値に
対応したアタックレベルで発生される。ステップ162の
後は、第6図のルーチンにリターンする。
After this, in step 162, the register 40,
For 42,44,46, the channel number of ACH, ICODE (AC
H) instrument code, VLM (ACH) volume value, and key-on information KON. For this reason, TG3 for rhythm
With 0, a rhythm sound signal corresponding to the rhythm sound type indicated by the ICODE (ACH) instrument code is generated from the channel corresponding to the ACH channel number at the attack level corresponding to the VLM (ACH) volume value. . After step 162, the routine returns to the routine shown in FIG.

上記したステップ154〜162の処理によれば、リズム音種
類が指定されるたびに該リズム音種類を適宜のチャンネ
ルに割当てることによって該リズム音種類に対応したリ
ズム音が発生され、プログラムモード時のマニアルリズ
ム演奏が可能となる。従って、演奏者は、自己の演奏す
るマニアルリズム音を聴きながら所望のリズムパターン
をプログラムすることができる。
According to the processing of steps 154 to 162 described above, a rhythm sound corresponding to the rhythm sound type is generated by assigning the rhythm sound type to an appropriate channel each time the rhythm sound type is designated. Manual rhythm performance is possible. Therefore, the performer can program a desired rhythm pattern while listening to the manual rhythm sound played by the performer.

割当チャンネル検出のサブルーチン(第11図) 第11図は、割当チャンネル検出のサブルーチンを示すも
のである。
Assigned channel detection subroutine (FIG. 11) FIG. 11 shows an assigned channel detection subroutine.

ステップ170では、割当要求に係るリズム音種類がチャ
ンネル1(CH1)〜チャンネル8(CH8)のいずれかに割
当て済みか判定する。すなわち、RCODEのリズムコード
及びTRNのトラックナンバによって指定される記憶領域P
ICODE(RCODE、TRN)の楽器コードとチャンネルナンバ
X(1〜8のいずれか)に対応するレジスタICODE
(X)の楽器コードとが一致し且つRCODEのリズムコー
ド及びTRNのトラックナンバにより指定される記憶領域P
RLFLG(RCODE、TRN)のロール指定情報とチャンネルナ
ンバXに対応するフラグRLFLG(X)のロール指定情報
とが一致するようなチャンネルXがあるか判定する。そ
して、この判定の結果が否定的(N)であれば、ステッ
プ172に移り、肯定的(Y)であればステップ174に移
る。
In step 170, it is determined whether the rhythm sound type relating to the allocation request has been allocated to any of channel 1 (CH1) to channel 8 (CH8). That is, the storage area P specified by the rhythm code of RCODE and the track number of TRN
Register ICODE corresponding to instrument code of ICODE (RCODE, TRN) and channel number X (one of 1 to 8)
Storage area P that matches the musical instrument chord of (X) and is specified by the rhythm code of RCODE and the track number of TRN
It is determined whether or not there is a channel X for which the roll designation information of RLFLG (RCODE, TRN) and the roll designation information of the flag RLFLG (X) corresponding to the channel number X match. If the determination result is negative (N), the process proceeds to step 172, and if the determination result is affirmative (Y), the process proceeds to step 174.

ステップ172では、TCTR(1)〜TCTR(8)のうち値が
0のもの(発音が終了したもの)があればその値0のも
のに対応するチャンネルナンバ(CHナンバ)をACHに入
れる。また、値0のものがなければTCTR(1)〜TCTR
(8)のうち値が最小のもの(減衰が最も進んだもの)
に対応するCHナンバをACHに入れる。
In step 172, if there is a TCTR (1) to TCTR (8) with a value of 0 (the one whose sound generation has ended), the channel number (CH number) corresponding to that value of 0 is put in the ACH. If there is no value 0, TCTR (1) to TCTR
The one with the smallest value among (8) (the one with the most advanced attenuation)
Put the CH number corresponding to in ACH.

ステップ174では、すでに割当てられているチャンネル
のCHナンバXをACHに入れる。ステップ172又は174の後
は、元のルーチン(第10図又は第13図)にリターンす
る。
At step 174, the CH number X of the already assigned channel is put into ACH. After step 172 or 174, the process returns to the original routine (FIG. 10 or FIG. 13).

上記した第11図のルーチンによれば、8チャンネル全部
がふさがっている状態で割当て済みのものとは別の新た
なリズム音種類の割当要求があった場合、このリズム音
種類はTCTR(1)〜TCTR(8)のうちで値が最小のもの
に対応するチャンネルに割当てられることにより、該リ
ズム音種類は減衰が最も進んだリズム音種類に代って発
音されるようになる。
According to the routine shown in FIG. 11 described above, when a request for assigning a new rhythm tone type other than the assigned one is made in a state where all 8 channels are occupied, this rhythm tone type is TCTR (1). By assigning to the channel corresponding to the smallest value among TCTR (8) to TCTR (8), the rhythm sound type is generated instead of the most attenuated rhythm sound type.

第11図のルーチンを第10図のルーチンにて使用する場合
は、RCODEのリズムコードがMであるため、ステップ170
では、PICODE(M、TRN)の楽器コード及びPRLFLG
(M、TRN)のロール指定情報に基づいて判定が行なわ
れる。
When the routine of FIG. 11 is used in the routine of FIG. 10, since the rhythm code of RCODE is M, step 170
Then, PICODE (M, TRN) instrument chords and PRLFLG
The determination is made based on the role designation information of (M, TRN).

プレイモード中のパッド発音処理(第12図) 第10図のルーチンでは、ステップ130でプレイモードと
判定されたとき何もしなかったが、プレイモード中にパ
ッド操作に基づくリズム音発生を可能としてもよく、そ
の一例を第12図に示す。
Pad sound generation processing during play mode (Fig. 12) In the routine shown in Fig. 10, nothing was done when it was determined to be the play mode in step 130, but it is possible to generate rhythm sounds based on pad operation during the play mode. Well, one example is shown in FIG.

第10図のステップ130ではプレイモードと判定されたと
きは、第12図のステップ180に移る。
When it is determined in step 130 in FIG. 10 that the mode is the play mode, the process proceeds to step 180 in FIG.

ステップ180では、パッド操作子PDSのうち操作されたも
のに対応するリズム音種類を表わす楽器コードをPDCODE
にセットする。そして、ステップ182に移る。
In step 180, the instrument code representing the rhythm sound type corresponding to the operated pad operator PDS is PDCODE.
Set to. Then, the process proceeds to step 182.

ステップ182では、RLSWに0をセットする。このよう
に、この例ではロール指定情報を強制的に0としている
ので自動的なロール発音は行なわれないが、第10図に関
して前述したようにロール指定操作子RLSの操作を検知
して自動的なロール発音を行なわせるようにしてもよ
い。
In step 182, RLSW is set to 0. As described above, in this example, since the roll designation information is forcibly set to 0, no automatic roll sound is generated, but as described above with reference to FIG. 10, the operation of the roll designation operator RLS is detected and automatically performed. You may make it perform a roll sound.

次に、ステップ184では、指定されたリズム音種類がCH1
〜CH8のいずれかに割当て済みか判定する。この判定
は、PICODE(RCODE、TRN)及びPRLFLG(RCODE、TRN)の
代りにPDCODE及びRLSWを用いる点を除き第11図のステッ
プ170と同様にして行なう。
Next, in step 184, the specified rhythm sound type is CH1.
~ Determine whether it has been assigned to any of CH8. This determination is performed in the same manner as step 170 in FIG. 11 except that PDCODE and RLSW are used instead of PICODE (RCODE, TRN) and PRLFLG (RCODE, TRN).

ステップ184の判定結果が否定的(N)であったときは
ステップ186に移り、第11図のステップ172と同様にして
TCTR(1)〜(8)の中で値が0のもの又は0がなけれ
ば値が最小のものに対応するCHナンバをACHに入れる。
If the determination result of step 184 is negative (N), the process proceeds to step 186, similarly to step 172 of FIG.
Among the TCTRs (1) to (8), the CH number corresponding to the one with a value of 0 or the one with a minimum value is entered in ACH.

ステップ184の判定結果が肯定的(Y)であったときは
ステップ188に移り、すでに割当てられているチャンネ
ルのCHナンバXをACHに入れる。
If the determination result of step 184 is affirmative (Y), the process proceeds to step 188, and the CH number X of the already assigned channel is put into ACH.

ステップ186又は188の後は、ステップ190に移り、ICODE
(ACH)及びRLFLG(ACH)にそれぞれPDCODEの楽器コー
ド及びRLSWのロール指定情報(0)を書込む。そして、
ステップ192に移る。
After step 186 or 188, move to step 190
The instrument code of PDCODE and the role designation information (0) of RLSW are written in (ACH) and RLFLG (ACH), respectively. And
Go to step 192.

ステップ192では、第10図のステップ158と同様にしてト
ランケート値メモリからICODE(ACH)に対応するトラン
ケート値を読出してTCTR(ACH)に入れる。そして、ス
テツプ194に移る。
In step 192, the truncate value corresponding to ICODE (ACH) is read from the truncate value memory and stored in TCTR (ACH) in the same manner as step 158 in FIG. Then, go to step 194.

ステップ194では、第10図のステップ160と同様にしてボ
リューム値メモリからICODE(ACH)及びRLFLG(ACH)に
対応するボリューム値を読出してVLM(ACH)に入れる。
そして、ステップ196に移る。
In step 194, the volume value corresponding to ICODE (ACH) and RLFLG (ACH) is read from the volume value memory and placed in VLM (ACH) in the same manner as step 160 in FIG.
Then, the process proceeds to step 196.

ステップ196では、第10図のステップ162と同様にしてAC
H、ICODE(ACH)及びVLM(ACH)の内容と共にキーオン
情報KONをリズム用TG30に送出することによりACH対応の
チャンネルからICODE(ACH)対応のリズム音信号をVLM
(ACH)対応のアタックレベルで発生させる。この後
は、第6図のルーチンにリターンする。
In step 196, AC is performed in the same manner as step 162 in FIG.
By sending the key-on information KON together with the contents of H, ICODE (ACH) and VLM (ACH) to the TG30 for rhythm, the rhythm sound signal corresponding to ICODE (ACH) is VLM from the channel corresponding to ACH.
(ACH) Generate at an attack level compatible with. After that, the process returns to the routine of FIG.

テンポクロック割込処理(第13図) 第13図は、テンポクロック割込処理の流れを示すもの
で、この割込処理は、テンポクロック信号TCLの各クロ
ックパルス毎に開始される。
Tempo clock interrupt process (Fig. 13) Fig. 13 shows the flow of the tempo clock interrupt process. This interrupt process is started at each clock pulse of the tempo clock signal TCL.

ステップ200では、STARTの値が1か(リズム走行か)判
定する。この判定結果が否定的(N)であればリズム停
止であるので第6図のルーチンにリターンする。
In step 200, it is determined whether the START value is 1 (rhythm running). If the result of this determination is negative (N), it means that the rhythm has stopped, and the routine returns to the routine of FIG.

ステップ200の判定結果が肯定的(Y)であったときは
ステップ202に移り、TRNに1をセットする。このよう
に、ステップ202以下の処理は、START=1である限りプ
ログラムモード及びプレイモードのいずれの場合にも実
行されるものである。ステップ202の後は、ステップ204
に移る。
When the determination result of step 200 is affirmative (Y), the process proceeds to step 202 and TRN is set to 1. As described above, the processes from step 202 onward are executed in both the program mode and the play mode as long as START = 1. After step 202, step 204
Move on to.

ステップ204では、RCODEのリズムコード(選択されたリ
ズム)とTRNのトラックナンバとTPCTRのカウント値とで
指定される記憶セルPTN(RCODE、TRN、TPCTR)の情報が
1か(発音すべきタイミングか)判定する。この判定結
果が肯定的(Y)であればステップ206に移る。
In step 204, the information of the memory cell PTN (RCODE, TRN, TPCTR) specified by the RCODE rhythm code (selected rhythm), the TRN track number, and the TPCTR count value is 1 (whether it is the timing at which the sound is generated). )judge. If the determination result is affirmative (Y), the process proceeds to step 206.

ステップ206では、第11図について前述したように割当
チャンネル検出のサブルーチンを実行する。すなわち、
発音すべきリズム音種類を割当てるべきチャンネルを検
出し、そのチャンネルのCHナンバをACHに入れる。そし
て、ステップ208に移る。
In step 206, the assigned channel detection subroutine is executed as described above with reference to FIG. That is,
The channel to which the rhythm sound type to be pronounced should be assigned is detected, and the CH number of that channel is placed in ACH. Then, the process proceeds to step 208.

ステップ208では、RCODEのリズムコード及びTRNのトラ
ックナンバで指定される記憶領域PRLFLG(RCODE、TRN)
の情報が1か(ロール指定有りか)判定する。この判定
結果が肯定的(Y)であればステップ210に移る。
In step 208, the storage area PRLFLG (RCODE, TRN) designated by the rhythm code of RCODE and the track number of TRN
Information is 1 (whether a role is designated) is determined. If the determination result is affirmative (Y), the process proceeds to step 210.

ステップ210では、TPCTRの値から1を差引いた値(前回
のテンポカウント値)をDTPCTRに入れる。この場合、差
引いた値が「−1」になったときは、DTPCTRに「63」を
入れる。ステップ210の後は、ステップ212に移る。
In step 210, a value obtained by subtracting 1 from the value of TPCTR (previous tempo count value) is put into DTPCTR. In this case, when the subtracted value becomes "-1", "63" is entered in DTPCTR. After step 210, the process moves to step 212.

ステップ212では、前回のテンポカウント値に対応する
記憶セルPTN(RCODE、TRN、DTPCTR)の情報が1か(発
音すべきタイミングであったか)を判定する。この判定
結果が否定的(N)であれば、選択したリズムのタイミ
ングデータが第14図に示すように「0」から「1」に変
化したことになる。
In step 212, it is determined whether the information in the memory cell PTN (RCODE, TRN, DTPCTR) corresponding to the previous tempo count value is 1 (whether it is the timing at which sound should be generated). If this determination result is negative (N), it means that the timing data of the selected rhythm has changed from "0" to "1" as shown in FIG.

ステップ212の処理が終ったとき又はステップ208の判定
結果が否定的(N)であったとき(ロール指定無しで通
常音であったとき)は、ステップ214に移る。このステ
ップ214では、ICODE(ACH)及びRLFLG(ACH)にそれぞ
れPICODE(RCODE、TRN)の楽器ナンバ及びPRLFLG(RCOD
E、TRN)のロール指定情報をセットする。ステップ212
を介してステップ214にきたときは、RLFLG(ACH)に1
がセットされる。
When the process of step 212 is completed or when the determination result of step 208 is negative (N) (when it is a normal sound without the roll designation), the process proceeds to step 214. In this step 214, ICODE (ACH) and RLFLG (ACH) are assigned a PICODE (RCODE, TRN) instrument number and PRLFLG (RCOD) respectively.
E, TRN) role specification information is set. Step 212
When you come to step 214 via, enter 1 in RLFLG (ACH)
Is set.

次に、ステップ216では、第10図のステップ158と同様に
してトランケート値メモリからICODE(ACH)に対応する
トランケート値を読出してTCTR(ACH)に入れる。そし
て、ステップ218に移る。
Next, at step 216, the truncate value corresponding to ICODE (ACH) is read from the truncate value memory and put into TCTR (ACH) in the same manner as at step 158 of FIG. Then, the process proceeds to step 218.

ステップ218では、第10図のステップ160と同様にしてボ
リューム値メモリからICODE(ACH)及びRLFLG(ACH)に
対応するボリューム値を読出してVLM(ACH)に入れる。
そして、ステップ220に移る。
In step 218, the volume value corresponding to ICODE (ACH) and RLFLG (ACH) is read from the volume value memory and placed in VLM (ACH) in the same manner as step 160 in FIG.
Then, the process proceeds to step 220.

ステップ220では、第10図のステップ162と同様にしてAC
H、ICODE(ACH)及びVLM(ACH)の内容と共にキーオン
情報KONをリズム用TG30に送出することによりACH対応の
チャンネルからICODE(ACH)対応のリズム音信号をVLM
(ACH)対応のアタックレベルで発生させる。
At step 220, AC is performed in the same manner as at step 162 of FIG.
By sending the key-on information KON together with the contents of H, ICODE (ACH) and VLM (ACH) to the TG30 for rhythm, the rhythm sound signal corresponding to ICODE (ACH) is VLM from the channel corresponding to ACH.
(ACH) Generate at an attack level compatible with.

ステップ212を介してステップ220にきたときは、第14図
に示すようにタイミングデータが「0」から「1」に変
化したときのテンポクロック信号TCLのクロックパルス
に同期してキーオンパルスKONPが発生され、このパルス
KONPに応じてロール発音における最初の音が発生され
る。そして、これ以降は、テンポクロック信号TCLとは
独立に第16図のロールタイマ割込処理によりロール発音
における順次の音が発生される。これらの順次の音の発
生周期Tは、ロール用クロック信号RCLの発生周期に対
応するもので、一例として数10[ms]である。
When step 220 is reached via step 212, a key-on pulse KONP is generated in synchronization with the clock pulse of the tempo clock signal TCL when the timing data changes from "0" to "1" as shown in FIG. This pulse
The first note in the roll sound is generated according to KONP. Then, after that, sequential sounds in the roll sound are generated by the roll timer interrupt processing of FIG. 16 independently of the tempo clock signal TCL. The generation cycle T of these sequential sounds corresponds to the generation cycle of the roll clock signal RCL and is, for example, several tens [ms].

ステップ220の処理が終ったとき又はステップ212の判定
結果が肯定的(Y)であったときは、ステップ232に移
る。ステップ212の判定結果が肯定的(Y)であったと
きにステップ232に移るのは、第14図に示すようにタイ
ミングデータにおいて「1」が連続していてロール発音
が行なわれるので、ステップ214〜220の発音処理を行な
う必要がないからである。
When the process of step 220 is completed or when the determination result of step 212 is affirmative (Y), the process proceeds to step 232. When the determination result of step 212 is affirmative (Y), the process proceeds to step 232 because "1" continues in the timing data as shown in FIG. This is because it is not necessary to perform the sounding process of ~ 220.

ところで、ステップ204の判定結果が否定的(N)であ
ったとき(発音すべきタイミングでなかったとき)は、
ステップ222に移る。このステップ222では、ステップ20
8と同様にしてPRLFLG(RCODE、TRN)の情報が1か判定
する。この判定結果が否定的(N)であれば、以下に述
べるようなロール発音停止処理を行なう必要がないの
で、ステップ232に移る。
By the way, when the result of the determination in step 204 is negative (N) (when it is not the timing to pronounce),
Move to step 222. In this step 222, step 20
Similar to step 8, it is determined whether the PRLFLG (RCODE, TRN) information is 1. If the result of this determination is negative (N), it is not necessary to perform the roll sound generation stop processing described below, so the routine moves to step 232.

ステップ232の判定結果が肯定的(Y)であったとき
は、ステップ224に移り、ステップ210と同様にしてDTPC
TRに前回のテンポカウント値をセットする。そして、ス
テップ226に移る。
If the determination result in step 232 is affirmative (Y), the process proceeds to step 224, and DTPC is performed in the same manner as in step 210.
Set the previous tempo count value in TR. Then, the process proceeds to step 226.

ステップ226では、ステップ212と同様にしてPTN(RCOD
E、TRN、DTPCTR)の値が1か判定する。この判定結果が
否定的(N)であれば、タイミングデータにおいて
「0」が連続したことになり、ステップ232に移る。
In step 226, the PTN (RCOD
Judge whether the value of E, TRN, DTPCTR) is 1. If this determination result is negative (N), it means that “0” is consecutive in the timing data, and the routine proceeds to step 232.

ステップ226の判定結果が肯定的(Y)であったとき
は、タイミングデータが第14図に示すように「1」から
「0」に変化したことになり、ステップ228に移る。
If the determination result of step 226 is affirmative (Y), it means that the timing data has changed from "1" to "0" as shown in FIG. 14, and the process proceeds to step 228.

ステップ228では、第11図のステップ170と同様にしてロ
ール音の割当て済みチャンネルを検出し、そのCHナンバ
をACHに入れる。そして、ステップ230に移る。
In step 228, the channel to which the roll sound is assigned is detected in the same manner as in step 170 of FIG. 11, and its CH number is put into ACH. Then, the process proceeds to step 230.

ステップ230では、RLFLG(ACH)に0をセットする。こ
の結果、ロール音発生は、第14図に示すようにタイミン
グデータが「1」から「0」に変化したときのテンポク
ロック信号TCLのクロックパルスより後は停止される。
ステップ230の後は、ステップ232に移る。
At step 230, RLFLG (ACH) is set to zero. As a result, the roll sound generation is stopped after the clock pulse of the tempo clock signal TCL when the timing data changes from "1" to "0" as shown in FIG.
After step 230, the process moves to step 232.

ステップ232では、TRNの値を1アップする。そして、ス
テップ234に移り、TRNの値がRCODEのリズムコード(選
択されたリズム)に対応する記憶領域PTNNUM(RCODE)
のトラック数より大か判定する。この判定結果が否定的
(N)であればステップ204に戻り、TRN>PTNNUM(RCOD
E)となるまで上記したような処理を繰返す。例えば、
第3図(A)のリズムパターンメモリにおいて、リズム
1が選択された場合は、PTNNUM(1)=16であるので、
上記のような処理が16回行なわれる。
At step 232, the value of TRN is incremented by 1. Then, the process proceeds to step 234, and the storage area PTNNUM (RCODE) whose TRN value corresponds to the rhythm code (selected rhythm) of RCODE
Is greater than the number of tracks in. If this determination result is negative (N), the process returns to step 204 and TRN> PTNNUM (RCOD
The above process is repeated until E) is reached. For example,
In the rhythm pattern memory of FIG. 3 (A), when rhythm 1 is selected, PTNNUM (1) = 16.
The above process is performed 16 times.

TRN>PTNNUM(RCODE)となると、ステップ234の判定結
果が肯定的(Y)となり、ステップ236に移る。このス
テップ236では、TPCTRの値に基づいてテンポ表示素子TL
Dを駆動する。すなわち、TPCTRの値が0,8,16…48,56の
いずれに該当するかにより表示素子TLD1〜TLD4(第1図
のTLDにおいて最も左のものから最も右のものまで)を
第15図に示すように点灯制御する。この結果、設定テン
ポに応じたテンポ表示が可能となる。ステップ236の後
は、ステップ238に移る。
When TRN> PTNNUM (RCODE), the determination result of step 234 becomes affirmative (Y), and the routine proceeds to step 236. In this step 236, the tempo display element TL is calculated based on the value of TPCTR.
Drive D. That is, the display elements TLD1 to TLD4 (from the leftmost one to the rightmost one in the TLD of FIG. 1) are shown in FIG. 15 depending on which of TPCTR values corresponds to 0, 8, 16 ... 48, 56. The lighting is controlled as shown. As a result, it is possible to display the tempo according to the set tempo. After step 236, the process moves to step 238.

ステップ238では、TPCTRの値を1アップする。そして、
ステップ240に移り、TPCTRの値が64か(2小節終りか)
判定し、この判定結果が否定的(N)であれば第6図の
ルーチンにリターンする。
In step 238, the value of TPCTR is incremented by 1. And
Go to step 240, whether TPCTR value is 64 (end of 2 bars)
If the result of this determination is negative (N), the routine returns to the routine of FIG.

ステップ240の判定結果が肯定的(Y)であったとき
は、ステップ242でTPCTRに0をセットしてから、第6図
のルーチンにリターンする。従って、2小節分のリズム
パターンを反復的に使用して自動リズム演奏を続行する
ことができる。
When the result of the determination in step 240 is affirmative (Y), TPCTR is set to 0 in step 242, and then the process returns to the routine of FIG. Therefore, the automatic rhythm performance can be continued by repeatedly using the rhythm pattern for two measures.

ロールタイマ割込処理(第16図) 第16図は、ロールタイマ割込処理を示すもので、この割
込処理はロール用クロック信号RCLの各クロックパルス
毎に開始される。
Roll Timer Interrupt Processing (FIG. 16) FIG. 16 shows the roll timer interrupt processing. This interrupt processing is started at each clock pulse of the roll clock signal RCL.

ステップ250では、STARTの値が1か判定し、この判定結
果が否定的(N)であれば第6図のルーチンにリターン
する。
In step 250, it is determined whether the value of START is 1, and if this determination result is negative (N), the routine returns to the routine of FIG.

ステップ250の判定結果が肯定的(Y)であったときは
ステップ252に移り、CHNに1をセットする。このよう
に、ステップ252以下の処理は、START=1である限りプ
ログラムモード及びプレイモードのいずれの場合にも実
行されるものである。ステップ252の後は、ステップ254
に移る。
When the determination result of step 250 is affirmative (Y), the process proceeds to step 252, and CHN is set to 1. As described above, the processing from step 252 is executed in both the program mode and the play mode as long as START = 1. After step 252, step 254
Move on to.

ステップ254では、CHNのチャンネルナンバに対応するフ
ラグRLFLG(CHN)の値が1か(ロール指定有りか)判定
する。この判定結果が肯定的(Y)であればステップ25
6に移る。
In step 254, it is determined whether the value of the flag RLFLG (CHN) corresponding to the channel number of CHN is 1 (whether a roll is designated). If this determination result is affirmative (Y), step 25.
Go to 6.

ステップ256では、ロール指定有りのCHNのチャンネルナ
ンバとCHN対応のレジスタICODE(CHN)の楽器コードとC
HN対応のレジスタVLM(CHN)のボリューム値とキーオン
情報KONとを第10図のステップ162と同様にしてリズム用
TG30に送出することによりCHN対応のチャンネルからICO
DE(CHN)対応のリズム音信号をVLM(CHN)対応のアタ
ックレベル(通常音の約半分のレベル)で発生させる。
In step 256, the CHN channel number with roll designation and the instrument code of the CHN corresponding register ICODE (CHN) and C
The volume value of the register VLM (CHN) corresponding to HN and the key-on information KON are set for the rhythm in the same manner as in step 162 of FIG.
By sending to TG30, ICO from CHN compatible channel
A DE (CHN) compatible rhythm sound signal is generated at a VLM (CHN) compatible attack level (about half the level of normal sounds).

ステップ256の処理が終ったとき又はステップ254の判定
結果が否定的(N)であったとき(ロール指定無しであ
ったとき)はステップ258に移る。
When the process of step 256 is completed or when the determination result of step 254 is negative (N) (when there is no role designation), the process proceeds to step 258.

ステップ258では、CHNの値を1アップする。そして、ス
テップ260に移り、CHNの値がチャンネル数8より大か判
定する。この判定結果が否定的(N)であればステップ
254に戻り、CHN>8となるまで上記のような処理を繰返
す。このようにして各チャンネル毎にロール指定の有無
を調べ、ロール指定有りならばリズム音を発生させる。
At step 258, the value of CHN is incremented by 1. Then, the process proceeds to step 260, and it is determined whether the value of CHN is larger than the number of channels 8. If this determination result is negative (N), step
Returning to 254, the above processing is repeated until CHN> 8. In this way, the presence or absence of roll designation is checked for each channel, and if there is roll designation, a rhythm sound is generated.

CHN>8となると、ステップ260の判定結果が肯定的
(Y)となり、第6図のルーチンにリターンする。
When CHN> 8, the determination result of step 260 becomes affirmative (Y), and the process returns to the routine of FIG.

上記したロールタイマ割込処理によれば、テンポクロッ
ク信号TCLとは独立のロール用クロック信号RCLに応じて
ロール音が発生されるので、テンポを変更してもロール
音の発生時間間隔が変化せず、しかもロール音の発生時
間間隔をテンポに関係なく任意に可変設定できる。
According to the roll timer interrupt process described above, since the roll sound is generated according to the roll clock signal RCL that is independent of the tempo clock signal TCL, the roll sound generation time interval does not change even if the tempo is changed. Moreover, the roll sound generation time interval can be arbitrarily set regardless of the tempo.

トランケートタイマ割込処理(第17図) 第17図は、トランケートタイマ割込処理を示すもので、
この割込処理は、トランケート用クロック信号KCLの各
クロックパルス毎に開始される。
Truncate timer interrupt process (Fig. 17) Fig. 17 shows the truncate timer interrupt process.
This interrupt processing is started for each clock pulse of the truncation clock signal KCL.

ステップ270では、STARTの値が1か判定し、この判定結
果が否定的(N)であれば第6図のルーチンにリターン
する。
In step 270, it is determined whether the value of START is 1, and if the determination result is negative (N), the routine returns to the routine of FIG.

ステップ270の判定結果が肯定的(Y)であったときは
ステップ272に移り、CHNに1をセットする。このよう
に、ステップ272以下の処理は、START=1である限りプ
ログラムモード及びプレイモードのいずれの場合にも実
行されるものである。ステップ272の後は、ステップ274
に移る。
When the determination result of step 270 is affirmative (Y), the process proceeds to step 272, and CHN is set to 1. As described above, the processes from step 272 onward are executed in both the program mode and the play mode as long as START = 1. After step 272, step 274
Move on to.

ステップ274では、CHNのチャンネルナンバに対応するカ
ウンタTCTR(CHN)の値が0か(発音終了か)判定す
る。この判定結果が否定的(N)であればステップ276
に移り、TCTR(CHN)の値から1を差引いた値をTCTR(C
HN)にセットする。
In step 274, it is determined whether the value of the counter TCTR (CHN) corresponding to the channel number of CHN is 0 (whether the sound generation is completed). If this determination result is negative (N), step 276.
, And subtract the value of 1 from the value of TCTR (CHN) to TCTR (C
HN).

ステップ276の処理が終ったとき又はステップ274の判定
結果が肯定的(Y)であったとき(発音終了であったと
き)はステップ278に移る。
When the process of step 276 is completed or when the determination result of step 274 is affirmative (Y) (when the sound generation ends), the process proceeds to step 278.

ステップ278では、CHNの値を1アップする。そして、ス
テップ280に移り、CHNの値がチャンネル数8より大か判
定する。この判定結果が否定的(N)であればステップ
254に戻り、CHN>8となるまで上記のような処理を繰返
す。このようにして各チャンネル毎にTCTR(CHN)=0
か調べ、0でなければTCTR(CHN)の値を1減らす。
At step 278, the value of CHN is incremented by 1. Then, the process proceeds to step 280, and it is determined whether the value of CHN is larger than the number of channels 8. If this determination result is negative (N), step
Returning to 254, the above processing is repeated until CHN> 8. In this way, TCTR (CHN) = 0 for each channel
Check if it is not 0, and decrease the value of TCTR (CHN) by 1.

CHN>8となると、ステップ280の判定結果が肯定的
(Y)となり、第6図のルーチンにリターンする。
When CHN> 8, the determination result of step 280 becomes affirmative (Y), and the process returns to the routine of FIG.

トランケートの方法は、上記したものに限らず、例えば
(イ)テンポクロック割込みのたびに1減らす(ただ
し、0になるまでの時間がテンポに依存する)、(ロ)
新たな発音割当てがあるたびに1減らす、(ハ)減衰時
間が長いものほど小さなトランケート値をセットしてお
き、割込みのたびに1を加え、加算結果が最大のチャン
ネルに新たなリズム音種類を割当てる、等の方法があ
る。
The method of truncation is not limited to the one described above, and for example, (a) decrements by 1 at each tempo clock interrupt (however, the time until reaching 0 depends on the tempo), (b)
Decrement by 1 each time there is a new pronunciation assignment, (c) Set a smaller truncation value for longer decay times, add 1 at each interruption, and add a new rhythm sound type to the channel with the maximum addition result. There are methods such as allocation.

変形例 この発明は、上記実施例に限定されるものではなく、種
々の改変形態で実施可能なものである。例えば、次のよ
うな変更が可能である。
Modifications The present invention is not limited to the above embodiments, but can be implemented in various modified forms. For example, the following changes are possible.

(1)ソフトウエアにより制御する例を示したが、専用
のハードウエアで処理するようにしてもよい。
(1) Although the example of controlling by software has been shown, the processing may be performed by dedicated hardware.

(2)リズム用トーンジェネレータは、PCM波形メモリ
方式の例を示したが、音源方式はこれに限らず、FM音源
方式等も適宜使用可能である。また、複数チャンネル時
分割処理でなく、複数チャンネル並列の音源構成として
もよい。
(2) For the rhythm tone generator, the example of the PCM waveform memory system is shown, but the sound source system is not limited to this, and an FM sound source system or the like can be used as appropriate. Further, the sound source configuration may be parallel to a plurality of channels instead of the time division processing of a plurality of channels.

(3)鍵盤付きの電子楽器の例を示したが、専用のリズ
ム演奏装置であってもよい。
(3) Although an example of an electronic musical instrument with a keyboard is shown, a dedicated rhythm playing device may be used.

(4)リズム演奏装置の例を示したが、この発明は、押
鍵音を音色コードと共にチャンネルに割当てる方式の電
子楽器にも適用可能である。
(4) Although the example of the rhythm playing device is shown, the present invention is also applicable to an electronic musical instrument of a system in which a key depression sound is assigned to a channel together with a tone color code.

(5)トランケートの方法は、前記したもの以外でも種
々のものがある。
(5) There are various truncation methods other than those described above.

[発明の効果] 以上のように、この発明によれば、すべてのチャンネル
が発音中であってもそのうちで発音残り時間が最も少な
いチャンネルに新たな楽音種類を割当てるようにしたの
で、打楽器音等の楽音種類を指定しても音が出ないとい
った事態を未然に防止でき、少ないチャンネル数でも楽
音種類においてバラエティに富んだ演奏を楽しめる効果
が得られるものである。
[Effects of the Invention] As described above, according to the present invention, a new musical tone type is assigned to a channel having the shortest remaining time of sounding even if all channels are being sounded. It is possible to prevent the situation where no sound is produced even if the musical tone type is specified, and it is possible to enjoy a variety of musical performances even with a small number of channels.

また、楽音種類毎にトランケート制御情報を読出し、該
トランケート制御情報が示す値から楽音種類によらず一
定の値を減算するようにしたので、可変値を減算するの
に比べて処理が簡単になる利点もある。
Further, since the truncate control information is read out for each musical tone type and a constant value is subtracted from the value indicated by the truncate control information regardless of the musical tone type, the processing becomes simpler than the subtraction of the variable value. There are also advantages.

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

第1図は、この発明の一実施例による電子楽器の構成を
示すブロック図、 第2図は、リズム用トーンジェネレータ30の構成を示す
ブロック図、 第3図は、ROM18の記憶内容を示す図、 第4図は、タイミングデータの例を示す図、 第5図は、RAM20の記憶内容を示す図、 第6図は、メインルーチンを示すフローチャート、 第7図は、リズム選択のサブルーチンを示すフローチャ
ート、 第8図は、モード選択のサブルーチンを示すフローチャ
ート、 第9図は、スタート/ストップのサブルーチンを示すフ
ローチャート、 第10図は、パッド操作のサブルーチンを示すフローチャ
ート、 第11図は、割当チャンネル検出のサブルーチンを示すフ
ローチャート、 第12図は、プレイモード中のパッド発音処理を示すフロ
ーチャート、 第13図は、テンポクロック割込処理を示すフローチャー
ト、 第14図は、ロール発音動作を説明するための信号波形
図、 第15図は、テンポ表示動作を説明するための図、 第16図は、ロールタイマ割込処理を示すフローチャー
ト、 第17図は、トランケートタイマ割込処理を示すフローチ
ャートである。 10……データバス、14……パネル装置、16……中央処理
装置、18……プログラム及びデータROM、20……データ
及びワーキングRAM、22……テンポタイマ、24……ロー
ルタイマ、26……トランケートタイマ、30……リズム用
トーンジェネレータ。
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to an embodiment of the present invention, FIG. 2 is a block diagram showing a configuration of a rhythm tone generator 30, and FIG. 3 is a diagram showing contents stored in a ROM 18. 4, FIG. 4 is a diagram showing an example of timing data, FIG. 5 is a diagram showing contents stored in the RAM 20, FIG. 6 is a flow chart showing a main routine, and FIG. 7 is a flow chart showing a rhythm selection subroutine. , FIG. 8 is a flow chart showing a mode selection subroutine, FIG. 9 is a flow chart showing a start / stop subroutine, FIG. 10 is a flow chart showing a pad operation subroutine, and FIG. FIG. 12 is a flowchart showing a subroutine, FIG. 12 is a flowchart showing a pad sounding process in the play mode, and FIG. 13 is a tempo clock. FIG. 14 is a signal waveform diagram for explaining the roll sounding operation, FIG. 15 is a diagram for explaining the tempo display operation, and FIG. 16 is a roll timer interrupt processing. FIG. 17 is a flowchart showing the truncate timer interrupt process. 10 ... Data bus, 14 ... Panel device, 16 ... Central processing unit, 18 ... Program and data ROM, 20 ... Data and working RAM, 22 ... Tempo timer, 24 ... Roll timer, 26 ... Truncate timer, 30 ... Tone generator for rhythm.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】(a)複数Nの楽音形成チャンネルを有す
る音源手段であって、各楽音形成チャンネル毎に複数M
(M>N)の楽音種類のうち指定された楽音種類に対応
した楽音信号を発生するように構成されたものと、 (b)前記複数Mの楽音種類のうち発音すべき楽音種類
を指定する楽音種類指定情報を発生する指定手段と、 (c)この指定手段から楽音種類指定情報が発生される
たびに前記複数Nの楽音形成チャンネルのいずれかに該
楽音種類指定情報を割当てることにより割当てに係る楽
音形成チャンネルにて該楽音種類指定情報に応じて楽音
種類を指定する割当手段と、 (d)前記複数Nの楽音種類のうちの各楽音種類毎にそ
の発音期間の長さに対応したトランケート制御情報を記
憶した記憶手段と、 (e)前記割当手段による割当てがなされた楽音形成チ
ャンネル毎に指定された楽音種類に対応したトランケー
ト制御情報を前記記憶手段から読出し、該トランケート
制御情報が示す値から所定時間毎に一定値を減算して発
生中の楽音信号の発音残り時間を計測する計測手段であ
って、前記一定値は、楽音種類によらずに一定であるも
のと、 (f)この計測手段で計測される発音残り時間に基づい
て前記割当手段のチャンネル割当てを制御する制御手段
であって、発音残り時間が最も少ない楽音形成チャンネ
ルに前記指定手段からの新たな楽音種類指定情報を割当
てるようにチャンネル割当てを制御するものと をそなえた電子楽器。
1. A sound source means having a plurality of N tone forming channels, wherein a plurality of M are provided for each tone forming channel.
(M> N) musical tone types configured to generate a musical tone signal corresponding to a designated musical tone type, and (b) designating a musical tone type to be pronounced among the plurality of M musical tone types. Assigning means for generating tone type designation information, and (c) assigning the tone type designation information to any one of the plurality N of tone forming channels each time the tone type designation information is generated by the assigning means. Assigning means for designating a musical tone type in accordance with the musical tone type designating information in the musical tone forming channel; and (d) truncating the musical tone period for each musical tone type of the plurality N of musical tone types. Storage means for storing control information; and (e) truncation control information corresponding to a tone type specified for each tone forming channel assigned by the assigning means, by the storage means. From the value indicated by the truncate control information, and subtracting a constant value at predetermined time intervals from each other to measure the remaining tone generation time of the tone signal being generated. (F) control means for controlling the channel allocation of the allocating means based on the remaining sound generation time measured by the measuring means, wherein the designating means is assigned to the tone forming channel having the shortest remaining sound generation time. An electronic musical instrument that controls the channel assignment so that new musical tone type designation information from is assigned.
【請求項2】(a)複数Nの打楽器音形成チャンネルを
有する音源手段であって、各打楽器音形成チャンネル毎
に複数M(M>N)の打楽器音種類のうち指定された打
楽器音種類に対応した打楽器音信号を発生するものと、 (b)前記複数Mの打楽器音種類のうち発音すべき打楽
器音種類を指定する打楽器音種類指定情報を発生する指
定手段と、 (c)この指定手段から打楽器音種類指定情報が発生さ
れるたびに前記複数Nの打楽器音形成チャンネルのいず
れかに該打楽器音種類指定情報を割当てることにより割
当てに係る打楽器音形成チャンネルにて該打楽器音種類
指定情報に応じて打楽器音種類を指定する割当手段と、 (d)前記複数Mの打楽器音種類のうちの各打楽器音種
類毎にその発音期間の長さに対応したトランケート制御
情報を記憶した記憶手段と、 (e)前記割当手段による割当てがなされた打楽器音形
成チャンネル毎に指定された打楽器音種類に対応したト
ランケート制御情報を前記記憶手段から読出し、該トラ
ンケート制御情報に基づいて発生中の打楽器音信号の発
音残り時間を計測する計測手段と、 (f)この計測手段で計測される発音残り時間に基づい
て前記割当手段のチャンネル割当てを制御する制御手段
であって、発音残り時間が最も少ない打楽器音形成チャ
ンネルに前記指定手段からの新たな打楽器音種類指定情
報を割当てるようにチャンネル割当てを制御するものと をそなえた電子楽器。
2. (a) A sound source means having a plurality of N percussion instrument sound forming channels, wherein a specified percussion instrument sound type is selected from among a plurality of M (M> N) percussion instrument sound types for each percussion instrument sound forming channel. A corresponding percussion instrument sound signal is generated, and (b) designation means for generating percussion instrument sound type designation information for designating a percussion instrument sound type to be pronounced among the plurality M of percussion instrument sound types, and (c) this designation means Each time the percussion instrument sound type designation information is generated from, the percussion instrument sound type designation information is assigned to any one of the plurality N of percussion instrument sound formation channels. Assigning means for designating a percussion instrument sound type in accordance with the above; (d) Truncate control information corresponding to the duration of the sounding period for each percussion instrument sound type among the plurality M of percussion instrument sound types (E) Truncation control information corresponding to the percussion instrument sound type designated for each percussion instrument sound forming channel assigned by the assigning means is read from the storage means, and is generated based on the truncation control information. Measuring means for measuring the remaining sounding time of the percussion instrument sound signal, and (f) control means for controlling the channel allocation of the allocating means based on the remaining sounding time measured by this measuring means. An electronic musical instrument that controls the channel assignment so that new percussion instrument type designation information from the designating means is assigned to the least percussion instrument sound forming channel.
JP62332650A 1987-12-30 1987-12-30 Electronic musical instrument Expired - Lifetime JPH0721718B2 (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP62332650A JPH0721718B2 (en) 1987-12-30 1987-12-30 Electronic musical instrument
US07/291,275 US4991486A (en) 1987-12-30 1988-12-28 Electronic musical instrument having a rhythm performance function
DE3888655T DE3888655T2 (en) 1987-12-30 1988-12-30 Electronic musical instrument with a rhythm function.
KR1019880017876A KR920005713B1 (en) 1987-12-30 1988-12-30 Electronic musical instrument having rhythm playing function
EP88121918A EP0322927B1 (en) 1987-12-30 1988-12-30 Electronic musical instrument having a rhythm performance function
SG165894A SG165894G (en) 1987-12-30 1994-11-17 Electronic musical instrument having a rhythm performance function
HK33095A HK33095A (en) 1987-12-30 1995-03-09 Electronic musical instrument having a rhythm performance function
US09/493,518 USRE37459E1 (en) 1987-12-30 2000-01-27 Electronic musical instrument having a ryhthm performance function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62332650A JPH0721718B2 (en) 1987-12-30 1987-12-30 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH01179094A JPH01179094A (en) 1989-07-17
JPH0721718B2 true JPH0721718B2 (en) 1995-03-08

Family

ID=18257332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62332650A Expired - Lifetime JPH0721718B2 (en) 1987-12-30 1987-12-30 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH0721718B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57136698A (en) * 1981-02-19 1982-08-23 Nippon Musical Instruments Mfg Electronic musical instrument
JPS62195190U (en) * 1986-05-31 1987-12-11

Also Published As

Publication number Publication date
JPH01179094A (en) 1989-07-17

Similar Documents

Publication Publication Date Title
US6051771A (en) Apparatus and method for generating arpeggio notes based on a plurality of arpeggio patterns and modified arpeggio patterns
JP2623809B2 (en) Automatic key press indicating device
US5399801A (en) Electronic musical instrument having an automatic stroke performance function
US5281756A (en) Electronic musical instrument capable of assigning desired tones to a performance operator
KR920005713B1 (en) Electronic musical instrument having rhythm playing function
JPH0644192B2 (en) Automatic rhythm playing device
US4619176A (en) Automatic accompaniment apparatus for electronic musical instrument
JP2668691B2 (en) Rhythm playing device
JP2600741B2 (en) Rhythm pattern program device
JPH0721718B2 (en) Electronic musical instrument
JP3013836B2 (en) Rhythm musical tone control device
JP3013796B2 (en) Rhythm playing device
JPH0646355B2 (en) Rhythm playing device
JP3104702B2 (en) Rhythm playing device
JP3252847B2 (en) Rhythm playing device
JP3104705B2 (en) Rhythm musical tone control device
JP3055550B2 (en) Rhythm musical tone control device
JP2531040B2 (en) Electronic musical instrument
JP2513014B2 (en) Electronic musical instrument automatic performance device
JPS6329272B2 (en)
JP2600555B2 (en) Electronic musical instrument
JP2630268B2 (en) Rhythm sound generator
JPS6316757B2 (en)
JPS6217756B2 (en)
JPH073639B2 (en) Autorhythm 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

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080308

Year of fee payment: 13