JPH0486698A - Electronic musical instrument - Google Patents
Electronic musical instrumentInfo
- Publication number
- JPH0486698A JPH0486698A JP2200975A JP20097590A JPH0486698A JP H0486698 A JPH0486698 A JP H0486698A JP 2200975 A JP2200975 A JP 2200975A JP 20097590 A JP20097590 A JP 20097590A JP H0486698 A JPH0486698 A JP H0486698A
- Authority
- JP
- Japan
- Prior art keywords
- musical tone
- performance information
- musical
- generating
- key
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 claims description 23
- 238000004088 simulation Methods 0.000 abstract 1
- 238000000034 method Methods 0.000 description 48
- 230000008569 process Effects 0.000 description 44
- 230000015654 memory Effects 0.000 description 13
- 101100069385 Toxoplasma gondii GRA6 gene Proteins 0.000 description 4
- 238000005259 measurement Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000002238 attenuated effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003936 working memory Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野コ
この発明は、電子楽器に関し、特に前音の影響を考慮し
て後音の楽音特性を制御する技術に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to electronic musical instruments, and particularly to a technique for controlling the musical tone characteristics of a trailing tone in consideration of the influence of a leading tone.
[発明の概要]
この発明は、楽音を発生させる際にその直前の楽音の残
り量をレベル検出又は時間測定等により求め、該残り量
に対応する楽音制御データに応じて楽音特性を制御する
ことによりピアノ等の自然楽器の連打発音を模擬可能と
したものである。[Summary of the Invention] The present invention provides for, when generating a musical tone, determining the remaining amount of the previous musical tone by level detection or time measurement, etc., and controlling musical tone characteristics in accordance with musical tone control data corresponding to the remaining amount. This makes it possible to simulate the continuous sound of natural instruments such as the piano.
[従来の技術]
従来、タッチ応答式の電子楽器としては、押鍵時に鍵タ
ツチ量(鍵タッチの強さ又は速さ)を検出し、該鍵タツ
チ量に応じて楽音の振幅エンベロープ等の特性を制御す
るようにしたものが知られている。[Prior Art] Conventionally, touch-responsive electronic musical instruments detect the amount of key touch (strength or speed of key touch) when a key is pressed, and adjust characteristics such as the amplitude envelope of a musical tone according to the amount of key touch. There are known devices that control the
また、前音応答式の電子楽器としては、前音のキーオフ
(減衰開始)から今回のキーオンまでの時間間隔を測定
し、その測定値が所定値より小さければレガート奏法と
判定してそれに対応する振幅エンベロープに応じて楽音
制御を行ない、そうでなければスタッカート奏法と判定
してそれに対応する振幅エンベロープに応じて楽音制御
を行なうようにしたものが知られている(例えは特開昭
59−182496号公報参照)。In addition, as a forenote response type electronic instrument, the time interval from the key-off (start of decay) of the forenote to the current key-on is measured, and if the measured value is smaller than a predetermined value, it is determined that the playing style is legato and a corresponding response is taken. There is a known method in which the musical tone is controlled according to the amplitude envelope, otherwise it is determined that the playing style is staccato, and the musical tone is controlled according to the corresponding amplitude envelope. (see publication).
[発明が解決しようとする課題]
上記したタッチ応答式電子楽器にあっては、1音毎に鍵
タッチの強さ(又は速さ)が楽音特性に反映されるもの
の、鍵連打の際に前音との関連ニオいて楽音の特性を制
御していないので、ピアノ等の自然楽器の連打発音を忠
実に模擬することはできない。[Problems to be Solved by the Invention] In the touch-responsive electronic musical instrument described above, although the strength (or speed) of the key touch is reflected in the musical tone characteristics for each note, the Since the characteristics of musical tones are not controlled in relation to the sound, it is not possible to faithfully simulate the continuous sound of a natural instrument such as a piano.
例えばピアノにおいて鍵を素速く連打すると、前の音を
発生させた弦の振動が残っている状態で次の打鍵に対応
した弦が振動するので、共鳴等により非連打の場合とは
音量、音色、ピッチ等が微妙に異なり、自然楽器らしさ
を出すのに役立っている。しかし、上記したタッチ応答
式電子楽器では、鍵を素速く連打すると、鍵タツチ量の
変化に応じた音量変化は得られても、ピアノの連打の場
合のように前音の影響による音量、音色、ピッチ等の特
性変化は得られない。For example, when you hit a key rapidly on a piano, the string that produced the previous note vibrates while the string that generated the previous note still vibrates, so the volume and timbre are different from the case of non-repeat hits due to resonance etc. , pitch, etc. are slightly different, which helps give it the feel of a natural instrument. However, with the touch-responsive electronic musical instruments mentioned above, when you hit a key repeatedly quickly, even though the volume changes according to the change in the amount of key touches, the volume and tone change due to the influence of the previous note, as in the case of repeated hits on a piano. , changes in characteristics such as pitch cannot be obtained.
方、上記した前音応答式の電子楽器にあっては、奏法の
変更に応じてエンベロープも変更されるものの、各エン
ベロープは前音の後音に及ぼす特性変動を考慮して定め
られていないので、ピアノの連打の場合のように前音の
影響による音量、音色、ピッチ等の特性変化は得られな
い。On the other hand, in the case of the above-mentioned fore-tone responsive electronic musical instruments, although the envelope changes in response to changes in the playing method, each envelope is not determined in consideration of the characteristic fluctuations that affect the after-tone of the fore-tone. , changes in characteristics such as volume, timbre, pitch, etc. due to the influence of the previous sound cannot be obtained as in the case of repeated piano hits.
この発明の目的は、前音による特性変動を反映した形で
楽音を発生することができる新規な電子楽器を提供する
ことにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a novel electronic musical instrument that can generate musical tones in a manner that reflects characteristic fluctuations due to fore-tones.
[課題を解決するための手段]
この発明による電子楽器は、
(a)発生すべき楽音毎に該楽音を指示する演奏情報を
発生する情報発生手段と、
(b)この情報発生手段からの演奏情報に応じて該演奏
情報の指示する楽音信号を発生する音源手段と、
(c)前記情報発生手段から順次に2つの演奏情報が発
生されるのに伴い後の演奏情報の発生時において先の演
奏情報に対応する楽音信号の残り量を求める手段と、
(d)この手段で求められた残り量に対応する楽音制御
データであって該残り量に相当する量の先の楽音が後の
楽音に及ぼす特性変動を考慮して該後の楽音の特性を表
現すべく作成されたものを発生するデータ発生手段と、
(e)このデータ発生手段からの楽音制御データに応じ
て前記後の演奏情報に対応する楽音信号の特性を制御す
ることにより該楽音信号に該楽音制御データの表現する
特性を付与する制御手段とをそなえたものである。[Means for Solving the Problems] An electronic musical instrument according to the present invention includes: (a) information generating means for generating performance information that indicates each musical tone to be generated; and (b) performance from this information generating means. (c) sound source means for generating a musical tone signal indicative of the performance information in accordance with the information; means for determining the remaining amount of musical tone signals corresponding to the performance information; (d) musical tone control data corresponding to the remaining amount determined by this means, such that the musical tone before the amount corresponding to the remaining amount is the musical tone after the musical tone; (e) data generation means for generating data created to represent the characteristics of the subsequent musical tone in consideration of characteristic fluctuations affecting the performance information; control means for imparting characteristics expressed by the musical tone control data to the musical tone signal by controlling the characteristics of the musical tone signal corresponding to the musical tone signal.
このような構成において、前記残り量を求める手段は、
前記後の演奏情報の発生時において前記先の演奏情報に
対応する楽音信号のレベルを検出する検出手段を有し、
この検出手段で検出されたレベルに基づいて前記残り量
を求めるものであってもよいし、あるいは前記先の演奏
情報に対応する楽音信号の減衰開始からの経過時間を計
測する計時手段を有し、前記後の演奏情報の発生時にお
いて該計時手段の計測時間に基づいて前記残り量を求め
るものであってもよい。In such a configuration, the means for determining the remaining amount includes:
comprising detection means for detecting the level of a musical tone signal corresponding to the previous performance information when the subsequent performance information is generated;
The remaining amount may be determined based on the level detected by the detection means, or the remaining amount may be determined by a clock means for measuring the elapsed time from the start of attenuation of the musical tone signal corresponding to the previous performance information. The remaining amount may be determined based on the time measured by the timer when the subsequent performance information is generated.
また、上記した電子楽器において、(c)及び(d)の
手段に代えて、
(C“)前記情報発生手段から順次に2つの演奏情報が
発生されるのに伴い後の演奏情報の発生時において先の
演奏情報に対応する楽音信号か残っていることを条件に
して該先及び後の演奏情報の指示する音高の差を検出す
る検出手段と、(do)この検出手段で検出された音高
差に対応する楽音制御データであって該音高差に相当す
る音高差を有する先後の楽音のうち先の楽音が後の楽音
に及ぼす特性変動を考慮して該後の楽音の特性を表現す
べく作成されたものを発生するデータ発生手段と
を設けてもよい。In addition, in the electronic musical instrument described above, instead of the means (c) and (d), (C") when two pieces of performance information are sequentially generated from the information generating means, when the later performance information is generated. a detection means for detecting a difference in pitch indicated by the previous and subsequent performance information on the condition that a musical tone signal corresponding to the previous performance information remains; The musical tone control data corresponds to the pitch difference, and the characteristics of the subsequent musical tone are taken into consideration the characteristic fluctuations that the previous musical tone exerts on the subsequent musical tone among the musical tones that have a pitch difference corresponding to the pitch difference. Data generating means may be provided to generate data created to represent the data.
[作用]
この発明の構成によれば、情報発生手段から順次に2つ
の演奏情報が発生されると、後の演奏情報の発生時に先
の演奏情報に対応する楽音信号の残り量が求められ、こ
の残り量に対応した楽音制御データに応じて後の演奏情
報に対応する楽音信号の特性が制御される。この場合、
楽音制御データは、前音の残り量に応じて後音の受ける
特性変動を考慮して作成されるので、後の演奏情報に対
応する楽音信号は、かかる特性変動を反映した形で発生
される。変動する特性として音量、音色、ピッチ等を考
慮すると共に前音の残り量が大きいほど特性の変動分が
大きくなるように楽音制御データを作成すると、ピアノ
等で速い連打はど前音の影響が大きくなる様子を模擬す
ることができる。[Function] According to the configuration of the present invention, when two pieces of performance information are sequentially generated from the information generating means, the remaining amount of the musical tone signal corresponding to the first performance information is determined when the second performance information is generated, The characteristics of the musical tone signal corresponding to the subsequent performance information are controlled in accordance with the musical tone control data corresponding to this remaining amount. in this case,
The musical tone control data is created taking into account the characteristic fluctuations of the subsequent tone depending on the remaining amount of the preceding tone, so the musical tone signal corresponding to the subsequent performance information is generated in a form that reflects such characteristic fluctuations. . If you consider volume, timbre, pitch, etc. as characteristics that fluctuate, and create musical tone control data in such a way that the larger the remaining amount of the previous note, the greater the variation in the characteristics, the effect of the previous note will be reduced when playing rapidly on a piano etc. You can simulate how it grows.
また、上記したように(Co)及び(do)の手段を設
けた場合には、後の演奏情報の発生時に先の演奏情報に
対応する楽音信号が残っていると、先後の演奏情報の指
示する音高差が検出され、この音高差に対応した楽音制
御データに応じて後の演奏情報に対応した楽音信号の特
性が制御される。この場合、楽音制御データは、前後音
の音高差に応じて後音の受ける特性変動を考慮して作成
されるので、後の演奏情報に対応する楽音信号は、かか
る特性変動を反映した形で発生される。変動する特性と
して音量、音色、ピッチ等を考慮すると共に音高差が大
きいほど特性の変動分が小さくなるように楽音制御デー
タを作成すると、ピアノ等で音高差のある(弦間距離の
大きい)連打はど前音の影響が小さくなる様子を模擬す
ることができる。In addition, when the means (Co) and (do) are provided as described above, if a musical tone signal corresponding to the previous performance information remains when the subsequent performance information is generated, an instruction for the subsequent performance information is provided. The pitch difference between the two is detected, and the characteristics of the musical tone signal corresponding to the subsequent performance information are controlled in accordance with the musical tone control data corresponding to this pitch difference. In this case, the musical tone control data is created taking into account the characteristic fluctuations of the succeeding tones depending on the pitch difference between the preceding and preceding tones, so the musical tone signal corresponding to the succeeding performance information is created in a form that reflects such characteristic fluctuations. occurs in If you consider volume, timbre, pitch, etc. as characteristics that fluctuate, and create musical tone control data in such a way that the larger the pitch difference, the smaller the variation in characteristics, it will be possible to create musical tone control data such as pianos with pitch differences (large distance between strings). Repeated hits can simulate how the influence of the front sound becomes smaller.
[実施例]
第1図は、この発明を実施する電子楽器の回路構成を示
すもので、この電子楽器は楽音発生がマイクロコンピュ
ータによって制御されるようになっている。第1図で斜
線を付した信号線は、複数ビットの情報伝送路であるこ
とを表わす。[Embodiment] FIG. 1 shows the circuit configuration of an electronic musical instrument embodying the present invention, and the musical tone generation of this electronic musical instrument is controlled by a microcomputer. The shaded signal lines in FIG. 1 represent multi-bit information transmission paths.
回路構成(第1図)
第1図において、バス10には、中央処理装置(CPU
)12、データ及びプログラムメモリ14、ワーキング
メモリ16、押鍵検出回路18、イニシャルタッチ検出
回路20、操作検出回路22、音源(TG)24等が接
続されている′。Circuit configuration (Figure 1) In Figure 1, the bus 10 includes a central processing unit (CPU).
) 12, data and program memory 14, working memory 16, key press detection circuit 18, initial touch detection circuit 20, operation detection circuit 22, sound source (TG) 24, etc. are connected.
CP U 12は、メモリ14にストアされたプログラ
ムに従って楽音発生のための各種処理を実行するものて
、これらの処理については第3図乃至第7図を参照して
後述する。CP U 12には、第5図のルーチンを実
行するためタイマ回路42からクロック信号TMCが割
込信号として供給される。The CPU 12 executes various processes for generating musical tones according to programs stored in the memory 14, and these processes will be described later with reference to FIGS. 3 to 7. The CPU 12 is supplied with a clock signal TMC as an interrupt signal from the timer circuit 42 in order to execute the routine shown in FIG.
メモリ14は、ROM (リード・オンリイ・メモリ)
からなるもので、前述したプログラムの他に楽音制御デ
ータ等を記憶している。メモリ14内で楽音制御データ
の記憶部は、楽音制御データバンクと称され、その記憶
フォーマットについては第2図を参照して後述する。Memory 14 is ROM (read only memory)
It stores musical tone control data, etc. in addition to the above-mentioned programs. The storage section for musical tone control data in the memory 14 is called a musical tone control data bank, and its storage format will be described later with reference to FIG.
メモリ16は、RAM (ランダム・アクセス・メモリ
)からなるもので、CPU12による各種処理に際して
レジスタとして使用される記憶領域を含んでいる。この
発明の実施に関係するレジスタについては後述する。The memory 16 is made up of RAM (random access memory) and includes a storage area used as a register during various processing by the CPU 12. Registers related to the implementation of this invention will be described later.
押鍵検出回路18は、鍵盤18Aの各鍵毎に設けられた
キースイッチ等を介して鍵操作情報を検出するものであ
る。鍵盤18Aについては、各鍵毎にそれに対応するキ
ーコートが予め定められている。The key press detection circuit 18 detects key operation information via key switches and the like provided for each key of the keyboard 18A. Regarding the keyboard 18A, a key coat corresponding to each key is determined in advance.
イニシャルタッチ検出回路20は、鍵盤18Aの各鍵毎
に設けられたタッチセンサ等を介して押鍵速度に応じた
タッチデータを検出するものである。The initial touch detection circuit 20 detects touch data according to the key pressing speed via a touch sensor or the like provided for each key of the keyboard 18A.
操作検出回路22は、ピアノ音色等の複数音色にそれぞ
れ対応した複数の音色スイッチを含む機能スイッチ群2
2A中の各スイッチ毎にスイッチ操作情報を検出するも
のである。The operation detection circuit 22 includes a functional switch group 2 including a plurality of tone switches each corresponding to a plurality of tones such as piano tones.
Switch operation information is detected for each switch in 2A.
TG24は、時分割的な複数の楽音発生チャンネルを含
むもので、各チャンネル毎に指定される楽音波形を表わ
す楽音波形データと指定される振幅エンベロープ波形を
表わすエンベロープデータとを乗算してディジタル楽音
信号を形成するようになっている。The TG 24 includes a plurality of time-division musical tone generation channels, and generates a digital musical tone signal by multiplying musical waveform data representing a musical sound waveform specified for each channel by envelope data representing a specified amplitude envelope waveform. It is designed to form a
TG24において、インターフェース回路26は、波形
発生回路28、エンベロープ発生回路30及びレベル検
出回路32をバスlOに結合している。回路28からの
楽音波形データと回路30からのエンベロープデータは
発音すべきキーコードが割当てられたチャンネルのタイ
ミングで乗算器34により乗算される。そして、乗算器
34から時分割的に送出される複数チャンネル分のディ
ジタル楽音信号はチャンネル累算回路36で合成されて
ディジタル/アナログ変換器(DAC)38に供給され
、アナログ楽音信号に変換される。D A C38から
のアナログ楽音信号は、出力アンプ、スピーカ等を含む
サウンドシステム40に供給され、音響に変換される。In TG 24, interface circuit 26 couples waveform generation circuit 28, envelope generation circuit 30, and level detection circuit 32 to bus IO. The musical waveform data from the circuit 28 and the envelope data from the circuit 30 are multiplied by a multiplier 34 at the timing of the channel to which the key code to be generated is assigned. The digital musical tone signals for a plurality of channels sent out in a time-division manner from the multiplier 34 are combined by a channel accumulation circuit 36 and supplied to a digital/analog converter (DAC) 38, where they are converted into analog musical tone signals. . The analog musical tone signal from the DAC 38 is supplied to a sound system 40 that includes an output amplifier, speakers, etc., and is converted into sound.
レベル検出回路32は、チャンネル累算回路36からの
合成されたディジタル楽音信号の振幅レベルを検出する
もので、検出された振幅レベルを表わすレベルデータは
、インターフェース回路26を介して読出可能である。The level detection circuit 32 detects the amplitude level of the synthesized digital tone signal from the channel accumulation circuit 36, and level data representing the detected amplitude level can be read out via the interface circuit 26.
楽音制御データバンク(第2図)
第2図は、メモリ14内の楽音制御データバンクの記憶
フォーマットを示すもので、同バンクには前述の音色ス
イッチで選択可能な音色毎にデータ記憶部TDB (T
C)が設けられている。すなわち、TDB (TC)は
1音色分のデータ記憶部であり、キーコードレジスタK
CDの値(音高)毎にタッチレジスタVELO値(鍵タ
ツチ量)に応じて複数の楽音制御データTDが記憶され
ると共に、各KCD値に関して各VEL値毎にレベルレ
ジスタLVLの値に応じて複数の楽音制御データTDが
記憶されている。レジスタKCD、VEL及びLVLは
メモリ16内に存在するものである。Musical Tone Control Data Bank (Fig. 2) Fig. 2 shows the storage format of the musical tone control data bank in the memory 14. The bank includes a data storage section TDB ( T
C) is provided. That is, TDB (TC) is a data storage section for one tone, and key code register K
A plurality of musical tone control data TD is stored for each CD value (pitch) in accordance with the touch register VELO value (key touch amount), and for each KCD value, a plurality of musical tone control data TD is stored in accordance with the value of the level register LVL for each VEL value. A plurality of musical tone control data TD are stored. Registers KCD, VEL and LVL reside within memory 16.
レジスタLVLのデータは、レベル検出回路32カ)ら
読出した8ビツトのレベルデータのうち上位3ビツトの
データを取出したもので、0〜7のいずれかの値をとる
。LVL値は、前音の残り量に対応するもので、0から
7に増大するにつれてより大きな残り量を表わす。The data in the register LVL is obtained by extracting the upper 3 bits of the 8-bit level data read from the level detection circuit 32), and takes any value from 0 to 7. The LVL value corresponds to the remaining amount of the foretone, and as it increases from 0 to 7, it represents a larger remaining amount.
KCD、VEL及びLVLの値を特定することにより読
出すべき1つの楽音制御データTDを指定することがで
きる。各楽音制御データTDは、波形指定データWとエ
ンベロープ指定データEとからなるもので、データWは
波形発生回路28で発生すべき楽音波形を指定し、デー
タEはエンベロープ発生回路30で発生すべき振幅エン
ベロープ波形を指定するようになっている。By specifying the values of KCD, VEL, and LVL, one musical tone control data TD to be read can be specified. Each musical tone control data TD consists of waveform specification data W and envelope specification data E. The data W specifies the musical waveform to be generated by the waveform generation circuit 28, and the data E specifies the musical waveform to be generated by the envelope generation circuit 30. Now you can specify the amplitude envelope waveform.
例として、OのLVL値に対応する各楽音制御データT
Dは、前音による特性変動を考慮しないでデータW及び
Eの内容を定め、1〜7の各LVL値に対応する各楽音
制御データTDは、前音による音量、音色、ピッチ等の
特性変動を考慮してデータW及びEの内容を定める。そ
して、各KCD値に関して各VEL値毎に1〜7のLV
L値に対応する7種類の楽音制御データTDは、LVL
値が1から7に増大するにつれて前音による特性変動分
が徐々に大きくなるようにデータ内容を定める。As an example, each tone control data T corresponding to the LVL value of O
D determines the contents of data W and E without considering characteristic fluctuations due to forenotes, and each musical tone control data TD corresponding to each LVL value of 1 to 7 takes into account characteristic fluctuations such as volume, timbre, pitch, etc. due to forenotes. The contents of data W and E are determined in consideration of the following. and 1 to 7 LV for each VEL value for each KCD value.
The seven types of musical tone control data TD corresponding to the L value are LVL
The data contents are determined so that as the value increases from 1 to 7, the characteristic variation due to the front sound gradually increases.
レジスタ
メモリ16内のレジスタのうち、この発明の実施に関係
するものを列挙すると、次の通りである。Among the registers in the register memory 16, those related to the implementation of the present invention are listed below.
(1)キーコードレジスタKCD・・・これは、検出回
路18からキーオン又はキーオフイベントに係るキーコ
ートがセットされるものである。(1) Key code register KCD: This is used to set a key code related to a key-on or key-off event from the detection circuit 18.
(2)旧キーコードレジスタ0KCD・・・これは、レ
ジスタKCDからキーオンイベントに係るキーコードが
セットされるものである。KCDのキーコートが今回の
キーイベントに係るものであるのに対し、0KCDのキ
ーコードは前回のキーオンイベントに係るものである。(2) Old key code register 0KCD: A key code related to a key-on event is set from register KCD. The KCD key code is related to the current key event, whereas the 0KCD key code is related to the previous key-on event.
(3)タッチレジスタVEL・・・これは、検出回路2
0からタッチデータがセットされるものである。(3) Touch register VEL...This is the detection circuit 2
Touch data is set from 0.
(4)レベルレジスタLVL・・・これは、検出回路3
2から3ビツトのレベルデータがセットされるものであ
る。(4) Level register LVL...This is the detection circuit 3
2 to 3 bit level data is set.
(5)音色ナンバレジスタTC・・・これは、オンされ
た音色スイッチに対応した音色ナンバかセットされるも
のである。(5) Tone color number register TC: This is used to set the tone color number corresponding to the turned on tone color switch.
(6)計時用レジスタTIME・・・これは、タイマ回
路42からのクロック信号TMCに基づいて楽音の減衰
開始からの経過時間を計測するためのもので、−例とし
て3ビツトのレジスタを用いる。(6) Timing register TIME: This register is used to measure the elapsed time from the start of the decay of musical tones based on the clock signal TMC from the timer circuit 42. For example, a 3-bit register is used.
(7)キーオフレジスタKOF・・・これは、1ビツト
のレジスタであり、“1″ならばTG24の全チャンネ
ルがキーオフ状態(楽音の減衰中又は非発生状態)であ
ることを表わし、“0”ならはいずれかのチャンネルが
キーオン状態(楽音の発生状態)であることを表わす。(7) Key-off register KOF...This is a 1-bit register, and if it is "1", it means that all channels of the TG24 are in the key-off state (musical tone is decaying or not occurring), and "0" , indicates that one of the channels is in the key-on state (musical tone generation state).
(8)音高差レジスタDIF・・・これは、音高差デー
タがセットされる3ビツトのレジスタである。音高差デ
ータは、KCD及び0KCDのキーコート値の差の絶対
値を求め、この絶対値を表わすデータのうち上位3ビツ
トを取出したものである。(8) Pitch difference register DIF: This is a 3-bit register in which pitch difference data is set. The pitch difference data is obtained by determining the absolute value of the difference between the key coat values of KCD and 0KCD, and extracting the top three bits from the data representing this absolute value.
第1実施例(第3図)
第3図は、この発明の第1実施例によるメインルーチン
の処理の流れを示すもので、このルーチンは電源オン等
に応じてスタートする。First Embodiment (FIG. 3) FIG. 3 shows the processing flow of a main routine according to a first embodiment of the present invention, and this routine starts in response to power-on, etc.
まず、ステップ50では、イニシャライズ処理を行ない
、各種レジスタを初期設定する。例えば、レジスタLV
Lには0をセットすると共にレジスタTCには初期音色
(例えばピアノ音色)に対応した音色ナンバをセットす
る。そして、ステップ52にBる。First, in step 50, initialization processing is performed to initialize various registers. For example, register LV
L is set to 0, and register TC is set to a timbre number corresponding to the initial timbre (eg, piano timbre). Then, the process returns to step 52B.
ステップ52では、鍵盤18Aのいずれかの鍵について
キーオンイベントありか判定し、あり(Y)ならばステ
ップ54でレジスタKCDにキーオンイベントに係る鍵
に対応したキーコードをセットする。そして、ステップ
56では、レジスタVELにキーオフイベントに係る鍵
から検出したタッチデータをセットする。In step 52, it is determined whether there is a key-on event for any key on the keyboard 18A, and if there is (Y), a key code corresponding to the key associated with the key-on event is set in the register KCD in step 54. Then, in step 56, the touch data detected from the key related to the key-off event is set in the register VEL.
次に、ステップ58では、TG24から上位3ビツトの
レベルデータを読出してレジスタLVLにセットする。Next, in step 58, the upper 3 bits of level data are read from the TG 24 and set in the register LVL.
そして、ステップ60に移る。Then, the process moves to step 60.
ステップ60では、TG24の全チャンネルのうち空い
ているチャンネルの1つを割当チャンネルとして指定す
る。そして、ステップ62に移る。In step 60, one of the vacant channels of the TG 24 is designated as the assigned channel. Then, the process moves to step 62.
ステップ62では、レジスタTCの音色ナンバ(選択さ
れた音色のナンバ)に対応する楽音制御データバンクT
DB (TC)からVELとLVLとKCDの値に応じ
た楽音制御データを読出してTG24の割当チャンネル
に送出する。そして、ステップ64に移り、TG24の
割当チャンネルにKCDのキーコードとキーオン信号と
を送出する。In step 62, the musical tone control data bank T corresponding to the tone number (selected tone number) of the register TC is
Musical tone control data corresponding to the values of VEL, LVL, and KCD is read from DB (TC) and sent to the assigned channel of TG24. Then, the process moves to step 64, and the KCD key code and key-on signal are sent to the assigned channel of the TG 24.
この結果、押された鍵に対応した音高を有する楽音信号
が発生され、この楽音信号の特性はVELの値(鍵タツ
チ量)及びLVLの値(前音の残り量)を反映したもの
となる。ただし、電源オン後最初に鍵を押したときは、
前音が存在せず、ステップ50でLVL値−〇としたの
で、前音による特性変動を考慮した楽音副筒は行なわれ
ない。このことは、前音が減衰し切った結果としてLV
L値=0となった場合についても同様である。As a result, a musical tone signal having a pitch corresponding to the pressed key is generated, and the characteristics of this musical tone signal reflect the VEL value (key touch amount) and the LVL value (remaining amount of previous note). Become. However, when you press the key for the first time after turning on the power,
Since there is no fore-tone and the LVL value is set to -0 in step 50, the tone sub-tube is not performed in consideration of characteristic fluctuations due to the fore-tone. This means that the LV
The same applies to the case where the L value=0.
ステップ52の判定結果が否定的(N)であったとき又
はステップ64の処理が終ったときは、ステップ66に
移り、鍵盤18Aのいずれかの鍵についてキーオフイベ
ントありか判定する。そして、ステップ66の判定結果
が肯定的(Y)であればステップ68に穆る。When the determination result in step 52 is negative (N) or when the process in step 64 is completed, the process moves to step 66, and it is determined whether a key-off event has occurred for any key on the keyboard 18A. If the determination result in step 66 is affirmative (Y), the process advances to step 68.
ステップ68では、キーオフイベントに係る鍵に対応し
たキーコードをKCDにセットする。そして、ステップ
70に移り、TG24の全チャンネルのうちからKCD
と同一キーコート発音中のチャンネルをサーチする。In step 68, a key code corresponding to the key related to the key-off event is set in the KCD. Then, the process moves to step 70, where KCD is selected from among all channels of TG24.
Search for channels with the same key code.
発音中のチャンネルがサーチされると、ステップ72で
該チャンネルのキーオフ処理を行なう。すなわち、発音
中のチャンネルにキーオフ信号を送出して、楽音信号の
減衰を開始させる。なお、発音中のチャンネルがサーチ
されなかったときはステップ72の処理を行なわない。When a channel that is currently producing sound is searched for, key-off processing for that channel is performed in step 72. That is, a key-off signal is sent to the channel that is currently producing sound to start attenuation of the musical tone signal. Incidentally, if the channel in which sound is being generated is not searched, the process of step 72 is not performed.
ステップ66の判定結果が否定的(N)であったとき、
ステップ72の処理が終ったとき又は発音中のチャンネ
ルがサーチされなかったときは、ステップ74に移り、
いずれかの音色スイッチ(SW)にオンイベントありか
判定する。この判定結果が肯定的(Y)であればステッ
プ76に移る。When the determination result in step 66 is negative (N),
When the process of step 72 is completed or when the currently sounding channel is not searched, the process moves to step 74.
It is determined whether there is an on event in any tone switch (SW). If this determination result is affirmative (Y), the process moves to step 76.
ステップ76ては、オンイベントに係る音色スイッチに
対応した音色ナンバをTCにセットする。従フて、任意
の音色スイッチをオン操作することにより任意の音色を
選択可能である。In step 76, the tone color number corresponding to the tone color switch related to the on event is set in TC. Therefore, any tone color can be selected by turning on any tone color switch.
ステップ74の判定結果が否定的(N)であったとき又
はステップ76の処理が終ったときは、ステップ78で
その他の処理を行なってからステップ52に戻る。そし
て、ステップ52以降の処理を上記したと同様に繰返す
。If the determination result in step 74 is negative (N) or if the process in step 76 is completed, other processes are performed in step 78, and then the process returns to step 52. Then, the processing from step 52 onwards is repeated in the same manner as described above.
第4図及び第5図は、この発明の第2実施例によるメイ
ンルーチン及びタイマ割込ルーチンを示すもので、この
実施例が第1実施例と異なる点は、前の楽音信号の残り
量を該楽音信号の減衰開始からの経過時間を計測して求
めるようにしたことである。第2実施例では、レジスタ
TIMEの値が前音の残り量に対応し、0から7に増大
するにつれてより小さな残り量を表わす。そこで、メモ
リ14の楽音制御データバンクTDB (TC)から楽
音制御データを読出す際は、TIMEの内容をrooo
Jは「111」に、rooIJはrl 10J・・・r
lllJは「000」というように反転して得た値(反
転値と称する)を用いてデータ読出しを行なう。別の方
法としては、TDB (TC)には第2図に関して前述
したのと逆にLVL値=0の楽音制御データをTIME
値=7の楽音制御データとし、LVL値=1の楽音制御
データをTIME値=6の楽音制御データとし・・・と
いうように記憶しておき、TIME値を用いてデータ読
出しを行なうようにしてもよい。4 and 5 show a main routine and a timer interrupt routine according to a second embodiment of the present invention. This embodiment differs from the first embodiment in that the remaining amount of the previous musical tone signal is This is determined by measuring the elapsed time from the start of attenuation of the musical tone signal. In the second embodiment, the value of the register TIME corresponds to the remaining amount of foretone, and as it increases from 0 to 7, it represents a smaller remaining amount. Therefore, when reading the musical tone control data from the musical tone control data bank TDB (TC) of the memory 14, the contents of TIME are
J is "111", rooIJ is rl 10J...r
lllJ reads data using a value obtained by inverting it such as "000" (referred to as an inverted value). Another method is to set the musical tone control data of LVL value = 0 to TIME in the TDB (TC), contrary to what was described above in connection with FIG.
Musical tone control data with value = 7, musical tone control data with LVL value = 1, musical tone control data with TIME value = 6, etc. are stored, and the data is read using the TIME value. Good too.
第4図のルーチンは、電源オン等に応じてスタートする
もので、ステップ80では、イニシャライズ処理を行な
い、各種レジスタを初期設定する。例えば、TIMEに
は7を、TCには初期音色対応の音色ナンバをそれぞれ
セットする。そして、ステップ82に移る。The routine shown in FIG. 4 starts when the power is turned on, and in step 80, initialization processing is performed to initialize various registers. For example, TIME is set to 7, and TC is set to a tone number corresponding to the initial tone. Then, the process moves to step 82.
ステップ82では、鍵盤18Aのいずれかの鍵について
キーオンイベントありか判定し、あり(Y)ならばステ
ップ84でキーオンイベントに係る鍵に対応したキーコ
ードをKCDにセットする。そして、ステップ86では
、キーオンイベントに係る鍵から検出したタッチデータ
をVELにセットする。In step 82, it is determined whether there is a key-on event for any key on the keyboard 18A, and if there is (Y), a key code corresponding to the key associated with the key-on event is set in the KCD in step 84. Then, in step 86, the touch data detected from the key related to the key-on event is set in VEL.
次に、ステップ88では、TG24の全チャンネルのう
ち空いているチャンネルの1つを割当チャンネルとして
指定する。そして、ステップ90にBる。Next, in step 88, one of the free channels of the TG 24 is designated as an assigned channel. Then, the process returns to step 90B.
ステップ90では、遷択音色に対応する楽音制御データ
バンクTDB (TC)からVEL及びKCDの値とT
IMEの反転値とに応じた楽音制御データを読出してT
G24の割当チャンネルに送出する。そして、ステップ
92に好り、TG24の割当チャンネルにKCDのキー
コードとキーオン信号とを送出する。In step 90, the values of VEL and KCD are obtained from the musical tone control data bank TDB (TC) corresponding to the transition selection tone.
Read the musical tone control data according to the inverted value of IME and press T.
Send to the assigned channel of G24. Then, at step 92, the KCD key code and key-on signal are sent to the assigned channel of the TG 24.
この結果、押された鍵に対応した音高を有する楽音信号
が発生され、この楽音信号の特性はVELの値(&!タ
ッチ量)及びTIMEの値(前音の残り量)を反映した
ものとなる。ただし、電源オン後最初に鍵を押したとき
は、前音が存在せず、ステップ80でTIME値=7と
したので、前音による特性変動を考慮した楽音制御は行
なわれない。このことは、前音が減衰し切った結果とし
てTIME値=7となった場合についても同様である。As a result, a musical tone signal having a pitch corresponding to the pressed key is generated, and the characteristics of this musical tone signal reflect the VEL value (&! touch amount) and the TIME value (remaining amount of previous note). becomes. However, when the key is pressed for the first time after the power is turned on, there is no fore-tone, and the TIME value is set to 7 in step 80, so musical tone control that takes into account characteristic fluctuations due to the fore-tone is not performed. This also applies to the case where the TIME value becomes 7 as a result of the fore-tone being completely attenuated.
ステップ92の後は、ステップ94でレジスタKOFに
0をセットしてからステップ96でTIMEに0をセッ
トする。これらのステップ94.96は、前の楽音信号
の減衰開始からの経通時間の計測を今回のキーオンイベ
ントで終りとするための処理である。After step 92, in step 94, register KOF is set to 0, and in step 96, TIME is set to 0. These steps 94 and 96 are processing for ending the measurement of the elapsed time from the start of the decay of the previous musical tone signal at the current key-on event.
ステップ82の判定結果が否定的(N)であったとき又
はステップ96の処理が終ったときは、ステップ98に
移る。If the determination result in step 82 is negative (N) or if the process in step 96 is completed, the process moves to step 98.
ステップ98では、鍵盤18Aのいずれかの鍵について
キーオフイベントありか判定し、あり(Y)ならばステ
ップ100でキーオフイベントに係る鍵に対応したキー
コードをKCDにセットする。そして、ステップ102
に穆り、TG24の全チャンネルのうちからKCDと同
一キーコード発音中のチャンネルをサーチする。In step 98, it is determined whether there is a key-off event for any key on the keyboard 18A, and if there is (Y), a key code corresponding to the key related to the key-off event is set in the KCD in step 100. And step 102
Next, search for a channel that is producing the same key code as KCD from among all the channels of TG24.
次に、ステップ104では、KCDと同一キーコード発
音中のチャンネルありか判定し、あり(Y)ならばステ
ップ10Bで前述のステップ7oと同様にして発音中の
チャンネルのキーオフ処理を行なう。この結果、発音中
の楽音信号は減衰開始となる。Next, in step 104, it is determined whether there is a channel in which the same key code as KCD is being sounded. If yes (Y), in step 10B, key-off processing is performed for the channel in the same manner as in step 7o described above. As a result, the musical tone signal that is being generated begins to decay.
この後、ステップ108では、TIMEに○をセットす
る。これは、楽音信号の減衰開始から経過時間を計測開
始するためである。ステップ108の後はステップ11
0に穆る。After this, in step 108, TIME is set to ◯. This is to start measuring the elapsed time from the start of attenuation of the musical tone signal. After step 108, step 11
It goes down to 0.
ステップ110では、TG24の全チャンネルがキーオ
フ状態か判定し、この判定結果が肯定的(Y)であれば
ステップ112でKOFに1をセットする。これは、T
G24のすべてのチャンネルで楽音の減衰中又は非発生
状態であることを条件として楽音の減衰開始からの経過
時間の計測を開始させるためである。In step 110, it is determined whether all channels of the TG 24 are in the key-off state, and if the result of this determination is affirmative (Y), KOF is set to 1 in step 112. This is T
This is to start measuring the elapsed time from the start of the musical tone decay on the condition that the musical tone is attenuating or not occurring in all channels of G24.
ステップ98.104又は110の判定結果が否定的(
N)であったとき、あるいはステップ112の処理が終
ったときは、ステップ114に移る。The determination result of step 98.104 or 110 is negative (
N), or when the process of step 112 is completed, the process moves to step 114.
ステップ114では、いずれかの音色スイッチにオンイ
ベントありか判定し、この判定結果が肯定的(Y)であ
ればステップ116に移る。ステップ116では、オン
イベントに係る音色スイッチに対応した音色ナンバをT
Cにセットする。In step 114, it is determined whether there is an on event in any of the tone switches, and if the result of this determination is affirmative (Y), the process moves to step 116. In step 116, the tone number corresponding to the tone switch related to the on event is set to T.
Set to C.
この後は、ステップ118でその他の処理を行なってか
らステップ82に戻り、それ以降の処理を上記したと同
様に繰返す。After this, other processing is performed in step 118, and then the process returns to step 82, and the subsequent processing is repeated in the same manner as described above.
一方、第5図のタイマ割込ルーチンは、タイマ回路42
からクロック信号TMCとしてのパルスが発生されるた
びにスタートする。ステップ120では、KOFの値が
0か判定し、0でない(N)ならばステップ122に穆
る。On the other hand, the timer interrupt routine in FIG.
It starts every time a pulse as clock signal TMC is generated. In step 120, it is determined whether the value of KOF is 0, and if it is not 0 (N), the process proceeds to step 122.
ステップ122では、TIMEの値が所定の最大値MA
XTに達したか判定する。MAXTは一例として7とす
る。ステップ122の判定結果が否定的(N)であれば
ステップ124に移り、TIMEの値を1アツプする。In step 122, the value of TIME is set to a predetermined maximum value MA.
Determine whether XT has been reached. MAXT is set to 7 as an example. If the determination result in step 122 is negative (N), the process moves to step 124, and the value of TIME is incremented by 1.
ステップ120又は122の判定結果が肯定的(Y)で
あったとき、あるいはステップ124の処理が終ったと
きは、第4図のルーチンにリターンする。If the determination result in step 120 or 122 is affirmative (Y), or if the process in step 124 is completed, the process returns to the routine shown in FIG.
一例として、TIME=Oの状態で第4図のステップ1
12でKOF=1になると、第5図のルーチンに入った
後ステップ120及び122の判定結果がいずれも否定
的(N)となり、ステップ124でT I ME= 1
となる。そして、この後第5図のルーチンに入るたびに
TIMEの値は1ずっ増大する。As an example, in the state of TIME=O, step 1 in FIG.
When KOF=1 at step 12, after entering the routine of FIG.
becomes. Thereafter, each time the routine shown in FIG. 5 is entered, the value of TIME is incremented by one.
このような増大過程においてキーオンイベントが生ずる
と、第4図のステップ90では、このときのTIMEの
反転値とKCD及びVELの値とに応じてTDB (T
C)から楽音制御データが読出される。例えば、TIM
、Hの内容が「110」であったときは、TIMEの反
転値は1となり、第2図においてKCD及びVELO値
で指定される8種類(LVL値=0〜7対応)の楽音制
御データのうちLVL値=1に対応した楽音制御データ
が読出される。この後、ステップ94及び96でKOF
及びTIMEにはいずれもOがセットされる。この結果
、楽音の減衰開始から次のキーオンまでの時間の計測が
1回終ったことになり、次回の時間計測が可能となる。When a key-on event occurs during such an increase process, in step 90 of FIG. 4, TDB (T
Musical tone control data is read from C). For example, TIM
, H is "110", the inverted value of TIME becomes 1, and the eight types of musical tone control data (corresponding to LVL value = 0 to 7) specified by KCD and VELO values in Fig. 2. Among them, musical tone control data corresponding to the LVL value=1 is read out. After this, in steps 94 and 96 the KOF
and TIME are both set to O. As a result, one measurement of the time from the start of the musical tone decay to the next key-on has been completed, and the next time measurement is now possible.
上記した例において、キーオンイベントが生ずる前にス
テップ124でTIMEの値が7になったものとすると
、次に第5図のルーチンに人フたときにステップ122
の判定結果が肯定的(Y)となり、これ以降TIME値
は増大しない。従って、この後キーオンイベントが生ず
ると、ステップ90ではTIMEの反転値がOとなり、
LVL値二〇に対応した楽音制御データ(前音の影響か
考慮されていないもの)が読出される。In the above example, if it is assumed that the value of TIME becomes 7 in step 124 before the key-on event occurs, then when the routine of FIG.
The determination result is positive (Y), and the TIME value will not increase from then on. Therefore, when a key-on event occurs after this, the inverted value of TIME becomes O in step 90,
Musical tone control data corresponding to an LVL value of 20 (which does not take into account the influence of the previous tone) is read out.
第3実施例(第6図)
第6区は、第3図のルーチンをステップ60から62に
至る部分で変更して前音との音高差に応した楽音制御を
可能とした第3の実施例を示すものである。Third Embodiment (Figure 6) Section 6 is a third embodiment in which the routine in Figure 3 is changed from step 60 to step 62 to enable musical tone control according to the pitch difference from the previous note. This shows an example.
ステップ50(第3図)では、レジスタ0KCDにOを
セットする。そして、ステップ60の後ステップ61A
では、0KCDの値がOか判定する。In step 50 (FIG. 3), register 0KCD is set to O. Then, after step 60, step 61A
Then, it is determined whether the value of 0KCD is O.
電源オン後最初に鍵をオンしたときはステップ61Aの
判定結果が肯定的(Y)となり、ステップ61Bに移る
。また、ステップ61Aの判定結果が否定的(N)であ
ったときはステップ61Cに移り、LVLの値がOか判
定する。例えば楽音が減衰し切った結果としてLVL=
0となったときはステップ61Cの判定結果が肯定的(
Y)となり、ステップ61Bに移る。When the key is turned on for the first time after the power is turned on, the determination result in step 61A becomes affirmative (Y), and the process moves to step 61B. Further, when the determination result in step 61A is negative (N), the process moves to step 61C, and it is determined whether the value of LVL is O. For example, as a result of the musical tone being completely attenuated, LVL=
When it becomes 0, the determination result of step 61C is affirmative (
Y), and the process moves to step 61B.
ステップ61Bでは、レジスタDIFに7をセットする
。そして、ステップ52Aに移る。In step 61B, 7 is set in register DIF. Then, the process moves to step 52A.
ステップ61Cの判定結果が否定的(N)であったとき
は、ステップ61Dに移る。ステップBIDでは、前述
したように0KCD及びKCDに基づいて3ビツトの音
高差データを作成してDIFにセットする。そして、K
CDのキーコートを0KCDにセットしてからステップ
62Aに移る。If the determination result in step 61C is negative (N), the process moves to step 61D. In step BID, as described above, 3-bit pitch difference data is created based on 0KCD and KCD and set in DIF. And K
After setting the CD key code to 0KCD, the process moves to step 62A.
ステップ62Aでは、選択された音色に対応する楽音制
御データバンクTDB (TC)からVELとDIFと
KCDの値に応じた楽音制御データを読出してTG24
の割当チャンネルに送出する。この実施例では、TDB
(TC)の記憶フォーマットを第2図で述べたものと
は若干変更する。すなわち、第2図においてrLVL値
」はrDIF値」に読替えるものとし、DIF値(音高
差)が0から6に増大するにつれて前音による特性変動
分が小さくなるように楽音制御データを配列してTDB
(TC)に記憶する。また、DIF値=7に対応する
楽音制御データは前音の影響を考慮しないものとする。In step 62A, musical tone control data corresponding to the values of VEL, DIF, and KCD is read from the musical tone control data bank TDB (TC) corresponding to the selected tone, and
Send to the assigned channel. In this example, TDB
The storage format of (TC) is slightly changed from that described in FIG. That is, in FIG. 2, the ``rLVL value'' shall be read as ``rDIF value'', and the musical tone control data is arranged so that as the DIF value (pitch difference) increases from 0 to 6, the characteristic fluctuation due to the forenote becomes smaller. TDB
(TC). Furthermore, it is assumed that the musical tone control data corresponding to the DIF value=7 does not take into account the influence of the previous tone.
ステップ62Aの後は第3図のステップ64に穆る。After step 62A, the process returns to step 64 in FIG.
第4実施例(第7図)
第7図は、第4図のルーチンをステップ88から90に
至る部分で変更して前音との音高差に応じた楽音制御を
可能とした第4の実施例を示すものである。Fourth Embodiment (FIG. 7) FIG. 7 shows a fourth embodiment in which the routine of FIG. 4 is changed from step 88 to step 90 to enable musical tone control according to the pitch difference from the previous tone. This shows an example.
ステップ80(第4図)では、レジスタ0KCDに0を
セットする。そして、ステップ88の後ステップ89A
では、前述のステップ61Aと同様にして0KCD=O
か判定する。この判定結果が肯定的(Y)であればステ
ップ89Bに穆る。また、ステップ89Aの判定結果が
否定的(N)であったときはステップ89Cに移り、T
IMEの値が7か判定する。この判定結果が肯定的(Y
)であるときは、楽音が減衰し切ってからキーオンがあ
ったことになり、ステップ89Bに移る。In step 80 (FIG. 4), register 0KCD is set to 0. Then, after step 88, step 89A
Now, in the same way as in step 61A above, set 0KCD=O.
Determine whether If this determination result is affirmative (Y), the process advances to step 89B. Further, when the determination result in step 89A is negative (N), the process moves to step 89C, and T
Determine whether the IME value is 7. This judgment result is positive (Y
), it means that the key-on occurred after the musical tone had completely attenuated, and the process moves to step 89B.
ステップ89Bでは、前述のステップ61Bと同様にし
てDIFに7をセットする。そして、ステップ9OAに
移る。In step 89B, DIF is set to 7 in the same manner as in step 61B described above. Then, the process moves to step 9OA.
ステップ89Cの判定結果が否定的(N)であつたとき
は、楽音が減衰中にキーオンがあったことになり、ステ
ップ89Dに移る。ステップ89Dでは、前述のステッ
プ61Dと同様に音高差データを作成してDIFにセッ
トすると共に、0KCDにKCDのキーコードをセット
する。そして、ステップ9OAに移る。If the determination result in step 89C is negative (N), it means that a key-on occurred while the musical tone was decaying, and the process moves to step 89D. In step 89D, similar to step 61D described above, pitch difference data is created and set in DIF, and the KCD key code is set in 0KCD. Then, the process moves to step 9OA.
ステップ90Aでは、選択された音色に対応する楽音制
御データバンクTDB (TC)からVELとDIFと
KCDの値に応じた楽音制御データを読出してTG24
の割当チャンネルに送出する。この実施例では、TDB
(TC)の記憶フォーマットはステップ62Aに関し
て前述したものと同様である。ステップ90Aの後は第
4図のステップ92に移る。In step 90A, musical tone control data corresponding to the values of VEL, DIF, and KCD is read from the musical tone control data bank TDB (TC) corresponding to the selected tone, and
Send to the assigned channel. In this example, TDB
The storage format of (TC) is similar to that described above with respect to step 62A. After step 90A, the process moves to step 92 in FIG.
変形例
この発明は、上記実施例に限定されるものではなく、種
々の改変形態で実施可能である。例えは、次のような変
更が可能である。Modifications The present invention is not limited to the above embodiments, but can be implemented in various modifications. For example, the following changes are possible.
(1)楽音制御データは、予め作成してメモリ等に記憶
しておくのではなく、演算により作成するようにしても
よい。(1) The musical tone control data may be created by calculation instead of being created in advance and stored in a memory or the like.
(2)この発明は、複数音色を同時発音可能な電子楽器
において実施することもできる。この種の電子楽器では
、例えば上鍵域及び下縫域に異なる音色を割当可能であ
るから、各鍵域毎に前音の影響を考慮した楽音制御を行
なうようにすればよい。(2) The present invention can also be implemented in an electronic musical instrument that can simultaneously produce multiple tones. In this type of electronic musical instrument, for example, different tones can be assigned to the upper key region and the lower stitch region, so it is only necessary to perform musical tone control in consideration of the influence of the previous tone for each key region.
[発明の効果コ
以上のようにこの発明によれば、前音による特性変動を
反映した形で楽音を発生するようにしたので、ピアノ等
の自然楽器の連打発音を忠実に模擬することができ、自
然感のある楽音発生が可能になる効果が得られるもので
ある。[Effects of the Invention] As described above, according to the present invention, musical tones are generated in a manner that reflects characteristic fluctuations due to fore-tones, so it is possible to faithfully imitate the continuous sound of a natural musical instrument such as a piano. , the effect of making it possible to generate natural-sounding musical tones can be obtained.
第1図は、この発明を実施する電子楽器の回路構成を示
すブロック図、
第2図は、メモリ14における楽音制御データバンクの
記憶フォーマットを示す図、
第3図は、第1実施例によるメインルーチンを示すフロ
ーチャート、
第4図及び第5図は、第2実施例によるメインルーチン
及びタイマ割込ルーチンを示すフローチャート、
第6図及び第7図は、それぞれS3図及び第4図のルー
チンの変更に係る第3及び第4実施例を示すフローチャ
ートである。
10・・・バス、12・・・中央処理装置、14・・・
データ及びプログラムメモリ、16・・・ワーキングメ
モリ、18A・・・鍵盤、18・・・押鍵検出回路、2
0・・・イニシャルタッチ検出回路、22A・・・機能
スイッチ群、22・・・操作検出回路、24・・・音源
、28・・・波形発生回路、30・・・エンベロープ発
生回路、32・・・レベル検出回路、42・・・タイマ
。FIG. 1 is a block diagram showing the circuit configuration of an electronic musical instrument embodying the present invention, FIG. 2 is a diagram showing the storage format of the musical tone control data bank in the memory 14, and FIG. 3 is a main block diagram according to the first embodiment. Flowchart showing the routine; FIGS. 4 and 5 are flowcharts showing the main routine and timer interrupt routine according to the second embodiment; FIGS. 6 and 7 are changes to the routine in FIG. S3 and FIG. 4, respectively. 12 is a flowchart showing third and fourth embodiments according to the present invention. 10...Bus, 12...Central processing unit, 14...
Data and program memory, 16... Working memory, 18A... Keyboard, 18... Key press detection circuit, 2
0... Initial touch detection circuit, 22A... Function switch group, 22... Operation detection circuit, 24... Sound source, 28... Waveform generation circuit, 30... Envelope generation circuit, 32... - Level detection circuit, 42... timer.
Claims (1)
報を発生する情報発生手段と、 (b)この情報発生手段からの演奏情報に応じて該演奏
情報の指示する楽音信号を発生する音源手段と、 (c)前記情報発生手段から順次に2つの演奏情報が発
生されるのに伴い後の演奏情報の発生時において先の演
奏情報に対応する楽音信号の残り量を求める手段と、 (d)この手段で求められた残り量に対応する楽音制御
データであって該残り量に相当する量の先の楽音が後の
楽音に及ぼす特性変動を考慮して該後の楽音の特性を表
現すべく作成されたものを発生するデータ発生手段と、 (e)このデータ発生手段からの楽音制御データに応じ
て前記後の演奏情報に対応する楽音信号の特性を制御す
ることにより該楽音信号に該楽音制御データの表現する
特性を付与する制御手段とをそなえた電子楽器。 2、前記残り量を求める手段は、前記後の演奏情報の発
生時において前記先の演奏情報に対応する楽音信号のレ
ベルを検出する検出手段を有し、この検出手段で検出さ
れたレベルに基づいて前記残り量を求めるものである請
求項1記載の電子楽器。 3、前記残り量を求める手段は、前記先の演奏情報に対
応する楽音信号の減衰開始からの経過時間を計測する計
時手段を有し、前記後の演奏情報の発生時において該計
時手段の計測時間に基づいて前記残り量を求めるもので
ある請求項1記載の電子楽器。 4、(a)発生すべき楽音毎に該楽音を指示する演奏情
報を発生する情報発生手段と、 (b)この情報発生手段からの演奏情報に応じて該演奏
情報の指示する楽音信号を発生する音源手段と、 (c)前記情報発生手段から順次に2つの演奏情報が発
生されるのに伴い後の演奏情報の発生時において先の演
奏情報に対応する楽音信号が残っていることを条件にし
て該先及び後の演奏情報の指示する音高差を検出する検
出手段と、 (d)この検出手段で検出された音高差に対応する楽音
制御データであって該音高差に相当する音高差を有する
先後の楽音のうち先の楽音が後の楽音に及ぼす特性変動
を考慮して該後の楽音の特性を表現すべく作成されたも
のを発生するデータ発生手段と、 (e)このデータ発生手段からの楽音制御データに応じ
て前記後の演奏情報に対応する楽音信号の特性を制御す
ることにより該楽音信号に該楽音制御データの表現する
特性を付与する制御手段とをそなえた電子楽器。[Scope of Claims] 1. (a) Information generation means for generating performance information indicating each musical tone to be generated; (b) Information generation means for generating performance information in accordance with the performance information from this information generation means. (c) sound source means for generating an instructing musical tone signal; (c) as the two pieces of performance information are sequentially generated from the information generating means; (d) musical tone control data corresponding to the remaining amount determined by this means, taking into account the characteristic fluctuations that the previous musical tone exerts on the subsequent musical tone by the amount corresponding to the remaining amount; (e) data generating means for generating a signal created to represent the characteristics of the subsequent musical tone; An electronic musical instrument comprising: a control means for imparting characteristics expressed by the musical tone control data to the musical tone signal by controlling the musical tone signal. 2. The means for determining the remaining amount has a detection means for detecting the level of the musical tone signal corresponding to the previous performance information when the subsequent performance information is generated, and the remaining amount is determined based on the level detected by the detection means. 2. The electronic musical instrument according to claim 1, wherein the remaining amount is determined by calculating the remaining amount. 3. The means for determining the remaining amount includes a timer for measuring the elapsed time from the start of attenuation of the musical tone signal corresponding to the previous performance information, and the timer measures the time when the subsequent performance information is generated. The electronic musical instrument according to claim 1, wherein the remaining amount is determined based on time. 4. (a) Information generating means for generating performance information instructing each musical tone to be generated; (b) Generating a musical tone signal instructing the performance information in accordance with the performance information from the information generating means; (c) as two performance information are sequentially generated from the information generating means, a musical tone signal corresponding to the previous performance information remains when the subsequent performance information is generated; (d) musical tone control data corresponding to the pitch difference detected by the detection means, which corresponds to the pitch difference; data generating means for generating data created to express the characteristics of the subsequent musical tones in consideration of characteristic fluctuations that the preceding musical tones exert on the subsequent musical tones having a pitch difference of (e); ) control means for imparting characteristics expressed by the musical tone control data to the musical tone signal by controlling the characteristics of the musical tone signal corresponding to the subsequent performance information in accordance with the musical tone control data from the data generating means; electronic musical instruments.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2200975A JP2646812B2 (en) | 1990-07-27 | 1990-07-27 | Electronic musical instrument |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2200975A JP2646812B2 (en) | 1990-07-27 | 1990-07-27 | Electronic musical instrument |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0486698A true JPH0486698A (en) | 1992-03-19 |
| JP2646812B2 JP2646812B2 (en) | 1997-08-27 |
Family
ID=16433432
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2200975A Expired - Fee Related JP2646812B2 (en) | 1990-07-27 | 1990-07-27 | Electronic musical instrument |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2646812B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2023000962A (en) * | 2021-06-17 | 2023-01-04 | カシオ計算機株式会社 | Electronic musical instrument, method and program |
| JP2023000048A (en) * | 2021-06-17 | 2023-01-04 | カシオ計算機株式会社 | Electronic musical instrument, method and program |
-
1990
- 1990-07-27 JP JP2200975A patent/JP2646812B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2023000962A (en) * | 2021-06-17 | 2023-01-04 | カシオ計算機株式会社 | Electronic musical instrument, method and program |
| JP2023000048A (en) * | 2021-06-17 | 2023-01-04 | カシオ計算機株式会社 | Electronic musical instrument, method and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2646812B2 (en) | 1997-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0310133B1 (en) | Tone signal generation device | |
| JPS604994B2 (en) | electronic musical instruments | |
| US5569870A (en) | Keyboard electronic musical instrument having partial pedal effect circuitry | |
| US7470855B2 (en) | Tone control apparatus and method | |
| JPH09237088A (en) | Performance analysis device, performance analysis method, and storage medium | |
| JPH0631980B2 (en) | Automatic musical instrument accompaniment device | |
| JPH0486698A (en) | Electronic musical instrument | |
| JPH03242697A (en) | Electronic musical instrument | |
| JPH0572596B2 (en) | ||
| JP3210582B2 (en) | Automatic performance device and electronic musical instrument equipped with the automatic performance device | |
| US5315058A (en) | Electronic musical instrument having artificial string sound source with bowing effect | |
| JPH0631977B2 (en) | Electronic musical instrument | |
| JP2513014B2 (en) | Electronic musical instrument automatic performance device | |
| JP2739244B2 (en) | Electronic musical instrument | |
| JP2692539B2 (en) | Automatic accompaniment device | |
| JPH03269493A (en) | Electronic musical instrument | |
| JPH0822282A (en) | Guitar automatic accompaniment device | |
| JP3767418B2 (en) | Automatic performance device and automatic performance control program | |
| JPH0997065A (en) | Electronic musical instrument | |
| JP4186855B2 (en) | Musical sound control device and program | |
| JPH0515279B2 (en) | ||
| JP3394688B2 (en) | Automatic performance device and electronic musical instrument provided with the automatic performance device | |
| JP3324035B2 (en) | Automatic accompaniment device | |
| JPH08221072A (en) | Automatic accompaniment device | |
| JPH0679221B2 (en) | Electronic musical instrument |
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: 19970408 |
|
| LAPS | Cancellation because of no payment of annual fees |