JP2002091447A - Converting device for electronic musical instrument and method for the same and recording medium - Google Patents

Converting device for electronic musical instrument and method for the same and recording medium

Info

Publication number
JP2002091447A
JP2002091447A JP2000276874A JP2000276874A JP2002091447A JP 2002091447 A JP2002091447 A JP 2002091447A JP 2000276874 A JP2000276874 A JP 2000276874A JP 2000276874 A JP2000276874 A JP 2000276874A JP 2002091447 A JP2002091447 A JP 2002091447A
Authority
JP
Japan
Prior art keywords
operation position
output
damper pedal
half damper
position output
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.)
Pending
Application number
JP2000276874A
Other languages
Japanese (ja)
Inventor
Yoshibumi Kira
義文 吉良
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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
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 Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2000276874A priority Critical patent/JP2002091447A/en
Publication of JP2002091447A publication Critical patent/JP2002091447A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To solve the problem that it is possible to operate a half damper pedal with a satisfactory response regardless of the individual difference or deterioration of the half damper pedal. SOLUTION: This converter of an electronic musical instrument is provided with a half damper pedal (1) for performing an output corresponding to an operating position, a detecting means (3) for detecting the maximum operating position output and the minimum operating position output when the half damper pedal is operated at the maximum operating position and the minimum operating position, and converting means (4, 5) for converting the output of the half damper pedal according to the detected maximum operating position output and minimum operating position output of the half damper pedal.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ハーフダンパペダ
ルを有する電子楽器に関し、特に電子楽器のハーフダン
パペダルの出力を変換する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument having a half damper pedal, and more particularly to a technique for converting the output of a half damper pedal of an electronic musical instrument.

【0002】[0002]

【従来の技術】電子ピアノ等の電子楽器には、操作子が
出力するアナログ値をデジタル値に変換して処理するも
のが多く存在する。例えば、ピアノのダンパペダルの動
作を模倣して、踏み込んだ度合いによってダンパ効果の
深さを変化させるハーフダンパペダルがある。ハーフダ
ンパペダルは、踏み込むと発音中の音の減衰速度が遅く
なる。
2. Description of the Related Art There are many electronic musical instruments such as electronic pianos that convert an analog value output from an operator into a digital value and process the digital value. For example, there is a half damper pedal that imitates the operation of a damper pedal of a piano and changes the depth of the damper effect according to the degree of depression. When the half damper pedal is depressed, the decay speed of the sound being generated becomes slow.

【0003】ハーフダンパペダルの出力値の範囲は、個
体差によってばらつきがある。また、ハーフダンパペダ
ルを長年使用すると、ハーフダンパペダルが老朽化し、
その出力値が変化してしまうことがある。例えば、ハー
フダンパペダルの最小値及び最大値が本来0及び127
であるのに対し、ハーフダンパペダルを踏んでいないの
に1以上の値を出力してしまったり、ハーフダンパペダ
ルを最大に踏み込んでいるのに126以下の値を出力し
てしまったりすることがある。
[0003] The range of the output value of the half damper pedal varies depending on individual differences. Also, if the half damper pedal is used for many years, the half damper pedal becomes obsolete,
The output value may change. For example, the minimum and maximum values of the half damper pedal are originally 0 and 127
On the other hand, when the half damper pedal is not depressed, a value of 1 or more is output, or when the half damper pedal is fully depressed, a value of 126 or less is output. is there.

【0004】この場合、ハーフダンパペダルが期待する
範囲の値を出力できないことになる。従来は、この問題
を解決するために、予めハーフダンパペダルのばらつき
を考慮し、最小操作位置及び最大操作位置付近の部分に
は所定のマージンをとることで対応していた。すなわ
ち、そのマージンの範囲では、本来の最小操作位置出力
(例えば0)又は最大操作位置出力(例えば127)に
変換していた。
In this case, a value in a range expected by the half damper pedal cannot be output. Conventionally, in order to solve this problem, a variation in the half damper pedal is considered in advance, and a portion near the minimum operation position and the maximum operation position is provided with a predetermined margin. That is, in the range of the margin, the output is converted to the original minimum operation position output (for example, 0) or the maximum operation position output (for example, 127).

【0005】[0005]

【発明が解決しようとする課題】ハーフダンパペダルの
個体差を防止するため、上記のマージンを大きくとって
いる。その結果、ハーフダンパペダルのレスポンスが悪
くなるという問題が生じてしまう。例えば、ハーフダン
パペダルを踏み込み始めても、すぐにはダンパ効果が得
られなくなってしまう。仮に、ハーフダンパペダルのレ
スポンスを良くしようとすると、ハーフダンパペダルの
個体差や老朽化によって、その出力値にばらつきが生じ
てしまう。
In order to prevent individual differences of the half damper pedal, the above-mentioned margin is set large. As a result, there arises a problem that the response of the half damper pedal is deteriorated. For example, even when the half-damper pedal starts to be depressed, the damper effect cannot be obtained immediately. If the response of the half damper pedal is to be improved, the output value of the half damper pedal varies due to individual differences and aging.

【0006】本発明の目的は、ハーフダンパペダルの個
体差に関係なく、良好なレスポンスでハーフダンパペダ
ルを操作することができる電子楽器を実現することであ
る。本発明の他の目的は、ハーフダンパペダルの老朽化
により出力が変わった場合に、その出力値を適正値に変
換することができる電子楽器を実現することである。
An object of the present invention is to realize an electronic musical instrument that can operate a half damper pedal with good response regardless of individual differences of the half damper pedal. Another object of the present invention is to realize an electronic musical instrument capable of converting the output value to an appropriate value when the output changes due to aging of the half damper pedal.

【0007】[0007]

【課題を解決するための手段】本発明の一観点によれ
ば、操作位置に応じた出力を行うハーフダンパペダル
と、前記ハーフダンパペダルが最大操作位置及び最小操
作位置に操作されたときの最大操作位置出力及び最小操
作位置出力を検出する検出手段と、前記検出されたハー
フダンパペダルの最大操作位置出力及び最小操作位置出
力に応じて、前記ハーフダンパペダルの出力を変換する
変換手段とを有する電子楽器の変換装置が提供される。
According to one aspect of the present invention, a half damper pedal that outputs according to an operation position, and a maximum damper pedal when the half damper pedal is operated to a maximum operation position and a minimum operation position. Detecting means for detecting the operating position output and the minimum operating position output; and converting means for converting the output of the half damper pedal according to the detected maximum operating position output and minimum operating position output of the half damper pedal. An electronic musical instrument converter is provided.

【0008】本発明の他の観点によれば、操作位置に応
じた出力を行うハーフダンパペダルを有する電子楽器の
変換方法であって、(a)前記ハーフダンパペダルが最
大操作位置及び最小操作位置に操作されたときの最大操
作位置出力及び最小操作位置出力を検出するステップ
と、(b)前記検出されたハーフダンパペダルの最大操
作位置出力及び最小操作位置出力に応じて、前記ハーフ
ダンパペダルの出力を変換するステップとを有する電子
楽器の変換方法が提供される。
According to another aspect of the present invention, there is provided a method of converting an electronic musical instrument having a half-damper pedal for performing an output in accordance with an operation position, wherein (a) the half-damper pedal has a maximum operation position and a minimum operation position. Detecting a maximum operation position output and a minimum operation position output when the half damper pedal is operated; and (b) detecting the maximum operation position output and the minimum operation position output of the half damper pedal, Converting the output of the electronic musical instrument.

【0009】本発明のさらに他の観点によれば、操作位
置に応じた出力を行うハーフダンパペダルを有する電子
楽器のプログラムを記録した記録媒体であって、(a)
前記ハーフダンパペダルが最大操作位置及び最小操作位
置に操作されたときの最大操作位置出力及び最小操作位
置出力を検出する手順と、(b)前記検出されたハーフ
ダンパペダルの最大操作位置出力及び最小操作位置出力
に応じて、前記ハーフダンパペダルの出力を変換する手
順とをコンピュータに実行させるためのプログラムを記
録したコンピュータ読み取り可能な記録媒体が提供され
る。
According to still another aspect of the present invention, there is provided a recording medium storing a program for an electronic musical instrument having a half-damper pedal for performing an output according to an operation position, wherein (a)
Detecting the maximum operation position output and the minimum operation position output when the half damper pedal is operated to the maximum operation position and the minimum operation position; and (b) detecting the maximum operation position output and the minimum operation position of the detected half damper pedal. A computer-readable recording medium that records a program for causing a computer to execute the procedure of converting the output of the half damper pedal according to the operation position output is provided.

