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
JP3409333B2 - Music generator - Google Patents
[go: Go Back, main page]

JP3409333B2 - Music generator - Google Patents

Music generator

Info

Publication number
JP3409333B2
JP3409333B2 JP05153292A JP5153292A JP3409333B2 JP 3409333 B2 JP3409333 B2 JP 3409333B2 JP 05153292 A JP05153292 A JP 05153292A JP 5153292 A JP5153292 A JP 5153292A JP 3409333 B2 JP3409333 B2 JP 3409333B2
Authority
JP
Japan
Prior art keywords
tone
musical
delay time
musical tone
sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP05153292A
Other languages
Japanese (ja)
Other versions
JPH05249966A (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 JP05153292A priority Critical patent/JP3409333B2/en
Publication of JPH05249966A publication Critical patent/JPH05249966A/en
Application granted granted Critical
Publication of JP3409333B2 publication Critical patent/JP3409333B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Electrophonic Musical Instruments (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、キーオン信号(ノート
オン信号)等の楽音制御情報に応じて楽音を発生する楽
音発生装置に関し、効果音的な楽音を発生できるように
した楽音発生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a musical tone generating device for generating a musical tone in accordance with musical tone control information such as a key-on signal (note-on signal), and more particularly to a musical tone generating device capable of generating an effective musical tone. .

【0002】[0002]

【従来の技術】従来、電子楽器においてキーオンディレ
イと称する処理により重奏効果を得るようにしたものが
ある(例えば特開平2−181795号公報参照)。こ
のキーオンディレイは、2つの系列の音源で楽音を発生
させ、このとき一方の系列の楽音を他方の系列の楽音よ
り遅延して発音させることにより、両系列の楽音波形の
位相を異ならせて重奏効果を得るものである。
2. Description of the Related Art Conventionally, there is an electronic musical instrument in which a duo effect is obtained by a process called a key-on delay (for example, see Japanese Patent Laid-Open No. 2-181795). This key-on delay generates musical tones with two series of sound sources, and delays the musical tones of one series from the musical tones of the other series so that the musical tone waveforms of the two series are different in phase. It is an effect.

【0003】[0003]

【発明が解決しようとする課題】このように、2つの系
列の楽音を遅延させて異なる音色の楽音を得るような技
術は従来から知られているが、2つの楽音の発音タイミ
ングを異ならせるだけでは効果音的な楽音作りに限界が
あった。
As described above, a technique for delaying two series of musical tones to obtain musical tones having different timbres has been known in the past, but only different tone generation timings of the two musical tones are used. There was a limit to how effective sound could be made.

【0004】本発明は、簡単な操作で効果音的な楽音を
得ることができる楽音発生装置を提供することを課題と
する。
SUMMARY OF THE INVENTION An object of the present invention is to provide a musical tone generating device capable of producing a musical tone having a sound effect by a simple operation.

【0005】[0005]

【課題を解決するための手段】上記の課題を解決するた
めになした本発明の請求項1の楽音発生装置は、1回の
発音指示に対して、第1楽音とこの第1楽音から順次遅
延した第2楽音および第3楽音の少なくとも3つ楽音を
発生する楽音発生装置であって、第1楽音から第2楽音
までの遅延時間と第2楽音から第3楽音までの遅延時
間、または、第1楽音に対する第2楽音および第3楽音
のピッチについて、遅延時間およびピッチを設定できる
楽音情報設定手段を備え、該楽音情報設定手段で設定さ
れた遅延時間およびピッチに基づいて楽音を発生するよ
うにしたことを特徴とする。また、本発明の請求項2の
楽音発生装置は、1回の発音指示に対して、第1楽音と
この第1楽音から順次遅延した第2楽音および第3楽音
の少なくとも3つ楽音を発生する楽音発生装置であっ
て、第1楽音から第2楽音までの遅延時間と第2楽音か
ら第3楽音までの遅延時間、または、第1楽音に対する
第2楽音および第3楽音のピッチについて、この遅延時
間またはピッチの少なくとも何れか一方を設定するとと
もに、前記第1楽音の発生の有無を設定する楽音情報設
定手段を備え、該楽音情報設定手段で設定された情報に
基づいて上記遅延時間またはピッチの少なくとも一方を
異ならせて楽音を発生するとともに、前記第1楽音の発
生の有無を制御するようにしたことを特徴とする。
In order to solve the above-mentioned problems, the musical tone generating apparatus according to claim 1 of the present invention has a first musical tone and a sequence from the first musical tone in response to one sounding instruction. A musical tone generating device for generating at least three delayed musical tones such as a second musical tone and a third musical tone, the delay time from the first musical tone to the second musical tone and the delay time from the second musical tone to the third musical tone, or A musical tone information setting means capable of setting a delay time and a pitch for the pitches of the second musical tone and the third musical tone with respect to the first musical tone is provided, and the musical tone is generated based on the delay time and the pitch set by the musical tone information setting means. It is characterized by having done. Further, according to claim 2 of the present invention.
The musical tone generator generates the first musical tone for one pronunciation instruction.
Second and third musical tones sequentially delayed from the first musical tone
Is a tone generator that generates at least three tones
The delay time from the first tone to the second tone and the second tone
Delay time from the 3rd tone to the 1st tone
Regarding the pitch of the 2nd and 3rd tones,
If you set at least one of the interval and pitch
In general, the musical tone information setting for setting whether or not the first musical tone is generated.
The information set by the musical tone information setting means is provided with a setting means.
Based on at least one of the above delay time or pitch
Generate different tones and generate the first tone.
It is characterized in that the presence or absence of life is controlled.

【0006】[0006]

【作用】本発明の楽音発生装置において、キーオン信号
等により発音指示があると、第1楽音とこの第1楽音か
ら順次遅延した第2楽音および第3楽音の少なくとも3
つ楽音を発生する。
In the musical tone generating apparatus of the present invention, when a sounding instruction is given by a key-on signal or the like, at least three of the first musical tone and the second and third musical tones sequentially delayed from the first musical tone.
Generate a musical tone.

【0007】一方、請求項1における楽音情報設定手段
により、遅延時間およびピッチを設定でき、請求項2に
おける楽音情報設定手段により、第1楽音から第2楽音
までの遅延時間と第2楽音から第3楽音までの遅延時
間、または、第1楽音に対する第2楽音および第3楽音
のピッチについて、この遅延時間またはピッチの少なく
とも何れか一方を設定できる。
On the other hand, the musical tone information setting means in claim 1
The delay time and pitch can be set by
By the tone information setting means, the delay time from the first tone to the second tone and the delay time from the second tone to the third tone, or the delay between the second tone and the third tone with respect to the first tone is delayed. At least one of time and pitch can be set.

【0008】そして、前記発音指示により発生される第
1楽音、第2楽音および第3楽音は、楽音情報設定手段
で設定された情報に基づいて遅延時間またはピッチの少
なくとも一方が異なる楽音となる。
The first, second and third musical tones generated by the tone generation instruction are musical tones having different delay times or pitches based on the information set by the musical tone information setting means.

【0009】なお、遅延時間やピッチのような楽音情報
と同様に楽音情報設定手段で第1楽音の発生の有無を設
定できるようにすると、第1楽音の発生を無くすことも
できるので、2系列(複数系列)で楽音を発生して、一
方の系列は第1楽音を発生し、他方の系列は第1楽音を
発生しないようにして、例えば残響音を合成するように
一方の系列の楽音の途中から他方の楽音を合成するよう
にもできる。
If the musical tone information setting means can set the presence or absence of the generation of the first musical tone like the musical tone information such as the delay time and the pitch, the generation of the first musical tone can be eliminated, so that there are two series. Musical tones are generated in (multiple sequences), one sequence generates the first musical tone, and the other sequence does not generate the first musical tone. For example, one sequence of musical tones is synthesized to reverberant sounds. It is also possible to synthesize the other tone from the middle.

【0010】[0010]

【実施例】図2は本発明実施例の楽音発生装置のブロッ
ク図、図3はそのパネル面の一部を示す図である。この
装置はCPU1によって制御され、MIDI端子2に接
続された外部機器AからのMIDI信号をMIDIイン
ターフェース2aを介して取り込み、このMIDI信号
に応じた楽音を発生する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 is a block diagram of a musical tone generating apparatus according to an embodiment of the present invention, and FIG. 3 is a diagram showing a part of its panel surface. This device is controlled by the CPU 1 and takes in a MIDI signal from the external device A connected to the MIDI terminal 2 through the MIDI interface 2a and generates a musical sound according to the MIDI signal.

【0011】また、この実施例の装置は、トリガー端子
3に接続されたパッドBからのキーオン信号をパッドイ
ンターフェース3aを介して取り込むことにより、上記
MIDI信号に応じた楽音の他にドラム等のリズム音も
発生できるリズム音源モジュールを構成している。
Further, in the apparatus of this embodiment, the key-on signal from the pad B connected to the trigger terminal 3 is taken in through the pad interface 3a, so that the rhythm of the drum or the like can be obtained in addition to the musical tone corresponding to the MIDI signal. It constitutes a rhythm sound source module that can generate sounds.

【0012】音源回路4は、パッドBの操作に応じて予
め設定されたリズム音の楽音信号を発生するトーンジェ
ネレータ、時分割多重化処理により同時発音可能な複数
の発音チャンネルを有するトーンジェネレータ、およ
び、PCMデータ等の音色等の異なる複数種類の波形デ
ータを記憶している波形メモリを備えている。
The tone generator circuit 4 is a tone generator that generates a tone signal of a rhythm sound set in advance according to the operation of the pad B, a tone generator having a plurality of tone generation channels capable of simultaneously producing sound by time division multiplexing processing, and , PCM data and the like, a waveform memory storing a plurality of types of waveform data having different tones and the like.

【0013】そして、音源回路4は、任意の発音チャン
ネルについてCPU1から音色データが設定(入力)さ
れると、その発音チャンネルにおいて設定された音色デ
ータに応じた波形データを波形メモリから読み出すとと
もに、その音色データに応じたピッチ(音高)やベロシ
ティ(レベル)の楽音信号を発生する。なお、パッドB
の操作によって楽音信号を発生するトーンジェネレータ
は、楽音信号の振幅のエンベロープを自然減衰させるよ
うになっている。
When the tone color data is set (input) from the CPU 1 for any tone generation channel, the tone generator circuit 4 reads the waveform data corresponding to the tone color data set in the tone generation channel from the waveform memory and Generates a tone signal with a pitch (pitch) or velocity (level) according to tone color data. Note that pad B
The tone generator which generates a musical tone signal by the operation of is designed to naturally attenuate the amplitude envelope of the musical tone signal.

【0014】音源回路4は、音色データ中のパンニング
データに応じて楽音信号を左右のサウンドシステム5
L,5Rに選択的に出力し、各サウンドシステム5L,
5Rは音源回路4から入力される楽音信号をD/A変換
し、増幅等を行って楽音を発生する。なお、音源として
は、波形データ読出方式のものに限らずFM音源などで
もよい。
The tone generator circuit 4 outputs a tone signal to the left and right sound systems 5 according to the panning data in the tone color data.
Selectively output to L, 5R, each sound system 5L,
5R D / A converts the tone signal input from the tone generator circuit 4 and amplifies it to generate a tone. The sound source is not limited to the waveform data reading type, but may be an FM sound source or the like.

【0015】MIDI信号では、例えばチャンネルボイ
スメッセージと称する3バイトデータによってキーオン
(ノートオン)またはキーオフ(ノートオフ)が指定さ
れ、第1バイトは上位4ビットでキーオン/キーオフを
示すとともに下位4ビットでMIDIチャンネル番号を
示すノートメッセージ、第2バイトはノート番号、第3
バイトはベロシティの各データになっている。なお、ノ
ートメッセージの上位4ビットは、“9”のときキーオ
ンを示し、“8”のときキーオフを示す。
In the MIDI signal, for example, key-on (note-on) or key-off (note-off) is designated by 3-byte data called a channel voice message, and the first byte indicates key-on / key-off by upper 4 bits and lower 4 bits. Note message showing MIDI channel number, 2nd byte is note number, 3rd
Bytes are each velocity data. The upper 4 bits of the note message indicate key-on when "9" and key-off when "8".

【0016】ROM6には、図5に示したように各MI
DIチャンネル番号毎にノート番号と音色番号TNとを
対応付けた音色番号テーブルが記憶されており、この音
色番号テーブルを参照してMIDI信号中のMIDIチ
ャンネル番号とノート番号とに対応する音色番号を読み
出し、この音色番号によって発音する楽音の音色を指定
する。なお、音色番号テーブルはRAM7に設けてMI
DIチャンネル番号、ノート番号および音色番号の対応
関係を設定可能にしてもよい。
In the ROM 6, as shown in FIG.
A tone color number table in which note numbers and tone color numbers TN are associated with each other for each DI channel number is stored, and the tone color numbers corresponding to the MIDI channel numbers and note numbers in the MIDI signal are referenced by referring to this tone color number table. The tone color of the musical tone to be read out is designated and designated by this tone color number. The tone number table is provided in the RAM 7 and MI
The correspondence relationship between the DI channel number, the note number and the tone color number may be settable.

【0017】ここで、この実施例では、各音色番号に1
系列または複数系列の楽音が対応付けられており、各音
色番号に応じて1系列または複数系列の楽音を発生す
る。また、各系列の楽音について、キーオンにより第1
楽音を発音してその後順次遅延して第2楽音、第3楽
音、…の発音を繰り返すことができ、さらに、各遅延さ
れる楽音のレベル、ピッチ、遅延時間、第1楽音を発音
するか否か等を設定できるようになっている。
Here, in this embodiment, 1 is assigned to each tone color number.
A series or a plurality of series of musical tones are associated with each other, and one series or a plurality of series of musical tones are generated according to each tone color number. In addition, for each series of musical tones, the first key
It is possible to generate the musical tones and then sequentially delay them to repeat the pronunciation of the second musical tone, the third musical tone, ... Further, the level of each delayed musical tone, the pitch, the delay time, and whether or not to generate the first musical tone. It is possible to set such as.

【0018】すなわち、図1に示したように、キーオン
のタイミングから遅延して発音される楽音w2,w3の
回数を示すディレイ数DLN(この例ではDLN=
2)、第1楽音w1を発音するかしないかを示す1st
フラグ1ST、第1楽音w1から第2楽音w2までの遅
延時間を示すディレイタイムD、前の楽音のレベルから
のレベル変化を示すディレイレベルDLV、前の楽音の
ピッチからのピッチ変化を示すディレイピッチDPC、
遅延時間の変化量を示すディレイタイム変化量DTVを
それぞれ設定できるようになっている。なお、この実施
例ではこれらの各パラメータの設定範囲は次の表1のよ
うになっている。
That is, as shown in FIG. 1, a delay number DLN (DLN = DLN = in this example) indicating the number of musical tones w2 and w3 which are generated with a delay from the key-on timing.
2), 1st indicating whether or not to pronounce the first musical sound w1
Flag 1ST, delay time D indicating the delay time from the first musical sound w1 to the second musical sound w2, the delay level DLV indicating the level change from the level of the previous musical sound, and the delay pitch indicating the pitch change from the pitch of the previous musical sound. DPC,
The delay time change amount DTV indicating the change amount of the delay time can be set respectively. In this embodiment, the setting range of each of these parameters is as shown in Table 1 below.

【0019】[0019]

【表1】 [Table 1]

【0020】RAM7には、図4に示したように音色番
号TNに対応する音色データを記憶する音色データメモ
リの記憶領域が設定されており、各音色番号TN毎に、
系列の数を示すレイヤ数が記憶され、さらにウェイブ番
号VWNで区別される各系列毎に音色データをセットに
して記憶される。
As shown in FIG. 4, a storage area of a tone color data memory for storing tone color data corresponding to the tone color number TN is set in the RAM 7, and for each tone color number TN,
The number of layers indicating the number of sequences is stored, and the tone color data is set and stored for each sequence distinguished by the wave number VWN.

【0021】各音色データは、ディレイ数DLN、1s
tフラグ1ST、ディレイタイムD、ディレイレベルD
LV、ディレイピッチDPC、ディレイタイム変化量D
TVの各パラメータと、その他の音色データで構成され
ており、これらの音色データは、設定操作によって設定
されたときはそのデータがバッテリーバックアップによ
って記憶され、設定操作がされていないときは予め決め
られたプリセット値が設定される。なお、ピッチデー
タ、パンニングデータ等はその他の音色データに含まれ
ている。
Each tone color data includes a delay number DLN, 1s
t flag 1ST, delay time D, delay level D
LV, delay pitch DPC, delay time change amount D
It is composed of TV parameters and other tone color data. These tone color data are stored by the battery backup when set by the setting operation, and are predetermined when the setting operation is not performed. Preset value is set. Note that pitch data, panning data, etc. are included in the other tone color data.

【0022】図2において、LCD8は、各系列毎の音
色データのパラメータを設定するときにパラメータの種
類やその現在値を表示する表示器であり、CPU1から
LCDインターフェース8aを介して入力される表示デ
ータに基づいて、例えば図3に示したような表示を行
う。
In FIG. 2, the LCD 8 is a display for displaying the type of parameter and the current value thereof when setting the parameters of the tone color data for each series, and is a display input from the CPU 1 via the LCD interface 8a. Based on the data, for example, the display as shown in FIG. 3 is performed.

【0023】パネルスイッチ9は、図3に示したよう
に、LCD8の表示画面を切り換える画面切換スイッチ
91、パラメータ等の設定データを選択するためのカー
ソルキー92およびパラメータ等のデータを変更するた
めのデータ変更キー93を備えており、各スイッチ操作
はパネルスイッチインターフェース9aを介してCPU
1に検知される。
The panel switch 9 is, as shown in FIG. 3, a screen switch 91 for switching the display screen of the LCD 8, a cursor key 92 for selecting setting data such as parameters, and data for changing parameters and the like. A data change key 93 is provided, and each switch operation is performed by the CPU via the panel switch interface 9a.
1 is detected.

【0024】なお、画面切換スイッチ91の操作によ
り、音色番号設定の画面、この音色番号に対応する各系
列W1,W2,のパラメータ表示画面等の切換えが行わ
れ、各画面でカーソルキー92、データ変更キー93の
操作により音色データのパラメータが設定される。
By operating the screen changeover switch 91, the tone color number setting screen and the parameter display screens of the respective series W1, W2 corresponding to this tone color number are changed over. By operating the change key 93, the parameters of the tone color data are set.

【0025】この実施例では、図6に示したように32
のエリアDB[0],DB[1],…DB[31]から
なるディレイバッファがRAM7に設定されており、キ
ーオンまたはキーオフが指定された音色番号の各系列に
ついて、その系列の楽音をディレイ数に応じた回数だけ
発音および消音するまでその系列の各パラメータをこの
ディレイバッファに記憶しておく。
In this embodiment, as shown in FIG.
A delay buffer consisting of areas DB [0], DB [1], ..., DB [31] is set in the RAM 7, and for each series of tone color numbers for which key-on or key-off is designated, the tone of that series is delayed by the number of delays. Each parameter of the series is stored in this delay buffer until it is sounded and muted a number of times according to.

【0026】また、RAM7には、図7に示したように
ライトポインタWPとリードポインタRPによって書込
/読出アドレスが示される発音/消音キューが設定され
ており、ディレイバッファにパラメータが書き込まれて
いる系列で発音または消音のイベントのタイミングにな
ったものについて、そのパラメータをこの発音/消音キ
ューに書き込む。
Further, in the RAM 7, as shown in FIG. 7, a tone generation / mute queue in which a write / read address is indicated by a write pointer WP and a read pointer RP is set, and parameters are written in the delay buffer. Write the parameter to this pronunciation / mute queue for the sequenced sound or mute event timing.

【0027】CPU1は内部クロックをカウントして数
msec(2msec〜5msec)毎にタイマー割込
み処理を行い、後述説明するように、この割込み処理に
おいて、DB[i]のディレイタイムPTIMに基づい
て発音または消音のタイミングを計り、発音/消音キュ
ーへの書き込み処理を行う。そして、発音/消音処理に
おいて、この発音/消音キューから読み出したパラメー
タに基づいて発音または消音の処理を行う。
The CPU 1 counts the internal clock and performs a timer interrupt process every several msec (2 msec to 5 msec). As will be described later, in this interrupt process, sound is generated or generated based on the delay time PTIM of DB [i]. The timing of mute is measured, and the writing process to the pronunciation / mute queue is performed. Then, in the sound production / silence processing, the sound production / silence processing is performed based on the parameters read from the sound production / silence queue.

【0028】なお、ディレイバッファは、各エリアDB
[0],DB[1],…DB[31]のうちディレイタ
イムのカウント値PTIMが“0”になっているものが
空きエリアとされる。
The delay buffer is used for each area DB.
Among [0], DB [1], ... DB [31], the one having the delay time count value PTIM of “0” is set as an empty area.

【0029】さらに、図8に示したように、音源回路4
の現在発音中の発音チャンネル番号を記憶するための発
音割当レジスタがRAM7に設定されており、この発音
割当レジスタの各エリアには発音中の楽音についてのパ
ラメータが書き込まれ、消音が指定された楽音のパラメ
ータと発音割当レジスタの各エリアのパラメータとの一
致検出により、消音すべき発音チャンネルを検出する。
Further, as shown in FIG. 8, the tone generator circuit 4
A sound allocation register for storing the sounding channel number of the sound currently being sounded is set in the RAM 7, and the parameters for the sound being sounded are written in each area of this sound allocation register, and the sound tones for which mute is specified are specified. The sounding channel to be muted is detected by detecting the coincidence between the parameter of (1) and the parameter of each area of the sounding assignment register.

【0030】なお、発音割当レジスタの各エリアで消音
した発音チャンネル番号に対応するエリアの内容は
“0”にクリアされ、発音割当処理でこの“0”を検出
することにより空きチャンネルを検出する。
The contents of the area corresponding to the sounding channel number muted in each area of the sounding allocation register are cleared to "0", and an empty channel is detected by detecting this "0" in the sounding allocation processing.

【0031】ROM6には図9〜図14のフローチャー
トに示した制御プログラムが記憶されており、CPU1
は、この制御プログラムに基づいてRAM7のレジスタ
やバッファエリアを使用して装置全体の制御を行う。
The ROM 6 stores the control programs shown in the flow charts of FIGS. 9 to 14, and the CPU 1
Controls the entire device using the register and buffer area of the RAM 7 based on this control program.

【0032】図9は実施例における制御プログラムのメ
インルーチンのフローチャート、図10〜図14はサブ
ルーチンおよびタイマー割込み処理のフローチャートで
あり、各フローチャートに基づいて動作を説明する。な
お、以下の説明,各フローチャートにおいて、制御に用
いられるデータとその各レジスタおよびフラグを下記の
ラベルで表記し、各レジスタおよびフラグとそれらの内
容は特に断らない限り同一のラベルで表す。
FIG. 9 is a flow chart of the main routine of the control program in the embodiment, and FIGS. 10 to 14 are flow charts of the subroutine and the timer interrupt processing. The operation will be described based on each flow chart. In the following description and each flow chart, data used for control and each register and flag thereof are represented by the following labels, and each register and flag and their contents are represented by the same label unless otherwise specified.

【0033】TN:音色番号 LYN:レイヤ数(系列の数) DLN:ディレイ数 1ST:1stフラグ TIM:ディレイタイム DB[i]:ディレイバッファ(i=0〜31) PTIM:ディレイタイムのカウンタ(現在の残りデイ
レイタイム) NDLN:ディレイ数のカウンタ(次回のディレイ数) VWM:ウェーブ番号(系列の番号) NTMES:MIDI信号のノートメッセージ NTNUM:MIDI信号のノート番号 VEL:ベロシティ値 DLV:ディレイレベル DPC:ディレイピッチ CH:発音チャンネル番号 DTV:ディレイタイム変化量
TN: Tone number LYN: Number of layers (number of sequences) DLN: Number of delays 1ST: 1st flag TIM: Delay time DB [i]: Delay buffer (i = 0 to 31) PTIM: Counter of delay time (currently) Remaining delay time) NDNL: Delay number counter (next delay number) VWM: Wave number (sequential number) NTMES: MIDI signal note message NTNUM: MIDI signal note number VEL: Velocity value DLV: Delay level DPC: Delay pitch CH: Sound generation channel number DTV: Delay time change amount

