JPH01319096A - Musical sound production controller for electronic musical instrument - Google Patents

Musical sound production controller for electronic musical instrument

Info

Publication number
JPH01319096A
JPH01319096A JP63150633A JP15063388A JPH01319096A JP H01319096 A JPH01319096 A JP H01319096A JP 63150633 A JP63150633 A JP 63150633A JP 15063388 A JP15063388 A JP 15063388A JP H01319096 A JPH01319096 A JP H01319096A
Authority
JP
Japan
Prior art keywords
key
sostenuto
channel
musical tone
keyboard
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
Application number
JP63150633A
Other languages
Japanese (ja)
Other versions
JP2526636B2 (en
Inventor
Takeshi Bushita
岳 武士田
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 JP63150633A priority Critical patent/JP2526636B2/en
Publication of JPH01319096A publication Critical patent/JPH01319096A/en
Application granted granted Critical
Publication of JP2526636B2 publication Critical patent/JP2526636B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To give a sostenute effect equivalently to an actual piano by controlling the damping time of a musical sound related to a released key longer when information regarding the released key is stored in an information storing means for sostenute and shorter when the information is not stored. CONSTITUTION:Upon releasing a key from a pressed state on a keyboard 11, the damping time of the musical sound related to the key is controlled longer when information regarding the key is stored in an information storing means (microcomputer section) 15 for sostenute and shorter when the information is not stored. Therefore, even when the same key is repeatedly operated on the keyboard 11 or a key which is already canceled from an assigned state is newly pressed, a sostenute effect is added to the musical sound related to the key depressed when an operator 13 is operated. Thus the sostenute effect can be made equivalent to an actual piano.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は鍵盤の各鍵の押離鍵操作に応じて楽音の発生を
制御する電子楽器の楽音発生制御装置に係り、特にソス
テヌート効果制御用の操作子によって離鍵後における前
記発生楽音の長短を制御する楽音発生制御装置に関する
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a musical tone generation control device for an electronic musical instrument that controls the generation of musical tones according to the press and release operations of each key on a keyboard, and in particular for sostenuto effect control. The present invention relates to a musical tone generation control device that controls the length of the generated musical tone after a key is released using an operator.

(従来技術) 従来、この種の装置は、例えば実公昭59−13657
号公報に示されるように、ソステヌーI・効果制御用の
操作子の操作タイミングに同期した信号で鍵の操作状態
を表す鍵状態信号をラッチするラッチ回路と、このラッ
チ回路の出力及び前記操作子の操作状態を表す操作子状
態信号を入力するアンド回路とを備え、アンド回路の出
力(=“1パ)によつ離鍵後における楽音の減衰時間が
長くなるように制御している。これにより、押鍵中に前
記操作子が操作されかつ同操作子が操作され続けていれ
ば、前記押鍵中の鍵がN鍵された後も、該離鍵された鍵
に関する楽音の減衰時間が長くなり、ピアノのようなソ
ステヌート効果を得るようにしている。
(Prior art) Conventionally, this type of device has been used, for example, in Japanese Utility Model Publication No.
As shown in the publication, there is provided a latch circuit that latches a key state signal representing the operation state of the key with a signal synchronized with the operation timing of the operator for controlling the Sostenu I effect, and the output of this latch circuit and the operator. and an AND circuit that inputs a control state signal representing the operating state of the key, and the output of the AND circuit (= "1P") is controlled so that the decay time of the musical tone after the key is released is lengthened. Therefore, if the operator is operated while the key is being pressed and the operator continues to be operated, the decay time of the musical tone related to the released key will continue even after the key being pressed is pressed to the N key. It's long, and I try to get a piano-like sostenuto effect.

(発明が解決しようとする課題) しかるに、上記従来の装置においては、ラッチ回路がソ
ステヌート効果制御用の操作子の操作タイミングに同期
して鍵状態信号を一回だけラッチするので、前記操作子
が操作されたとき押鍵中であった鍵が、同操作子の操作
継続中に、離鍵されかつ再び押鍵されても、ラッチ回路
には該再押鍵に関する鍵状態信号がラッチされず、同再
押鍵された鍵が離鍵された後の楽音の減衰時間が短くな
ってソステヌート効果が付与されなくなる。一方、実際
のピアノにおいては、かかる場合における離鍵後の楽音
の減衰時間は長くなる。このように、上記従来の装置に
よるソステヌート効果は実際のピアノによるものとは異
なるという問題があった。
(Problem to be Solved by the Invention) However, in the above-mentioned conventional device, the latch circuit latches the key state signal only once in synchronization with the operation timing of the operator for controlling the sostenuto effect. Even if the key that was being pressed at the time of the operation is released and pressed again while the operation of the same operator continues, the latch circuit does not latch the key status signal related to the pressed key again. The decay time of the musical tone after the re-pressed key is released becomes shorter and no sostenuto effect is imparted. On the other hand, in an actual piano, the decay time of the musical tone after the key is released in such a case becomes long. As described above, there is a problem in that the sostenuto effect produced by the above conventional device is different from that produced by an actual piano.

そのため、本出願と同一出願人は、先の出願(昭和62
年1月29日に出願した特願昭62−19081号「電
子楽器の楽音発生制御装置」)にて、割当て制御手段に
よりチャンネル割当てされた鍵情報をチャンネル毎に記
憶する複数の鍵情報記憶チャンネルにそれぞれ対応した
複数のソステヌートデータ記憶チャンネルを設け、該ソ
ステヌートデータ記憶チャンネルに記憶されて前記チャ
ンネル毎の鍵情報に対応した各ソステヌートデータを、
ソステヌート用の操作子の操作時に押鍵中であった鍵に
関する限りソステヌート効果付与を表す値に設定すると
ともに、同操作子の操作中に同一鍵が繰返し押鍵操作さ
れた場合には以前の押鍵に関するソステヌートデータと
同一値に設定して、ソステヌート用の操作子の操作中に
同一鍵が繰返し押鍵操作された場合にも、該繰返し押鍵
された鍵に関する楽音にソステヌート効果が付与される
ようにした装置を提案した。
Therefore, the same applicant as this application has filed an earlier application (1986).
Patent Application No. 19081 (Sho 62-19081, filed on January 29, 2007, entitled "Music Sound Generation Control Device for Electronic Musical Instruments"), describes a plurality of key information storage channels that store key information assigned to each channel by an assignment control means. A plurality of sostenuto data storage channels respectively corresponding to the sostenuto data storage channels are provided, and each sostenuto data stored in the sostenuto data storage channels and corresponding to the key information for each channel,
As far as the key that was being pressed when operating the sostenuto controller is set to a value that represents the sostenuto effect, and if the same key is pressed repeatedly during the operation of the same controller, the value that was previously pressed will be set. When the same key is set to the same value as the sostenuto data related to the key and the same key is repeatedly pressed while operating the sostenuto operator, a sostenuto effect is added to the musical tone related to the repeatedly pressed key. We proposed a device that does this.

しかし、かかる提案装置においては、ソステヌートデー
タは割当て鍵情報に対応したものであるので、例えばソ
ステヌート用の操作子の操作時間が長くかつその間に鍵
盤における押離鍵が多数行われて、ソステヌート効果の
付与された楽音に関する鍵情報に換えて新たな鍵情報が
鍵情報記憶チャンネルに割当てられると、ソステヌート
効果の付与されるべき鍵に関するソステヌートデータも
書き換えられる。その結果、ソステヌート効果の付与さ
れるべき鍵が再び押鍵された場合でも、鎖骨に関するソ
ステヌートデータはソステヌート効果の非付与を表す値
に設定され、鎖骨に関する楽音にはソステヌート効果が
付与されないことが生じ、かかる場合における楽音の制
御も実際のピアノのものと異なるという問題がある。
However, in such a proposed device, the sostenuto data corresponds to the assigned key information, so for example, the operation time of the sostenuto controller is long, and during that time many keys are pressed and released on the keyboard, resulting in the sostenuto effect being reduced. When new key information is assigned to the key information storage channel in place of the key information regarding the assigned musical tone, the sostenuto data regarding the key to which the sostenuto effect is to be assigned is also rewritten. As a result, even if a key to which a sostenuto effect should be applied is pressed again, the sostenuto data related to the clavicle is set to a value indicating that no sostenuto effect is applied, and the sostenuto effect is not applied to the musical tone related to the clavicle. However, there is a problem in that the control of musical tones in such a case is also different from that of an actual piano.

本発明は上記問題に鑑み案出されたもので、上記従来装
置における問題を解決するとともに、上記提案装置にお
ける問題をも解決した電子楽器の楽音発生制御装置を提
案しようとするものである。
The present invention has been devised in view of the above problems, and aims to propose a musical tone generation control device for an electronic musical instrument that solves the problems of the conventional device and also solves the problems of the proposed device.

(課題を解決するための手段) 一ヒ記課題を解決して本発明の目的を達成するために、
本発明の構成上の特徴は、発生すべき楽音の音高を各々
指定する複数の鍵からなる鍵盤と、複数の鍵情報記憶チ
ャンネルと、前記鍵盤における鍵操作を検出して押鍵さ
れた鍵を表す鍵情報を前記複数の鍵情報記憶チャンネル
のいずれかに割当て記憶する割当て制御手段と゛を備え
、前記複数の鍵情報記憶チャンネルに各々記憶された鍵
情報に基づき楽音の発生を制御する電子楽器の楽音発生
制御装置において、ソステヌート効果制御用の操作子と
、前記操作子の操作時に前記鍵盤にて押鍵されている鍵
に関する情報を記憶しかつ該操作子の操作解除時に前記
記憶した情報をクリアするソステヌート用情報記憶手段
と、前記鍵盤にて離鍵された鍵に関する情報が前記ソス
テヌート用情報記憶手段に記憶されているとき鎖骨に関
する楽音の減衰時間を長く制御しかつ前記離鍵された鍵
に関する情報が前記ソステヌート用情報記憶手段に記憶
されていないとき原理に関する楽音の減衰時間を短く制
御する減衰時間制御手段とを設けたことにある。
(Means for Solving the Problems) In order to solve the above problems and achieve the purpose of the present invention,
The structural features of the present invention include a keyboard consisting of a plurality of keys each specifying the pitch of a musical tone to be generated, a plurality of key information storage channels, and a key pressed by detecting a key operation on the keyboard. an allocation control means for allocating and storing key information representing the plurality of key information storage channels to one of the plurality of key information storage channels, and controlling the generation of musical tones based on the key information stored in each of the plurality of key information storage channels. In the musical sound generation control device, information regarding an operator for controlling a sostenuto effect and a key being pressed on the keyboard when operating the operator is stored, and the stored information is stored when the operator is released. Sostenuto information storage means to be cleared, and when information regarding a key released on the keyboard is stored in the sostenuto information storage means, a decay time of a musical tone related to the clavicle is controlled to be long, and the key released is and a decay time control means for controlling the decay time of the musical tone related to the principle to be short when information related to the sostenuto is not stored in the sostenuto information storage means.

(発明の作用) 上記のように構成した本発明においては、操作子が操作
されかつその後肢操作が解除されると、ソステヌート用
情報記憶手段は前記操作子の操作時に前記鍵盤にて押鍵
されている鍵に関する情報を記憶するとともに、該操作
子の操作解除時に前記記憶した情報をクリアする。そし
て、鍵盤にて押鍵中の鍵が離鍵されると、該離鍵された
鍵に関する情報が前記ソステヌート用情報記憶手段に記
憶されているとき減衰時間制御手段が原理に関する楽音
の減衰時間を長く制御し、かつ前言己離鍵された鍵に関
する情報が前記ソステヌート用情報記憶手段に記憶され
ていないとき減衰時間制御手段が原理に関する楽音の減
衰時間を短く制御するので、鍵盤における押鍵イベント
及び該押鍵に関する割当て動作とは無関係に、鍵盤にお
ける鍵の離鍵時における楽音の減衰特性が制御され、鍵
盤にて同一鍵が繰返し操作された場合でも、既に割当て
の解除された鍵が新たに押鍵された場合でも、操作子が
操作されたときに押鍵されていた鍵に関する楽音にはソ
ステヌート効果が付与される。
(Function of the Invention) In the present invention configured as described above, when the operator is operated and the rear limb operation is released, the sostenuto information storage means is stored in the sostenuto information storage means that the key is pressed on the keyboard when the operator is operated. It stores information regarding the key that is being used, and clears the stored information when the operation of the operator is released. When the key being pressed on the keyboard is released, the decay time control means controls the decay time of the musical tone according to the principle when the information regarding the released key is stored in the sostenuto information storage means. When the information regarding the previously released key is not stored in the sostenuto information storage means, the decay time control means shortens the decay time of the musical tone related to the principle, so that the key press event and The attenuation characteristics of the musical sound when a key on the keyboard is released is controlled, regardless of the assignment operation related to the pressed key, and even if the same key is repeatedly operated on the keyboard, the previously unassigned key will be replaced by a new key. Even when a key is pressed, a sostenuto effect is given to the musical tone associated with the key that was being pressed when the operator was operated.

(発明の効果) 上記作用説明からも理解できる通り、本発明によれば、
上記従来装置及び提案装置の欠点が解消されてソステヌ
ート効果の付与が実際のピアノと同等になり、当該電子
楽器の楽音発生制御装置の品質が向上する。
(Effects of the Invention) As can be understood from the above explanation of the effects, according to the present invention,
The drawbacks of the conventional device and the proposed device are eliminated, the sostenuto effect can be applied to the same level as that of an actual piano, and the quality of the musical tone generation control device of the electronic musical instrument is improved.

(実施例) 以下、本発明の一実施例を図面を用いて説明すると、第
1図は本発明に係る楽音発生制御装置が適用された電子
楽器の全体を概略的に示している。
(Embodiment) An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 schematically shows the entirety of an electronic musical instrument to which a musical tone generation control device according to the present invention is applied.

この電子楽器は鍵盤11と、ソステヌート効果の付与を
選択制御するソステヌートへダル12と、音色、音量等
を選択制御するその他の操作子群13と、楽音信号を形
成出力する楽音信号形成回路14と、鍵盤11、ソステ
ヌートペダル12及びその他の操作子群13の各状態を
入力して楽音信号形成回路14を制御するマイクロコン
ピュータ部15とを備えている。
This electronic musical instrument includes a keyboard 11, a sostenuto pedal 12 for selectively controlling the application of a sostenuto effect, a group of other operators 13 for selectively controlling timbre, volume, etc., and a musical tone signal forming circuit 14 for forming and outputting musical tone signals. , a microcomputer section 15 that inputs the states of the keyboard 11, sostenuto pedal 12, and other operators 13 to control the musical tone signal forming circuit 14.

鍵盤11は楽音信号形成回路14にて形成される楽音の
音高を指定するための複数の鍵を有し、各鍵の押離鍵は
各鍵に各々対応して設けられた複数の鍵スィッチを内蔵
した鍵スィッチ回路11aによって検出されるようにな
っている。鍵スィッチ回路11aはバス16を介してマ
イクロコンピュータ部15に接続され、同コンピュータ
部15により制御されて各鍵の押鍵又は離鍵の鍵操作状
態を表す状態信号を同コンピュータ部15に供給するよ
うになっている。ソステヌートペダル12は演奏者の足
により操作されるもので、このソステヌートペダル12
の操作は同ペダル12に連動して開閉成するソステヌー
トペダルスイッチを内蔵したソステヌートペダルスイッ
チ回路12aにより検出されるようになっている。ソス
テヌートペダルスイッチ回路12aはバス16を介して
マイクロコンピュータ部15に接続され、同コンピュー
タ部15により制御されてソステヌートペダル12の操
作状態を表す状態信号を同コンピュータ部15に供給す
るようになっている。その他の操作子群13の操作は各
操作子に各々対応して設けられた複数のスイッチを内蔵
したその他のスイッチ回路13aによって検出されるよ
うになっている。その他のスイッチ回路13aはバス1
6を介してマイクロコンピュータ部15に接続され、同
コンピュータ部15により制御されて各操作子の操作状
態を表ず状態信号を同コンピュータ部15に供給するよ
うになっている。
The keyboard 11 has a plurality of keys for specifying the pitch of musical tones formed by the musical tone signal forming circuit 14, and the pressed and released keys of each key are controlled by a plurality of key switches provided corresponding to each key. It is detected by a key switch circuit 11a having a built-in key switch circuit 11a. The key switch circuit 11a is connected to the microcomputer section 15 via the bus 16, and is controlled by the computer section 15 to supply the computer section 15 with a status signal representing the key operation state of each key being pressed or released. It looks like this. The sostenuto pedal 12 is operated by the performer's foot.
The operation is detected by a sostenuto pedal switch circuit 12a that includes a sostenuto pedal switch that opens and closes in conjunction with the pedal 12. The sostenuto pedal switch circuit 12a is connected to the microcomputer section 15 via the bus 16, and is controlled by the microcomputer section 15 to supply a status signal representing the operating state of the sostenuto pedal 12 to the computer section 15. . Operations of the other operator group 13 are detected by another switch circuit 13a which includes a plurality of switches provided corresponding to each operator. Other switch circuits 13a are bus 1
6 to the microcomputer section 15, and is controlled by the computer section 15 to indicate the operation status of each operator and supply a status signal to the computer section 15.

楽音信号形成回路14は、鍵盤11の鍵数より少ないN
個(本件実施例では、例えば16個)の楽音信号形成チ
ャンネルを有し、バス16を介してマイクロコンピュー
タ部15により指定されたチャンネルにおいて、鍵ff
111.ソステヌートペダル12及びその他の操作子群
13の操作状態に応じて楽音信号を形成出力する。この
場合、その他の操作子群13により指定されかつ各チャ
ンネルにて形成される楽音信号の音色はピアノ系のもの
とし、そのエンベロープ信号波形は、第2図に示すよう
に、押鍵と同時に急速に立上りその後減衰するパーカッ
シブ系のものである。また、このエンベロープ信号波形
は押鍵を持続していれば第3図の実線に示すように徐々
に減衰するが、減衰中に離鍵すると第2図の破線に示す
ように急速に減衰するとともに、ソステヌートペダル1
2によりソステヌート効果が付加された楽音信号に関し
ては離ffl後も第2図の実線のように徐々に減衰する
。また、楽音信号形成回路14内の各楽音信号形成チャ
ンネルには、同チャンネルにて形成されるエンベロープ
信号波形のレベルを検出するレベル検出回路がそれぞれ
内蔵されており、同検出回路からはバス16を介して前
記検出レベルを表すレベル信号がマイクロコンピュータ
部15へ同コンピュータ部15における押鍵割当て制御
動作のために供給されるようになっている。
The musical tone signal forming circuit 14 has N keys that are smaller than the number of keys on the keyboard 11.
(in this embodiment, for example, 16) musical tone signal forming channels, and in the channel designated by the microcomputer unit 15 via the bus 16, the key ff
111. A musical tone signal is formed and outputted in accordance with the operating states of the sostenuto pedal 12 and other operators 13. In this case, the tone of the musical tone signal specified by the other controller group 13 and formed in each channel is piano-like, and the envelope signal waveform is rapidly generated at the same time as the key is pressed, as shown in FIG. It is a percussive sound that rises and then decays. Furthermore, if the key is held down continuously, this envelope signal waveform gradually attenuates as shown by the solid line in Figure 3, but if the key is released during the attenuation, it rapidly attenuates as shown by the broken line in Figure 2. , sostenuto pedal 1
As for the musical tone signal to which the sostenuto effect is added by 2, it gradually attenuates as shown by the solid line in FIG. 2 even after the separation ffl. Furthermore, each musical tone signal forming channel in the musical tone signal forming circuit 14 has a built-in level detection circuit that detects the level of the envelope signal waveform formed in the same channel, and the bus 16 is connected from the detection circuit. A level signal representing the detection level is supplied to the microcomputer section 15 for the key press assignment control operation in the computer section 15 via the microcomputer section 15.

この楽音信号形成回路14にはアンプ17を介してスピ
ーカ18が接続されており、同スピーカ18は楽音信号
形成回路14からアンプ17を介して供給された楽音信
号に対応した楽音を発音する。
A speaker 18 is connected to the musical tone signal forming circuit 14 via an amplifier 17, and the speaker 18 produces musical tones corresponding to the musical tone signal supplied from the musical tone signal forming circuit 14 via the amplifier 17.

マイクロコンピュータ部15は、第4図乃至第9図に示
すフローチャートに各々対応したプログラムを記憶する
プログラムメモリ15aと、これらのプログラムを実行
する中央処理装置(以下CPtJという)15bと、こ
れらのプログラムの実行に必要な諸データを一時的に記
憶するワーキングメモリ15cとを備え、上記プログラ
ムの実行により、鍵盤11.ソステヌートへダル12及
びその他の操作子群13の操作に応じたデータを楽音信
号形成回路14に出力して楽音信号の発生を制御する。
The microcomputer unit 15 includes a program memory 15a that stores programs corresponding to the flowcharts shown in FIGS. 4 to 9, a central processing unit (hereinafter referred to as CPtJ) 15b that executes these programs, and A working memory 15c temporarily stores various data necessary for execution, and by executing the program, the keyboard 11. Data corresponding to the operations of the sostenuto pedal 12 and other operators 13 is output to a musical tone signal forming circuit 14 to control the generation of musical tone signals.

なお、これらのプログラムメモリ15a、CPU15b
及びワーキングメモリ15cはバス16にそれぞれ接続
されている。
Note that these program memory 15a, CPU 15b
and working memory 15c are connected to bus 16, respectively.

ワーキングメモリ15cは割当てキーコード用レジスタ
群AKCR、キーオン用レジスタ群KONR、ソステヌ
ート用レジスタ群5KCR及びその他の割当て制御用レ
ジスタ群ASCRを有する。
The working memory 15c has an assigned key code register group AKCR, a key-on register group KONR, a sostenuto register group 5KCR, and other assignment control register group ASCR.

割当てキーコード用レジスタ群AKCRは、第3A図に
示すように、楽音信号形成回路14のN個の楽音信号形
成チャンネルにそれぞれ対応したN個(16個)の記憶
チャンネルからなり、各記憶チャンネルにて、各楽音信
号形成チャンネルに割当てられた鍵を表すアサインキー
コードAKC(0)、AKC(1) ・・・AKC(1
5)をそれぞれ記憶する。キーオン用レジスタ群KON
Rは、第3B図に示すように、割当てキーコード用レジ
スタ群AKCRと同一数の記憶チャンネルからなり、各
記憶チャンネルにて、“1″により各楽音信号形成チャ
ンネルに割当てられた鍵が押鍵中であることを表し、か
つ″“0′°により同鍵が離鍵中であることを表すキー
オンデータKON(0)。
As shown in FIG. 3A, the assigned key code register group AKCR consists of N (16) storage channels corresponding to the N musical tone signal forming channels of the musical tone signal forming circuit 14, and each storage channel has a Assign key codes AKC(0), AKC(1), AKC(1) representing keys assigned to each musical tone signal forming channel.
5) are memorized. Key-on register group KON
As shown in FIG. 3B, R consists of the same number of storage channels as the assigned key code register group AKCR, and in each storage channel, the key assigned to each tone signal forming channel is pressed by "1". Key-on data KON (0) indicates that the key is in the middle, and indicates that the key is being released by "0'°.

KON<1)・・・KON(15)を各々記憶する。ソ
ステヌート用レジスタ群S K CRは、第3C図に示
すように、同時押鍵の可能な鍵数以上〈本件実施例では
例えば16個)の記憶チャンネルを備え、ソステヌート
ペダル12の操作時に押鍵中の全ての鍵をそれぞれ表す
情報すなわちソステヌート効果の付与されるべき鍵を表
すソステヌートキーコードSKCを記憶する。
KON<1)... KON (15) is stored respectively. As shown in FIG. 3C, the sostenuto register group SKCR has memory channels for more than the number of keys that can be pressed at the same time (for example, 16 in this embodiment), and the sostenuto register group SKCR has memory channels for more than the number of keys that can be pressed simultaneously (in this embodiment, for example, 16 keys). , that is, a sostenuto key code SKC representing a key to which a sostenuto effect is to be applied.

その他の割当て制御用レジスタ群ASCRは、鍵盤11
にて新たに押離鍵操作された鍵を表すイベントキーコー
ドEVKC1新たに押鍵された鍵が割当てられるべき楽
音信号形成チャンネルを表すアサインチャンネルデータ
ASSCH及び鍵盤11にてill鍵された鍵が割当て
られているチャンネル番号を表すオフチャンネルデータ
OF F CH等を記憶する。
The other allocation control register group ASCR is the keyboard 11
Event key code EVKC1 representing the key newly pressed and released in 1 Assign channel data ASSCH representing the musical tone signal forming channel to which the newly pressed key is to be allocated and the key to which the ill key was pressed on the keyboard 11 is assigned The off-channel data OF F CH, etc. representing the channel number being assigned is stored.