【0010】本発明によれば、ハーフダンパペダルの最
大操作位置出力及び最小操作位置出力を検出し、これら
の出力に応じてハーフダンパペダルの出力を変換するの
で、ハーフダンパペダルの個体差に関係なく、良好なレ
スポンスでハーフダンパペダルを操作することができ
る。また、ハーフダンパペダルを長期間使用して、老朽
化により出力が変わった場合に、その出力値を適正な値
に変換することができる。
According to the present invention, since the maximum operation position output and the minimum operation position output of the half damper pedal are detected, and the output of the half damper pedal is converted according to these outputs, the output of the half damper pedal is related to the individual difference of the half damper pedal. The half-damper pedal can be operated with a good response. Further, when the output changes due to aging by using the half damper pedal for a long time, the output value can be converted to an appropriate value.

【0011】[0011]

【発明の実施の形態】(第1の実施形態)図1は、本発
明の第1の実施形態による電子楽器の構成例を示す。操
作子であるハーフダンパペダル1は、演奏者の操作に応
じて、操作位置に対応するアナログ値を出力する。A/
D変換回路2は、ハーフダンパペダル1が出力するアナ
ログ値をデジタル値に変換する。ハーフダンパペダル1
は、A/D変換回路2により、演奏者の操作に応じて3
値以上の多段階デジタル値を出力することができる。
(First Embodiment) FIG. 1 shows an example of the configuration of an electronic musical instrument according to a first embodiment of the present invention. The half damper pedal 1, which is an operator, outputs an analog value corresponding to an operation position according to an operation by a player. A /
The D conversion circuit 2 converts an analog value output from the half damper pedal 1 into a digital value. Half damper pedal 1
Is changed by the A / D conversion circuit 2 in accordance with the operation of the player.
It can output a multi-step digital value equal to or greater than the value.

【0012】ハーフダンパペダル1の出力は、踏まない
状態では最小操作位置出力(例えば0)になり、最大に
踏み込んだ状態では最大操作位置出力(例えば127)
になる。しかし、ハーフダンパペダルの個体差により最
小操作位置出力及び最大操作位置出力にばらつきがあ
る。また、ハーフダンパペダルを長期間使用することに
より老朽化して、最小操作位置出力及び最大操作位置出
力が変化してしまうことがある。これらの理由により、
ハーフダンパペダル1は、踏まない状態での最小操作位
置出力が例えば1以上になってしまったり、最大に踏み
込んだ状態での最大操作位置出力が例えば126以下に
なってしまうことがある。これらの理由により、ハーフ
ダンパペダル1の出力のばらつきを防止するために、最
大値及び最小値検出並びにテーブルナンバ決定部3、変
換テーブル選択及びデータ変換部4、及び変換テーブル
5を設ける。
The output of the half damper pedal 1 is a minimum operation position output (for example, 0) when the pedal is not depressed, and a maximum operation position output (for example, 127) when the pedal is fully depressed.
become. However, there is variation in the minimum operation position output and the maximum operation position output due to individual differences of the half damper pedal. Further, the half damper pedal may be deteriorated due to long-term use, and the minimum operation position output and the maximum operation position output may change. For these reasons,
The half damper pedal 1 may have a minimum operation position output of, for example, 1 or more when not depressed, or may have a maximum operation position output of 126 or less when fully depressed. For these reasons, in order to prevent variations in the output of the half damper pedal 1, a maximum and minimum value detection and table number determination unit 3, a conversion table selection and data conversion unit 4, and a conversion table 5 are provided.

【0013】最大値及び最小値検出並びにテーブルナン
バ決定部3は、A/D変換回路2から出力されるハーフ
ダンパペダル1の最小操作位置出力及び最大操作位置出
力を検出する。具体的には、電子楽器の製造者又は演奏
者等に実際にハーフダンパペダルを最大操作位置及び最
小操作位置に操作してもらい、その時の最大操作位置出
力及び最小操作位置出力を検出する。
The maximum and minimum value detection and table number determination section 3 detects the minimum operation position output and the maximum operation position output of the half damper pedal 1 output from the A / D conversion circuit 2. Specifically, a manufacturer or a player of the electronic musical instrument actually operates the half damper pedal to the maximum operation position and the minimum operation position, and detects the maximum operation position output and the minimum operation position output at that time.

【0014】次に、最大値及び最小値検出並びにテーブ
ルナンバ決定部3は、図2に示す変換テーブルナンバテ
ーブルを基に、上記の検出された最小操作位置出力及び
最大操作位置出力に応じた変換テーブルナンバを決定す
る。図2の変換テーブルナンバテーブルは、縦軸が最小
操作位置出力を表し、横軸が最大操作位置出力を表す。
例えば、検出された最小操作位置出力が2であり、最大
操作位置出力が125のときには、変換テーブルナンバ
が3番に決定される。
Next, based on the conversion table number table shown in FIG. 2, the maximum value and minimum value detection and table number determination section 3 converts the detected minimum operation position output and the maximum operation position output. Determine the table number. In the conversion table number table of FIG. 2, the vertical axis represents the minimum operation position output, and the horizontal axis represents the maximum operation position output.
For example, when the detected minimum operation position output is 2 and the maximum operation position output is 125, the conversion table number is determined to be No. 3.

【0015】変換テーブル選択及びデータ変換部4は、
上記で決定された変換テーブルナンバに応じて、変換テ
ーブル(ROM)5内の変換テーブルを選択する。図3
に、変換テーブル5の構成例を示す。変換テーブル5
は、複数の変換テーブルを有し、横軸が変換テーブルナ
ンバを表す。変換テーブル5の縦軸は、ハーフダンパペ
ダル1の出力値を示す。
The conversion table selection and data conversion unit 4
The conversion table in the conversion table (ROM) 5 is selected according to the conversion table number determined above. FIG.
2 shows a configuration example of the conversion table 5. Conversion table 5
Has a plurality of conversion tables, and the horizontal axis represents the conversion table number. The vertical axis of the conversion table 5 indicates the output value of the half damper pedal 1.

【0016】図4に、変換テーブル5(図3)内の一つ
の変換テーブルの内容例を表すグラフである。横軸は、
ハーフダンパペダル1から変換テーブルへの入力を示
し、縦軸は変換テーブルの出力を表す。入力は、ハーフ
ダンパペダルの個体差や老朽化により、最小操作位置出
力が0+α(αは0以上の整数)として検出され、最大
操作位置出力が127−β(βは0以上の整数)として
検出される。出力は、最小操作位置出力が本来の最小操
作位置出力である0となり、最大操作位置出力が本来の
最大操作位置出力である127となる。本来の最小操作
位置出力及び最大操作位置出力は、所定の固定値であ
る。
FIG. 4 is a graph showing an example of the contents of one conversion table in the conversion table 5 (FIG. 3). The horizontal axis is
The input from the half damper pedal 1 to the conversion table is shown, and the vertical axis represents the output of the conversion table. As for the input, the minimum operation position output is detected as 0 + α (α is an integer of 0 or more) and the maximum operation position output is detected as 127-β (β is an integer of 0 or more) due to individual differences and aging of the half damper pedal. Is done. As for the output, the minimum operation position output becomes 0, which is the original minimum operation position output, and the maximum operation position output becomes 127, which is the original maximum operation position output. The original minimum operation position output and the maximum operation position output are predetermined fixed values.

【0017】変換テーブル5は、ハーフダンパペダル1
が最小操作位置付近の所定のマージンMminで操作さ
れたときには本来の最小操作位置出力(例えば0)に変
換し、ハーフダンパペダル1が最大操作位置付近の所定
のマージンMmaxで操作されたときには本来の最大操
作位置出力(例えば127)に変換する。マージンMm
in,Mmaxを設けることにより、ハーフダンパペダ
ル1の使用によるその出力の変化に対応することができ
る。例えば、図3の3番の変換テーブルナンバの場合、
ハーフダンパペダル1の出力が0〜3のときにはマージ
ンMminとして0に変換し、ハーフダンパペダル1の
出力が124〜127のときにはマージンMmaxとし
て127に変換する。変換テーブルナンバ(すなわち検
出された最小操作位置出力及び最大操作位置出力)に応
じて、マージンMmin,Mmaxと共に、特性線MM
が変わる。以上のように、最小操作位置出力及び最大操
作位置出力を検出することにより、変換テーブルナンバ
を決定することができる。
The conversion table 5 includes the half damper pedal 1
Is converted to the original minimum operation position output (for example, 0) when operated at a predetermined margin Mmin near the minimum operation position, and is converted to the original output when the half damper pedal 1 is operated at a predetermined margin Mmax near the maximum operation position. The output is converted to the maximum operation position output (for example, 127). Margin Mm
By providing in and Mmax, it is possible to cope with a change in the output of the half damper pedal 1 due to its use. For example, in the case of the third conversion table number in FIG.
When the output of the half damper pedal 1 is 0 to 3, it is converted to 0 as the margin Mmin, and when the output of the half damper pedal 1 is 124 to 127, it is converted to 127 as the margin Mmax. According to the conversion table number (that is, the detected minimum operation position output and maximum operation position output), the characteristic line MM together with the margins Mmin and Mmax is used.
Changes. As described above, the conversion table number can be determined by detecting the minimum operation position output and the maximum operation position output.

【0018】次に、変換テーブル選択及びデータ変換部
4は、その決定された変換テーブルナンバに応じた変換
テーブルを変換テーブル5内から選択して、A/D変換
回路2から出力されるハーフダンパペダル1の出力を上
記のように変換する。
Next, the conversion table selection and data conversion section 4 selects a conversion table corresponding to the determined conversion table number from the conversion table 5 and outputs a half damper output from the A / D conversion circuit 2. The output of the pedal 1 is converted as described above.

【0019】鍵盤6は、押鍵及び離鍵操作が可能な複数
の鍵を有する。鍵盤スキャン回路7は、鍵盤6の操作に
応じて、キーナンバ(音高)及びベロシティ(押鍵速
度)を含むキーオンイベント又はキーオフイベントを出
力する。
The keyboard 6 has a plurality of keys that can be pressed and released. The keyboard scanning circuit 7 outputs a key-on event or a key-off event including a key number (pitch) and velocity (key pressing speed) according to the operation of the keyboard 6.

【0020】音源回路8は、変換テーブル選択及びデー
タ変換部4により変換されたハーフダンパペダル1の出
力に応じて、鍵盤スキャン回路7が出力するキーオン/
オフイベントを基に楽音信号を生成する。具体的には、
ハーフダンパペダル1の出力が大きいほど、楽音信号の
減衰速度を遅くする。
The tone generator circuit 8 responds to the output of the half damper pedal 1 converted by the conversion table selection and data conversion section 4 by a key-on / output signal output by the keyboard scan circuit 7.
Generate a tone signal based on the OFF event. In particular,
As the output of the half damper pedal 1 increases, the decay speed of the tone signal decreases.

【0021】D/A変換回路9は、音源回路8が出力す
るデジタル値をアナログ値に変換する。アンプ10は、
アナログの楽音信号を増幅する。楽音信号は、スピーカ
11にて発音される。
The D / A conversion circuit 9 converts a digital value output from the tone generator 8 into an analog value. The amplifier 10
Amplifies analog tone signals. The tone signal is generated by the speaker 11.

【0022】以上のように、ハーフダンパペダル1の個
体差や老朽化による出力のばらつきを修正することがで
きるので、マージンMmin及びMmaxを不必要に大
きくとる必要がない。また、ハーフダンパペダル1のレ
スポンスの良好性を維持しつつ、ハーフダンパペダル1
のばらつきを修正することができる。
As described above, it is possible to correct individual differences of the half damper pedal 1 and variations in output due to aging, so that it is not necessary to unnecessarily increase the margins Mmin and Mmax. In addition, while maintaining good response of the half damper pedal 1, the half damper pedal 1
Can be corrected.

【0023】図5は、本実施形態による電子楽器のハー
ドウエア構成を示す。バス21には、鍵盤22、パネル
スイッチ及び操作子23、RAM24、ROM25、C
PU26及び楽音発生手段27が接続されている。
FIG. 5 shows a hardware configuration of the electronic musical instrument according to the present embodiment. The bus 21 includes a keyboard 22, panel switches and controls 23, a RAM 24, a ROM 25, a C
The PU 26 and the tone generator 27 are connected.

【0024】CPU26は、種々の演算又は処理を行
い、ROM25に記憶されているコンピュータプログラ
ムに応じて後に説明する図6〜図12のフローチャート
等の処理を実行する。ROM25は、コンピュータプロ
グラムの他、変換テーブルナンバテーブル(図2)及び
変換テーブル(図3)を記憶する。RAM24は、CP
U26のワーキングエリアとして使用される。
The CPU 26 performs various calculations or processes, and executes processes such as flowcharts shown in FIGS. 6 to 12 described later according to a computer program stored in the ROM 25. The ROM 25 stores a conversion table number table (FIG. 2) and a conversion table (FIG. 3) in addition to the computer program. RAM 24 is a CP
Used as a working area for U26.

【0025】パネルスイッチ及び操作子23は、ハーフ
ダンパペダル1(図1)の他、音色スイッチやボリュー
ムスライダー等の操作子を有する。鍵盤22は、押鍵及
び離鍵が可能な複数の鍵を有する。
The panel switches and controls 23 include controls such as a tone switch and a volume slider in addition to the half damper pedal 1 (FIG. 1). The keyboard 22 has a plurality of keys that can be pressed and released.

【0026】楽音発生手段27は、図1の音源回路8、
D/A変換回路9、アンプ10及びスピーカ11を有
し、鍵盤22及び操作子(ハーフダンパペダル)23の
操作に応じて、発音処理を行う。
The tone generating means 27 includes the tone generator circuit 8 shown in FIG.
It has a D / A conversion circuit 9, an amplifier 10 and a speaker 11, and performs sound generation processing according to the operation of a keyboard 22 and an operation element (half damper pedal) 23.

【0027】図6は、図5のCPU26が行うメインル
ーチンの処理を示すフローチャートである。電子楽器の
電源を投入すると、ステップSA1で初期化処理を行
う。ステップSA2では、電子楽器の製造者等によりパ
ネルスイッチ23(図5)上の工場モードスイッチが押
されているか否かをチェックする。ステップSA3で
は、工場モードであるか否かをチェックし、工場モード
であるときにはステップSA4で工場モード処理を行
い、工場モードでないときにはステップSA5で通常処
理を行う。ステップSA4の工場モード処理の詳細は、
後に図7のフローチャートを参照しながら説明する。ス
テップSA5の通常処理の詳細は、後に図10のフロー
チャートを参照しながら説明する。
FIG. 6 is a flowchart showing the processing of the main routine performed by the CPU 26 of FIG. When the power of the electronic musical instrument is turned on, an initialization process is performed in step SA1. At step SA2, it is checked whether or not the factory mode switch on the panel switch 23 (FIG. 5) is pressed by the manufacturer of the electronic musical instrument. In step SA3, it is checked whether or not the mode is the factory mode. When the mode is the factory mode, factory mode processing is performed in step SA4. When the mode is not factory mode, normal processing is performed in step SA5. For details of the factory mode processing in step SA4,
This will be described later with reference to the flowchart of FIG. Details of the normal processing in step SA5 will be described later with reference to the flowchart in FIG.

【0028】図7は、図6のステップSA4に示す工場
モード処理の詳細を示すフローチャートである。ステッ
プSB1では、パネルスイッチ23(図5)をスキャン
する。ステップSB2では、パネルスイッチ上のハーフ
ダンパペダル設定スイッチが押されたことを示すスイッ
チイベントが発生しているか否かをチェックする。その
スイッチイベントがあるときにはステップSB3へ進
み、そのスイッチイベントがないときにはステップSB
8へ進む。
FIG. 7 is a flowchart showing details of the factory mode process shown in step SA4 of FIG. In step SB1, the panel switch 23 (FIG. 5) is scanned. In step SB2, it is checked whether or not a switch event has occurred indicating that the half damper pedal setting switch on the panel switch has been pressed. When there is the switch event, the process proceeds to step SB3, and when there is no switch event, the process proceeds to step SB3.
Proceed to 8.

【0029】ステップSB3では、ハーフダンパペダル
を設定するための準備を行う。ステップSB4では、ハ
ーフダンパペダルの最大値設定モードスイッチが押され
ているか否かをチェックする。押されているときには、
ステップSB5で最大値レジスタを最小値(例えば0)
に初期化し、ステップSB6をバイパスしてステップS
B8へ進む。
In step SB3, preparations are made for setting the half damper pedal. In step SB4, it is checked whether or not the maximum value setting mode switch of the half damper pedal has been pressed. When pressed,
In step SB5, the maximum value register is set to the minimum value (for example, 0).
, And bypasses step SB6 to skip to step S6.
Proceed to B8.

【0030】ステップSB8では、操作子(ハーフダン
パペダル)23(図5)をスキャンする。ステップSB
9では、ハーフダンパペダルのイベントがあるか否かを
チェックする。イベントがあるときにはステップSB1
0へ進み、イベントがないときにはステップSB14へ
進む。
In step SB8, the operator (half damper pedal) 23 (FIG. 5) is scanned. Step SB
In step 9, it is checked whether or not there is an event of the half damper pedal. Step SB1 when there is an event
0, and if there is no event, the process proceeds to step SB14.

【0031】ステップSB10では、最大値設定モード
であるか否かをチェックする。最大値設定モードである
ときには、ステップSB11へ進み、最大値設定処理を
行う。この処理の詳細は、後に図8のフローチャートを
参照しながら説明する。その後、現在最大値設定モード
であるの、ステップSB12を介して、ステップSB1
4でその他の処理を行い、処理を終了する。
In step SB10, it is checked whether the mode is the maximum value setting mode. When the mode is the maximum value setting mode, the process proceeds to Step SB11, and a maximum value setting process is performed. Details of this processing will be described later with reference to the flowchart of FIG. Thereafter, in the maximum value setting mode, the process proceeds to step SB1 via step SB12.
Other processing is performed in 4 and the processing ends.

【0032】図8は、図7のステップSB11に示す最
大値設定処理の詳細を示すフローチャートである。ステ
ップSC1では、ハーフダンパペダルからの入力値が最
大値レジスタよりも大きいか否かをチェックする。大き
いときにはステップSC2へ進み、大きくないときには
終了する。ステップSC2では、最大値レジスタに上記
の入力値をセットする。ステップSC3は、未だ最小値
が決定されていないのでバイパスする。上記のステップ
SC2の処理は、ハーフダンパペダルが操作される度に
実行され、最大値レジスタの値が更新され、最終的に最
大操作位置出力の値が最大値レジスタに格納される。
FIG. 8 is a flowchart showing details of the maximum value setting process shown in step SB11 of FIG. In step SC1, it is checked whether the input value from the half damper pedal is larger than the maximum value register. When it is larger, the process proceeds to step SC2, and when it is not larger, the process ends. In step SC2, the above input value is set in the maximum value register. Step SC3 bypasses because the minimum value has not yet been determined. The process of step SC2 is executed every time the half damper pedal is operated, the value of the maximum value register is updated, and the value of the maximum operation position output is finally stored in the maximum value register.

【0033】次に、最小値設定モードスイッチが押され
る場合を説明する。最小値設定モードスイッチが押され
ると、図7において、ステップSB6で最小値設定モー
ドであると判断され、ステップSB7へ進む。ステップ
SB7では、最小値レジスタを最大値(例えば127)
に初期化する。
Next, the case where the minimum value setting mode switch is pressed will be described. When the minimum value setting mode switch is pressed, in FIG. 7, it is determined in step SB6 that the mode is the minimum value setting mode, and the process proceeds to step SB7. In step SB7, the minimum value register is set to the maximum value (for example, 127).
Initialize to

【0034】次に、ステップSB8でハーフダンパペダ
ルをスキャンし、ステップSB9でハーフダンパペダル
のイベントがあると判断され、ステップSB10を介し
てステップSB12へ進む。ステップSB12では、最
小値設定モードであると判断され、ステップSB13へ
進む。ステップSB13では、最小値設定処理を行う。
この処理の詳細は、後に図9のフローチャートを参照し
ながら説明する。その後、ステップSB14でその他の
処理を行い、終了する。
Next, in step SB8, the half damper pedal is scanned. In step SB9, it is determined that there is an event of the half damper pedal, and the flow advances to step SB12 via step SB10. In step SB12, it is determined that the mode is the minimum value setting mode, and the process proceeds to step SB13. In step SB13, a minimum value setting process is performed.
Details of this processing will be described later with reference to the flowchart of FIG. Thereafter, other processing is performed in step SB14, and the processing ends.

【0035】図9は、図7のステップSB13に示す最
小値設定処理の詳細を示すフローチャートである。ステ
ップSD1では、ハーフダンパペダルからの入力値が最
小値レジスタよりも小さいか否かをチェックする。小さ
いときにはステップSD2へ進み、小さくないときには
終了する。ステップSD2では、最小値レジスタに上記
の入力値をセットする。上記のステップSC2の処理
は、ハーフダンパペダルが操作される度に実行され、最
小値レジスタの値が更新され、最終的に最小操作位置出
力の値が最小値レジスタに格納される。ステップSD3
では、図2の変換テーブルナンバテーブルを参照して、
更新された最大値レジスタ及び最小値レジスタの値に応
じて、変換テーブルナンバを決定する。その後、処理を
終了する。
FIG. 9 is a flowchart showing details of the minimum value setting process shown in step SB13 of FIG. In step SD1, it is checked whether the input value from the half damper pedal is smaller than the minimum value register. When it is smaller, the process proceeds to step SD2, and when it is not smaller, the process ends. In step SD2, the above input value is set in the minimum value register. The process of step SC2 is executed every time the half damper pedal is operated, the value of the minimum value register is updated, and the value of the minimum operation position output is finally stored in the minimum value register. Step SD3
Now, referring to the conversion table number table of FIG. 2,
The conversion table number is determined according to the updated values of the maximum value register and the minimum value register. After that, the process ends.

【0036】以上は、まず最大値設定モードスイッチを
押し、次に最小値設定モードスイッチを押す場合を例に
説明したが、逆に、まず最小値設定モードスイッチを押
し、次に最小値設定モードスイッチを押してもよい。そ
の場合は、まず図9のステップSD2で最小値レジスタ
の値が更新され、次に図8のステップSC2で最大値レ
ジスタの値が更新される。その後、図8のステップSC
3で、更新された最大値レジスタ及び最小値レジスタに
応じて変換テーブルナンバが決定される。
In the above description, the case where the maximum value setting mode switch is first pressed and then the minimum value setting mode switch is pressed has been described as an example. You may press a switch. In this case, first, the value of the minimum value register is updated in step SD2 of FIG. 9, and then the value of the maximum value register is updated in step SC2 of FIG. Thereafter, step SC in FIG.
At 3, the conversion table number is determined according to the updated maximum value register and minimum value register.

【0037】図10は、図6のステップSA5に示す通
常処理の詳細を示すフローチャートである。ステップS
E1では、鍵盤22(図5)をスキャンする。ステップ
SE2では、鍵盤が操作されたことを示す鍵盤イベント
が発生したか否かをチェックする。鍵盤イベントが発生
したときにはステップSE3へ進み、鍵盤イベントが発
生していないときにはステップSE4へ進む。ステップ
SE3では、発音及び消音処理を行う。発音処理の詳細
は後に図11のフローチャートを参照しながら説明し、
消音処理の詳細は後に図12のフローチャートを参照し
ながら説明する。その後、ステップSE4へ進む。
FIG. 10 is a flowchart showing details of the normal processing shown in step SA5 of FIG. Step S
At E1, the keyboard 22 (FIG. 5) is scanned. In step SE2, it is checked whether or not a keyboard event indicating that the keyboard has been operated has occurred. When a keyboard event has occurred, the process proceeds to step SE3, and when a keyboard event has not occurred, the process proceeds to step SE4. In step SE3, sound generation and mute processing are performed. The details of the pronunciation process will be described later with reference to the flowchart of FIG.
Details of the mute processing will be described later with reference to the flowchart of FIG. Thereafter, the flow advances to step SE4.

【0038】ステップSE4では、操作子(ハーフダン
パペダル)をスキャンする。ステップSE5では、ハー
フダンパペダルが操作されたことを示すハーフダンパペ
ダルイベントが発生したか否かをチェックする。当該イ
ベントがあるときにはステップSE6へ進み、当該イベ
ントがないときにはステップSE8へ進む。
In step SE4, the operator (half damper pedal) is scanned. In step SE5, it is checked whether or not a half damper pedal event indicating that the half damper pedal has been operated has occurred. When there is the event, the process proceeds to step SE6, and when there is no event, the process proceeds to step SE8.

【0039】ステップSE6では、上記で決定された変
換テーブルナンバに対応する変換テーブル(図3)を指
定し、その変換テーブルに応じてハーフダンパペダルの
出力を変換する。ステップSE7では、変換されたハー
フダンパペダルの出力に応じて音源処理を行う。例え
ば、その出力に応じて、現在発音中の音の減衰速度を調
整する。その後、ステップSE8へ進む。ステップS8
では、その他のパネル処理や表示処理等を行い、処理を
終了する。
At step SE6, a conversion table (FIG. 3) corresponding to the conversion table number determined above is designated, and the output of the half damper pedal is converted according to the conversion table. In step SE7, a sound source process is performed according to the output of the converted half damper pedal. For example, the decay speed of the currently sounding sound is adjusted according to the output. Thereafter, the flow advances to step SE8. Step S8
Then, other panel processing and display processing are performed, and the processing ends.

【0040】図11は、図10のステップSE3に示す
発音処理の詳細を示すフローチャートである。ステップ
SF1では、キーオンイベントに応じて発音チャンネル
の割り当てを行う。ステップSF2では、発音時の各パ
ラメータを計算する。ステップSF3では、上記のパラ
メータを音源LSI8(図1)に送信し、発音処理を行
わせる。
FIG. 11 is a flowchart showing the details of the tone generation process shown in step SE3 of FIG. In step SF1, a sounding channel is assigned according to a key-on event. In step SF2, each parameter at the time of sound generation is calculated. In step SF3, the above-mentioned parameters are transmitted to the sound source LSI 8 (FIG. 1), and sound generation processing is performed.

【0041】図12は、図10のステップSE3に示す
消音処理の詳細を示すフローチャートである。ステップ
SG1では、キーオフイベントに応じて該当する発音チ
ャンネルを検索する。ステップSG2では、ハーフダン
パオンである(ハーフダンパペダルの出力が1以上であ
る)か否かをチェックする。ハーフダンパオフであると
きにはステップSG3へ進み、ハーフダンパオンである
ときにはステップSG4へ進む。ステップSG3では、
通常の消音のエンベロープ値を設定し、ステップSG5
へ進む。ステップSG4では、変換されたハーフダンパ
ペダルの出力に応じてエンベロープ値を再計算し、ステ
ップSG5へ進む。ハーフダンパペダルの出力が大きい
ほど、減衰速度が遅くなるようにエンベロープ値が計算
される。ステップSG5では、上記のエンベロープ値等
のパラメータを音源LSI8(図1)に送信し、消音処
理を行わせる。
FIG. 12 is a flow chart showing the details of the mute processing shown in step SE3 of FIG. In step SG1, a corresponding sounding channel is searched according to the key-off event. In step SG2, it is checked whether the half damper is on (the output of the half damper pedal is 1 or more). When the half damper is off, the process proceeds to step SG3, and when the half damper is on, the process proceeds to step SG4. In step SG3,
The normal silence envelope value is set, and step SG5
Proceed to. In step SG4, the envelope value is recalculated according to the converted output of the half damper pedal, and the process proceeds to step SG5. The envelope value is calculated such that the greater the output of the half damper pedal, the slower the attenuation speed. In step SG5, the parameters such as the above-mentioned envelope value are transmitted to the sound source LSI 8 (FIG. 1), and the mute processing is performed.

【0042】(第2の実施形態)図13は、本発明の第
2の実施形態による電子楽器の構成例を示す。第2の実
施形態では、第1の実施形態(図1)の最大値及び最小
値検出並びにテーブルナンバ決定部3、変換テーブル選
択及びデータ変換部4及び変換テーブル5の代わりに、
最大値及び最小値検出並びにテーブル作成部33、デー
タ変換部34及び変換テーブル35を設けている。
(Second Embodiment) FIG. 13 shows a configuration example of an electronic musical instrument according to a second embodiment of the present invention. In the second embodiment, instead of the maximum value and minimum value detection and table number determination unit 3, conversion table selection and data conversion unit 4, and conversion table 5 of the first embodiment (FIG. 1),
A maximum and minimum value detection and table creation unit 33, a data conversion unit 34, and a conversion table 35 are provided.

【0043】最大値及び最小値検出並びにテーブル作成
部33は、第1の実施形態と同様に、A/D変換回路2
から出力されるハーフダンパペダル1の最小操作位置出
力及び最大操作位置出力を検出する。
The maximum / minimum value detection and table creation unit 33 includes the A / D conversion circuit 2 as in the first embodiment.
The minimum and maximum operation position outputs of the half damper pedal 1 output from the controller are detected.

【0044】次に、最大値及び最小値検出並びにテーブ
ル作成部33は、検出された最小操作位置出力及び最大
操作位置出力を基に、図15に示す変換テーブルを作成
し、フラッシュROM35に記憶させる。図14は、図
15の変換テーブルの内容を表すグラフであり、横軸が
入力であり縦軸が出力である。
Next, the maximum value and minimum value detection and table creation unit 33 creates a conversion table shown in FIG. 15 based on the detected minimum operation position output and maximum operation position output, and stores the conversion table in the flash ROM 35. . FIG. 14 is a graph showing the contents of the conversion table of FIG. 15, in which the horizontal axis is input and the vertical axis is output.

【0045】次に、変換テーブルの作成方法を説明す
る。上記の検出された最小操作位置出力をI0minと
し、最大操作位置出力をI0maxとする。そして、最
小操作位置付近のマージンをMminとし、最大操作位
置付近のマージンをMmaxとする。そして、分解能
(ステップ数)をDとする。図14の場合、分解能Dは
3であるが、分解能Dが大きいほど滑らかな操作が可能
となる。
Next, a method of creating a conversion table will be described. The detected minimum operation position output is set to I0min, and the maximum operation position output is set to I0max. The margin near the minimum operation position is Mmin, and the margin near the maximum operation position is Mmax. The resolution (the number of steps) is D. In the case of FIG. 14, the resolution D is 3, but the larger the resolution D, the smoother the operation becomes.

【0046】入力値Imin及びImaxは、次式によ
り求められる。 Imin=I0min+Mmin Imax=I0max−Mmax
The input values Imin and Imax are obtained by the following equations. Imin = I0min + Mmin Imax = I0max−Mmax

【0047】入力変化値ΔI及び出力変化値ΔOは、次
式により求められる。 ΔI=(Imax−Imin)/(D+1) ΔO=(Omax−Omin)/D
The input change value ΔI and the output change value ΔO are obtained by the following equations. ΔI = (Imax−Imin) / (D + 1) ΔO = (Omax−Omin) / D

【0048】上記の値を基に、図15の変換テーブルを
作成する。例えば、入力がIminより小さいときには
出力が0になる。それ以外で、入力が(Imin+Δ
I)より小さいときには出力がOminになる。それ以
外で、入力が(Imin+ΔI×2)より小さいときに
は出力が(Omin+ΔO)になる。その他は、同様
に、変換テーブルに応じて変換が行われる。
The conversion table shown in FIG. 15 is created based on the above values. For example, when the input is smaller than Imin, the output becomes 0. Otherwise, the input is (Imin + Δ
When it is smaller than I), the output becomes Omin. Otherwise, when the input is smaller than (Imin + ΔI × 2), the output becomes (Omin + ΔO). Others are similarly converted according to the conversion table.

【0049】上記で作成された変換テーブルは、フラッ
シュROM35に格納される。データ変換部34は、フ
ラッシュROM35内の変換テーブルに応じて、A/D
変換回路2から出力されるハーフダンパペダル1の出力
を上記のように変換する。
The conversion table created above is stored in the flash ROM 35. The data conversion unit 34 performs A / D conversion according to a conversion table in the flash ROM 35.
The output of the half damper pedal 1 output from the conversion circuit 2 is converted as described above.

【0050】第2の実施形態においても、ハーフダンパ
ペダル1の個体差や老朽化による出力のばらつきを修正
することができるので、マージンMmin及びMmax
を不必要に大きくとる必要がない。また、ハーフダンパ
ペダル1のレスポンスの良好性を維持しつつ、ハーフダ
ンパペダル1のばらつきを修正することができる。
Also in the second embodiment, it is possible to correct individual differences of the half damper pedal 1 and variations in output due to aging, so that the margins Mmin and Mmax can be corrected.
Need not be unnecessarily large. Further, the variation of the half damper pedal 1 can be corrected while maintaining the good response of the half damper pedal 1.

【0051】第1の実施形態によれば、種々の変換テー
ブルを予め設定しておくことができるので、種々の特性
を持つ変換テーブルを用いることができ、ハーフダンパ
の特性を細かく設定することができる利点を有する。た
だし、複数の変換テーブルを常に記憶しておかなければ
ならないので、大容量のROM5(図1)を必要とする
欠点がある。
According to the first embodiment, since various conversion tables can be set in advance, conversion tables having various characteristics can be used, and the characteristics of the half damper can be finely set. Have the advantages that can be. However, since a plurality of conversion tables must be stored at all times, there is a disadvantage that a large capacity ROM 5 (FIG. 1) is required.

【0052】第2の実施形態によれば、最小操作位置出
力及び最大操作位置出力を検出する度に変換テーブルを
作り直し、フラッシュROM35内には1つの変換テー
ブルだけを記憶させておけばよいので、小容量のフラッ
シュROM35を用意すればよいという利点がある。た
だし、変換テーブルを計算により作成するので、複雑な
変換テーブルを作成することが困難であるという欠点が
ある。
According to the second embodiment, the conversion table is re-created each time the minimum operation position output and the maximum operation position output are detected, and only one conversion table needs to be stored in the flash ROM 35. There is an advantage that a small-capacity flash ROM 35 may be prepared. However, since the conversion table is created by calculation, there is a disadvantage that it is difficult to create a complicated conversion table.

【0053】(第3の実施形態)本発明の第3の実施形
態は、第1の実施形態に比べて、図6のメインルーチン
の代わりに図16のメインルーチンを用いる点のみが異
なる。図16において、電子楽器の電源を投入すると、
ステップSH1で初期化処理を行う。ステップSH2で
は、ハーフダンパペダルからの入力値を検出する。ステ
ップSH3では、その入力値が所定のしきい値より大き
いか否かをチェックする。すなわち、電子楽器の電源を
投入したときに、ハーフダンパペダルが踏まれているか
否かをチェックする。ハーフダンパペダルが踏まれてい
ればステップSH4へ進み、ハーフダンパペダルが踏ま
れていなければステップSH5へ進む。ステップSH4
では、最大値及び最小値検出処理を行い、ステップSH
5へ進む。ステップSH4の処理の詳細は、後に図17
のフローチャートを参照しながら説明する。ステップS
H5では、図6のステップSA5と同様の通常処理を行
う。
(Third Embodiment) The third embodiment of the present invention is different from the first embodiment only in that the main routine of FIG. 16 is used instead of the main routine of FIG. In FIG. 16, when the power of the electronic musical instrument is turned on,
At step SH1, an initialization process is performed. In step SH2, the input value from the half damper pedal is detected. In step SH3, it is checked whether the input value is larger than a predetermined threshold. That is, when the power of the electronic musical instrument is turned on, it is checked whether the half damper pedal is depressed. If the half damper pedal is depressed, the process proceeds to step SH4. If the half damper pedal is not depressed, the process proceeds to step SH5. Step SH4
Then, the maximum value and minimum value detection processing is performed, and step SH is performed.
Go to 5. The details of the processing in step SH4 will be described later with reference to FIG.
This will be described with reference to the flowchart of FIG. Step S
In H5, the same normal processing as in step SA5 in FIG. 6 is performed.

【0054】図17は、図16のステップSH4に示す
最大値及び最小値検出処理の詳細を示すフローチャート
である。ステップSI1では、最大値レジスタに図16
のステップSH2で検出されたハーフダンパペダルから
の入力値を格納する。ステップSI2では、最小値レジ
スタの値を最大値(例えば127)に初期化する。
FIG. 17 is a flowchart showing details of the maximum value and minimum value detection processing shown in step SH4 in FIG. In step SI1, the maximum value register
The input value from the half damper pedal detected in step SH2 is stored. In step SI2, the value of the minimum value register is initialized to a maximum value (for example, 127).

【0055】ステップSI3では、ハーフダンパペダル
からの入力値を検出する。ステップSI4では、上記の
入力値が最大値レジスタの値よりも大きいか否かをチェ
ックする。大きいときにはステップSI13へ進み、大
きくないときにはステップSI5へ進む。ステップSI
13では、上記の入力値を最大値レジスタに格納し、ス
テップSI5へ進む。ステップSI5では、上記の入力
値が所定のしきい値よりも大きいか否かをチェックす
る。大きいときにはステップSI3に戻り、上記の処理
を繰り返す。ハーフダンパペダルを最大まで踏み込むこ
とにより、ステップSI13で最大値レジスタの値が更
新され、やがて最大値レジスタに最大操作位置出力が設
定される。その後、ハーフダンパペダルを離すことによ
り、検出される入力値は所定のしきい値よりも小さくな
り、ステップSI6へ進む。
In step SI3, the input value from the half damper pedal is detected. In step SI4, it is checked whether the input value is larger than the value of the maximum value register. If it is larger, the process proceeds to step SI13. If it is not larger, the process proceeds to step SI5. Step SI
At 13, the input value is stored in the maximum value register, and the process proceeds to Step SI5. At step SI5, it is checked whether or not the input value is larger than a predetermined threshold. If it is larger, the process returns to step SI3, and the above processing is repeated. By depressing the half damper pedal to the maximum, the value of the maximum value register is updated in step SI13, and the maximum operation position output is set in the maximum value register soon. Thereafter, when the half damper pedal is released, the detected input value becomes smaller than a predetermined threshold value, and the process proceeds to step SI6.

【0056】ステップSI6では、カウンタを初期化す
る。例えば、数秒のカウンタを設定する。ステップSI
7では、ハーフダンパペダルからの入力値を検出する。
ステップSI8では、上記の入力値が最小値レジスタの
値よりも小さいか否かをチェックする。小さいときには
ステップSI9へ進み、小さくないときにはステップS
I10へ進む。ステップSI9では、上記の入力値を最
小値レジスタに格納し、ステップSI10へ進む。
At step SI6, the counter is initialized. For example, a counter for several seconds is set. Step SI
At 7, the input value from the half damper pedal is detected.
In step SI8, it is checked whether the input value is smaller than the value of the minimum value register. If smaller, proceed to step SI9; if not smaller, step S9
Proceed to I10. In step SI9, the above input value is stored in the minimum value register, and the flow advances to step SI10.

【0057】ステップSI10では、カウンタの値をデ
クリメントする。ステップSI11では、カウンタの値
が0よりも大きいか否かをチェックする。大きいときに
はステップSI7に戻り、上記の処理を繰り返す。すな
わち、カウンタに設定された時間だけ、上記の処理を繰
り返す。カウンタの値が0になると、ステップSI12
へ進む。ステップSI12では、上記の最大値レジスタ
及び最小値レジスタの値に応じて、変換テーブルナンバ
を決定する。
In step SI10, the value of the counter is decremented. In step SI11, it is checked whether or not the value of the counter is larger than 0. If it is larger, the process returns to step SI7 and the above processing is repeated. That is, the above processing is repeated for the time set in the counter. When the value of the counter becomes 0, step SI12
Proceed to. In step SI12, the conversion table number is determined according to the values of the maximum value register and the minimum value register.

【0058】第3の実施形態によれば、ハーフダンパペ
ダルを踏み込んで、その後に離すことにより、最大操作
位置出力及び最小操作位置出力の両方を検出することが
できる。第1の実施形態によれば、最大操作位置出力又
は最小操作位置出力のいずれかを設定し直したいときに
有利である。第3の実施形態によれば、簡単な操作によ
り最大操作位置出力及び最小操作位置出力を検出するこ
とができるという利点がある。なお、第3の実施形態を
第2の実施形態に適用してもよい。
According to the third embodiment, both the maximum operation position output and the minimum operation position output can be detected by depressing the half damper pedal and then releasing it. The first embodiment is advantageous when it is desired to reset either the maximum operation position output or the minimum operation position output. According to the third embodiment, there is an advantage that the maximum operation position output and the minimum operation position output can be detected by a simple operation. Note that the third embodiment may be applied to the second embodiment.

【0059】第1〜第3の実施形態によれば、ハーフダ
ンパペダルの個体差や老朽化による出力のばらつきを修
正することができるので、マージンMmin及びMma
xを不必要に大きくとる必要がない。また、ハーフダン
パペダルのレスポンスの良好性を維持しつつ、ハーフダ
ンパペダルのばらつきを修正することができる。
According to the first to third embodiments, it is possible to correct an individual difference of the half damper pedal and a variation in output due to aging, so that the margins Mmin and Mma can be corrected.
It is not necessary to take x unnecessarily large. Further, it is possible to correct the variation of the half damper pedal while maintaining the good response of the half damper pedal.

【0060】具体的には、ハーフダンパペダルの個体差
に関係なく、良好なレスポンスでハーフダンパペダルを
操作することができる。また、ハーフダンパペダルを長
期間使用して、老朽化により出力が変わった場合に、そ
の出力値を適正な値に変換することができる。
More specifically, the half damper pedal can be operated with good response regardless of the individual difference of the half damper pedal. Further, when the output changes due to aging by using the half damper pedal for a long time, the output value can be converted to an appropriate value.

【0061】上記実施形態の機能を実現するためのソフ
トウェアのプログラムコードを供給し、電子楽器のコン
ピュータ(CPUあるいはMPU)に格納されたプログ
ラムに従って動作させることによって実施したものも、
本発明の範疇に含まれる。
A program implemented by supplying a program code of software for realizing the functions of the above-described embodiment and operating according to a program stored in a computer (CPU or MPU) of the electronic musical instrument is also provided.
It is included in the category of the present invention.

【0062】この場合、上記ソフトウェアのプログラム
コード自体が上述した実施形態の機能を実現することに
なり、そのプログラムコード自体、およびそのプログラ
ムコードをコンピュータに供給するための手段、例えば
かかるプログラムコードを格納した記録媒体は本発明を
構成する。かかるプログラムコードを記憶する記録媒体
としては、例えばフロッピー(登録商標)ディスク、ハ
ードディスク、光ディスク、光磁気ディスク、CD−R
OM、磁気テープ、不揮発性のメモリカード、ROM等
を用いることができる。
In this case, the program code itself of the software realizes the functions of the above-described embodiment, and the program code itself and means for supplying the program code to the computer, for example, storing the program code The recorded recording medium constitutes the present invention. As a recording medium for storing such a program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-R
An OM, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0063】上記実施形態は、何れも本発明を実施する
にあたっての具体化のほんの一例を示したものに過ぎ
ず、これらによって本発明の技術的範囲が限定的に解釈
されてはならないものである。すなわち、本発明はその
技術思想、またはその主要な特徴から逸脱することな
く、様々な形で実施することができる。
Each of the above embodiments is merely an example of the embodiment for carrying out the present invention, and the technical scope of the present invention should not be interpreted in a limited manner. . That is, the present invention can be implemented in various forms without departing from the technical idea or the main features.

【0064】[0064]

【発明の効果】以上説明したように本発明によれば、ハ
ーフダンパペダルの最大操作位置出力及び最小操作位置
出力を検出し、これらの出力に応じてハーフダンパペダ
ルの出力を変換するので、ハーフダンパペダルの個体差
に関係なく、良好なレスポンスでハーフダンパペダルを
操作することができる。また、ハーフダンパペダルを長
期間使用して、老朽化により出力が変わった場合に、そ
の出力値を適正な値に変換することができる。
As described above, according to the present invention, the maximum operation position output and the minimum operation position output of the half damper pedal are detected, and the output of the half damper pedal is converted according to these outputs. The half damper pedal can be operated with good response regardless of the individual difference of the damper pedal. Further, when the output changes due to aging by using the half damper pedal for a long time, the output value can be converted to an appropriate value.

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

【図1】本発明の第1の実施形態による電子楽器の構成
例を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration example of an electronic musical instrument according to a first embodiment of the present invention.

【図2】変換テーブルナンバテーブルを示す図である。FIG. 2 is a diagram showing a conversion table number table.

【図3】変換テーブルを示す図である。FIG. 3 is a diagram showing a conversion table.

【図4】変換テーブルの内容を示すグラフである。FIG. 4 is a graph showing the contents of a conversion table.

【図5】電子楽器のハードウエア構成を示すブロック図
である。
FIG. 5 is a block diagram illustrating a hardware configuration of the electronic musical instrument.

【図6】メインルーチンの処理を示すフローチャートで
ある。
FIG. 6 is a flowchart showing processing of a main routine.

【図7】工場モード処理を示すフローチャートである。FIG. 7 is a flowchart showing a factory mode process.

【図8】最大値設定処理を示すフローチャートである。FIG. 8 is a flowchart illustrating a maximum value setting process.

【図9】最小値設定処理を示すフローチャートである。FIG. 9 is a flowchart illustrating a minimum value setting process.

【図10】通常処理を示すフローチャートである。FIG. 10 is a flowchart showing a normal process.

【図11】発音処理を示すフローチャートである。FIG. 11 is a flowchart showing a tone generation process.

【図12】消音処理を示すフローチャートである。FIG. 12 is a flowchart showing a mute process.

【図13】本発明の第2の実施形態による電子楽器の構
成例を示すブロック図である。
FIG. 13 is a block diagram illustrating a configuration example of an electronic musical instrument according to a second embodiment of the present invention.

【図14】変換テーブルの内容を示すグラフである。FIG. 14 is a graph showing the contents of a conversion table.

【図15】変換テーブルを示す図である。FIG. 15 is a diagram showing a conversion table.

【図16】本発明の第3の実施形態による電子楽器のメ
インルーチンの処理を示すフローチャートである。
FIG. 16 is a flowchart showing a process of a main routine of the electronic musical instrument according to the third embodiment of the present invention.

【図17】最大値及び最小値検出処理を示すフローチャ
ートである。
FIG. 17 is a flowchart illustrating a maximum value and minimum value detection process.

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

1 操作子(ハーフダンパペダル) 2 A/D変換回路 3 最大値及び最小値検出並びにテーブルナンバ決定部 4 変換テーブル選択及びデータ変換部 5 変換テーブル 6 鍵盤 7 鍵盤スキャン回路 8 音源回路 9 D/A変換回路 10 アンプ 11 スピーカ 21 バス 22 鍵盤 23 パネルスイッチ及び操作子 24 RAM 25 ROM 26 CPU 27 楽音発生手段 33 最大値及び最小値検出並びにテーブル作成部 34 データ変換部 35 変換テーブル DESCRIPTION OF SYMBOLS 1 Operator (half damper pedal) 2 A / D conversion circuit 3 Maximum value and minimum value detection and table number determination part 4 Conversion table selection and data conversion part 5 Conversion table 6 Keyboard 7 Keyboard scan circuit 8 Sound source circuit 9 D / A Conversion circuit 10 Amplifier 11 Speaker 21 Bus 22 Keyboard 23 Panel switch and operator 24 RAM 25 ROM 26 CPU 27 Musical sound generation means 33 Maximum and minimum value detection and table creation unit 34 Data conversion unit 35 Conversion table

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 操作位置に応じた出力を行うハーフダン
パペダルと、 前記ハーフダンパペダルが最大操作位置及び最小操作位
置に操作されたときの最大操作位置出力及び最小操作位
置出力を検出する検出手段と、 前記検出されたハーフダンパペダルの最大操作位置出力
及び最小操作位置出力に応じて、前記ハーフダンパペダ
ルの出力を変換する変換手段とを有する電子楽器の変換
装置。
1. A half damper pedal for outputting an output according to an operation position, and a detecting means for detecting a maximum operation position output and a minimum operation position output when the half damper pedal is operated to a maximum operation position and a minimum operation position. A conversion device for converting the output of the half damper pedal according to the detected maximum operation position output and minimum operation position output of the half damper pedal.
【請求項2】 前記変換手段は、前記ハーフダンパペダ
ルの出力を変換するための複数の変換テーブルと、前記
検出されたハーフダンパペダルの最大操作位置出力及び
最小操作位置出力に応じて前記複数の変換テーブルのう
ちのいずれか一つを選択して前記ハーフダンパペダルの
出力を変換する手段とを含む請求項1記載の電子楽器の
変換装置。
A plurality of conversion tables for converting an output of the half damper pedal; and a plurality of conversion tables for converting the output of the half damper pedal into a maximum operation position and a minimum operation position output. Means for selecting one of the conversion tables to convert the output of said half damper pedal.
【請求項3】 前記変換手段は、前記ハーフダンパペダ
ルの個体差又は老朽化を修正するために前記ハーフダン
パペダルの出力を変換する請求項2記載の電子楽器の変
換装置。
3. The conversion device for an electronic musical instrument according to claim 2, wherein said conversion means converts the output of said half damper pedal to correct individual differences or aging of said half damper pedal.
【請求項4】 前記変換手段は、前記検出手段により検
出されたハーフダンパペダルの最大操作位置出力及び最
小操作位置出力が本来の最大操作位置出力及び最小操作
位置出力に修正されるように、前記ハーフダンパペダル
の出力を変換する請求項3記載の電子楽器の変換装置。
4. The conversion means, wherein the maximum operation position output and the minimum operation position output of the half damper pedal detected by the detection means are corrected to the original maximum operation position output and minimum operation position output. 4. The electronic musical instrument converter according to claim 3, wherein the output of the half damper pedal is converted.
【請求項5】 前記本来の最大操作位置出力及び最小操
作位置出力は所定の固定値である請求項4記載の電子楽
器の変換装置。
5. The electronic musical instrument conversion device according to claim 4, wherein the original maximum operation position output and the minimum operation position output are predetermined fixed values.
【請求項6】 前記変換手段は、前記ハーフダンパペダ
ルが最大操作位置付近の所定のマージンで操作されたと
きには本来の最大操作位置出力に変換し、前記ハーフダ
ンパペダルが最小操作位置付近の所定のマージンで操作
されたときには本来の最小操作位置出力に変換する請求
項5記載の電子楽器の変換装置。
6. When the half damper pedal is operated at a predetermined margin near a maximum operation position, the conversion means converts the half damper pedal to an original maximum operation position output. 6. The electronic musical instrument conversion device according to claim 5, wherein when operated by a margin, the output is converted to an original minimum operation position output.
【請求項7】 前記変換手段は、前記検出手段により検
出されたハーフダンパペダルの最大操作位置出力及び最
小操作位置出力に応じて変換テーブルを作成し、該変換
テーブルに応じて前記ハーフダンパペダルの出力を変換
する請求項1記載の電子楽器の変換装置。
7. The conversion means creates a conversion table in accordance with a maximum operation position output and a minimum operation position output of the half damper pedal detected by the detection means, and generates the conversion table in accordance with the conversion table. 2. The electronic musical instrument converter according to claim 1, wherein the converter converts the output.
【請求項8】 前記変換手段は、前記ハーフダンパペダ
ルの個体差又は老朽化を修正するために前記ハーフダン
パペダルの出力を変換する請求項7記載の電子楽器の変
換装置。
8. The electronic musical instrument conversion apparatus according to claim 7, wherein said conversion means converts the output of said half damper pedal to correct individual differences or aging of said half damper pedal.
【請求項9】 前記変換手段は、前記検出手段により検
出されたハーフダンパペダルの最大操作位置出力及び最
小操作位置出力が本来の最大操作位置出力及び最小操作
位置出力に修正されるように、前記ハーフダンパペダル
の出力を変換する請求項8記載の電子楽器の変換装置。
9. The conversion means, wherein the maximum operation position output and the minimum operation position output of the half damper pedal detected by the detection means are corrected to the original maximum operation position output and minimum operation position output. 9. The electronic musical instrument converter according to claim 8, wherein the output of the half damper pedal is converted.
【請求項10】 前記本来の最大操作位置出力及び最小
操作位置出力は所定の固定値である請求項9記載の電子
楽器の変換装置。
10. The electronic musical instrument converter according to claim 9, wherein the original maximum operation position output and the minimum operation position output are predetermined fixed values.
【請求項11】 前記変換手段は、前記ハーフダンパペ
ダルが最大操作位置付近の所定のマージンで操作された
ときには本来の最大操作位置出力に変換し、前記ハーフ
ダンパペダルが最小操作位置付近の所定のマージンで操
作されたときには本来の最小操作位置出力に変換する請
求項10記載の電子楽器の変換装置。
11. When the half damper pedal is operated at a predetermined margin near a maximum operation position, the conversion means converts the half damper pedal to an original maximum operation position output. 11. The electronic musical instrument conversion device according to claim 10, wherein when the electronic musical instrument is operated with a margin, the output is converted into an original minimum operation position output.
【請求項12】 操作位置に応じた出力を行うハーフダ
ンパペダルを有する電子楽器の変換方法であって、 (a)前記ハーフダンパペダルが最大操作位置及び最小
操作位置に操作されたときの最大操作位置出力及び最小
操作位置出力を検出するステップと、 (b)前記検出されたハーフダンパペダルの最大操作位
置出力及び最小操作位置出力に応じて、前記ハーフダン
パペダルの出力を変換するステップとを有する電子楽器
の変換方法。
12. A method for converting an electronic musical instrument having a half damper pedal that outputs according to an operation position, comprising: (a) a maximum operation when the half damper pedal is operated to a maximum operation position and a minimum operation position; Detecting a position output and a minimum operation position output; and (b) converting an output of the half damper pedal according to the detected maximum operation position output and minimum operation position output of the half damper pedal. How to convert electronic musical instruments.
【請求項13】 操作位置に応じた出力を行うハーフダ
ンパペダルを有する電子楽器のプログラムを記録した記
録媒体であって、 (a)前記ハーフダンパペダルが最大操作位置及び最小
操作位置に操作されたときの最大操作位置出力及び最小
操作位置出力を検出する手順と、 (b)前記検出されたハーフダンパペダルの最大操作位
置出力及び最小操作位置出力に応じて、前記ハーフダン
パペダルの出力を変換する手順とをコンピュータに実行
させるためのプログラムを記録したコンピュータ読み取
り可能な記録媒体。
13. A recording medium on which a program of an electronic musical instrument having a half damper pedal for performing an output according to an operation position is recorded, wherein (a) the half damper pedal is operated to a maximum operation position and a minimum operation position. And (b) converting the output of the half-damper pedal according to the detected maximum and minimum operation position outputs of the half-damper pedal. And a computer-readable recording medium on which a program for causing a computer to execute the steps is recorded.
JP2000276874A 2000-09-12 2000-09-12 Converting device for electronic musical instrument and method for the same and recording medium Pending JP2002091447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000276874A JP2002091447A (en) 2000-09-12 2000-09-12 Converting device for electronic musical instrument and method for the same and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000276874A JP2002091447A (en) 2000-09-12 2000-09-12 Converting device for electronic musical instrument and method for the same and recording medium

Publications (1)

Publication Number Publication Date
JP2002091447A true JP2002091447A (en) 2002-03-27

Family

ID=18762278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000276874A Pending JP2002091447A (en) 2000-09-12 2000-09-12 Converting device for electronic musical instrument and method for the same and recording medium

Country Status (1)

Country Link
JP (1) JP2002091447A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007256360A (en) * 2006-03-20 2007-10-04 Yamaha Corp Keyboard instrument
JP2010026418A (en) * 2008-07-24 2010-02-04 Yamaha Corp Electronic keyboard musical instrument
JP2010026419A (en) * 2008-07-24 2010-02-04 Yamaha Corp Electronic keyboard musical instrument
JP2010068041A (en) * 2008-09-08 2010-03-25 Casio Comput Co Ltd Electronic apparatus
JP2010160424A (en) * 2009-01-09 2010-07-22 Yamaha Corp Pedal output conversion device and program
JP2012013894A (en) * 2010-06-30 2012-01-19 Yamaha Corp Pedal system for electronic musical instruments

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007256360A (en) * 2006-03-20 2007-10-04 Yamaha Corp Keyboard instrument
JP4539590B2 (en) * 2006-03-20 2010-09-08 ヤマハ株式会社 Keyboard instrument
US8502059B2 (en) 2006-03-20 2013-08-06 Yamaha Corporation Musical instrument having controller exactly discriminating half-pedal and controlling system used therein
JP2010026418A (en) * 2008-07-24 2010-02-04 Yamaha Corp Electronic keyboard musical instrument
JP2010026419A (en) * 2008-07-24 2010-02-04 Yamaha Corp Electronic keyboard musical instrument
JP2010068041A (en) * 2008-09-08 2010-03-25 Casio Comput Co Ltd Electronic apparatus
JP2010160424A (en) * 2009-01-09 2010-07-22 Yamaha Corp Pedal output conversion device and program
US8242347B2 (en) 2009-01-09 2012-08-14 Yamaha Corporation Pedal output conversion apparatus and method
JP2012013894A (en) * 2010-06-30 2012-01-19 Yamaha Corp Pedal system for electronic musical instruments

Similar Documents

Publication Publication Date Title
JP2002091447A (en) Converting device for electronic musical instrument and method for the same and recording medium
US5428183A (en) Tone signal generating apparatus for performing a timbre change by storing a full frequency band in a wave memory
JP3296518B2 (en) Electronic musical instrument
US5750913A (en) Music system and electronic musical instrument
JPH06186966A (en) Effector
JPH08234759A (en) Musical sound signal generating device
JP3543124B2 (en) Automatic accompaniment device
US6362410B1 (en) Electronic musical instrument
JP3394626B2 (en) Electronic musical instrument
JP2915753B2 (en) Electronic musical instrument
JP2616391B2 (en) Electronic musical instrument with built-in effector
JP2725559B2 (en) Attack effect device
JP2953217B2 (en) Electronic musical instrument
JP3532047B2 (en) Tone signal generator and tone signal generation method
JPH0627946A (en) Electronic keyboard musical instrument
JP2001215973A (en) Method and device for creating musical sound control parameter, and recording medium
JP3375220B2 (en) Electronic musical instrument
JP2000330561A (en) Electronic keyboard musical instrument
JPH0926787A (en) Timbre control device
JP3561983B2 (en) Electronic musical instrument
JP2705422B2 (en) Electronic musical instrument
JP3106051B2 (en) Electronic musical instrument
JP3476863B2 (en) Automatic accompaniment device for electronic musical instruments
JP3395480B2 (en) Electronic musical instrument
JPH10133663A (en) Electronic musical instrument