【0034】電源の投入等によってCPU1が図9のメ
インルーチンの処理を開始すると、ステップS1で各種
レジスタのセットアップ等の初期設定処理を行い、ステ
ップS2で図10のパネル処理を行い、ステップS3に
進む。
When the CPU 1 starts the processing of the main routine of FIG. 9 by turning on the power, etc., initial setting processing such as setup of various registers is carried out in step S1, panel processing of FIG. 10 is carried out in step S2, and step S3 is carried out. move on.

【0035】ステップS3では、MIDI信号受信の有
無を判定し、受信がなければステップS5に進み、受信
があればステップS4で図11および図12のMIDI
信号受信処理を行ってステップS5に進む。
In step S3, it is determined whether or not a MIDI signal is received. If no MIDI signal is received, the process proceeds to step S5. If a MIDI signal is received, the MIDI signals shown in FIGS.
A signal reception process is performed and it progresses to step S5.

【0036】次に、ステップS5で図14の発音/消音
処理を行い、ステップS6でその他の処理を行ってステ
ップS2以降の処理を繰り返す。なお、ステップS6の
その他の処理では、パッドBの操作による発音処理やL
CD8における表示の処理等が行われる。
Next, in step S5, the pronunciation / silence processing of FIG. 14 is performed, in step S6, other processing is performed, and the processing of step S2 and subsequent steps is repeated. In addition, in the other processing of step S6, the sound generation processing by the operation of the pad B and L
Display processing and the like on the CD 8 are performed.

【0037】図10のパネル処理では、ステップS11
でパネルスイッチ9における各スイッチ操作に応じてデ
ータ(パラメータ)の変更が有ったか否かを判定し、デ
ータの変更がなければそのままメインルーチンに復帰
し、データの変更が有ればステップS12で変更値をR
AM7の音色データメモリに書き込み、メインルーチン
に復帰する。
In the panel processing of FIG. 10, step S11
Then, it is determined whether or not the data (parameter) is changed according to each switch operation on the panel switch 9, and if there is no data change, the process directly returns to the main routine, and if there is a data change, it is determined in step S12. Change value R
Write to the tone color data memory of AM7 and return to the main routine.

【0038】図11のMIDI信号受信処理では、先ず
ステップS21でMIDI信号中にノートメッセージに
よるキーオンイベントが有るか否かを判定し、キーオン
イベントが無ければステップS22に進み、キーオンイ
ベントが有ればステップS24以降の処理を行う。
In the MIDI signal reception process of FIG. 11, first, in step S21, it is determined whether or not there is a key-on event due to a note message in the MIDI signal. If there is no key-on event, the process proceeds to step S22, and if there is a key-on event. The processing after step S24 is performed.

【0039】ステップS22では、MIDI信号中にノ
ートメッセージによるキーオフイベントが有るか否かを
判定し、キーオフイベントが無ければステップS23で
MIDI信号のその他の処理を行ってメインルーチンに
復帰し、ステップS22でキーオフ信号があれば図12
のステップS209に進む。
In step S22, it is determined whether or not there is a key-off event due to a note message in the MIDI signal, and if there is no key-off event, other processing of the MIDI signal is performed in step S23 to return to the main routine, and then step S22. If there is a key-off signal in
To step S209.

【0040】ステップS24では、MIDI信号のMI
DIチャンネル番号とノート番号とに基づいて音色番号
テーブルを参照して音色番号を得るとともにそれをレジ
スタTNに記憶し、ステップS25で音色データメモリ
から音色番号TNの音色データのレイヤ数を得るととも
にそれをレジスタLYNに記憶し、ステップS26でレ
ジスタjに“1”をセットしてステップS27に進む。
In step S24, the MI of the MIDI signal is
The tone color number table is obtained based on the DI channel number and the note number, and the tone color number is obtained and stored in the register TN. In step S25, the number of layers of the tone color data of the tone color number TN is obtained from the tone color data memory. Is stored in the register LYN, "1" is set in the register j in step S26, and the process proceeds to step S27.

【0041】ここで、ステップS27以降の処理は、ス
テップS208によるレジスタjのインクリメントとス
テップS207の判定により、音色番号TNのレイヤ数
LYNすなわち系列の数だけ繰り返す。
Here, the processing from step S27 is repeated by the number of layers LYN of the tone color number TN, that is, the number of sequences, by the increment of the register j in step S208 and the determination in step S207.

【0042】先ず、ステップS27で音色番号TNのウ
ェーブ番号jの音色データからデイレイ数、1stフラ
グおよびディレイタイムの各パラメータを読み出し、そ
れぞれレジスタDLN,1ST,TIMに記憶してステ
ップS28に進む。
First, in step S27, the parameters of the delay number, the 1st flag and the delay time are read from the tone color data of the wave number j of the tone color number TN, stored in the registers DLN, 1ST and TIM respectively, and the process proceeds to step S28.

【0043】ステップS28では、DLN>0であるか
否かを判定し、DLN>0であれば現在の系列(ウェー
ブ番号j)は遅延した発音を行うように設定されている
のでステップS29以降の処理を行い、DLN>0でな
ければ現在の系列は第1音だけを発音するように設定さ
れているのでレジスタNDLNに“0”を、レジスタP
TIMに“1”を、レジスタVWMに“1”をそれぞれ
記憶してステップS204以降の処理を行う。
In step S28, it is determined whether or not DLN> 0. If DLN> 0, the current sequence (wave number j) is set to perform delayed sound generation. If DLN> 0 is not processed, the current sequence is set to sound only the first tone, so "0" is set in the register NDLN and the register P is set.
"1" is stored in the TIM and "1" is stored in the register VWM, and the processing from step S204 is performed.

【0044】すなわち、ステップS29では、ディレイ
バッファのエリアDB[0]〜DB[31]のうちPT
IMが“0”となっている空きエリアDB[k]を探
し、ステップS201でレジスタNDLNに“1”を、
レジスタPTIMにTIM(ディレイタイム)を、レジ
スタVWMにjをそれぞれ記憶してステップS202に
進む。
That is, in step S29, PT of the areas DB [0] to DB [31] of the delay buffer is used.
Find an empty area DB [k] in which IM is "0", and set "1" to the register NDLN in step S201.
TIM (delay time) is stored in the register PTIM and j is stored in the register VWM, and the process proceeds to step S202.

【0045】ステップS202では、ステップS29で
見つけた空きエリアDB[k]に、NTMES、NTN
UM、VEL、NDLN、PTIM、VWNの各パラメ
ータを書き込み、ステップS203でフラグ1STの
“ON/OFF”を調べ、“ON”であれば、第1楽音
を発音するのでステップS204に進み、“OFF”で
あればステップS207に進む。
In step S202, NTMES, NTN are added to the empty area DB [k] found in step S29.
The parameters UM, VEL, NDLN, PTIM, and VWN are written, and "ON / OFF" of the flag 1ST is checked in step S203. If "ON", the first tone is sounded, so the process proceeds to step S204, and "OFF". If “”, the process proceeds to step S207.

【0046】一方、ステップS204では、音源回路4
の発音割当処理を行って割り当てた発音チャンネルのチ
ャンネル番号をレジスタCHに記憶し、ステップS20
5で発音割当レジスタのチャンネル番号CHに対応する
エリアにNTMES、NTNUM、NDLN、PTI
M、VWNの各パラメータを書き込む。
On the other hand, in step S204, the tone generator circuit 4
Is performed and the channel number of the assigned pronunciation channel is stored in the register CH, and step S20 is performed.
In the area corresponding to the channel number CH of the pronunciation assignment register in 5, NTMES, NTNUM, NDLN, PTI
Write each parameter of M and VWN.

【0047】そして、ステップS206で、音色番号T
Nのウェーブ番号VWNに対応する系列の音色データか
ら、その他の音色データを読み出してそれを音源回路4
のCHチャンネルに送り、発音指示を行ってステップS
207に進む。
Then, in step S206, the tone color number T
Other tone color data is read out from the tone color data of the sequence corresponding to the N wave number VWN, and is read out.
Send to the CH channel of the
Proceed to 207.

【0048】ステップS207では、j=LYNである
か否かすなわち現在のウェーブ番号が現在の音色番号の
レイヤ数に達しているか否かを判定し、j=LYNでな
ければステップS208でjをインクリメントしてステ
ップS27以降の処理を繰り返し、j=LYNであれば
メインルーチンに復帰する。
In step S207, it is determined whether or not j = LYN, that is, whether or not the current wave number has reached the number of layers of the current timbre number. If j = LYN, j is incremented in step S208. Then, the processes from step S27 are repeated, and if j = LYN, the process returns to the main routine.

【0049】以上の処理は、MIDI信号のキーオンイ
ベントについての処理であり、キーオンが指定された音
色番号TNの楽音について、各系列のパラメータがディ
レイバッファに書き込まれ、第1楽音として発音した場
合は発音割当レジスタにその系列のVEL(ベロシテ
ィ)以外のパラメータが書き込まれる。
The above processing is for the key-on event of the MIDI signal, and for the tone of tone color TN for which key-on is designated, the parameters of each series are written in the delay buffer, and when the tone is pronounced as the first tone. Parameters other than the VEL (velocity) of the series are written in the sound allocation register.

【0050】図12のステップS209以降の処理はM
IDI信号のキーオフイベントについての処理であり、
先ずステップS209で、MIDIチャンネル番号とノ
ート番号とに基づいて音色番号テーブルを参照して音色
番号を得るとともにそれをレジスタTNに記憶し、ステ
ップS210で音色番号TNの音色データのレイヤ数を
得るとともにレジスタLYNに記憶し、ステップS21
1でレジスタjに“1”をセットしてステップS212
に進む。
The processing after step S209 in FIG.
It is a process for a key-off event of the IDI signal,
First, in step S209, the tone color number table is obtained based on the MIDI channel number and the note number, and the tone color number is obtained and stored in the register TN. In step S210, the number of layers of tone color data of the tone color number TN is obtained. Store in register LYN, step S21
At step S212, the register j is set to "1" by 1
Proceed to.

【0051】このステップS212以降の処理は、前記
同様にステップS221によるレジスタjのインクリメ
ントとステップS220の判定により系列の数だけ繰り
返し、ステップS212で音色番号TNのウェーブ番号
jの音色データからデイレイ数とディレイタイムのパラ
メータを読み出し、それぞれレジスタDLN,TIMに
記憶してステップS213に進む。
The processing from step S212 onward is repeated by the number of series by the increment of the register j in step S221 and the determination in step S220 in the same manner as described above. In step S212, the tone color data of the wave number j of the tone color number TN is converted into the number of delays. The parameters of the delay time are read out and stored in the registers DLN and TIM, respectively, and the process proceeds to step S213.

【0052】ステップS213では、DLN>0である
か否かを判定し、DLN>0であれば、第2楽音以降を
発音するように設定された系列についてのキーオフであ
るので、遅延した消音を行うためにステップS214以
降の処理を行い、DLN>0でなければ、第1音だけを
発音するように設定された系列についてのキーオフであ
るので、レジスタNDLNに“0”を、レジスタPTI
Mに“1”を、レジスタVWMに“1”をそれぞれ記憶
して直ぐに消音するようにステップS218以降の処理
を行う。
In step S213, it is determined whether or not DLN> 0. If DLN> 0, it means that the key-off is performed for the sequence set to generate the second and subsequent tones, so that the delayed muffling is performed. In order to carry out the processing, step S214 and the subsequent steps are performed. If DLN> 0 is not satisfied, the key off is for the sequence set to sound only the first tone, so "0" is set in the register NDLN and the register PTI is set.
"1" is stored in M and "1" is stored in the register VWM, and the processing from step S218 is performed to immediately mute the sound.

【0053】すなわち、ステップS214でディレイバ
ッファのエリアDB[0]〜DB[31]からPTIM
が“0”となっている空きエリアDB[k]を探し、ス
テップS215でレジスタNDLNに“1”を、レジス
タPTIMにTIM(ディレイタイム)を、レジスタV
WMにjをそれぞれ記憶してステップS216に進む。
That is, in step S214, the areas DB [0] to DB [31] of the delay buffer are changed to PTIM.
Is searched for an empty area DB [k] whose value is "0", and in step S215 the register NDLN is set to "1", the register PTIM is set to TIM (delay time), and the register V
Each j is stored in the WM and the process proceeds to step S216.

【0054】ステップS216では、空きエリアDB
[k]に、NTMES、NTNUM、VEL、NDL
N、PTIM、VWNの各パラメータを書き込み、ステ
ップS217でフラグ1STの“ON/OFF”を調
べ、“ON”であれば、第1楽音を消音するのでステッ
プS218に進み、“OFF”であればステップS22
0に進む。
In step S216, the empty area DB
In [k], NTMES, NTNUM, VEL, NDL
Each parameter of N, PTIM and VWN is written, and "ON / OFF" of the flag 1ST is checked in step S217. If "ON", the first musical tone is muted, so the process proceeds to step S218, and if "OFF". Step S22
Go to 0.

【0055】一方、ステップS218では、発音割当レ
ジスタのチャンネル番号“0”〜“15”に対応する各
エリアについて、NTMES、NTNUM、NDLN、
PTIM、VWNの各パラメータがそれぞれ一致するエ
リアのチャンネル番号を探し、ステップS219で、見
つかったチャンネル番号に対応するエリアのデータを全
て“0”にして音源回路4の対応するチャンネルに消音
指示を行い、ステップS220に進む。
On the other hand, in step S218, for each area corresponding to the channel number "0" to "15" of the tone generation assignment register, NTMES, NTNUM, NDLN,
The channel number of the area where the PTIM and VWN parameters match is searched for, and in step S219, all the data of the area corresponding to the found channel number is set to "0", and a mute instruction is given to the corresponding channel of the tone generator circuit 4. , And proceeds to step S220.

【0056】ステップS220では、j=LYNである
か否かすなわち各系列の処理が終了したか否かを判定
し、j=LYNでなければステップS221でjをイン
クリメントしてステップS212以降の処理を繰り返
し、j=LYNであればメインルーチンに復帰する。
In step S220, it is determined whether or not j = LYN, that is, whether or not the processing of each series is completed. If j = LYN is not satisfied, j is incremented in step S221, and the processing from step S212 onward is performed. Repeatedly, if j = LYN, the process returns to the main routine.

【0057】以上のキーオフについての処理により、キ
ーオンが指定された音色番号TNの楽音について、NT
MESによってキーオフが指定されている各系列のパラ
メータがディレイバッファDBに書き込まれ、第1楽音
について消音した場合は発音割当レジスタの対応するエ
リアに“0”が書き込まれて空きエリアとされる。
With the above key-off processing, NT is selected for the tone of tone color TN for which key-on is designated.
The parameters of each series for which the key-off is designated by the MES are written in the delay buffer DB, and when the first musical tone is muted, "0" is written in the corresponding area of the tone generation allocation register to make it an empty area.

【0058】次に図13のタイマー割込み処理は、CP
U1のタイマー割込みにより数msec毎に起動され、
ステップS31でレジスタiに“0”をセットしてステ
ップS303によるレジスタiのインクリメントとステ
ップS302の判定により、ステップS32以降の処理
をディレイバッファの各エリアDB[0]〜DB[3
1]毎に繰り返す。
Next, the timer interrupt processing of FIG.
It is activated every few msec by U1 timer interrupt,
In step S31, "0" is set in the register i, the register i is incremented in step S303, and the determination in step S302 is performed, so that the processes in and after step S32 are performed in the areas DB [0] to DB [3 of the delay buffer.
1] every time.

【0059】先ずステップS32では、ディレイバッフ
ァのエリアDB[i]についてPTIM=0であるか否
かを判定し、PTIM=0であればステップS302に
進み、PTIM=0でなければステップS33で、エリ
アDB[i]についてPTIMをデクリメントしてステ
ップS34に進む。
First, in step S32, it is determined whether or not PTIM = 0 for the area DB [i] of the delay buffer. If PTIM = 0, the process proceeds to step S302. If PTIM = 0 is not satisfied, the process proceeds to step S33. The PTIM is decremented for the area DB [i] and the process proceeds to step S34.

【0060】ここで、この割込み処理では、各エリアD
B[i]のPTIM(現在のディレイタイム)をデクリ
メントすることにより遅延時間を計時し、ステップS3
4以降の処理により、現在PTIM=0となったエリア
については発音または消音のための処理を行うととも
に、次のイベント(発音または消音)についてのディレ
イタイムPTIMをディレイタイム変化量と現在のディ
レイ回数とに応じて更新する。
In this interrupt processing, each area D
The delay time is measured by decrementing PTIM (current delay time) of B [i], and step S3
By the processing from 4 onward, the processing for sounding or muting is performed for the area where PTIM = 0 now, and the delay time PTIM for the next event (sounding or muting) is set as the delay time change amount and the current number of delays. And update accordingly.

【0061】すなわち、ステップS34ではエリアDB
[i]についてPTIM=0であるか否かを判定し、P
TIM=0でなければ発音または消音のイベントのタイ
ミングでないのでステップS302に進む。
That is, in step S34, the area DB
It is determined whether PTIM = 0 for [i], and P
If it is not TIM = 0, it is not the timing of the event of sounding or muffling, so the routine proceeds to step S302.

【0062】PTIM=0であればエリアDB[i]に
書き込まれているパラメータに対応する楽音のイベント
のタイミングであるので、ステップS35でエリアDB
[i]の全てのデータを、ライトポインタWPを進めな
がら発音/消音キューに書き込み、ステップS36に進
む。
If PTIM = 0, it is the timing of the event of the musical sound corresponding to the parameter written in the area DB [i], and therefore the area DB is determined in step S35.
All the data of [i] is written in the tone generation / mute queue while advancing the write pointer WP, and the process proceeds to step S36.

【0063】ステップS36では、エリアDB[i]の
NTMES中のMIDIチャンネル番号とノート番号N
TNUMとに基づいて音色番号テーブルを参照して音色
番号を得るとともにそれをレジスタTNに記憶し、ステ
ップS37で、この音色番号TNとエリアDB[i]中
のウェーブ番号VWNとにより、音色データメモリから
対応するディレイタイム、ディレイタイム変化量および
ディレイ数パラメータを読み出し、これらをレジスタT
IM,DTV,DLNにそれぞれ記憶してステップS3
8に進む。
In step S36, the MIDI channel number and the note number N in the NTMES of the area DB [i].
The tone color number table is obtained based on TNUM and the tone color number is obtained and stored in the register TN. In step S37, the tone color data is stored by the tone color number TN and the wave number VWN in the area DB [i]. The corresponding delay time, delay time change amount, and delay number parameters are read from
Store in IM, DTV, DLN respectively and step S3
Go to 8.

【0064】ステップS38では、エリアDB[i]に
ついてNDLN<DLNであるか否かを判定し、NDL
N<DLNでなければ現在のディレイ回数NDLNが設
定されているディレイ数DLNに達しているのでステッ
プSステップS302に進み、NDLN<DLNであれ
ば、現在のディレイ回数NDLNが設定されているディ
レイ数DLNに達していないのでステップS39に進
む。
In step S38, it is determined whether NDLN <DLN for area DB [i], and NDLN
If N <DLN is not satisfied, the current delay number NDLN has reached the set delay number DLN, so the process proceeds to step S302. If NDLN <DLN, the current delay number NDLN is set. Since it has not reached DLN, the process proceeds to step S39.

【0065】ステップS39では、エリアDB[i]に
ついて、TIMにDTVを現在のディレイ回数NDLN
回加えてその値(TIM+DTV×NDLN)をレジス
タPTIMに記憶し、ステップS301で、エリアDB
[i]について、現在のディレイ回数NDLNをインク
リメントしてステップS302に進む。
In step S39, for the area DB [i], the DTV is set to the TIM and the current delay number NDLN is set.
In addition, the value (TIM + DTV × NDLN) is stored in the register PTIM, and the area DB is stored in step S301.
For [i], the current delay number NDLN is incremented and the process proceeds to step S302.

【0066】ステップS302では、i=31であるか
否かすなわち全てのエリアDB[0]〜DB[31]に
ついての処理が終了したか否かを判定し、i=31でな
ければステップS303でiをインクリメントしてステ
ップS32以降の処理を繰り返し、i=31であればメ
インルーチンに復帰する。
In step S302, it is determined whether or not i = 31, that is, whether or not the processing for all areas DB [0] to DB [31] has been completed. If i = 31, then in step S303. i is incremented and the processes from step S32 are repeated. If i = 31, the process returns to the main routine.

【0067】以上のタイマー割込み処理により、ディレ
イバッファにパラメータが記憶されている各系列につい
て、図1に示した最初のディレイタイムDとディレイタ
イム変化量DTVとで決まる発音および消音のタイミン
グが検出され、各タイミングでその系列のパラメータが
発音/消音キューに書き込まれる。
By the above timer interrupt processing, the timing of sound generation and mute determined by the first delay time D and the delay time change amount DTV shown in FIG. 1 is detected for each series in which the parameters are stored in the delay buffer. , At each timing, the parameters of that series are written in the sound production / silence queue.

【0068】また、ディレイ数分の処理が終了した系列
については、ディレイバッファDBの対応するエリアの
ディレイタイムPTIMが“0”にされ、この“0”に
よりディレイバッファDBの空きエリアとされる。
For the series in which the processing for the number of delays has been completed, the delay time PTIM of the corresponding area of the delay buffer DB is set to "0", and this "0" is set as an empty area of the delay buffer DB.

【0069】図14の発音/消音処理は、発音/消音キ
ューの内容に応じて音源回路4に対して発音および消音
の指示を行う処理であり、ステップS41で発音/消音
キューのリードポインタRPとライトポインタWPとが
等しくないか否かを判定し、等しければ発音/消音キュ
ーに読み出されていないデータがないことになるので、
発音および消音の処理が終了していると判定してメイン
ルーチンに復帰する。
The sound generation / mute processing of FIG. 14 is processing for instructing the sound source circuit 4 to sound and mute according to the content of the sound generation / mute queue. It is determined whether the write pointer WP and the write pointer WP are not equal. If they are equal, there is no unread data in the sound generation / mute queue.
It is determined that the processing of sounding and muting has been completed, and the process returns to the main routine.

【0070】一方、リードポインタRPとライトポイン
タWPとが等しくなければ、発音/消音キューに読み出
されていないデータがあることになるので、ステップS
42でリードポインタRPを進めながら発音/消音キュ
ーから6バイトのデータを読み出し、それぞれレジスタ
NTMES、NTNUM、VEL、NDLN、PTI
M、VWNに記憶する。
On the other hand, if the read pointer RP and the write pointer WP are not equal, there is data that has not been read out in the tone generation / mute queue.
At 42, while advancing the read pointer RP, 6-byte data is read out from the sounding / silence queue, and registers NTMES, NTNUM, VEL, NDLN, and PTI respectively.
Store in M and VWN.

【0071】次に、ステップS43でノートメッセージ
NTMESがキーオンであるかキーオフであるかを判定
し、キーオンであればステップS44以降の処理で音源
回路4に発音指示を行い、キーオフであればステップS
401以降の処理で音源回路4に消音指示を行う。
Next, in step S43, it is determined whether the note message NTMES is key-on or key-off. If it is key-on, the sound source circuit 4 is instructed to sound in the process after step S44, and if it is key-off, step S44 is performed.
In the processing from 401, the sound source circuit 4 is instructed to mute.

【0072】ステップS44では、発音割当処理により
音源回路4における発音チャンネルの割当チャンネルを
探してそのチャンネル番号をレジスタCHに記憶し、ス
テップS45で発音割当レジスタのチャンネル番号CH
に対応するエリアにNTMES、NTNUM、NDL
N、PTIM、VWNのパラメータを書き込み、ステッ
プS46に進む。
In step S44, a tone generation channel allocation channel in the tone generator circuit 4 is searched for by the tone generation assignment processing, and the channel number is stored in the register CH. In step S45, the tone number assignment register channel number CH is stored.
In areas corresponding to NTMES, NTNUM, NDL
Parameters of N, PTIM, and VWN are written, and the process proceeds to step S46.

【0073】ステップS46では、NTMESおよびN
TNUMで音色番号テーブルを参照して得た音色番号T
Nとウェーブ番号VWNとにより、音色データメモリか
ら対応するディレイレベルとディレイピッチを読み出
し、これらをレジスタDLV,DPCにそれぞれ記憶し
てステップS47に進む。
At step S46, NTMES and N
Tone number T obtained by referring to the tone number table in TNUM
Based on N and the wave number VWN, the corresponding delay level and delay pitch are read from the tone color data memory, stored in the registers DLV and DPC, respectively, and the process proceeds to step S47.

【0074】ステップS47では、音色番号TNとウェ
ーブ番号VWNとにより音色データメモリから対応する
その他の音色データを読み出し、この音色データ中のピ
ッチデータにDPCをNDLN回加えてその値(ピッチ
データ+DPC×NDLN)を音源回路4のCHチャン
ネルに送り、ステップS48では、VELにDLVをN
DLN回加えてその値(VEL+DLV×NDLN)を
音源回路4のCHチャンネルに送る。
In step S47, other corresponding tone color data is read from the tone color data memory by the tone color number TN and the wave number VWN, and DPC is added to the pitch data in this tone color data NDLN times to obtain the value (pitch data + DPC × NDNL) to the CH channel of the tone generator circuit 4, and in step S48, set DLV to N
DLN times are added and the value (VEL + DLV × NDLN) is sent to the CH channel of the tone generator circuit 4.

【0075】そして、ステップS49で、音色番号TN
とウェーブ番号VWNとにより読み出したその他の音色
データを音源回路4のCHチャンネルに送って発音指示
を行い、ステップS41に戻る。
Then, in step S49, the tone color number TN
And other tone color data read by the wave number VWN are sent to the CH channel of the tone generator circuit 4 to give a sounding instruction, and the process returns to step S41.

【0076】一方、ステップS401では、発音割当レ
ジスタのチャンネル番号“0”〜“15”に対応する各
エリアについて、NTMES、NTNUM、NDLN、
PTIM、VWNの各データがそれぞれ一致するエリア
のチャンネル番号を探し、ステップS402で、見つか
ったチャンネル番号に対応するエリアのデータを全て
“0”にして音源回路4の対応するチャンネルに消音指
示を行い、ステップS41に戻る。
On the other hand, in step S401, for each area corresponding to the channel numbers "0" to "15" of the tone generation assignment register, NTMES, NTNUM, NDLN,
The channel number of the area in which the PTIM and VWN data respectively match is searched for, and in step S402, all the data in the area corresponding to the found channel number is set to "0" and a mute instruction is given to the corresponding channel of the tone generator circuit 4. , And returns to step S41.

【0077】以上の発音/消音処理により、ステップS
44以降の発音処理では、ディレイ数回発音される楽音
のピッチがディレイピッチ分だけ次第に変化したものと
なり、かつ、レベルもディレイレベル分だけ次第に変化
したものとなる。
By the above sounding / silence processing, step S
In the sound generation processing after 44, the pitch of the musical sound to be sounded several times with delay is gradually changed by the delay pitch, and the level is also gradually changed by the delay level.

【0078】また、ステップS401以降の消音処理に
より、消音の対象となるチャンネルが消音され、発音割
当レジスタのこの消音したチャンネルに対応するエリア
に“0”が書き込まれて空きエリアとされる。
Further, by the sound deadening processing from step S401, the channel to be muted is muted, and "0" is written in the area corresponding to the muted channel in the sound generation allocation register to make it an empty area.

【0079】図15および図16は実施例において第1
系列W1と第2系列W2の2系列による出力楽音の一例
を示す図であり、図15は各系列のパラメータを次表2
のように設定した場合、図16は各系列のパラメータを
次表3のように設定した場合を示している。
15 and 16 show the first embodiment.
It is a figure which shows an example of the output musical sound by two series of the series W1 and the 2nd series W2, and FIG.
16 shows the case where the parameters of each series are set as shown in Table 3 below.

【0080】[0080]

【表2】 [Table 2]

【0081】[0081]

【表3】 [Table 3]

【0082】図15および表2の場合では、キーオンに
より第1系列と第2系列の第1楽音は同時に発音され、
第2系列において、第1楽音に対する第2楽音の遅延時
間(D2 )より第2楽音に対する第3楽音の遅延時間
(d2 )がディレイタイム変化量“−2”だけ短くな
り、第2楽音のピッチは第1楽音のピッチより“2”だ
け低くなり、第3楽音のピッチは第1楽音のピッチより
“4”だけ低くなっている。
In the case of FIG. 15 and Table 2, the first tone of the first series and the second tone of the second series are simultaneously produced by key-on,
In the second sequence, the delay time (d 2 ) of the third musical tone with respect to the second musical tone is shorter than the delay time (D 2 ) of the second musical tone with respect to the first musical tone by the delay time change amount “−2”, and the second musical tone is delayed. Is lower than the pitch of the first musical tone by "2", and the pitch of the third musical tone is lower than that of the first musical tone by "4".

【0083】また、第1系列においては、第1楽音に対
する第2楽音の遅延時間(D1 )と第2楽音に対する第
3楽音の遅延時間(d2 )は同じで、第2楽音のピッチ
は第1楽音のピッチより“2”だけ高くなり、第3楽音
のピッチは第1楽音のピッチより“4”だけ高くなって
いる。
In the first sequence, the delay time (D 1 ) of the second musical tone with respect to the first musical tone and the delay time (d 2 ) of the third musical tone with respect to the second musical tone are the same, and the pitch of the second musical tone is The pitch of the first musical tone is higher by "2", and the pitch of the third musical tone is higher than that of the first musical tone by "4".

【0084】さらに、両系列において、第2楽音のレベ
ルは第1楽音のレベルより“5”だけ低くなり、第3楽
音のレベルは第1楽音のレベルより“10”だけ低くな
っている。
Further, in both sequences, the level of the second musical tone is lower than that of the first musical tone by "5", and the level of the third musical tone is lower than that of the first musical tone by "10".

【0085】この図15の場合は、第2系列のディレイ
タイムD2 は第1系列のディレイタイムD1 より僅かに
長く設定されているので、は両系列間の時間差により第
2楽音においてキーオンディレイの効果が得られ、第3
楽音においては両系列間の時間差が第2楽音の場合と異
なるので、さらに、効果音的なキーオンディレイの効果
が得られる。また、第2楽音と第3楽音のピッチは第1
楽音のピッチとそれぞれ異なるので効果音的な楽音が得
られる。
In the case of FIG. 15, since the delay time D 2 of the second series is set to be slightly longer than the delay time D 1 of the first series, the key-on delay in the second tone is caused by the time difference between the two series. The effect of is obtained, the third
In the case of a musical sound, the time difference between the two sequences is different from that in the case of the second musical sound, so that the effect of a key-on delay like a sound effect is further obtained. The pitch of the second and third tones is the first
Since the pitches of the musical tones are different from each other, it is possible to obtain effective musical tones.

【0086】図16および表3の場合では各系列におい
て複数の遅延する楽音を発生していないが、図示のよう
に、この実施例によればキーオンにより第1系列だけを
発音し、第2系列をこの第1系列からディレイタイムD
3 だけ遅延して発音されている。
In the case of FIG. 16 and Table 3, a plurality of delayed musical tones are not generated in each series, but as shown in the figure, according to this embodiment, only the first series is sounded by key-on, and the second series. From this first series, delay time D
It is pronounced with a delay of 3 .

【0087】この第2系列の楽音の音色は第1系列の楽
音の残響音の音色に設定されたもので、第1系列の楽音
にそれよりレベルの小さな残響音を遅延して合成するこ
とができ、残響効果の高い楽音が得られる。また、第1
系列と第2系列の音色を同様なものにしてディレイタイ
ムD3 を小さくすることにより、従来のキーオンディレ
イの効果も得られる。
The timbre of the second series of musical tones is set to the timbre of the reverberation of the first series of musical tones, and the reverberation of a lower level than the reverberation of the first series of musical tones can be synthesized. It is possible to obtain a musical sound with a high reverberation effect. Also, the first
By making the timbres of the series and the second series similar to each other and reducing the delay time D 3 , the effect of the conventional key-on delay can be obtained.

【0088】なお、上記の実施例の楽音発生装置はリズ
ム音源モジュールを構成したものであるが、これに限ら
ず、本発明の楽音発生装置は通常の鍵盤式電子楽器、管
楽器タイプの電子楽器、弦楽器タイプの電子楽器等にも
適用できることはいうまでもない。
Although the musical tone generating device of the above-mentioned embodiment constitutes a rhythm sound source module, the musical tone generating device of the present invention is not limited to this, and the musical tone generating device of the present invention is not limited to the ordinary keyboard type electronic musical instrument, wind instrument type electronic musical instrument, It goes without saying that it can be applied to a stringed instrument type electronic musical instrument or the like.

【0089】また、本実施例においては、第2楽音以下
のディレイ音のレベル、ピッチ、タイムを、これらのパ
ラメータの変化量を累積加算することによって得るよう
にしているが、これに限らず、例えば、第2楽音以下の
ディレイ音のパラメータを各々個別に設定できるように
してもよい。
Further, in the present embodiment, the level, pitch, and time of the delay tone of the second musical tone and below are obtained by cumulatively adding the variation amounts of these parameters, but the present invention is not limited to this. For example, the parameters of the delay sounds of the second musical sound and lower may be individually set.

【0090】[0090]

【発明の効果】以上説明したように請求項1の楽音発生
装置によれば、1回の発音指示に対して、第1楽音とこ
の第1楽音から順次遅延した第2楽音および第3楽音の
少なくとも3つ楽音を発生し、第1楽音から第2楽音ま
での遅延時間と第2楽音から第3楽音までの遅延時間、
または、第1楽音に対する第2楽音および第3楽音のピ
ッチについて、遅延時間およびピッチを設定し、この
延時間およびピッチに基づいて楽音を発生するようにし
たので、簡単な操作で効果音的な楽音を得ることができ
る。また、請求項2の楽音発生装置では、上記同様な3
つ楽音間の前記遅延時間またはピッチについて、この遅
延時間またはピッチの少なくとも何れか一方を設定する
とともに、前記第1楽音の発生の有無を設定し、設定さ
れた情報に基づいて上記遅延時間またはピッチの少なく
とも一方を異ならせて楽音を発生するとともに第1楽音
の発生の有無を制御するようにしたので、例えば、2系
統(複数系列)で楽音を発生するような場合に、一方の
系列は第1楽音を発生し、他方の系列は第1楽音を発生
しないようにして、残響音を合成するように一方の系列
の楽音の中から他方の楽音を合成するように制御するこ
ともでき、簡単な操作で効果音的な楽音を得ることがで
きる。
As described above, according to the musical tone generating apparatus of the first aspect, the first musical tone and the second musical tone and the third musical tone sequentially delayed from the first musical tone are generated in response to one sounding instruction. At least three musical tones are generated, the delay time from the first musical tone to the second musical tone and the delay time from the second musical tone to the third musical tone,
Alternatively, a delay time and a pitch are set for the pitches of the second and third musical tones with respect to the first musical tone, and this delay
Since the musical sound is generated based on the delay time and the pitch, it is possible to obtain the effective musical sound by a simple operation. Further, in the musical tone generating apparatus of claim 2, the same 3
The delay time or pitch between two musical notes
Set at least one of delay time and pitch
At the same time, whether or not to generate the first musical tone is set and set.
Based on the information provided, less delay time or less pitch
Generates a musical sound by changing one side and the first musical sound
Since it was controlled whether or not the occurrence of
If you want to generate a musical sound in a series (multiple series),
The sequence produces the first tone, the other sequence produces the first tone
Do not try to synthesize one of the reverberations
Control to synthesize the other tone from the other tone.
And you can get a sound effect sound effect with a simple operation.
Wear.

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

【図1】本発明実施例における発生楽音とパラメータの
関係を説明する図である。
FIG. 1 is a diagram for explaining the relationship between generated musical tones and parameters in an embodiment of the present invention.

【図2】本発明実施例の楽音発生装置のブロック図であ
る。
FIG. 2 is a block diagram of a musical tone generating apparatus according to an embodiment of the present invention.

【図3】実施例におけるパネル面の一部を示す図であ
る。
FIG. 3 is a diagram showing a part of a panel surface in an example.

【図4】実施例における音色データメモリを示す図であ
る。
FIG. 4 is a diagram showing a tone color data memory in the embodiment.

【図5】実施例における音色番号テーブルを示す図であ
る。
FIG. 5 is a diagram showing a tone color number table in the embodiment.

【図6】実施例におけるディレイバッファを示す図であ
る。
FIG. 6 is a diagram showing a delay buffer in the embodiment.

【図7】実施例における発音/消音キューを示す図であ
る。
FIG. 7 is a diagram showing a pronunciation / silence cue in the embodiment.

【図8】実施例における発音割当レジスタを示す図であ
る。
FIG. 8 is a diagram showing a pronunciation assignment register in the embodiment.

【図9】実施例におけるメインルーチンのフローチャー
トである。
FIG. 9 is a flowchart of a main routine in the embodiment.

【図10】実施例におけるパネル処理のフローチャート
である。
FIG. 10 is a flowchart of a panel process in the embodiment.

【図11】実施例におけるMIDI信号受信処理のフロ
ーチャートの一部である。
FIG. 11 is a part of a flowchart of MIDI signal reception processing in the embodiment.

【図12】実施例におけるMIDI信号受信処理のフロ
ーチャートの他の一部である。
FIG. 12 is another part of the flowchart of the MIDI signal receiving process in the embodiment.

【図13】実施例におけるタイマー割込み処理のフロー
チャートである。
FIG. 13 is a flowchart of timer interrupt processing in the embodiment.

【図14】実施例における発音/消音処理のフローチャ
ートである。
FIG. 14 is a flow chart of sound generation / mute processing in the embodiment.

【図15】実施例における発生楽音の一例を示す図であ
る。
FIG. 15 is a diagram showing an example of generated musical tones in the embodiment.

【図16】実施例における発生楽音の他の例を示す図で
ある。
FIG. 16 is a diagram showing another example of the generated musical sound in the embodiment.

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

1…CPU、2…MIDI端子、4…音源回路、5R,
5L…サウンドシステム、8…LCD、9…パネルスイ
ッチ。
1 ... CPU, 2 ... MIDI terminal, 4 ... Sound source circuit, 5R,
5L: sound system, 8 ... LCD, 9 ... panel switch.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G10H 1/00 - 7/00 G10K 15/12 ─────────────────────────────────────────────────── ─── Continuation of front page (58) Fields surveyed (Int.Cl. 7 , DB name) G10H 1/00-7/00 G10K 15/12

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1回の発音指示に対して、第1楽音とこ
の第1楽音から順次遅延した第2楽音および第3楽音の
少なくとも3つ楽音を発生する楽音発生装置であって、 第1楽音から第2楽音までの遅延時間と第2楽音から第
3楽音までの遅延時間、または、第1楽音に対する第2
楽音および第3楽音のピッチについて、遅延時間および
ピッチを設定できる楽音情報設定手段を備え、 該楽音情報設定手段で設定された遅延時間およびピッチ
に基づいて楽音を発生するようにしたことを特徴とする
楽音発生装置。
1. A musical tone generating device for generating at least three musical tones of a first musical tone and a second musical tone and a third musical tone, which are sequentially delayed from the first musical tone, in response to one pronunciation instruction. The delay time from the musical tone to the second musical tone and the delay time from the second musical tone to the third musical tone, or the second time with respect to the first musical tone.
For tone and third tone pitch, the delay time and
A tone information setting means capable of setting a pitch is provided, and the delay time and the pitch set by the tone information setting means are set.
A musical tone generating device characterized in that musical tone is generated based on .
【請求項2】 1回の発音指示に対して、第1楽音とこ
の第1楽音から順次遅延した第2楽音および第3楽音の
少なくとも3つ楽音を発生する楽音発生装置であって、 第1楽音から第2楽音までの遅延時間と第2楽音から第
3楽音までの遅延時間、または、第1楽音に対する第2
楽音および第3楽音のピッチについて、この遅延時間ま
たはピッチの少なくとも何れか一方を設定するととも
に、前記第1楽音の発生の有無を設定する楽音情報設定
手段を備え、 該楽音情報設定手段で設定された情報に基づいて上記遅
延時間またはピッチの少なくとも一方を異ならせて楽音
を発生するとともに、前記第1楽音の発生の有無を制御
するようにしたことを特徴とする楽音発生装置。
2. The first musical tone and the
Of the second and third tones sequentially delayed from the first tones of
A tone generation device for generating at least three tones, comprising: a delay time from a first tone to a second tone;
Delay time up to 3 tones or second to 1st tone
For the pitch of the tones and the third tone,
Or setting at least one of the pitches
To the tone information setting for setting whether or not the first tone is generated
Means for setting the delay based on the information set by the tone information setting means.
Musical sound with different delay time and / or pitch
Control the presence or absence of the first musical sound
A musical tone generator characterized in that
JP05153292A 1992-03-10 1992-03-10 Music generator Expired - Fee Related JP3409333B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05153292A JP3409333B2 (en) 1992-03-10 1992-03-10 Music generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05153292A JP3409333B2 (en) 1992-03-10 1992-03-10 Music generator

Publications (2)

Publication Number Publication Date
JPH05249966A JPH05249966A (en) 1993-09-28
JP3409333B2 true JP3409333B2 (en) 2003-05-26

Family

ID=12889637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05153292A Expired - Fee Related JP3409333B2 (en) 1992-03-10 1992-03-10 Music generator

Country Status (1)

Country Link
JP (1) JP3409333B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3193131B2 (en) * 1992-06-30 2001-07-30 株式会社河合楽器製作所 Electronic musical instrument
JP4619495B2 (en) * 2000-08-09 2011-01-26 株式会社河合楽器製作所 Automatic accompaniment apparatus and automatic accompaniment method
JP3812510B2 (en) * 2002-08-08 2006-08-23 ヤマハ株式会社 Performance data processing method and tone signal synthesis method

Also Published As

Publication number Publication date
JPH05249966A (en) 1993-09-28

Similar Documents

Publication Publication Date Title
JP3177374B2 (en) Automatic accompaniment information generator
JP3372124B2 (en) Electronic musical instrument
JP2002311957A (en) Resonator, resonance method, and computer program for resonance processing
JP3409333B2 (en) Music generator
US6066793A (en) Device and method for executing control to shift tone-generation start timing at predetermined beat
US6180866B1 (en) Reverberating/resonating apparatus and method
JP2004317615A (en) Resonator, resonance method, and computer program for resonance
JPH09330079A (en) Musical tone signal generating apparatus and musical tone signal generating method
JP3246911B2 (en) Electronic musical instrument
JP2698942B2 (en) Tone generator
US5942711A (en) Roll-sound performance device and method
JP3122661B2 (en) Electronic musical instrument
JP2701177B2 (en) Tone generator
JP3230265B2 (en) Sound channel assignment device for electronic musical instruments
JP3210582B2 (en) Automatic performance device and electronic musical instrument equipped with the automatic performance device
JP3282675B2 (en) Electronic musical instrument
JP3394688B2 (en) Automatic performance device and electronic musical instrument provided with the automatic performance device
JP3121196B2 (en) Electronic musical instrument
JPH07104753A (en) Electronic musical instrument automatic tuning device
JP3407563B2 (en) Automatic performance device and automatic performance method
JP3067507B2 (en) Electronic musical instrument
US6160214A (en) Non-consonance generating device and non-consonance generating method
JP3389609B2 (en) Electronic musical instrument
JP3275341B2 (en) Tone generator
JPH1063269A (en) Silence piano

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030218

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090320

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees