JP2616606B2 - Electronic musical instrument - Google Patents
Electronic musical instrumentInfo
- Publication number
- JP2616606B2 JP2616606B2 JP3168509A JP16850991A JP2616606B2 JP 2616606 B2 JP2616606 B2 JP 2616606B2 JP 3168509 A JP3168509 A JP 3168509A JP 16850991 A JP16850991 A JP 16850991A JP 2616606 B2 JP2616606 B2 JP 2616606B2
- Authority
- JP
- Japan
- Prior art keywords
- foot pedal
- type
- jack
- musical instrument
- electronic musical
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、複数の操作子によっ
て、さまざまな楽音を合成して発音する電子楽器に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument which synthesizes various musical tones with a plurality of operators to produce sounds.
【0002】[0002]
【従来の技術】従来の電子楽器では、鍵盤による演奏の
他に、フットペダルを用いて楽音に音響効果を付与する
ことがある。フットペダルには、踏込んだときにオン状
態をとるタイプや(メイク型)、その逆の状態をとるタ
イプ(ブレーク型)がある。これらのフットペダルは、
電子楽器本体に設けられたジャック(メス型)に、該フ
ットペダルから伸びたコード端に設けられたプラグを挿
し込むことによって接続される。2. Description of the Related Art In a conventional electronic musical instrument, a sound effect may be given to a musical sound by using a foot pedal in addition to playing on a keyboard. Foot pedals include a type that takes an ON state when depressed and a type (make type) and a type that takes the opposite state (break type). These foot pedals
It is connected by inserting a plug provided at the end of the cord extending from the foot pedal into a jack (female type) provided on the electronic musical instrument main body.
【0003】[0003]
【発明が解決しようとする課題】ところで、上述した電
子楽器では、フットペダルの種類を判断する機能がない
ため、使用するフットペダルを自由に選択できないとい
う問題を生じた。この発明は上述した事情に鑑みてなさ
れたもので、いかなるタイプのフットペダルでも接続で
きる電子楽器を提供することを目的としている。In the above-mentioned electronic musical instrument, however, there is no function of judging the type of the foot pedal, so that there is a problem that the foot pedal to be used cannot be freely selected. The present invention has been made in view of the above circumstances, and has as its object to provide an electronic musical instrument that can be connected to any type of foot pedal.
【0004】[0004]
【課題を解決するための手段】上述した問題点を解決す
るために、この発明では、電子楽器本体と、該電子楽器
本体に設けられたジャックに着脱可能に接続されるプラ
グを備えたフットペダルとからなる電子楽器において、
前記ジャックに印加される電圧レベルを検出する検出手
段と、前記フットペダルが前記ジャックに接続された時
に、前記フットペダルが接続された状態において前記検
出手段により検出された電圧レベルと、前記フットペダ
ルが接続されていない状態において前記検出手段により
検出された電圧レベルとを比較することにより、接続さ
れた前記フットペダルが、踏み込んだ時に音響効果を付
与する第1のタイプのものか、該第1のタイプと逆の動
作をする第2のタイプのものかを判断する判断手段と、
合成した楽音信号に、前記検出手段により検出された電
圧レベルと前記判断手段の判断結果とに基づく音響効果
を付与する楽音発生手段とを具備することを特徴とす
る。In order to solve the above-mentioned problems, the present invention provides an electronic musical instrument main body and an electronic musical instrument.
Plugs that are detachably connected to jacks provided on the main unit
Electronic musical instrument consisting of a foot pedal with
Detecting means for detecting a voltage level applied to the jack; and when the foot pedal is connected to the jack.
In the state where the foot pedal is connected,
Output means and the voltage level detected by the foot pedal.
In the state where the sensor is not connected,
By comparing to the detected voltage level,
The foot pedal has a sound effect when depressed.
Of the first type to be given or the opposite of the first type
Judging means for judging whether it is of the second type to work ,
The synthesized tone signal is added to the electric power detected by the detection means.
Characterized by comprising a tone generating means for imparting acoustic effect based on the determination result of pressure level and the determination means.
【0005】[0005]
【作用】判断手段は、検出手段の検出結果により、電子
楽器本体にフットペダルが接続された時にジャックに印
加される電圧レベルと、フットペダルが接続されない時
にジャックに印加される電圧レベルとを比較することに
よって、接続されたフットペダルが、踏み込んだ時に音
響効果を付与する第1のタイプか、または、その逆の動
作をする第2のタイプかを判断する。そして、楽音発生
手段は、この判断結果と上述した検出手段の検出結果と
に基づく音響効果を楽音信号に付与する。According to the present invention, the electronic control unit determines whether or not the electronic device has been detected by the detecting means.
Mark the jack when the foot pedal is connected to the instrument
The applied voltage level and when the foot pedal is not connected
To the voltage level applied to the jack
Therefore, when the connected foot pedal is depressed,
The first type to provide a sound effect or vice versa
Judge whether it is the second type to work . Then, the musical sound generating means compares the determination result with the detection result of the detecting means described above.
The sound effects are imparted to the tone signal based on.
【0006】[0006]
【実施例】次に図面を参照してこの発明の実施例につい
て説明する。図1はこの発明の一実施例の構成を示すブ
ロック図である。この図において、CPU1は、電子楽
器全体を制御するために、所定のプログラムを実行し、
各種データ(パラメータ)をデータバスDBを介して各
部へ供給する。また、このプログラムの実行の際に得ら
れる各種データは、RAM2へ格納される。パネルスイ
ッチ3には、音色や音響効果などを設定するための複数
のスイッチやボリューム等が設けられており、これらの
状態(オン/オフ等)は、インターフェイス3aによっ
てデータ処理された後、CPU1によって読み込まれ
る。Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of one embodiment of the present invention. In this figure, a CPU 1 executes a predetermined program to control the entire electronic musical instrument,
Various data (parameters) are supplied to each unit via the data bus DB. Various data obtained when executing this program are stored in the RAM 2. The panel switch 3 is provided with a plurality of switches, volumes, and the like for setting a tone color, a sound effect, and the like. Is read.
【0007】また、鍵盤回路4は、白鍵および黒鍵から
なるいわゆるキーボードであり、各鍵の状態(押鍵、離
鍵、押離鍵速度等)は、インターフェイス4aによって
データ処理された後、CPU1によって読み込まれる。
楽音信号発生部5は、CPU1が供給する楽音情報(あ
るいはデータ)に従って、所定の音高、音響効果が付与
された楽音信号を合成し、スピーカ6によって発音す
る。The keyboard circuit 4 is a so-called keyboard composed of a white key and a black key. The state of each key (key pressing, key release, key pressing speed, etc.) is processed after data processing by the interface 4a. It is read by the CPU 1.
The tone signal generating section 5 synthesizes a tone signal to which a predetermined pitch and a sound effect are added according to the tone information (or data) supplied by the CPU 1 and emits the tone signal through the speaker 6.
【0008】次に、ジャック7は、後述するフットペダ
ルに設けられたプラグが挿し込まれると、接点CNが離
れるタイプのものである。プラグの一方の電極、すなわ
ち信号が供給される電極が接する接点ピンJ1は、抵抗
R1によって+5Vにプルアップされているとともに、
直列接続された抵抗R2とコンデンサCを介してA/D
(アナログ/デジタル)変換器8の入力端へ接続されて
いる。上記抵抗R2とコンデンサCとは、後述するプラ
グをジャック7に接続する際のノイズを除去するための
ものである。Next, the jack 7 is of a type in which a contact CN is separated when a plug provided on a foot pedal described later is inserted. The contact pin J1 with which one electrode of the plug, that is, the electrode to which a signal is supplied contacts, is pulled up to + 5V by the resistor R1, and
A / D via resistor R2 and capacitor C connected in series
It is connected to the input of an (analog / digital) converter 8. The resistor R2 and the capacitor C are for removing noise when a plug described later is connected to the jack 7.
【0009】また、プラグの他方の電極、すなわちアー
ス側の電極が接する接点ピンJ2は、接地されている。
上述した接点ピンJ1と接点CNを有する中点接点J3
は、プラグが挿し込まれていない状態において、抵抗R
1を介して接地される。なお、この実施例では、プルア
ップする抵抗R1と上記中点接点J3を接地している抵
抗R1とは同じ抵抗値を有する。上述したA/D変換器
8は、上記ジャック7を介して供給される信号をデジタ
ル信号に変換して出力する。The other contact of the plug, that is, the contact pin J2 to which the electrode on the ground side contacts is grounded.
Midpoint contact J3 having the above-mentioned contact pin J1 and contact CN
Is the resistance R when the plug is not inserted.
1 is grounded. In this embodiment, the resistor R1 that pulls up and the resistor R1 that grounds the middle point contact J3 have the same resistance value. The above-mentioned A / D converter 8 converts a signal supplied through the jack 7 into a digital signal and outputs the digital signal.
【0010】次に、上述したフットペダルFPについて
図2(a)〜(d)を参照して説明する。まず、図2
(a)は踏込んだ際にスイッチSW1がオン状態となる
メイク型スイッチを備えるフットペダルFP1の構成を
示す説明図である。スイッチSW1の状態は、2線コー
ドによってプラグの各電極に接続される。また、図2
(b)は踏込んだ際にスイッチSW2がオフ状態となる
ブレーク型スイッチを備えるフットペダルFP2の構成
を示す説明図である。該フットペダルFP2では、スイ
ッチSW2の状態は上述したフットペダルFP1と同様
にしてプラグへ接続される。Next, the above-mentioned foot pedal FP will be described with reference to FIGS. First, FIG.
(A) is an explanatory view showing a configuration of a foot pedal FP1 including a make-type switch that turns on a switch SW1 when depressed. The state of the switch SW1 is connected to each electrode of the plug by a two-wire code. FIG.
(B) is an explanatory view showing a configuration of a foot pedal FP2 including a break-type switch in which a switch SW2 is turned off when depressed. In the foot pedal FP2, the state of the switch SW2 is connected to the plug in the same manner as the above-described foot pedal FP1.
【0011】次に、図2(c)および(d)は、上述し
たフットペダルFP1およびFP2に備えられていたス
イッチSW1、SW2に代わって、可変抵抗器VR1、
VR2が備えられたフットペダルFP3およびFP4の
構造を示す説明図である。図2(c)には、踏込んだ際
に抵抗値が減少するように設けられた可変抵抗器VR1
を備えるフットペダルFP3が示されている。また、図
2(d)には、踏込んだ際に抵抗値が増加するように設
けられた可変抵抗器VR2を備えるフットペダルFP4
が示されている。可変抵抗器VR1,VR2は、0〜∞
Ωの抵抗値をとるものとする。上述したフットペダルF
P1〜FP4に設けられたプラグが図1に示すジャック
7に挿し込まれるようになっている。Next, FIGS. 2C and 2D show variable resistors VR1, VR2 in place of the switches SW1, SW2 provided in the above-mentioned foot pedals FP1, FP2.
FIG. 4 is an explanatory diagram showing a structure of foot pedals FP3 and FP4 provided with VR2. FIG. 2C shows a variable resistor VR1 provided so that the resistance value decreases when stepped on.
Are shown. FIG. 2D shows a foot pedal FP4 including a variable resistor VR2 provided to increase a resistance value when depressed.
It is shown. The variable resistors VR1 and VR2 are 0∞
It is assumed that the resistance value is Ω. Foot pedal F described above
Plugs provided in P1 to FP4 are inserted into the jack 7 shown in FIG.
【0012】上述したジャック7は、上記プラグが挿し
込まれていない時には、中点接点J3が接点CNに押接
されているため、プルアップル抵抗R1と接地用の抵抗
R1とは直列接続され、A/D変換器8には、電源電圧
の半値である2.5Vが供給される。これに対して、図
2(a)に示すメイク型のフットペダルのプラグが挿し
込まれると、接点CNが離れ、ペダルが踏み込まれてい
ない状態では、スイッチSW1がオープン状態となるた
め、A/D変換器8には、電源電圧の5Vが供給される
ようになっている。また、ペダルが踏み込まれた状態で
は、スイッチSW1がクローズ状態となり、接点ピンJ
1が接地されるため、A/D変換器8には、2.5V以
下(ほぼ0V)が供給されるようになっている。In the jack 7, when the plug is not inserted, the midpoint contact J3 is pressed against the contact CN, so that the pull-up resistor R1 and the grounding resistor R1 are connected in series. The A / D converter 8 is supplied with 2.5 V which is a half value of the power supply voltage. On the other hand, when the plug of the makeup type foot pedal shown in FIG. 2A is inserted, the contact CN is separated, and the switch SW1 is opened when the pedal is not depressed. The D converter 8 is supplied with a power supply voltage of 5 V. When the pedal is depressed, the switch SW1 is closed and the contact pin J
Since 1 is grounded, the A / D converter 8 is supplied with 2.5 V or less (almost 0 V).
【0013】また、図2(b)に示すブレーク型のフッ
トペダルのプラグが挿し込まれると、上述同様に接点C
Nが離れ、ペダルが踏み込まれていない状態では、スイ
ッチSW2がクローズ状態となり、接点ピンJ1が接地
されるため、A/D変換器8には、2.5V以下(ほぼ
0V)が供給されるようになっている。また、ペダルが
踏み込まれた状態では、スイッチSW2がオープン状態
となるため、A/D変換器8には、電源電圧の5Vが供
給されるようになっている。When the plug of the break-type foot pedal shown in FIG.
When N is released and the pedal is not depressed, the switch SW2 is closed and the contact pin J1 is grounded, so that 2.5 V or less (almost 0 V) is supplied to the A / D converter 8. It has become. When the pedal is depressed, the switch SW2 is in an open state, so that the A / D converter 8 is supplied with a power supply voltage of 5 V.
【0014】また、図2(c)に示すフットペダルは、
上述した図2(a)のメイク型のフットペダルと同様の
信号をA/D変換器8に与え、図2(d)に示すフット
ペダルは、上述した図2(b)のブレーク型のフットペ
ダルと同様の信号をA/D変換器8に与える。ただし、
スイッチの代りに可変抵抗器を用いているため、0〜5
Vの間の電圧をA/D変換器8に与える。The foot pedal shown in FIG.
A signal similar to that of the make-type foot pedal shown in FIG. 2A is supplied to the A / D converter 8, and the foot pedal shown in FIG. A signal similar to that of the pedal is given to the A / D converter 8. However,
Since a variable resistor is used in place of the switch, 0-5
A voltage between V is supplied to the A / D converter 8.
【0015】次に、上述した構成による電子楽器の動作
について図3〜図6に示すフローチャートを参照して説
明する。まず、電源が投入されると、図3に示すメイン
ルーチンがCPU1によって実行される。メインルーチ
ンが実行されると、まず、ステップSA1において、レ
ジスタ、フラグ等を初期値に設定するために、初期設定
が行なわれる。次に、ステップSA2において、図4に
示すジャック処理1が行なわれる。Next, the operation of the electronic musical instrument having the above configuration will be described with reference to the flowcharts shown in FIGS. First, when the power is turned on, the CPU 1 executes a main routine shown in FIG. When the main routine is executed, first, in step SA1, initialization is performed to set registers, flags, and the like to initial values. Next, in step SA2, jack processing 1 shown in FIG. 4 is performed.
【0016】図4に示すジャック処理1では、まず、ス
テップSB1において、レジスタOLDにA/D変換器
8が出力するデジタルデータが格納される。次に、ステ
ップSB2において、レジスタOLDが2.5Vより小
さいか、2.5Vであるか(等しいか)、あるいは2.
5Vより大きいかが判断される。これはフットペダルの
プラグがジャック7に挿し込まれたか否かを判断するた
めである。また、プラグがジャック7に挿し込まれた場
合には、メイク型か、あるいはブレーク型のフットペダ
ルであるかを判断するためである。In the jacking process 1 shown in FIG. 4, first, in step SB1, digital data output from the A / D converter 8 is stored in the register OLD. Next, in step SB2, whether the value of the register OLD is smaller than 2.5 V, 2.5 V (equal to), or 2.
It is determined whether it is greater than 5V. This is to determine whether or not the plug of the foot pedal has been inserted into the jack 7. Further, when the plug is inserted into the jack 7, it is to determine whether the foot pedal is a make type or a break type foot pedal.
【0017】そして、ステップSB2において、レジス
タOLDが2.5Vより大きい場合、すなわちメイク型
のフットペダルが接続された場合には、ステップSB3
へ進む。ステップSB3では、フラグflagに「1」
をセットする。一方、ステップSB2において、レジス
タOLDが2.5Vより小さい場合、すなわちブレーク
型のフットペダルが接続された場合には、ステップSB
4へ進む。ステップSB4では、フラグflagに
「2」をセットする。そして、上記ステップSB3また
はSB4が終了するか、あるいは、上記ステップSB2
において、レジスタOLDが2.5Vである場合には、
接続されいないと判断し、図3に示すメインルーチンへ
戻る。In step SB2, when the register OLD is larger than 2.5 V, that is, when a make-type foot pedal is connected, step SB3 is executed.
Proceed to. In step SB3, the flag flag is set to "1".
Is set. On the other hand, if the register OLD is smaller than 2.5 V in step SB2, that is, if a break-type foot pedal is connected, step SB2 is executed.
Proceed to 4. In step SB4, "2" is set in the flag flag. Then, the above-mentioned step SB3 or SB4 is completed, or
In the case where the register OLD is 2.5V,
It is determined that the connection is not established, and the process returns to the main routine shown in FIG.
【0018】メインルーチンでは、次に、ステップSA
3へ進む。ステップSA3では、パネル処理が行なわれ
る。パネル処理では、図1に示すパネルスイッチ3のス
イッチの状態が読み込まれ、それらの状態に応じた値が
所定のレジスタへセットされる。次に、ステップSA4
へ進み、鍵盤処理が行なわれる。鍵盤処理では、図1に
示す鍵盤回路4の押離鍵等の状態が読み込まれ、それら
の状態に応じた値が所定の各部へ供給される。そして、
ステップSA5へ進む。ステップSA5では、ジャック
処理2が実行される。Next, in the main routine, step SA
Proceed to 3. At step SA3, panel processing is performed. In the panel processing, the state of the panel switch 3 shown in FIG. 1 is read, and a value corresponding to those states is set in a predetermined register. Next, step SA4
Then, keyboard processing is performed. In the keyboard processing, states such as a key press and release of the keyboard circuit 4 shown in FIG. 1 are read, and values corresponding to those states are supplied to predetermined units. And
Proceed to step SA5. At step SA5, jack process 2 is executed.
【0019】ジャック処理2は、図5に示すフローチャ
ートに従って実行される。ジャック処理2では、まず、
ステップSC1において、レジスタNEWにA/D変換
器8が出力するデジタルデータが格納される。次に、ス
テップSC2へ進み、フラグflagが「0」であるか
否かが判断される。そして、このステップSC2におけ
る判断結果が「NO」の場合、すなわちメイク型か、あ
るいはブレーク型のいずれかのフットペダルが接続され
ている場合には、ステップSC3へ進む。ステップSC
3では、レジスタOLDがレジスタNEWに等しいか否
かが判断される。これは接続されたフットペダルが操作
されたか否かを判断するためである。The jack process 2 is executed according to a flowchart shown in FIG. In jacking process 2, first,
In step SC1, digital data output from the A / D converter 8 is stored in the register NEW. Next, the routine proceeds to step SC2, where it is determined whether or not the flag is “0”. If the result of the determination in step SC2 is "NO", that is, if either the make-type or the break-type foot pedal is connected, the process proceeds to step SC3. Step SC
At 3, it is determined whether the register OLD is equal to the register NEW. This is to determine whether or not the connected foot pedal has been operated.
【0020】そして、このステップSC3における判断
結果が「YES」の場合、すなわちフットペダルは接続
されているが、何ら操作が行なわれていない場合には、
そのまま図3に示すメインルーチンへ戻る。そして、こ
の場合にはメインルーチンのステップSA6へ進み、そ
の他の処理を行なった後、再び、ステップSA3へ戻
り、上述したステップSA3〜SA6を繰返し実行す
る。If the result of the determination in step SC3 is "YES", that is, if the foot pedal is connected but no operation is performed,
The process returns to the main routine shown in FIG. Then, in this case, the process proceeds to step SA6 of the main routine, and after performing other processes, returns to step SA3 again and repeatedly executes the above-described steps SA3 to SA6.
【0021】これに対して、フットペダルが接続され、
かつ、何らかの操作、すなわちペダルが踏み込まれる
と、レジスタOLDの内容とレジスタNEWの内容が異
なるため、ステップSC3における判断結果が「NO」
となり、ステップSC4へ進む。ステップSC4では、
レジスタNEWが2.5Vより小さいか、2.5Vであ
るか(等しいか)、あるいは2.5Vより大きいかが判
断される。On the other hand, a foot pedal is connected,
In addition, if any operation, that is, the pedal is depressed, the content of the register OLD is different from the content of the register NEW.
And proceeds to step SC4. In step SC4,
It is determined whether the register NEW is smaller than 2.5 V, 2.5 V (equal to), or larger than 2.5 V.
【0022】そして、ステップSC4において、レジス
タNEWが2.5Vより小さい場合には、ステップSC
5へ進む。ステップSC5では、フラグflagが
「1」であるか、「2」であるかを判断する。そして、
ステップSC5において、フラグflagが「1」であ
る場合、すなわちメイク型のフットペダルが接続されて
いる場合には、そのペダルが踏み込まれていると判断
し、ステップSC6へ進む。ステップSC6では、レジ
スタDATAをオンにする。一方、ステップSC5にお
いて、フラグflagが「2」である場合、すなわちブ
レーク型のフットペダルが接続されている場合には、そ
のペダルが踏み込まれていないと判断し、ステップSC
7へ進む。ステップSC7では、レジスタDATAをオ
フにする。If the value of the register NEW is smaller than 2.5 V in step SC4, the flow advances to step SC4.
Go to 5. In step SC5, it is determined whether the flag is "1" or "2". And
In step SC5, when the flag is "1", that is, when a make-type foot pedal is connected, it is determined that the pedal is depressed, and the process proceeds to step SC6. At Step SC6, the register DATA is turned on. On the other hand, if the flag flag is "2" in step SC5, that is, if a break-type foot pedal is connected, it is determined that the pedal is not depressed, and step SC5 is performed.
Proceed to 7. At Step SC7, the register DATA is turned off.
【0023】これに対して、ステップSC4において、
レジスタNEWが2.5Vより大きい場合には、ステッ
プSC8へ進む。ステップSC8では、フラグflag
が「1」であるか、「2」であるかを判断する。そし
て、ステップSC8において、フラグflagが「1」
である場合、すなわちメイク型のフットペダルが接続さ
れている場合には、そのペダルが踏み込まれていないと
判断し、ステップSC9へ進む。ステップSC9では、
レジスタDATAをオフにする。一方、ステップ8にお
いて、フラグflagが「2」である場合、すなわちブ
レーク型のフットペダルが接続されている場合には、そ
のペダルが踏み込まれていると判断し、ステップSC1
0へ進む。ステップSC10では、レジスタDATAを
オンにする。On the other hand, in step SC4,
If the value of the register NEW is larger than 2.5 V, the process proceeds to step SC8. In step SC8, the flag flag is set.
Is “1” or “2”. Then, in step SC8, the flag is set to “1”.
In other words, if a make-type foot pedal is connected, it is determined that the pedal has not been depressed, and the flow proceeds to step SC9. In step SC9,
The register DATA is turned off. On the other hand, in step 8, when the flag flag is "2", that is, when the break type foot pedal is connected, it is determined that the pedal is depressed, and step SC1 is performed.
Go to 0. At step SC10, the register DATA is turned on.
【0024】そして、上述したステップSC6、SC
7、SC9またはSC10の処理が終了すると、ステッ
プSC11へ進む。ステップSC11では、それぞれの
ステップにおいて設定したレジスタDATAの内容を図
1に示す楽音信号発生部5へ供給する。楽音信号発生部
5では、レジスタDATAの内容に従って、例えば、サ
ステイン等の音響効果を楽音に付与する。すなわち、レ
ジスタDATAがオンの時には、楽音に音響効果を付与
し、レジスタDATAがオフの時には、音響効果の付与
を取止める。Then, the above-mentioned steps SC6, SC
When the processing of 7, SC9 or SC10 ends, the process proceeds to step SC11. In step SC11, the contents of the register DATA set in each step are supplied to the musical tone signal generator 5 shown in FIG. The tone signal generator 5 applies a sound effect such as sustain to the tone according to the contents of the register DATA. That is, when the register DATA is on, the sound effect is applied to the musical sound, and when the register DATA is off, the application of the sound effect is stopped.
【0025】これに対して、ステップSC4において、
レジスタNEWが2.5Vである場合には、フットペダ
ルのプラグがジャック7から抜かれたと判断し、ステッ
プSC12へ進む。ステップSC12では、フラグfl
agに「0」をセットしする。On the other hand, in step SC4,
If the value of the register NEW is 2.5 V, it is determined that the plug of the foot pedal has been removed from the jack 7, and the process proceeds to step SC12. In step SC12, the flag fl
Set “0” to ag.
【0026】そして、上述したステップSC11または
上記ステップSC12の処理が終了すると、ステップS
C13へ進む。ステップSC13では、レジスタOLD
にレジスタNEWの内容を格納し、新しい値を古い値と
する。そして、当該ジャック処理2を終了し、図3に示
すメインルーチンへ戻る。メインルーチンでは、ステッ
プSA6のその他の処理を行なった後、再び、ステップ
SA3へ戻り、上述したステップSA3〜SA6を繰返
し実行する。When the processing in step SC11 or step SC12 is completed, step S
Proceed to C13. In step SC13, the register OLD
In the register NEW, and the new value is used as the old value. Then, the jack process 2 ends, and the process returns to the main routine shown in FIG. In the main routine, after performing the other processes of step SA6, the process returns to step SA3 again, and repeats steps SA3 to SA6 described above.
【0027】一方、上述したステップSC2における判
断結果が「YES」の場合、すなわち、この段階におい
ても、まだ、フットペダルが接続されていない場合(あ
るいは、一度、プラグが挿し込まれた後に抜かれた場
合)には、ステップSC14へ進む。ステップSC14
では、レジスタNEWが2.5Vより小さいか、2.5
Vであるか(等しいか)、あるいは2.5Vより大きい
かを判断する。これは再び、プラグが挿し込まれたか否
かを判断するためである。On the other hand, if the result of the determination in step SC2 is "YES", that is, if the foot pedal is not yet connected at this stage (or the plug is once inserted and then unplugged). In this case, the process proceeds to step SC14. Step SC14
Then, if the register NEW is less than 2.5V or 2.5
V (equal to) or greater than 2.5V. This is to determine again whether the plug has been inserted.
【0028】そして、ステップSC14において、レジ
スタNEWが2.5Vより大きい場合、すなわちメイク
型のフットペダルが接続された場合には、ステップSC
15へ進む。ステップSC15では、フラグflagに
「1」をセットする。一方、ステップSC14におい
て、レジスタNEWが2.5Vより小さい場合、すなわ
ちブレーク型のフットペダルが接続された場合には、ス
テップSC16へ進む。ステップSC16では、フラグ
flagに「2」をセットする。If it is determined in step SC14 that the register NEW is larger than 2.5 V, that is, if a make-type foot pedal is connected, step SC14 is executed.
Proceed to 15. In step SC15, “1” is set to the flag flag. On the other hand, in step SC14, if the register NEW is smaller than 2.5 V, that is, if a break-type foot pedal is connected, the process proceeds to step SC16. In step SC16, “2” is set to the flag flag.
【0029】そして、上記ステップSC15またはSC
16が終了した場合には、ステップSC13へ進む。ス
テップSC13では、上述したように、レジスタOLD
にレジスタNEWの内容を格納し、新しい値を古い値と
する。そして、当該ジャック処理2を終了し、図3に示
すメインルーチンへ戻る。一方、ステップSC14にお
いて、レジスタNEWが2.5Vである場合には、接続
されいないと判断し、そのまま、図3に示すメインルー
チンへ戻る。メインルーチンでは、ステップSA6のそ
の他の処理を行なった後、再び、ステップSA3へ戻
り、上述したステップSA3〜SA6を繰返し実行す
る。Then, the above-mentioned step SC15 or SC
If 16 has been completed, the flow advances to step SC13. In step SC13, as described above, the register OLD
In the register NEW, and the new value is used as the old value. Then, the jack process 2 ends, and the process returns to the main routine shown in FIG. On the other hand, if the value of the register NEW is 2.5 V in step SC14, it is determined that the connection is not established, and the process returns to the main routine shown in FIG. In the main routine, after performing the other processes of step SA6, the process returns to step SA3 again, and repeats steps SA3 to SA6 described above.
【0030】なお、上述した実施例では、プラグをジャ
ック7に挿し込む時、ペダルを踏み込んだままの状態で
行なうと、フットペダルの型を取り違えて判断してしま
う。しかしながら、これを利用して、足をペダルから離
した時に音響効果を付与するようにしてもよい。したが
って、この場合には、ペダルを踏み込んだまま、プラグ
をジャック7に挿し込むようにする。また、上述したジ
ャック7は、複数設けてもよく、また、1つのジャック
にサスティン、リステヌート等の効果機能を自由にアサ
インできるようにしてもよい。In the above-described embodiment, if the plug is inserted into the jack 7 while the pedal is still depressed, the type of the foot pedal is determined to be wrong. However, this may be used to add a sound effect when the foot is released from the pedal. Therefore, in this case, the plug is inserted into the jack 7 while the pedal is depressed. Also, a plurality of jacks 7 may be provided, and effect functions such as sustain and restenute may be freely assigned to one jack.
【0031】また、上述した実施例では、プラグが挿し
込まれていない時には、A/D変換器8には2.5Vが
供給されたが、この場合の該A/D変換器8の精度は問
題としていない。例えば、4ビットの分解能を有するA
/D変換器を用いた場合には、該A/D変換器の出力
は、0〜15(10進)の値をとるため、2.5Vに対
しては、中間値の7という値をとる。また、2.5Vと
いう値を判断値とすると、ノイズの影響や、ハードウエ
アの精度誤差を吸収できないため、ある程度の不感帯を
設け、例えば、2.3〜2.7Vまでをプラグが挿し込
まれていない状態と判断するようにしてもよい。この場
合、A/D変換器8のビット精度を下げても同様の効果
が得られる。In the above-described embodiment, when no plug is inserted, 2.5 V is supplied to the A / D converter 8, but the accuracy of the A / D converter 8 in this case is Not a problem. For example, A having 4-bit resolution
When the / D converter is used, the output of the A / D converter takes a value of 0 to 15 (decimal), and therefore takes an intermediate value of 7 for 2.5 V. . If the value of 2.5 V is used as the judgment value, the influence of noise and the accuracy error of the hardware cannot be absorbed. Therefore, a certain dead zone is provided, and for example, a plug of 2.3 to 2.7 V is inserted. It may be determined that it is not in the state. In this case, the same effect can be obtained even if the bit precision of the A / D converter 8 is reduced.
【0032】上述した不感帯は、あまり広くすると、ボ
リューム型のフットペダルを用いた場合、踏み込まれた
時や足がペダルから離された時に移行中のペダルが不感
帯の位置にあると、プラグが挿し込まれていない状態と
判断される恐れがある。これを防ぐには、不感帯を連続
して数回検出した場合に、初めてプラグが抜かれたと判
断するようにすればよい。If the dead zone described above is too wide, when a volume-type foot pedal is used, the plug is inserted when the shifting pedal is in the dead zone when the pedal is depressed or when the foot is released from the pedal. There is a risk that it will be judged that it is not inserted. To prevent this, it is only necessary to determine that the plug has been unplugged for the first time when the dead zone is detected several times in succession.
【0033】また、上述した実施例では、ボリューム型
とスイッチ型の区別をつけずに処理していたが、0V,
5V,2.5V以外の中間値を検出した時には、ボリュ
ーム型と判断し、スイッチ型と区別して処理すればよ
い。[0033] Also, in the embodiment described above, had been treated without the distinction of Bollywood-menu-time type and switch type, 0V,
When an intermediate value other than 5 V and 2.5 V is detected, it is determined that the volume type is used, and processing is performed separately from the switch type.
【0034】[0034]
【発明の効果】以上、説明したように、この発明によれ
ば、判断手段により、検出手段の検出結果により、電子
楽器本体にフットペダルが接続された時にジャックに印
加される電圧レベルと、フットペダルが接続されない時
にジャックに印加される電圧レベルとを比較することに
よって、接続されたフットペダルが、踏み込んだ時に音
響効果を付与する第1のタイプか、または、その逆の動
作をする第2のタイプかを判断し、その判断結果と上記
検出手段により検出された電圧レベルとに基づく音響効
果を、合成した楽音信号に付与するようにしたので、い
かなるタイプのフットペダルでも接続できるという利点
が得られる。As described above, according to the present invention, according to the present invention , the electronic means is provided by the determination means and the detection result of the detection means.
Mark the jack when the foot pedal is connected to the instrument
The applied voltage level and when the foot pedal is not connected
To the voltage level applied to the jack
Therefore, when the connected foot pedal is depressed,
The first type to provide a sound effect or vice versa
Judge whether it is the second type to work , and the judgment result and the above
Sound effect based on the voltage level detected by the detecting means
Since the result is added to the synthesized tone signal, there is an advantage that any type of foot pedal can be connected.
【図1】 本発明の一実施例の構成を示すブロック図で
ある。FIG. 1 is a block diagram showing a configuration of one embodiment of the present invention.
【図2】 (a)は踏込んだ際にスイッチSW1がオン
状態となるメイク型スイッチを備えるフットペダルFP
1の構成を示す説明図、(b)は踏込んだ際にスイッチ
SW2がオフ状態となるブレーク型スイッチを備えるフ
ットペダルFP2の構成を示す説明図、(c)および
(d)は、上述したフットペダルFP1およびFP2に
備えられていたスイッチSW1、SW2に代わって、可
変抵抗器VR1、VR2が備えられたフットペダルFP
3およびFP4の構造を示す説明図である。FIG. 2 (a) is a foot pedal FP including a make-type switch that turns on a switch SW1 when depressed;
1, (b) is an explanatory diagram showing a configuration of a foot pedal FP2 provided with a break type switch in which a switch SW2 is turned off when depressed, and (c) and (d) are described above. A foot pedal FP provided with variable resistors VR1 and VR2 instead of the switches SW1 and SW2 provided in the foot pedals FP1 and FP2
FIG. 3 is an explanatory diagram showing the structure of FP4.
【図3】 本実施例の動作を説明するためのメインルー
チンのフローチャートである。FIG. 3 is a flowchart of a main routine for explaining the operation of the present embodiment.
【図4】 本実施例の動作を説明するためのジャック処
理1のフローチャートである。FIG. 4 is a flowchart of a jack process 1 for explaining the operation of the present embodiment.
【図5】 本実施例の動作を説明するためのジャック処
理2のフローチャートである。FIG. 5 is a flowchart of a jack process 2 for explaining the operation of the present embodiment.
1……CPU(判断手段)、3……パネルスイッチ、4
……鍵盤回路、5……楽音信号発生回路(楽音発生手
段)、7……ジャック(検出手段)、8……A/D変換
器(検出手段)、FP1〜FP4……フットペダル(操
作子)、SW1,SW2……スイッチ(素子)、VR
1,VR2……可変抵抗(素子)。1 ... CPU (judgment means), 3 ... panel switch, 4
... Keyboard circuit, 5... Tone signal generating circuit (tone generating means), 7... Jack (detecting means), 8... A / D converter (detecting means), FP1 to FP4. ), SW1, SW2 ... switch (element), VR
1, VR2: Variable resistor (element).
Claims (1)
られたジャックに着脱可能に接続されるプラグを備えた
フットペダルとからなる電子楽器において、 前記ジャックに印加される電圧レベルを検出する 検出手
段と、前記フットペダルが前記ジャックに接続された時に、前
記フットペダルが接続された状態において前記検出手段
により検出された電圧レベルと、前記フットペダルが接
続されていない状態において前記検出手段により検出さ
れた電圧レベルとを比較することにより、接続された前
記フットペダルが、踏み込んだ時に音響効果を付与する
第1のタイプのものか、該第1のタイプと逆の動作をす
る第2のタイプのもの かを判断する判断手段と、合成した楽音信号に、前記検出手段により検出された電
圧レベルと 前記判断手段の判断結果とに基づく音響効果
を付与する楽音発生手段と を具備することを特徴とする
電子楽器。An electronic musical instrument main body and a main body provided on the electronic musical instrument main body.
With a plug that is detachably connected to the jack
In an electronic musical instrument comprising a foot pedal , a detecting means for detecting a voltage level applied to the jack, and when the foot pedal is connected to the jack,
The detecting means in a state where the foot pedal is connected;
Is connected to the voltage level detected by the
Detected by the detection means in a state where
Before being connected by comparing the
The foot pedal gives a sound effect when depressed
It is of the first type or performs the reverse operation of the first type.
Determining means for determining whether the signal is of the second type, and adding the electric signal detected by the detecting means to the synthesized tone signal.
Electronic musical instrument characterized by comprising a tone generating means for imparting acoustic effect based on the determination result of pressure level and the determination means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3168509A JP2616606B2 (en) | 1991-07-09 | 1991-07-09 | Electronic musical instrument |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3168509A JP2616606B2 (en) | 1991-07-09 | 1991-07-09 | Electronic musical instrument |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0588672A JPH0588672A (en) | 1993-04-09 |
| JP2616606B2 true JP2616606B2 (en) | 1997-06-04 |
Family
ID=15869371
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3168509A Expired - Fee Related JP2616606B2 (en) | 1991-07-09 | 1991-07-09 | Electronic musical instrument |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2616606B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5204496B2 (en) * | 2008-01-16 | 2013-06-05 | ローランド株式会社 | Switch operation detection device |
| JP5560584B2 (en) * | 2009-04-21 | 2014-07-30 | ヤマハ株式会社 | Electronic percussion instrument |
-
1991
- 1991-07-09 JP JP3168509A patent/JP2616606B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0588672A (en) | 1993-04-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5069107A (en) | Electronic musical instrument in which a musical tone is controlled in accordance with a digital signal | |
| US6259015B1 (en) | Acoustic signal producing apparatus | |
| JP2616606B2 (en) | Electronic musical instrument | |
| JPH0413717B2 (en) | ||
| JPH0823748B2 (en) | Electronic musical instrument | |
| JPS592914B2 (en) | electronic musical instruments | |
| KR850001442B1 (en) | How to treat same sound between electronic organs | |
| JPS5855429Y2 (en) | Aftertouch response circuit for electronic musical instruments | |
| JP3669065B2 (en) | Electronic musical instrument control parameter changing device | |
| JPH0711754B2 (en) | Electronic musical instrument | |
| JPH1069275A (en) | Electronic musical instrument | |
| KR970004167B1 (en) | Automatic setting method of sustain pedal method of electronic musical instrument | |
| JPH0635465A (en) | Musical sound generating device | |
| JPS60158491A (en) | Electronic musical instrument with tatsuchi response | |
| JPH02146094A (en) | Musical sound controlling method for electronic musical instrument | |
| KR200276398Y1 (en) | Digitar Music & Computer KeyBoard | |
| JP2616533B2 (en) | Electronic musical instrument | |
| JPS6146596U (en) | Electronic musical instrument parameter setting device | |
| KR970008442B1 (en) | Demonstration method for the electronic musical sound instrument | |
| JP2858314B2 (en) | Tone characteristic control device | |
| JP2900538B2 (en) | Electronic musical instrument | |
| JP3375215B2 (en) | Electronic musical instrument | |
| JPH0727514Y2 (en) | Electronic keyboard instrument | |
| JPH05197377A (en) | Touch generator | |
| JPH01147598A (en) | electronic musical instruments |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19970121 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090311 Year of fee payment: 12 |
|
| LAPS | Cancellation because of no payment of annual fees |