上記のように構成した実施例の動作をフローチャートを
参照しながら説明する。パワースイッチ(図示しない)
が投入されると、CPU15bは第4図のステップ10
0にてメインプログラムの実行を開始し、ステップ10
1にてワーキングメモリ15c内の全てのレジスタ群A
KCR,KONR,5KCR,ASCRをクリアするこ
とにより各種データを初期設定した後、ステップ102
〜104の循環処理を実行する。
The operation of the embodiment configured as described above will be explained with reference to flowcharts. Power switch (not shown)
When the CPU 15b is turned on, the CPU 15b executes step 10 in FIG.
Start executing the main program at step 0 and proceed to step 10.
1, all registers A in the working memory 15c
After initializing various data by clearing KCR, KONR, 5KCR, and ASCR, step 102
- Execute the cyclic processing of 104.

かかる循環処理中、鍵盤11にて押離鍵操作がなされる
と、ステップ102にて該鍵盤11に関する押離鍵イベ
ントが検出され、該検出イベントが押鍵に関するもので
ある場合にはキーオンプログラム(第5図)が実行され
るとともに、離鍵に関するものである場合にはキーオフ
プログラム(第7図)が実行される。また、ソステヌー
トペダル12が操作され又は該操作が解除されると、ス
テップ103にて該ソステヌー■・ペダル12に関する
操作イベント及び操作解除イベントを検出され、該検出
イベントが操作に関するものである場合にはソステヌー
トオンプログラム(第8図)が実行されるとともに、操
作解除に関するものである場合にはソステヌートオフプ
ログラム(第9図)が実行される。さらに、その他の操
作子群13が操作されると、ステップ104にて該操作
子群13に関する操作イベントが検出されるとともに、
該操作された操作子に対応した制御データが楽音信号形
成回路14に出力され、同回路14にて形成される楽音
信号の音色、音量等が制御される。
During this circulation process, when a key press/release operation is performed on the keyboard 11, a press/release event related to the keyboard 11 is detected in step 102, and if the detected event is related to a key press, the key-on program ( 5) is executed, and if the key-off program is related to key release, the key-off program (FIG. 7) is executed. Further, when the sostenuto pedal 12 is operated or the operation is released, an operation event and an operation release event related to the sostenuto pedal 12 are detected in step 103, and if the detected event is related to the operation, A sostenuto-on program (FIG. 8) is executed, and a sostenuto-off program (FIG. 9) is executed if the operation is related to release. Further, when another operator group 13 is operated, an operation event regarding the operator group 13 is detected in step 104, and
Control data corresponding to the operated operator is output to the musical tone signal forming circuit 14, and the tone, volume, etc. of the musical tone signal formed by the circuit 14 are controlled.

次に、鍵盤11及びソステヌートペダル12の操作に応
じて実行される前述のキーオンプログラム、キーオフプ
ログラム、ソステヌートオンプログラム及びソステヌー
トオフプログラムを参照しながら、前記操作に応じた楽
音の発生制御動作について詳細に説明する。
Next, with reference to the above-mentioned key-on program, key-off program, sostenuto-on program, and sostenuto-off program executed in response to the operations of the keyboard 11 and the sostenuto pedal 12, the operation for controlling the generation of musical tones in accordance with the operations will be explained in detail. explain.

(1)キーオンプログラム 鍵盤11における新たな押鍵操作があると、上述のよう
に、ステップ102〜104(第4図)からなる循環処
理を実行中のCPU15bはステップ102にて押鍵イ
ベントを検出してキーオンプログラム(第5図)を実行
する。
(1) Key-on program When there is a new key press operation on the keyboard 11, the CPU 15b, which is executing the cyclic process consisting of steps 102 to 104 (FIG. 4) as described above, detects a key press event in step 102. and execute the key-on program (Fig. 5).

このキーオンプログラムの実行はステップ200にて開
始され、ステップ201にて新たに押鍵された鍵を表す
キーコードKCがイベントキーコードEVKCとして設
定され、ステップ202にてキーアサインルーチンが実
行される。
Execution of this key-on program is started in step 200, in step 201 a key code KC representing a newly pressed key is set as an event key code EVKC, and in step 202 a key assignment routine is executed.

このキーアサインルーチンにおいては、第6図に示すよ
うに、その実行がステップ300にて開始され、ステッ
プ301にて変数iを「0」から「15」まで「1」ず
つ大きくしながら割当てキーコード用レジスタ群AKC
Rが参照されて、イベントキーコードEVKCと同一の
アサインキーコードAKC(i)を記憶する割当てキー
コード用しジスタ群AKCR内の記憶チャンネルがサー
チされるとともに、同チャンネルが2個有るか否かが判
定される。かかる場合、新たに押鍵された鍵が既に2個
のチャンネルに割当てられていれば、前記ステップ30
1にてrYES、と判定され、ステップ302にて前記
サーチされたチャンネルに対応した楽音信号形成回路1
4内の前記2個の楽音信号形成チャンネルからレベル信
号がそれぞれ入力されるとともに両レベル信号の大小関
係が比較されて、レベル信号の小さい方のチャンネル番
号がアサインチャンネルデータA S S CHとして
設定される。かかるアサインチャンネルデータASSC
Hの設定処理により、同一鍵は2チヤンネルまで割当て
られると同時に、新たに押鍵された鍵が既に2チヤンネ
ルに割当てられている場合には、楽音信号レベルの低い
方のチャンネルが割当てチャンネルとして決定されるこ
とになる。
In this key assignment routine, as shown in FIG. 6, its execution starts at step 300, and at step 301, the variable i is increased by "1" from "0" to "15" and the assigned key code is register group AKC
R is referenced, and a memory channel in the register group AKCR for the assigned key code that stores the same assign key code AKC(i) as the event key code EVKC is searched, and whether or not there are two identical channels is searched. is determined. In such a case, if the newly pressed key has already been assigned to two channels, step 30 is performed.
1, the tone signal forming circuit 1 corresponding to the searched channel is determined as rYES in step 302.
Level signals are respectively input from the two musical tone signal forming channels in 4, and the magnitude relationship between both level signals is compared, and the channel number with the smaller level signal is set as the assignment channel data A S S CH. Ru. Such assignment channel data ASSC
By the H setting process, the same key is assigned to up to 2 channels, and at the same time, if a newly pressed key is already assigned to 2 channels, the channel with the lower musical tone signal level is determined as the assigned channel. will be done.

また、上記ステップ301にて「NO」すなわち新たに
押鍵された鍵に関する割当てチャンネル数が2未満であ
ると判定されると、ステップ303にて楽音信号形成回
路14内の各楽音信号形成チャンネルからレベル信号が
それぞれ入力されるとともに該入力されたレベル信号が
「o」であるチャンネルの有無が判定される。かかる場
合、前記レベル信号が「O」であるチャンネルが存在す
れば、前記ステップ303にてrYES、と判定され、
ステップ304にて前記レベル信号がr□。
If it is determined in step 301 that the number of assigned channels for the newly pressed key is less than 2, then in step 303, from each musical tone signal forming channel in the musical tone signal forming circuit 14, Each level signal is input, and it is determined whether there is a channel in which the input level signal is "o". In such a case, if there is a channel in which the level signal is "O", it is determined as rYES in step 303;
At step 304, the level signal becomes r□.

であるチャンネルを表すチャンネル番号がアサインチャ
ンネルデータASSCHとして設定される。
A channel number representing a channel is set as assignment channel data ASSCH.

かかるアサインチャンネルデータASSCHの設定処理
により、発音を終了したチャンネルが新たな押鍵に関す
る割当てチャンネルとして決定されることになる。
Through this process of setting the assignment channel data ASSCH, the channel whose sound generation has ended is determined as the assigned channel for the new key depression.

また、上記ステップ303にて「NO」すなわち発音を
終了したチャンネルが存在しないと判定されると、ステ
ップ305にて変数iを「o」から「15」まで「1」
ずつ大きくしながら割当てキーコード用レジスタ群A 
K Cr(、キーオンレジスタ群KONR及びソステヌ
ート用レジスタ群5KCRが参照されて、割当てキーコ
ードレジスタ群AKCR内のアサインキーコードAKC
(i)がソステヌート用しジスタ群5KCR内の全ての
ソステヌートキーコードSKC(0〜15)と−致せず
、かつキーオンレジスタ群KONR内のキーオンデータ
KON(i)が”0パの関係にある変数i(チャンネル
)がサーチされるとともにその有無が判定される。かか
る場合、前記該当チャンネルが存在すれば、前記ステッ
プ305にて[YES、と判定され、ステップ306に
て前記サーチされたチャンネルに対応した楽音信号形成
回路14内の全ての楽音信号形成チャンネルからレベル
信号がそれぞれ入力されるとともにこれらのレベル信号
の大小関係が比較されて、レベル信号が最小のチャンネ
ルを示すチャンネル番号がアサインチャンネルデータA
 S S CHとして設定される。かかるアサインチャ
ンネルデータASSCHの設定処理により、ソステヌー
ト効果が付与されない楽音を発生中であってl[Xlさ
れた鍵に関する楽音を発生中のチャンネルのうち、楽音
信号のレベルが最低のチャンネルが、新たな押鍵に関す
る割当てチャンネルとして決定されることになる。
If it is determined in step 303 that there is no channel that has finished producing sound, then in step 305 the variable i is set to "1" from "o" to "15".
Assign key code register group A while increasing
K Cr (, the key-on register group KONR and the sostenuto register group 5KCR are referred to, and the assign key code AKC in the assigned key code register group AKCR is
(i) is a variable for sostenuto that does not match all sostenuto key codes SKC (0 to 15) in the register group 5KCR, and the key-on data KON (i) in the key-on register group KONR has a relationship of "0". i (channel) is searched and its presence or absence is determined.In this case, if the corresponding channel exists, it is determined as YES in the step 305, and the channel corresponding to the searched channel is determined in step 306. Level signals are respectively input from all musical tone signal forming channels in the musical tone signal forming circuit 14, and the magnitude relationship of these level signals is compared, and the channel number indicating the channel with the minimum level signal is assigned to channel data A.
It is set as S S CH. Through the setting process of the assignment channel data ASSCH, the channel with the lowest musical tone signal level among the channels that are generating musical tones to which no sostenuto effect is applied and which are generating musical tones related to keys that are This will be determined as the assigned channel regarding the key press.

また、ステップ305にて「NO」すなわちソステヌー
ト効果が付与されない楽音を発生中であって離鍵された
鍵に関する楽音を発生中のチャンネルが無いと判定され
ると、ステップ307にて変数iを「0」から「15」
まで「1」ずつ大きくしながらキーオン用レジスタ群K
ONRが参照されて、離鍵されている鍵が割当てられて
いるチャンネルがサーチされるとともにその有無が判定
される。かかる場合、該当するチャンネルが存在すれば
、前記ステップ307にてrYES、と判定され、ステ
ップ308にて前記サーチされたチャンネルに対応した
楽音信号形成回路14内の全ての楽音信号形成チャンネ
ルからレベル信号かそれぞれ入力されるとともにこれら
のレベル信号の大小関係が比較されて、レベル信号が最
小のチャンネルを示すチャンネル番号がアサインチャン
ネルデータASSCHとして設定される。かかるアサイ
ンチャンネルデータASSCHの設定処理により、離鍵
された鍵に関する楽音を発生中のチャンネルのうちで楽
音信号レベルの最低のチャンネルが新たな押鍵に関する
割当てチャンネルとして決定されることになる。
If it is determined in step 305 that "NO", that is, there is no channel that is generating a musical tone to which no sostenuto effect is applied and that is generating a musical tone related to the key that has been released, then in step 307 the variable i is set to " 0” to “15”
Key-on register group K while increasing by 1 until
The ONR is referred to, and the channel to which the released key is assigned is searched and its presence or absence is determined. In this case, if the corresponding channel exists, the determination in step 307 is rYES, and in step 308 level signals are output from all musical tone signal forming channels in the musical tone signal forming circuit 14 corresponding to the searched channel. are input, and the magnitude relationship of these level signals is compared, and the channel number indicating the channel with the minimum level signal is set as assignment channel data ASSCH. By setting the assignment channel data ASSCH, the channel with the lowest musical tone signal level among the channels currently generating the musical tone associated with the released key is determined as the assigned channel for the new pressed key.

さらに、ステップ307にて「NO」すなわち離鍵され
た鍵に関する楽音を発生中のチャンネルが無いと判定さ
れると、ステップ309にて楽音信号形成回路14内の
全ての楽音信号形成チャンネルからレベル信号がそれぞ
れ入力されるとともにこれらのレベル信号の大小関係が
比較されて、レベル信号が最小のチャンネルを示すチャ
ンネル番号がアサインチャンネルデータASSCHとし
て設定される。かかるアサインチャンネルデータASS
CHの設定処理により、押鍵中の鍵に関する楽音を発生
中のチャンネルのうちで楽音信号レベルの最低のチャン
ネルが新たな押鍵に関する割当てチャンネルとして決定
されることになる。
Furthermore, if it is determined in step 307 as "NO", that is, there is no channel generating a musical tone related to the released key, in step 309, level signals are sent from all musical tone signal forming channels in the musical tone signal forming circuit 14. are input, the magnitude relationship of these level signals is compared, and the channel number indicating the channel with the minimum level signal is set as the assignment channel data ASSCH. Such assignment channel data ASS
Through the CH setting process, the channel with the lowest musical tone signal level among the channels currently generating the musical tone associated with the currently depressed key is determined as the channel to be assigned to the new key.

かかるステップ302,304,306.308.30
9の処理後、ステップ311にて該キーアサインルーチ
ンの実行が終了され、プログラムはキーオンプログラム
(第5図)のステップ2.03へ進められる。ステップ
203においては、アサインチャンネルデータASSC
Hにより指定されたアサインキーコードAKC(ASS
CH)及びキーオンデータKON (ASSCH)がイ
ベントキーコードEVKC及び+1111にそれぞれ設
定される。次に、ステップ204にて上記設定したアサ
インキーコードAKC(ASSCH)が、アサインチャ
ンネルデータASSCHとともに、バス16を介して楽
音信号形成回路14に転送され、ステップ205にて該
キーオンプログラムの実行が終了される。
Such steps 302, 304, 306, 308, 30
After the processing in step 9, the execution of the key assignment routine is terminated in step 311, and the program proceeds to step 2.03 of the key-on program (FIG. 5). In step 203, assign channel data ASSC
Assign key code AKC (ASS
CH) and key-on data KON (ASSCH) are set to event key codes EVKC and +1111, respectively. Next, in step 204, the above-set assign key code AKC (ASSCH) is transferred to the musical tone signal forming circuit 14 via the bus 16, together with the assign channel data ASSCH, and in step 205, execution of the key-on program is completed. be done.

楽音信号形成回路14においては、アサインチャンネル
データASSCHにより指定された楽音信号形成チャン
ネルがアサインキーコードAKC(ASSCH)により
指定された音高の楽音信号を形成するとともに、同信号
に第2図に実線で示すような急速に立上りかつ徐々に減
衰するエンベローブ信号波形を付したものを出力する。
In the musical tone signal forming circuit 14, the musical tone signal forming channel specified by the assignment channel data ASSCH forms a musical tone signal of the pitch specified by the assignment key code AKC (ASSCH), and the solid line in FIG. An envelope signal waveform with a rapidly rising and gradually attenuating waveform as shown in is output.

そして、この楽音信号はアンプ17を介してスピーカ1
8に供給されるので、同スピーカ18からは前記楽音信
号に対応した楽音が発音される。
This musical tone signal is then sent to the speaker 1 via the amplifier 17.
8, the speaker 18 produces a musical tone corresponding to the musical tone signal.

(2)キーオフプログラム m盤11にて押鍵中の鍵が離鍵されると、上述のように
、ステップ102〜104(第4図)からなる循環処理
を実行中のCPU15bは、ステップ102にて離鍵イ
ベントを検出してキーオフプログラム(第7図)を実行
する。
(2) Key-off program When the key being pressed on the m-board 11 is released, the CPU 15b, which is executing the circulation process consisting of steps 102 to 104 (FIG. 4) as described above, returns to step 102. A key release event is detected and a key off program (FIG. 7) is executed.

このプログラムの実行はステップ400にて開始され、
ステップ401にて前記離鍵された鍵を表すキーコード
KCがイベントキーコードEVKCとして設定され、ス
テップ402にて変数iを「0」から「15」まで「1
」ずつ大きくしながらキーオン用レジスタ群KONR及
び割当てキーコード用レジスタ群AKCRが参照されて
、キーオンレジスタ群Iく○NR内のキーオンデータI
く○N(i)が1°゛であり、かつ割当てキーコードレ
ジスタ群AKCR内のアサインキーコードA KC(i
>がイベントキーコードEVKCと一致する関係にある
変数i(チャンネル)がサーチされる。次に、ステップ
403にて前記サーチ結果に基づき前記関係を満足する
チャンネルの有無が判定され、同ステップ403にてr
NOJすなわち前記チャンネルが存在しないと判定され
ると、プログラムはステップ409に進められて該キー
オフプログラムの実行が終了される。
Execution of this program begins at step 400,
At step 401, the key code KC representing the released key is set as the event key code EVKC, and at step 402, the variable i is set to "1" from "0" to "15".
'', the key-on register group KONR and the assigned key code register group AKCR are referenced, and the key-on data I in the key-on register group Iku○NR is
○N(i) is 1°゛, and the assignment key code AKC(i
A variable i (channel) in which > matches the event key code EVKC is searched. Next, in step 403, it is determined whether there is a channel that satisfies the above relationship based on the search result, and in step 403, r
If NOJ is determined, that is, the channel does not exist, the program proceeds to step 409 and the execution of the key-off program is terminated.

また、前記ステップ403にてrYES、すなわち該当
チャンネルが存在すると判定されると、ステップ404
にて前記サーチによる該当チャンネルを表すチャンネル
番号がオフチャンネルデータ○FFCHとして設定され
るとともに、ステップ405にて前記設定オフチャンネ
ルデータ0FFCHにより指定されるキーオンレジスタ
群KONR内のキーオンデータKON (OFFCH)
が0″に設定される。かがるステップ405の処理後、
ステップ406にて変数jを「o」がら「15」まで「
1」ずつ大きくしながらソステヌート用レジスタ群5K
CRが参照されて、イベントキーコードEVKCに一致
する同しジスタ群5KCR内のソステヌートキーコード
SKC(j )がサーチされ、ステップ407にて前記
サーチ結果に基づき該当チャンネルの有無が判定される
Further, if rYES is determined in step 403, that is, it is determined that the corresponding channel exists, step 404
At step 405, the channel number representing the corresponding channel by the search is set as off-channel data ○FFCH, and at step 405, the key-on data KON (OFFCH) in the key-on register group KONR specified by the set off-channel data 0FFCH is set.
is set to 0''. After the process of step 405,
In step 406, the variable j is changed from "o" to "15".
Sostenuto register group 5K while increasing by 1"
The CR is referred to and a sostenuto key code SKC(j) in the same register group 5KCR that matches the event key code EVKC is searched, and in step 407, it is determined whether the corresponding channel exists or not based on the search result.

かかる場合、該当チャンネルが存在しなければ、同ステ
ップ407にて「N○」と判定され、ステップ408に
て前記オフチャンネルデータ0FFCHと急速減衰を表
す制御データがバス16を介して楽音信号形成回路14
へ出力される。これにより、楽音信号形成回路14は前
記オフチャンネルデータ0FFC)(により指定される
楽音信号形成チャンネルにて形成出力中の楽音信号を急
速減衰させるので(第2図の破線参照)、スピーカ18
から発生される前記チャンネルに対応した楽音が急速に
減衰するようになる。なお、かかる動作はソステヌート
効果の付与されていない場合における離鍵後の楽音の減
衰制御に対応する。
In such a case, if the corresponding channel does not exist, it is determined as "N○" in step 407, and in step 408, the off-channel data 0FFCH and control data representing rapid decay are sent to the musical tone signal forming circuit via the bus 16. 14
Output to. As a result, the musical tone signal forming circuit 14 rapidly attenuates the musical tone signal being formed and output in the musical tone signal forming channel specified by the off-channel data 0FFC) (see the broken line in FIG. 2).
The musical tone generated from the channel corresponding to the channel rapidly attenuates. Note that this operation corresponds to the attenuation control of the musical tone after the key is released when no sostenuto effect is applied.

また、前記ステップ406のサーチ処理による該当チャ
ンネルが存在すれば、前記ステップ407の判定処理に
おいてrYESJと判定され、プログラムはステップ4
09へ進められて同ステップ409にて該キーオフプロ
グラムの実行が終了される。その結果、かがる場合には
、上記ステップ408による減衰処理がなされないので
、上述したキーオンプログラムく第5図)のステップ2
04の処理時における制御に基づき、発生楽音の減衰時
間は長く設定されたままである(第2図の実線参照)。
Further, if the corresponding channel exists in the search process of step 406, rYESJ is determined in the determination process of step 407, and the program is executed in step 4.
The process advances to step 409, where execution of the key-off program is terminated. As a result, if the key-on program is bent, the attenuation process in step 408 is not performed, so step 2 of the key-on program (FIG. 5) described above is not performed.
Based on the control during the processing of step 04, the decay time of the generated musical tone remains set to be long (see the solid line in FIG. 2).

なお、かがる動作はソステヌート効果が付与されている
場合における離鍵後の楽音の減衰制御に対応する。
Note that the overcasting operation corresponds to the attenuation control of the musical tone after the key is released when a sostenuto effect is applied.

(3)ンステヌートオンプログラム ソステヌートペダル12が操作されると、上述のように
、ステップ102〜1o4(第4図)からなる循環処理
を実行中のCPU15bは、ステップ103にてンステ
ヌートペダル12の操作イベントを検出してソステヌー
トオンプログラム(第8図)を実行する。
(3) When the sostenuto on program sostenuto pedal 12 is operated, the CPU 15b, which is executing the circulation process consisting of steps 102 to 1o4 (FIG. 4) as described above, turns on the sostenuto pedal 12 in step 103. The operation event is detected and the sostenuto-on program (FIG. 8) is executed.

このプログラムの実行はステップ500にて開始され、
ステップ501にて変数iをr□、がら「15」まで「
1」ずつ大きくしながらキーオンレジスタ群KONRが
参照されて、同しジスタ群KONR内のキーオンデータ
KON(i)が′°1°′であるチャンネルがサーチさ
れるとともに、該当チャンネルの発見毎に、同チャンネ
ルを示す変数iにより指定される割当てキーコード用し
ジスタ群AKCR内のアサインキーコードAKC(i)
がソステヌート用しジスタ群5KCR内のソステヌート
キーコード5KC(i)として設定される。
Execution of this program begins at step 500,
In step 501, the variable i is changed from r□ to "15".
The key-on register group KONR is referenced while increasing the key-on register group KONR in increments of 1, and a channel whose key-on data KON(i) is 1° is searched, and each time a corresponding channel is found, Assignment key code AKC(i) in register group AKCR for assigned key code specified by variable i indicating the same channel
is set as the sostenuto key code 5KC(i) in the register group 5KCR for sostenuto.

これにより、ソステヌート用レジスタ群5KCRには、
ソステヌートペダル12の操作時に押鍵中である鍵を表
すキーコードKCが全て記憶されることになる。かかる
ステップ501の処理後、ステップ502にて該ソステ
ヌートオンプログラムの実行が終了される。
As a result, in the sostenuto register group 5KCR,
All key codes KC representing the keys being pressed when the sostenuto pedal 12 is operated are stored. After the processing in step 501, the execution of the sostenuto on program is terminated in step 502.

り4)ソステヌートオフプログラム 操作中のソステヌートペダル12の操作が解除されると
、上述のように、ステップ102〜104(第4図)か
らなる循環処理を実行中のCPU15bは、ステップ1
03にてソステヌートペダル12の操作解除イベントを
検出してソステヌートオフプログラム(第9図)を実行
する。
4) When the operation of the sostenuto pedal 12 during sostenuto off program operation is released, the CPU 15b, which is executing the circulation process consisting of steps 102 to 104 (FIG. 4), returns to step 1.
At step 03, a release event of the sostenuto pedal 12 is detected and the sostenuto off program (FIG. 9) is executed.

このプログラムの実行はステップ600にて開始され、
ステップ601にて変数jが”o”に初期設定されると
ともに、ステップ602にて前記設定変数jにより指定
されるソステヌート用レジスタ1sKcR内のソステヌ
ートキーコード5KC(j)が「0」 (各鍵を表さな
いリセットデータ)であるか否かが判定される。かかる
場合、ソステヌートキーコード5KC(j>が「0」で
あれば、前記ステップ602にて「YES」と判定され
て、プログラムはステップ607へ進められる。また、
ソステヌートキーコードSKC(j )が「0」でなけ
れば、前記ステップ602にて「NO」と判定されて、
プログラムはステップ603〜606へ進められる。
Execution of this program begins at step 600,
In step 601, the variable j is initialized to "o", and in step 602, the sostenuto key code 5KC(j) in the sostenuto register 1sKcR specified by the setting variable j is set to "0" (each key It is determined whether the data is reset data that is not displayed. In such a case, if the sostenuto key code 5KC (j> is "0", the determination in step 602 is "YES" and the program proceeds to step 607.
If the sostenuto key code SKC(j) is not "0", the determination in step 602 is "NO", and
The program proceeds to steps 603-606.

ステップ603においては、変数iを「0」から「15
」まで「1」ずつ大きくしながらキーオン用レジスタ群
KONR及び割当てキーコード用レジスタ群AKCRが
参照されて、キーオン用レジスタP’jlKONR内ツ
キ−オンデータKON(i)が”0”であり、かつ割当
てキーコードレジスター群AKCR内のアサインキーコ
ードAKC(i)が前記ソステヌートキーコードSKC
(j )と−致する関係にある変数i(チャンネル)が
サーチされる。次に、ステップ604にて前記サーチ結
果に基づき前記関係を満足するチャンネルの有無が判定
され、同ステップ604にてrYESJすなわち前記該
当チャンネルが有ると判定されると、ステップ605に
て上記ステップ408(第7図)の処理と同様にして全
ての該当チャンネルにおける楽音が急速減衰するように
制御されるとともに、ステップ606にて前記ソステヌ
ートキーコードSKC(j )が「0」に設定される。
In step 603, the variable i is changed from "0" to "15".
The key-on register group KONR and the assigned key code register group AKCR are referenced while incrementing by "1" until ``1'', and the key-on data KON(i) in the key-on register P'jlKONR is "0", and The assignment key code AKC(i) in the assignment key code register group AKCR is the sostenuto key code SKC.
A search is made for a variable i (channel) that has a matching relationship with (j). Next, in step 604, it is determined whether there is a channel that satisfies the above relationship based on the search result, and if it is determined in the same step 604 that rYESJ, that is, the corresponding channel exists, then in step 605, the above step 408 ( Similar to the process in FIG. 7), the musical tones in all the corresponding channels are controlled to rapidly attenuate, and at step 606 the sostenuto key code SKC(j) is set to "0".

このステップ605の処理は、ソステヌートペダル12
が操作されていて離鍵後におけるソステヌート効果の付
与されていた楽音を、同ペダル12の操作解除に伴う同
効果の解除によって急速減衰させる意味をもつ。
The processing in step 605 is performed by the sostenuto pedal 12.
This has the meaning of rapidly attenuating a musical tone to which a sostenuto effect has been applied after the pedal 12 has been operated and the sostenuto effect has been applied after the key is released, by canceling the sostenuto effect as the pedal 12 is released.

また、前記ステップ604にて「NO」すなわち前記該
当チャンネルが無いと判定されると、前記ステップ60
5の処理がなされないで、プログラムはステップ606
へ進められ、同ステップ606にて前記ソステヌートキ
ーコードSKC(j >がr□、に設定される。なお、
かかる場合には、離1! 後におけるソステヌート効果
の付与されていた楽音が存在しないので、前記のような
急速減衰制御は不要である。
Further, if it is determined in step 604 that the corresponding channel does not exist, then step 604
5 is not performed and the program returns to step 606.
At step 606, the sostenuto key code SKC (j > is set to r□).
In such a case, 1! Since there is no later musical tone to which a sostenuto effect has been applied, the rapid attenuation control as described above is unnecessary.

前記ステップ606の処理後、ステップ607にて変数
jに「1」が加算されるとともに、ステップ608にて
該加算により「1」だけ増加した変数jが「16」未満
であるか否かが判定される。
After the processing in step 606, "1" is added to the variable j in step 607, and in step 608 it is determined whether the variable j increased by "1" due to the addition is less than "16". be done.

かかる場合、変数jが「16」未満であれば、前記ステ
ップ608にてrYES、と判定され、プログラムはス
テップ602に戻されて前記ステップ602〜606か
らなる処理が実行されるとともに、ステップ607にて
再び変数jが「1」だけ増加される。このような変数j
の増加により同変数が「15」まで変化すると、ソステ
ヌート用レジスタ群S K CR内の全てのソステヌー
トキーコードSKCに関する前記ステップ602〜60
6からなる急速減衰制御及びソステヌートキーコードS
KCのクリア処理が終了される。そして、ステップ60
7にて再び変数jに「1」が加算されると、該変数jが
「16」になり、ステップ608にて「NO」と判定さ
れ、ステップ609にて該ソステヌートオフプログラム
の実行が終了される。
In such a case, if the variable j is less than "16", the determination in step 608 is rYES, and the program returns to step 602 to execute the processing consisting of steps 602 to 606, and then proceeds to step 607. Then, the variable j is again incremented by "1". A variable like this
When the variable changes to "15" due to an increase in , the steps 602 to 60 regarding all sostenuto key codes SKC in the sostenuto register group SKCR are performed.
Rapid decay control consisting of 6 and sostenuto key code S
The KC clearing process is completed. And step 60
When "1" is added to the variable j again in step 7, the variable j becomes "16", a determination of "NO" is made in step 608, and the execution of the sostenuto off program is terminated in step 609. Ru.

以上の動作説明からも理解できる通り、上記実施例によ
れば、ソステヌートペダル12の操作時に、ソステヌー
トオンプログラム(第8図)のステップ501の処理に
より鍵盤11にて押鍵中の全ての鍵を表すキーコードK
Cがソステヌート用しジスタ群5KCR内にソステヌー
トキーコードSKCとして取り込まれ、鍵盤11におけ
る押鍵中の鍵の離鍵時に、キーオフプログラムく第7図
)のステップ403〜408の処理により、離鍵された
鍵に関する楽音の減衰特性すなわちソステヌート効果の
付与が前記ソステヌートキーコードSKCに応じて制御
されるので、鍵盤における押鍵イベント及び該押鍵に関
する割当て動作とは無関係に鍵盤における鍵のI11鍵
時に楽音の減衰特性が制御されるようになり、鍵盤にて
同一鍵が繰返し操作された場合でも、既に割当ての解除
された鍵゛が新たに押鍵された場合でも、操作子が操作
されたときに押鍵されていた鍵に関する楽音にはソステ
ヌート効果が付与される。
As can be understood from the above explanation of the operation, according to the above embodiment, when the sostenuto pedal 12 is operated, all the keys being pressed on the keyboard 11 are Key code K
C is used for sostenuto and is taken in as the sostenuto key code SKC in the register group 5KCR, and when the key being pressed on the keyboard 11 is released, the key is released by the processing of steps 403 to 408 of the key-off program (FIG. 7). Since the attenuation characteristic of the musical tone, that is, the application of the sostenuto effect for the pressed key, is controlled according to the sostenuto key code SKC, the musical tone is generated at the I11 key on the keyboard, regardless of the key press event on the keyboard and the assignment operation related to the pressed key. The attenuation characteristics of the controller are now controlled, so even if the same key is pressed repeatedly on the keyboard, or a new key is pressed that has already been released, the A sostenuto effect is added to the musical tone associated with the key that was pressed.

なお、上記実施例を次のように変形しても、本発明は実
現されるものである。
Note that the present invention can be realized even if the above embodiment is modified as follows.

(1)上記実施例においては、ソステヌート用しジスタ
群5KCR内に、ソステヌートキーコードSKCに関す
る記憶チャンネルを割当てキーコード用レジスタ群AK
CR及びキーオン用レジスタ群KONR内の各記憶チャ
ンネルと対応づけて設けるようにしたが、ソステヌート
用レジスタ群5KCRはソステヌートペダル12の操作
時に鍵盤11における押鍵中の全ての鍵を表すキーコー
ドKCを記憶する機能を有していればよい。すなわち、
ソステヌートキーコードSKCに関する記憶チャンネル
を割当てキーコード用レジスタ群AKCR及びキーオン
用レジスタ群KONR内の各記憶チャンネルと対応づけ
て設けるようにする必要もないし、該ソステヌートキー
コードSKCに関する記憶チャンネルをアサインキーコ
ードAKC及びキーオンデータKONを記憶するチャン
ネル数と同数設ける必要もなく、例えば「10」程度の
数にしてもよい。
(1) In the above embodiment, a storage channel related to the sostenuto key code SKC is allocated in the sostenuto register group 5KCR, and the key code register group AK
The sostenuto register group 5KCR is provided in association with each memory channel in the CR and key-on register group KONR, but the sostenuto register group 5KCR stores key codes KC representing all the keys being pressed on the keyboard 11 when the sostenuto pedal 12 is operated. It suffices if it has a storage function. That is,
There is no need to provide a storage channel for the sostenuto key code SKC in association with each storage channel in the assigned key code register group AKCR and the key-on register group KONR, and it is not necessary to provide the storage channel for the sostenuto key code SKC in association with each storage channel in the assigned key code register group AKCR and the key-on register group KONR. It is not necessary to provide the same number of channels as the number of channels storing AKC and key-on data KON, and the number may be about 10, for example.

また、このソステヌート用レジスタ群5KCRはソステ
ヌートペダル12の操作時に鍵盤11における押鍵中の
全ての鍵を表すデータを記憶すればよいので、同レジス
タ群S K CRに代えて、鍵盤11の各鍵を1ビツト
ずつ対応させた鍵数分のビット数を有するレジスタを設
けるようにしてもよい。この場合、ソステヌートペダル
12の操作時に、鍵盤11における押鍵中の鍵に対応し
た各ビットのデータをソステヌート効果付与を表す1′
′に設定するとともに、同ペダル12の操作解除時に前
記”1″に設定された全てのデータをソステヌート効果
の付与無しを表すn O“′に設定するようにすればよ
い。そして、第7図のステップ406のサーチ処理は前
記レジスタ内の各ビットデータに応じて行われるように
すればよい。
Also, since this sostenuto register group 5KCR only needs to store data representing all the keys being pressed on the keyboard 11 when the sostenuto pedal 12 is operated, each key on the keyboard 11 can be stored in place of the register group S KCR. It is also possible to provide a register having the number of bits corresponding to the number of keys, in which each bit corresponds to the number of keys. In this case, when the sostenuto pedal 12 is operated, the data of each bit corresponding to the key being pressed on the keyboard 11 is changed to 1' representing the sostenuto effect.
', and at the same time, when the pedal 12 is released, all the data set to "1" may be set to nO"', which indicates that no sostenuto effect is applied. Then, as shown in FIG. The search process in step 406 may be performed in accordance with each bit data in the register.

り2)上記実施例においては、ソステヌート効果付与の
制御のために、鍵盤11における鍵の離鍵時に、第7図
のステップ406〜408の処理にて離鍵された鍵に関
するキーコードKC(イベントキーコードEVKC)が
ソステヌート用しジスタ群5KCR内に存在するか否か
を判定して、該判定結果に基づき楽音の減衰特性を制御
するようにした。しかし、この代わりに、上記提案装置
のように割当てキーコードレジスタ群AKCR内のアサ
インキーコードAKCに対応させてソステヌート効果の
付与の有無を表すフラグデータを記憶させるようにする
とともに、キーコードKCの割当て制御時にソステヌー
ト用レジスタ群5KCRを参照して前記フラグデータを
設定制御するようにして、鍵盤11における鍵の離鍵時
には前記フラグデータに応じて離鍵された鍵に関する楽
音の減衰特性を制御するようにしてもよい。
2) In the above embodiment, in order to control the sostenuto effect, when a key on the keyboard 11 is released, the key code KC (event) associated with the key released in the processing of steps 406 to 408 in FIG. It is determined whether or not the key code EVKC exists in the register group 5KCR for sostenuto, and the attenuation characteristics of musical tones are controlled based on the determination result. However, instead of this, flag data indicating whether or not a sostenuto effect is to be applied is stored in correspondence with the assigned key code AKC in the assigned key code register group AKCR, as in the above-mentioned proposed device, and the flag data representing the presence or absence of the sostenuto effect is stored. At the time of assignment control, the flag data is set and controlled by referring to the sostenuto register group 5KCR, and when a key on the keyboard 11 is released, the attenuation characteristics of musical tones related to the released key are controlled in accordance with the flag data. You can do it like this.

(3)上記実施例においては、鍵盤11にて新たな鍵が
押鍵された場合における割当てチャンネルの決定のため
に、楽音信号形成回路14から楽音信号レベルを表すレ
ベル信号をマイクロコンピュータ部15に取り込むよう
にしたが、該レベル信号の取り込みの代わりに、マイク
ロコンピュータ部15内にて前記レベルを押鍵からの時
間経過に応じて各チャンネル毎に推定するようにしても
よい。
(3) In the above embodiment, in order to determine the assigned channel when a new key is pressed on the keyboard 11, a level signal representing the musical tone signal level is sent from the musical tone signal forming circuit 14 to the microcomputer section 15. However, instead of capturing the level signal, the level may be estimated for each channel in the microcomputer section 15 in accordance with the passage of time from the key press.

かかる場合、押鍵速度に対応した鍵タツチ機能、ダンパ
ペダルの操作に応じたダンパ機能等が付与されていれば
、かかる機能に応じて前記推定レベルを前記鍵タッチ、
ダンパペダルの操作に応じて修正するようにすればよい
。また、前記のような割当て順位の決定条件を採用しな
くても、例えば鍵の離鍵順序等により簡易的に割当て優
先順位を決定するようにしてもよい。
In such a case, if a key touch function corresponding to the key pressing speed, a damper function corresponding to the operation of the damper pedal, etc. are provided, the estimated level is set according to the key touch, damper pedal operation, etc.
The correction may be made in accordance with the operation of the damper pedal. Further, the allocation priority order may be simply determined based on, for example, the order in which keys are released, etc., without adopting the conditions for determining the allocation order as described above.

さらに、該割当てに関連して、上記実施例においては、
第6図のステップ305.307の処理により、ソステ
ヌート効果付与の有無及び鍵の押離鍵に応じて割当て優
先順位を異ならせているが、かかる条件を考慮せず、す
なわちステップ305〜308の処理を省略して、ステ
ップ303にてrNOJと判定された場合には、ステッ
プ309の処理のみを実行するようにして楽音のレベル
の大小のみで割当て優先順位を決定するようにしてもよ
い。また、逆に発生楽音の音高を考慮、例えば低音域に
属する鍵が割当てられているチャンネルには、新たな鍵
が再割当てされにくいようにしてもよい。
Furthermore, in relation to the assignment, in the above embodiment,
In the processing of steps 305 and 307 in FIG. 6, the allocation priority is made different depending on whether or not a sostenuto effect is applied and the key presses and releases. If step 303 is determined to be rNOJ, only step 309 may be executed, and the allocation priority order may be determined based only on the level of the musical tone. In addition, conversely, the pitch of the generated musical sound may be taken into account, and for example, a new key may be difficult to be reassigned to a channel to which a key belonging to the bass range is assigned.

(4)上記実施例においては、楽音の同時発音可能なチ
ャンネル数を「16」としたが、このチャンネル数は複
数であれば他の数でもよい。また、上記実施例では、同
一鍵に関する楽音を同時に発音てきる最大のチャンネル
数を「2」としたが、この最大チャンネル数は「1」で
もよいし、「3」以上でもよい。
(4) In the above embodiment, the number of channels that can simultaneously produce musical tones is set to 16, but the number of channels may be any other number as long as it is plural. Further, in the above embodiment, the maximum number of channels that can simultaneously produce musical tones related to the same key is set to "2", but this maximum number of channels may be "1", or may be "3" or more.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例に係る楽音発生制御装置の適
用された電子楽器の全体概略図、第2図は第1図の電子
楽器により発生される楽音信号のエンベロープ信号波形
図、第3A図乃至3D図は第1図のワーキングメモリの
メモリマツプ、及び第4図乃至第9図は第1図のプログ
ラムメモリに記憶されているプログラムに対応したフロ
ーチャートである。 符  号  の  説  明 11・・・鍵盤、11a・・・鍵スィッチ回路、12・
・・ソステヌートペダル、12a・・・ソステヌートペ
ダルスイッチ回路、14・・・楽音信号形成回路、15
・・・マイクロコンピュータ部、15a・・・プログラ
ムメモリ、15b・・・CPU、15c・・・ワーキン
グメモリ、AKCR・・・割当てキーコード用レジスタ
群、K ONR・・・キーオン用レジスタ群、5KCR
・・・ソステヌート用レジスタ群、ASCR・・・その
他割当て制御用レジスタ群。
1 is an overall schematic diagram of an electronic musical instrument to which a musical tone generation control device according to an embodiment of the present invention is applied; FIG. 2 is an envelope signal waveform diagram of a musical tone signal generated by the electronic musical instrument of FIG. 1; 3A to 3D are memory maps of the working memory of FIG. 1, and FIGS. 4 to 9 are flowcharts corresponding to the programs stored in the program memory of FIG. 1. Explanation of symbols 11...Keyboard, 11a...Key switch circuit, 12.
... Sostenuto pedal, 12a... Sostenuto pedal switch circuit, 14... Musical tone signal forming circuit, 15
...Microcomputer section, 15a...Program memory, 15b...CPU, 15c...Working memory, AKCR...Register group for assigned key code, K ONR...Register group for key-on, 5KCR
...Sostenuto register group, ASCR...Other allocation control register group.

Claims (1)

【特許請求の範囲】 発生すべき楽音の音高を各々指定する複数の鍵からなる
鍵盤と、 複数の鍵情報記憶チャンネルと、 前記鍵盤における鍵操作を検出して押鍵された鍵を表す
鍵情報を前記複数の鍵情報記憶チャンネルのいずれかに
割当て記憶する割当て制御手段とを備え、前記複数の鍵
情報記憶チャンネルに各々記憶された鍵情報に基づき楽
音の発生を制御する電子楽器の楽音発生制御装置におい
て、 ソステヌート効果制御用の操作子と、 前記操作子の操作時に前記鍵盤にて押鍵されている鍵に
関する情報を記憶しかつ該操作子の操作解除時に前記記
憶した情報をクリアするソステヌート用情報記憶手段と
、 前記鍵盤にて離鍵された鍵に関する情報が前記ソステヌ
ート用情報記憶手段に記憶されているとき該鍵に関する
楽音の減衰時間を長く制御しかつ前記離鍵された鍵に関
する情報が前記ソステヌート用情報記憶手段に記憶され
ていないとき該鍵に関する楽音の減衰時間を短く制御す
る減衰時間制御手段と を設けたことを特徴とする電子楽器の楽音発生制御装置
[Scope of Claims] A keyboard consisting of a plurality of keys each specifying the pitch of a musical tone to be generated, a plurality of key information storage channels, and a key representing a pressed key by detecting a key operation on the keyboard. musical sound generation for an electronic musical instrument, comprising an allocation control means for allocating and storing information to one of the plurality of key information storage channels, and controlling the generation of musical tones based on the key information stored in each of the plurality of key information storage channels. The control device includes an operator for controlling a sostenuto effect, and a sostenuto that stores information regarding a key pressed on the keyboard when the operator is operated, and clears the stored information when the operator is released. information storage means for controlling the decay time of a musical tone associated with the key to a longer time when information regarding a key released on the keyboard is stored in the sostenuto information storage means; and information regarding the released key; A musical sound generation control device for an electronic musical instrument, characterized in that a decay time control means shortens the decay time of a musical tone related to the key when the key is not stored in the sostenuto information storage means.
JP63150633A 1988-06-17 1988-06-17 Electronic musical instrument Expired - Fee Related JP2526636B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63150633A JP2526636B2 (en) 1988-06-17 1988-06-17 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63150633A JP2526636B2 (en) 1988-06-17 1988-06-17 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH01319096A true JPH01319096A (en) 1989-12-25
JP2526636B2 JP2526636B2 (en) 1996-08-21

Family

ID=15501119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63150633A Expired - Fee Related JP2526636B2 (en) 1988-06-17 1988-06-17 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2526636B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03269584A (en) * 1990-03-20 1991-12-02 Yamaha Corp Electronic musical instrument
JPH0487894U (en) * 1990-12-11 1992-07-30

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5897092A (en) * 1981-12-07 1983-06-09 ヤマハ株式会社 Electronic musical instrument

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5897092A (en) * 1981-12-07 1983-06-09 ヤマハ株式会社 Electronic musical instrument

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03269584A (en) * 1990-03-20 1991-12-02 Yamaha Corp Electronic musical instrument
JPH0487894U (en) * 1990-12-11 1992-07-30

Also Published As

Publication number Publication date
JP2526636B2 (en) 1996-08-21

Similar Documents

Publication Publication Date Title
JPS63186296A (en) Musical sound generation controller for electronic musical instrument
JP2655905B2 (en) Electronic musical instrument channel assignment device
JP2645181B2 (en) Electronic musical instrument channel assignment device and channel assignment method
JPH03269584A (en) Electronic musical instrument
JP2750530B2 (en) Electronic musical instrument
JP2565069B2 (en) Electronic musical instrument
JPH01319096A (en) Musical sound production controller for electronic musical instrument
JPH04198994A (en) Method for controlling musical tone of electronic musical instrument
JPH0572596B2 (en)
US11042380B2 (en) Apparatus, method and computer program for processing instruction
JPH01177090A (en) Electronic musical instrument
JP2698942B2 (en) Tone generator
JP2570819B2 (en) Electronic musical instrument
JP2513003B2 (en) Electronic musical instrument
JP2715795B2 (en) Musical sound synthesizer having pronunciation assigning means
JPH0580754A (en) Electronic musical instrument
JP2814479B2 (en) Electronic musical instrument
JPS6290697A (en) Keying allotter for electronic musical apparatus
JPH0515279B2 (en)
JP3508139B2 (en) Digital signal processor
JP3646611B2 (en) Music generator
JP4306138B2 (en) Musical sound generator and musical sound generation processing program
JP2685419B2 (en) Electronic musical instrument channel assignment device and channel assignment method
JPH01315794A (en) Electronic musical instrument
JP2531317B2 (en) Key press assigning device for electronic musical instruments

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees