JPH10319963A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH10319963A
JPH10319963A JP9145873A JP14587397A JPH10319963A JP H10319963 A JPH10319963 A JP H10319963A JP 9145873 A JP9145873 A JP 9145873A JP 14587397 A JP14587397 A JP 14587397A JP H10319963 A JPH10319963 A JP H10319963A
Authority
JP
Japan
Prior art keywords
pedal
sound
switch
data
musical instrument
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
JP9145873A
Other languages
Japanese (ja)
Inventor
Shu Nagataki
周 永瀧
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 JP9145873A priority Critical patent/JPH10319963A/en
Publication of JPH10319963A publication Critical patent/JPH10319963A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To create atmosphere approximate to the atmosphere of a natural musical instrument by detecting the presence or absence of treading of a pedal and generating a pedal tone when the treading of the pedal is detected, thereby faithfully simulating the tone meeting a pedal operation. SOLUTION: The pedal 16 is provided with a speed detecting mechanism 15. This speed detecting mechanism 15 comprises two pieces of switches which make and break cooperatively with the treading of the pedal 16 and make and break at the different amts. of treading, i.e., a first switch and a second switch. A CPU 10 measures the time after the turning on of the first switch before the turning on of the second switch and calculates the treading speed of the pedal 16 in accordance with the result of the measurement. The pedal 16 is adapted to generate the pedal tone according to the speed of the treading when the pedal is treaded, therefor, the tone of the natural musical instrument like that of an acoustic piano is eventually more strictly simulated. Then, the atmosphere near that of the natural musical instrument may be created.

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 pedal, and more particularly to a technique for generating a musical effect similar to a pedal operation of a natural musical instrument.

【0002】[0002]

【従来の技術】従来、電子楽器の1つとして電子ピアノ
が知られている。この電子ピアノは、第1義的には、自
然楽器であるアコースティックピアノを忠実に模擬する
ことを目的として作製されている。従って、打鍵により
発生される音色は勿論のこと、近年は、打鍵時に鍵が棚
板に衝突する音(コツ音)をも模擬し、アコースティッ
クピアノの音色に近づける努力がなされている。
2. Description of the Related Art Conventionally, an electronic piano has been known as one of electronic musical instruments. This electronic piano is primarily manufactured for the purpose of faithfully simulating an acoustic piano which is a natural musical instrument. Therefore, in recent years, efforts have been made to imitate not only the tone generated by keying but also the sound (click sound) of the key colliding with the shelf board at the time of keying, so as to approach the tone of an acoustic piano.

【0003】また、アコースティックピアノは、例えば
ダンパペダルやソフトペダル等といったペダルを有して
おり、これらのペダルが踏まれた時に所定の音楽効果を
発生する。例えばダンパペダルが踏まれると音が引き伸
ばされると共に豊かな残響音が発生する。また、ソフト
ペダルが踏まれると音量が小さくなると共に音が柔らか
くなる。そこで、従来の電子ピアノでは、このようなア
コースティックピアノのペダルの機能をも模擬し、アコ
ースティックピアノと同様の音楽効果が得られるように
構成されている。
[0003] An acoustic piano has pedals such as a damper pedal and a soft pedal, and when these pedals are depressed, a predetermined musical effect is generated. For example, when the damper pedal is depressed, the sound is elongated and a rich reverberation is generated. Also, when the soft pedal is depressed, the volume decreases and the sound becomes softer. Therefore, a conventional electronic piano is configured so as to simulate the function of the pedal of such an acoustic piano, and to obtain a music effect similar to that of an acoustic piano.

【0004】なお、ペダルを有する電子楽器としては、
電子ピアノの限らず、電子キーボードやシンセサイザ等
も開発されている。これらの電子楽器は多数の音色で音
を発生する機能を備えており、アコースティックピアノ
の音色で音を発生させることができる。加えて、アコー
スティックピアノのペダルの機能をも模擬できるように
なっている。
[0004] Electronic musical instruments having a pedal include:
Not only electronic pianos but also electronic keyboards and synthesizers have been developed. These electronic musical instruments have a function of generating sounds with a large number of timbres, and can generate sounds with the timbres of acoustic pianos. In addition, the function of the pedal of an acoustic piano can be simulated.

【0005】[0005]

【発明が解決しようとする課題】ところで、従来のペダ
ルを有する例えば電子ピアノにおいては、例えば、ダン
パペダルが踏まれた場合は、打鍵によって生じる音のリ
リース時間が長くなり、且つ残響音が多くなるように制
御される。また、ソフトペダルが踏まれると、打鍵によ
って生じる音の音量が小さくなり、且つ残響音が少なく
なるように制御される。このように、従来の電子ピアノ
でペダルを踏むと、そのペダル本来の機能に対応する音
が発生する。
By the way, in an electronic piano having a conventional pedal, for example, when a damper pedal is depressed, a release time of a sound generated by a keystroke becomes longer and a reverberation sound increases. Is controlled. In addition, when the soft pedal is depressed, control is performed so that the volume of the sound generated by the keystroke decreases and the reverberation sound decreases. As described above, when the pedal is depressed with the conventional electronic piano, a sound corresponding to the original function of the pedal is generated.

【0006】しかしながら、アコースティックピアノの
ペダルを踏んだ場合は、該ペダル本来の機能に対応する
音だけでなく、ペダルを踏んだことに伴って発生する特
有の音が発生する。例えば、鍵盤を弾かずにダンパペダ
ルを踏めば、弦とダンパの擦れる音や、ペダルの機構部
が動作することにより発生される機械的音が発生する。
従来の電子ピアノでは、このようなペダルを踏んだこと
に伴って発生する特有の音は、音楽的な音ではないとい
う理由で無視されている。
[0006] However, when the pedal of the acoustic piano is depressed, not only a sound corresponding to the original function of the pedal but also a specific sound generated when the pedal is depressed is generated. For example, if the damper pedal is depressed without playing the keyboard, a rubbing sound of the string and the damper and a mechanical sound generated by the operation of the pedal mechanism are generated.
In a conventional electronic piano, a peculiar sound generated by pressing such a pedal is ignored because it is not a musical sound.

【0007】ところが、このペダル特有の音は、電子ピ
アノでアコースティックピアノの音を忠実に模擬しよう
とする場合は無視できない。換言すれは、このペダル特
有の音を電子ピアノでも発生するように構成すれば、よ
りアコースティックピアノに近い音が得られることが期
待される。
However, the sound peculiar to the pedal cannot be ignored when trying to simulate the sound of an acoustic piano with an electronic piano. In other words, it is expected that a sound closer to that of an acoustic piano can be obtained if the sound peculiar to the pedal is also generated by an electronic piano.

【0008】従って、本発明の目的は、ペダル操作に応
じた音を忠実に模擬することにより自然楽器に近い雰囲
気を出すことのできる電子楽器を提供することにある。
Accordingly, an object of the present invention is to provide an electronic musical instrument capable of producing an atmosphere close to a natural musical instrument by faithfully simulating a sound corresponding to a pedal operation.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明の第1の態様に係る電子楽器は、ペダルと、
該ペダルの踏み込みの有無を検出する検出手段と、該検
出手段で該ペダルが踏み込まれたことが検出された場合
にペダル音を発生するペダル音発生手段、とを備えて構
成されている。
In order to achieve the above object, an electronic musical instrument according to a first aspect of the present invention comprises a pedal,
It is provided with detection means for detecting whether or not the pedal is depressed, and pedal sound generation means for generating a pedal sound when the detection means detects that the pedal is depressed.

【0010】この電子楽器では、上記ペダルとして、例
えばダンパペダル、ソフトペダル、ソステヌートペダル
等を用いることができる。このペダルとしては、所定の
踏み込み量があった場合にオンになり、そうでない場合
はオフになるスイッチを備えて構成できる。
In this electronic musical instrument, for example, a damper pedal, a soft pedal, a sostenuto pedal, or the like can be used as the pedal. The pedal can be configured to include a switch that is turned on when a predetermined depression amount is applied, and that is turned off otherwise.

【0011】上記検出手段は、このペダルの踏み込み量
の有無を、上記スイッチのオン又はオフを調べることに
よって検出する。また、ペダル音発生手段は、この検出
手段でペダルが踏み込まれたことが検出された場合、つ
まり上記スイッチがオンにされたことが検出された場合
にペダル音を発生する。ここで、ペダル音とは、鍵盤を
弾かない状態でペダルを踏み込んだ時に発生する機械的
な音をいう。ダンパペダルを例にとれば、ダンパペダル
が踏み込まれた時に、弦とダンパが擦れることにより発
生される音やダンパペダルの機構部が動作することによ
り発生される機械的な音等をいう。
The detecting means detects the presence or absence of the depression amount of the pedal by checking whether the switch is on or off. The pedal sound generating means generates a pedal sound when the detecting means detects that the pedal is depressed, that is, when it is detected that the switch is turned on. Here, the pedal sound is a mechanical sound generated when a pedal is depressed without playing the keyboard. Taking the damper pedal as an example, the sound refers to a sound generated when the string and the damper are rubbed when the damper pedal is depressed, a mechanical sound generated when the damper pedal mechanism operates, and the like.

【0012】前記ペダル音発生手段は、ペダル音の波形
データを記憶する波形メモリを含み、前記検出手段でペ
ダルが踏み込まれたことが検出された場合に該波形メモ
リからペダル音の波形データを読み出し、該読み出され
た波形データに基づいてペダル音を発生するように構成
できる。
The pedal sound generating means includes a waveform memory for storing waveform data of the pedal sound, and reads out the pedal sound waveform data from the waveform memory when the detecting means detects that the pedal is depressed. , A pedal sound can be generated based on the read waveform data.

【0013】上記波形メモリに記憶するペダル音の波形
データは、例えばアコースティックピアノにおいて鍵盤
を弾かない状態でペダルを踏み込んだ場合の音を収音
し、これをパルスコード変調(PCM)することにより
作成できる。なお、波形データはPCMに限らず、例え
ばDPCM、ADPCM、その他種々の符号化技術を用
いて作成できる。
The waveform data of the pedal sound stored in the waveform memory is generated by, for example, collecting a sound when the pedal is depressed without playing the keyboard on an acoustic piano, and performing pulse code modulation (PCM) on the sound. it can. The waveform data is not limited to PCM, but can be created using, for example, DPCM, ADPCM, and various other encoding techniques.

【0014】上記ペダル音発生手段は、波形メモリにダ
ンパペダル、ソフトペダル、ソステヌートペダル等とい
ったペダルの種類別にペダル音の波形データを記憶して
おき、ペダルが踏み込まれた場合に、踏み込まれたペダ
ルに対応する波形データを読み出してペダル音を発生す
るように構成できる。この構成によれば、よりリアルな
ペダル音を発生できる。
The pedal sound generating means stores the waveform data of the pedal sound for each type of pedal, such as a damper pedal, a soft pedal, a sostenuto pedal, etc. in a waveform memory. The corresponding waveform data may be read to generate a pedal sound. According to this configuration, a more realistic pedal sound can be generated.

【0015】この電子楽器によれば、ペダルが踏み込ま
れると、その踏み込み操作に伴う機械的なペダル音が発
生される。このペダル音は、鍵盤の押下の有無に関係に
発生される。従って、例えばアコースティックピアノと
いった自然楽器の音がより厳密に模擬されるので、自然
楽器に近い雰囲気をだすことができる。
According to this electronic musical instrument, when the pedal is depressed, a mechanical pedal sound is generated in accordance with the depressing operation. This pedal sound is generated depending on whether or not the keyboard is pressed. Therefore, for example, the sound of a natural musical instrument such as an acoustic piano is more closely simulated, and an atmosphere close to that of a natural musical instrument can be obtained.

【0016】また、上記目的を達成するために、本発明
の第2の態様に係る電子楽器は、ペダルと、該ペダルの
踏み込み状態を検出する検出手段と、該検出手段で検出
された踏み込み状態に応じて異なるペダル音を発生する
ペダル音発生手段、とを備えている。
In order to achieve the above object, an electronic musical instrument according to a second aspect of the present invention comprises a pedal, detecting means for detecting a depressed state of the pedal, and a depressed state detected by the detecting means. And a pedal sound generating means for generating a different pedal sound according to

【0017】この電子楽器では、上記ペダルとして、例
えばダンパペダル、ソフトペダル、ソステヌートペダル
等を用いることができる。このペダルは、踏み込み状態
の検出に供するための機構を備えて構成できる。ここ
で、踏み込み状態としては、踏み込み速度又は踏み込み
量を用いることができる。
In this electronic musical instrument, for example, a damper pedal, a soft pedal, a sostenuto pedal, or the like can be used as the pedal. The pedal can be provided with a mechanism for detecting a depression state. Here, the stepping speed or the stepping amount can be used as the stepping state.

【0018】踏み込み状態として踏み込み速度が用いら
れる場合は、上記検出手段は、速度検出機構で構成でき
る。この速度検出機構は、より具体的には、ペダルの踏
み込みに連動して開閉し、且つ異なる踏み込み量で開閉
する2個のスイッチを備え、各スイッチのオン/オフの
時間差に基づき踏み込み速度を検出するように構成でき
る。
When the stepping speed is used as the stepping state, the detecting means may be constituted by a speed detecting mechanism. More specifically, this speed detection mechanism includes two switches that open and close in conjunction with the depression of the pedal and open and close with different depression amounts, and detects the depression speed based on the on / off time difference of each switch. Can be configured.

【0019】また、踏み込み状態として踏み込み量が用
いられる場合は、上記検出手段は、ボリューム機構で構
成できる。ボリューム機構は、より具体的には、ペダル
の踏み込み量に応じて回転することにより異なる抵抗値
を示すボリュームを用い、このボリュームからの信号に
より踏み込み量を検出するように構成できる。
When the depression amount is used as the depression state, the detection means can be constituted by a volume mechanism. More specifically, the volume mechanism can be configured to use a volume that exhibits a different resistance value by rotating according to the amount of depression of the pedal, and to detect the amount of depression by a signal from this volume.

【0020】上記ペダル音発生手段は、この検出手段で
ペダルの踏み込み速度又は踏み込み量が検出された場合
に、これら踏み込み速度又は踏み込み量に応じて異なる
ペダル音を発生する。この構成により、ペダルの踏み込
み速度又は踏み込み量によって異なるペダル音の微妙な
差をも模擬できるので、より自然楽器に近い雰囲気をだ
すことができる。
The pedal sound generating means generates different pedal sounds according to the stepping speed or the stepping amount when the detecting means detects the stepping speed or the stepping amount of the pedal. With this configuration, it is possible to simulate a delicate difference in pedal sound depending on the pedal depression speed or the pedal depression amount, so that an atmosphere closer to a natural musical instrument can be obtained.

【0021】前記ペダル音発生手段は、ペダルの踏み込
み状態に応じた複数のペダル音の波形データを記憶する
波形メモリを含み、前記検出手段で検出された踏み込み
状態に応じたペダル音の波形データを該波形メモリから
読み出し、該読み出された波形データに基づいてペダル
音を発生するように構成できる。
The pedal sound generating means includes a waveform memory for storing waveform data of a plurality of pedal sounds according to the depression state of the pedal, and stores the waveform data of the pedal sound corresponding to the depression state detected by the detection means. It can be configured to read from the waveform memory and generate a pedal sound based on the read waveform data.

【0022】この場合も、上述した本発明の第1の態様
に係る電子楽器と同様に、波形メモリには種々の形式の
波形データを記憶させることができ、また、ペダルの種
類別に波形データを用意することができる。
In this case as well, similarly to the electronic musical instrument according to the first aspect of the present invention, various types of waveform data can be stored in the waveform memory. Can be prepared.

【0023】[0023]

【発明の実施の形態】以下、本発明の電子楽器の実施の
形態につき図面を参照しながら詳細に説明する。なお、
以下においては、検出手段として速度検出機構が用いら
れる場合について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an electronic musical instrument according to the present invention will be described below in detail with reference to the drawings. In addition,
Hereinafter, a case where a speed detection mechanism is used as the detection means will be described.

【0024】図1は、本発明の電子楽器の構成を示すブ
ロック図である。この電子楽器においては、中央処理装
置(以下、「CPU」という)10、プログラムメモリ
11、ワークメモリ12、パネルインタフェース回路1
3、鍵盤インタフェース回路17及び音源回路19がバ
ス30によって相互に接続されている。バス30は、例
えばアドレス信号、データ信号、制御信号等を伝送する
信号線で構成されており、上記各要素間でデータを送受
するために使用される。
FIG. 1 is a block diagram showing the configuration of the electronic musical instrument of the present invention. In this electronic musical instrument, a central processing unit (hereinafter, referred to as “CPU”) 10, a program memory 11, a work memory 12, a panel interface circuit 1
3. The keyboard interface circuit 17 and the tone generator circuit 19 are interconnected by a bus 30. The bus 30 is constituted by signal lines for transmitting, for example, address signals, data signals, control signals, and the like, and is used for transmitting and receiving data between the above-described elements.

【0025】CPU10は、プログラムメモリ11に記
憶されている制御プログラムに従って、電子楽器が備え
るべき各種機能を実現するための処理を行う。例えば、
CPU10は、鍵盤操作に応じた鍵盤処理、パネル操作
に応じたパネル処理、ペダル操作に応じたペダル処理、
その他の処理を行う。
The CPU 10 performs processing for realizing various functions that the electronic musical instrument should have according to the control program stored in the program memory 11. For example,
The CPU 10 performs keyboard processing according to keyboard operations, panel processing according to panel operations, pedal processing according to pedal operations,
Perform other processing.

【0026】プログラムメモリ11は、例えばリードオ
ンリメモリ(以下、「ROM」という)で構成すること
ができる。このプログラムメモリ11には、上述した制
御プログラムの他に、CPU10が使用する種々の固定
データ、音色を指定するための音色パラメータ等が記憶
されている。
The program memory 11 can be composed of, for example, a read-only memory (hereinafter referred to as “ROM”). The program memory 11 stores various fixed data used by the CPU 10, timbre parameters for specifying timbres, and the like, in addition to the control program described above.

【0027】音色パラメータは、例えば複数の楽器音の
それぞれについて複数の音域毎に設けられている。ま
た、本発明に特に関係する音色パラメータとして、ダン
パペダル、ソフトペダル及びソステヌートペダルの各ペ
ダル音に対応する音色パラメータが、各ペダルの複数の
踏み込み速度に対応して用意されている。各音色パラメ
ータは、例えば波形アドレス、周波数データ、エンベロ
ープデータ、フィルタ係数等で構成されている。
The timbre parameters are provided for each of a plurality of musical ranges, for example, for each of a plurality of instrument sounds. As tone color parameters particularly related to the present invention, tone color parameters corresponding to pedal sounds of a damper pedal, a soft pedal, and a sostenuto pedal are prepared corresponding to a plurality of depression speeds of each pedal. Each tone color parameter includes, for example, a waveform address, frequency data, envelope data, a filter coefficient, and the like.

【0028】ワークメモリ12は、例えばランダムアク
セスメモリ(以下、「RAM」という)で構成すること
ができる。このワークメモリ12は、CPU10が処理
する種々のデータを一時的に記憶する。このワークメモ
リ12には、例えば各種テーブル、バッファ、レジス
タ、カウンタ、フラグ等が設けられている。これらの詳
細については、以下において必要の都度説明する。
The work memory 12 can be constituted by, for example, a random access memory (hereinafter, referred to as "RAM"). The work memory 12 temporarily stores various data processed by the CPU 10. The work memory 12 is provided with, for example, various tables, buffers, registers, counters, flags, and the like. These details will be described below as necessary.

【0029】パネルインタフェース回路13には操作パ
ネル14及び速度検出機構が接続されている。この速度
検出機構15には更にペダル16が取り付けられてい
る。
An operation panel 14 and a speed detecting mechanism are connected to the panel interface circuit 13. A pedal 16 is further attached to the speed detection mechanism 15.

【0030】操作パネル14には、例えば図示しない各
種スイッチ、数値入力装置、インジケータ、ディスプレ
イ装置等が設けられている。各種スイッチには、例えば
モード設定スイッチ、音色選択スイッチ、エフェクト選
択スイッチ等が含まれる。また、数値入力装置は各種数
値を入力するために使用され、例えばアップダウンスイ
ッチ、ジョグダイヤル、テンキー等で構成することがで
きる。また、ディスプレイ装置は、各種メッセージを表
示するために使用される。このディスプレイ装置として
は、例えばLCDディスプレイ装置、LEDディスプレ
イ装置、CRTディスプレイ装置、その他のキャラクタ
が表示可能な各種ディスプレイ装置を用いることができ
る。
The operation panel 14 is provided with, for example, various switches (not shown), numerical input devices, indicators, display devices, and the like. The various switches include, for example, a mode setting switch, a tone selection switch, an effect selection switch, and the like. The numerical value input device is used for inputting various numerical values, and can be constituted by, for example, an up / down switch, a jog dial, a numeric keypad, or the like. The display device is used to display various messages. As the display device, for example, an LCD display device, an LED display device, a CRT display device, and various other display devices capable of displaying characters can be used.

【0031】ペダル16には、ダンパペダル、ソフトペ
ダル及びソステヌートペダルが含まれる。各ペダルには
速度検出機構15が設けられている。この速度検出機構
15は、各ペダル毎に、ペダルの踏み込みに連動して開
閉し、且つ異なる踏み込み量で開閉する2個のスイッ
チ、即ち第1スイッチと第2スイッチとで構成されてい
る。ペダルが踏み込まれた場合は第1スイッチが先にオ
ンになり、その後第2スイッチがオンになるものとす
る。各スイッチのオン/オフを示す信号は、ペダルデー
タとしてパネルインタフェース回路13を介してCPU
10に送られる。CPU10は、第1スイッチがオンに
なってから第2スイッチがオンになるまでの時間を測定
し、この測定結果に基づいてペダルの踏み込み速度を算
出する。上記第1スイッチ及び第2スイッチは、機械的
なスイッチであってもよいし、光学的なスイッチであっ
てもよい。
The pedal 16 includes a damper pedal, a soft pedal, and a sostenuto pedal. Each pedal is provided with a speed detection mechanism 15. The speed detection mechanism 15 includes, for each pedal, two switches that open and close in conjunction with the depression of the pedal and open and close with different depression amounts, that is, a first switch and a second switch. When the pedal is depressed, the first switch is turned on first, and then the second switch is turned on. A signal indicating ON / OFF of each switch is sent to the CPU via the panel interface circuit 13 as pedal data.
Sent to 10. The CPU 10 measures the time from when the first switch is turned on to when the second switch is turned on, and calculates the pedal depression speed based on the measurement result. The first switch and the second switch may be mechanical switches or optical switches.

【0032】パネルインタフェース回路13は、操作パ
ネル14及び速度検出機構15とCPU10との間のデ
ータの送受を制御する。即ち、パネルインタフェース回
路13は、操作パネル14から受け取った信号に基づき
パネルデータを生成し、これをCPU10に送る。この
パネルデータは、スイッチデータとダイヤルデータとで
構成されている。スイッチデータは、各スイッチを1ビ
ットに対応させたビット列で構成されている。ダイヤル
データは数値入力装置で入力された数値データで構成さ
れている。CPU10は、このパネルデータに基づいて
パネル操作に応じた各種処理を行う。また、パネルイン
タフェース回路13は、CPU10から受け取った表示
データを操作パネル14に送り出す。これにより、操作
パネル14のディスプレイ装置へのデータの表示、各種
インジケータの点灯/消灯の制御等が行われる。
The panel interface circuit 13 controls transmission and reception of data between the operation panel 14 and the speed detection mechanism 15 and the CPU 10. That is, the panel interface circuit 13 generates panel data based on the signal received from the operation panel 14 and sends the panel data to the CPU 10. This panel data is composed of switch data and dial data. The switch data is composed of a bit string in which each switch corresponds to one bit. The dial data is composed of numerical data input by a numerical input device. The CPU 10 performs various processes according to the panel operation based on the panel data. The panel interface circuit 13 sends out the display data received from the CPU 10 to the operation panel 14. Thereby, display of data on the display device of the operation panel 14, control of turning on / off of various indicators, and the like are performed.

【0033】また、パネルインタフェース回路13は、
速度検出機構15からのスイッチ信号を受け取り、これ
に基づいてペダルデータを生成し、これをCPU10に
送る。ペダルデータは、各ペダルを1ビットに対応させ
たビット列で構成されている。
Further, the panel interface circuit 13 comprises:
It receives a switch signal from the speed detection mechanism 15, generates pedal data based on the switch signal, and sends it to the CPU 10. The pedal data is composed of a bit string in which each pedal corresponds to one bit.

【0034】鍵盤インタフェース回路17には鍵盤装置
18が接続されている。鍵盤装置18は、発音/消音を
指示するための複数の鍵を有している。この鍵盤装置1
8には、例えば2接点方式の鍵が用いられている。即
ち、鍵盤装置18の各鍵は、押鍵又は離鍵に連動して開
閉する2個のキースイッチを有し、各キースイッチのオ
ン/オフの時間差に基づき鍵タッチを検出できるように
なっている。
A keyboard device 18 is connected to the keyboard interface circuit 17. The keyboard device 18 has a plurality of keys for instructing sound on / off. This keyboard device 1
8 uses, for example, a two-contact key. That is, each key of the keyboard device 18 has two key switches that open and close in response to key press or key release, and can detect a key touch based on a time difference between on / off of each key switch. I have.

【0035】鍵盤インタフェース回路17は、押鍵又は
離鍵に伴う各鍵のオン/オフ状態及び鍵タッチの強さを
検出する。即ち、鍵盤インタフェース回路17は、鍵盤
装置18から受け取った信号に基づき各鍵のオン/オフ
状態を示すキーデータ及び鍵タッチの強さを示すタッチ
データを生成し、CPU10に送る。CPU10は、キ
ーデータ及びタッチデータに基づいて、押鍵又は離鍵に
対応した発音又は消音処理を行う。
The keyboard interface circuit 17 detects the on / off state of each key and the strength of key touch in response to key press or key release. That is, the keyboard interface circuit 17 generates key data indicating the on / off state of each key and touch data indicating the strength of key touch based on the signal received from the keyboard device 18 and sends them to the CPU 10. The CPU 10 performs sound generation or mute processing corresponding to key press or key release based on the key data and the touch data.

【0036】音源回路19には、波形メモリ191及び
D/A変換器192が接続されている。波形メモリ19
1は、波形データを記憶するものであり、例えばROM
で構成される。この波形メモリ191には、複数の音色
パラメータのそれぞれに対応した複数の波形データが記
憶されている。波形データは、例えば放音された楽音を
電気信号に変換し、これをパルスコード変調(PCM)
して作成することができる。ペダル音の波形データは、
鍵盤を弾かない状態でペダル16を踏み込み、この時発
生される音に基づいて作成される。この場合、各ペダル
は異なる速度で複数回踏み込まれ、踏み込み速度毎に波
形データが作成される。この波形メモリ191は、音源
回路19によりアクセスされる。
A waveform memory 191 and a D / A converter 192 are connected to the tone generator 19. Waveform memory 19
1 stores waveform data, for example, a ROM
It consists of. The waveform memory 191 stores a plurality of waveform data corresponding to each of a plurality of tone color parameters. The waveform data is obtained, for example, by converting a emitted musical tone into an electric signal, and converting this into a pulse code modulation (PCM)
Can be created. The pedal sound waveform data
The pedal 16 is depressed without playing the keyboard, and is created based on the sound generated at this time. In this case, each pedal is depressed a plurality of times at different speeds, and waveform data is created for each depressing speed. This waveform memory 191 is accessed by the tone generator 19.

【0037】音源回路19は、例えばデジタルシグナル
プロセッサ(DSP)で構成することができる。この音
源回路19は、複数の発音チャンネルを有しており、C
PU10からの指示に応じて楽音信号を発生する。即
ち、音源回路19は、CPU10から発音チャンネルを
指定するデータと音色パラメータを受け取ると、指定さ
れた発音チャンネルをアクティブにする。アクティブに
された発音チャンネルは、波形メモリ191から音色パ
ラメータに対応する波形データを読み出し、これにエン
ベロープを付加してデジタル楽音信号を生成し、D/A
変換器192に送出する。
The tone generator 19 can be composed of, for example, a digital signal processor (DSP). This tone generator circuit 19 has a plurality of sound channels,
A tone signal is generated according to an instruction from the PU 10. That is, when the tone generator 19 receives the data specifying the sound channel and the timbre parameter from the CPU 10, the tone generator 19 activates the specified sound channel. The activated tone generation channel reads out waveform data corresponding to the timbre parameter from the waveform memory 191 and adds an envelope to the waveform data to generate a digital tone signal.
Transmitted to the converter 192.

【0038】D/A変換器192は、入力されたデジタ
ル楽音信号をアナログ楽音信号に変換する。このD/A
変換器192からの出力は、増幅器193に供給され
る。増幅器193は、入力された楽音信号を増幅してス
ピーカ194に送る。スピーカ194は、増幅器193
からの楽音信号を音響信号に変換して出力する。これに
より、スピーカ194から楽音が発生される。
The D / A converter 192 converts the input digital tone signal into an analog tone signal. This D / A
The output from converter 192 is provided to amplifier 193. The amplifier 193 amplifies the input musical tone signal and sends it to the speaker 194. The speaker 194 is an amplifier 193
Is converted into a sound signal and output. Thus, a musical sound is generated from the speaker 194.

【0039】次に、上記の構成において、本発明の実施
の形態に係る電子楽器の動作について、図2〜図4のフ
ローチャートを参照しながら説明する。
Next, the operation of the electronic musical instrument according to the embodiment of the present invention in the above configuration will be described with reference to the flowcharts of FIGS.

【0040】図2は、本電子楽器のメイン処理を示すフ
ローチャートである。このメイン処理ルーチンは、電源
の投入により起動される。即ち、電源が投入されると、
先ず、初期化処理が行われる(ステップS10)。この
初期化処理では、CPU10の内部がリセットされると
共に、ワークメモリ12に定義されているバッファ、レ
ジスタ、カウンタ、フラグ等が初期状態に設定される。
FIG. 2 is a flowchart showing the main processing of the electronic musical instrument. This main processing routine is started when the power is turned on. That is, when the power is turned on,
First, an initialization process is performed (step S10). In this initialization process, the inside of the CPU 10 is reset, and buffers, registers, counters, flags, and the like defined in the work memory 12 are set to an initial state.

【0041】この初期化処理が終了すると、次いで、パ
ネル処理が行われる(ステップS11)。パネル処理で
は、先ず、操作パネル14がスキャンされる。これによ
り、操作パネル14からパネルインタフェース回路13
を介してパネルデータが読み込まれる。そして、このパ
ネルデータの中のスイッチデータ(以下、これを「新ス
イッチデータ」という)と、前回のパネル処理で操作パ
ネル14から読み込まれ、既にワークメモリ12の所定
領域に記憶されているスイッチデータ(以下、「旧スイ
ッチデータ」という)との排他的論理和演算が行われ
る。この演算結果は、パネルイベントマップとして、ワ
ークメモリ12の所定領域に格納される。その後、新ス
イッチデータは旧スイッチデータとしてワークメモリ1
2の所定領域に格納される。
When the initialization process is completed, a panel process is performed (step S11). In the panel processing, first, the operation panel 14 is scanned. As a result, the operation panel 14 allows the panel interface circuit 13
The panel data is read via. The switch data in the panel data (hereinafter referred to as “new switch data”) and the switch data read from the operation panel 14 in the previous panel processing and already stored in a predetermined area of the work memory 12 are stored. (Hereinafter referred to as “old switch data”). This calculation result is stored in a predetermined area of the work memory 12 as a panel event map. After that, the new switch data is used as the old switch data in the work memory 1
2 in a predetermined area.

【0042】次いで、各スイッチのオンイベントがある
かどうかが調べられる。これは、上記パネルイベントマ
ップ中の当該スイッチに対応するビット及び新スイッチ
データ中の当該スイッチに対応するビットの双方がオン
になっているかどうかを調べることにより行われる。
Next, it is checked whether or not each switch has an ON event. This is performed by checking whether both the bit corresponding to the switch in the panel event map and the bit corresponding to the switch in the new switch data are on.

【0043】ここで、スイッチのオンイベントがあるこ
とが判断されると、当該スイッチに応じた処理が行われ
る。例えば、モード設定スイッチのオンイベントであれ
ばモードを変更する処理が、音色選択スイッチのオンイ
ベントであれば音色を選択する処理が、それぞれ行われ
る。また、これらの処理においては、必要に応じてディ
スプレイ装置に文字等を表示する処理、図示しないイン
ジケータの点灯/消灯処理等が行われる。
Here, when it is determined that there is an ON event of the switch, a process corresponding to the switch is performed. For example, if the mode setting switch is an on event, a process for changing the mode is performed, and if the mode selection switch is an on event, a process for selecting a timbre is performed. In these processes, a process of displaying characters and the like on a display device and a process of turning on / off an indicator (not shown) are performed as necessary.

【0044】また、数値入力装置のイベントがあること
が判断されると、その時点で設定されているモードに応
じて所定の数値が入力される。例えば電子楽器が音色選
択モードに設定されている場合は、数値入力装置で入力
された数値が音色番号として記憶される。これにより新
しい音色が決定されることになる。この場合、ディスプ
レイ装置には、入力された音色番号が表示される。
When it is determined that there is an event of the numerical value input device, a predetermined numerical value is input according to the mode set at that time. For example, when the electronic musical instrument is set to the timbre selection mode, the numerical value input by the numerical value input device is stored as the timbre number. As a result, a new timbre is determined. In this case, the input timbre number is displayed on the display device.

【0045】以上のパネル処理が終了すると、次いで、
鍵盤処理が行われる(ステップS12)。この鍵盤処理
では、発音処理、消音処理等が行われる。これによっ
て、鍵盤装置18の操作に応じた楽音が発生される。
When the above panel processing is completed,
Keyboard processing is performed (step S12). In this keyboard processing, sound generation processing, mute processing, and the like are performed. Thereby, a musical tone corresponding to the operation of the keyboard device 18 is generated.

【0046】次いで、ペダル処理が行われる(ステップ
S13)。このペダル処理では、ペダル16が踏み込ま
れた場合にペダル音を発生させるための処理が行われ
る。このペダル処理の詳細については、後述する。
Next, pedal processing is performed (step S13). In this pedal process, a process for generating a pedal sound when the pedal 16 is depressed is performed. The details of the pedal process will be described later.

【0047】次いで、「その他の処理」が行われる(ス
テップS14)。この「その他の処理」では、例えば図
示しないMIDIインタフェース回路を介して外部のM
IDI機器との間でMIDIデータを送受信する処理等
が行われる。その後、ステップS11に戻り、以下、同
様の処理が繰り返される。
Next, "other processing" is performed (step S14). In this “other processing”, for example, an external M
Processing for transmitting and receiving MIDI data to and from the IDI device is performed. Thereafter, the process returns to step S11, and the same processing is repeated thereafter.

【0048】このように、メイン処理ルーチンの上記ス
テップS11〜S14の繰り返し実行の過程でパネル操
作又は鍵盤操作が行われると、その操作に対応する処理
が行われる。これにより、電子楽器としての各種機能が
実現されている。
As described above, when the panel operation or the keyboard operation is performed in the process of repeatedly executing steps S11 to S14 of the main processing routine, the processing corresponding to the operation is performed. Thereby, various functions as an electronic musical instrument are realized.

【0049】次に、ペダル処理の詳細について、図3の
フローチャートを参照しながら説明する。このペダル処
理ルーチンは、メイン処理ルーチンから一定周期でコー
ルされる。
Next, details of the pedal processing will be described with reference to the flowchart of FIG. This pedal processing routine is called at regular intervals from the main processing routine.

【0050】ペダル処理では、先ず、ペダルスキャン処
理が行われる(ステップS20)。このペダルスキャン
処理では、速度検出機構15からパネルインタフェース
回路13を介してペダルデータが読み込まれる。そし
て、このペダルデータ(以下、これを「新ペダルデー
タ」という)と、前回のペダル処理で速度検出機構15
から読み込まれ、既にワークメモリ12の所定領域に記
憶されているペダルデータ(以下、「旧ペダルデータ」
という)との排他的論理和演算が行われる。この演算結
果は、ペダルイベントマップとして、ワークメモリ12
の所定領域に格納される。その後、新ペダルデータが旧
ペダルデータとしてワークメモリ12の所定領域に格納
される。
In the pedal process, first, a pedal scan process is performed (step S20). In this pedal scan processing, pedal data is read from the speed detection mechanism 15 via the panel interface circuit 13. The pedal data (hereinafter referred to as “new pedal data”) and the speed detection mechanism 15
, And stored in a predetermined area of the work memory 12 (hereinafter referred to as “old pedal data”).
Exclusive OR operation is performed. This calculation result is stored in the work memory 12 as a pedal event map.
Is stored in a predetermined area. Thereafter, the new pedal data is stored in a predetermined area of the work memory 12 as old pedal data.

【0051】次いで、ペダルイベントがあるかどうかが
調べられる(ステップS21)。これは、ペダルイベン
トマップがゼロであるかどうかを調べることにより行わ
れる。ちなみに、ペダルイベントマップがゼロであると
いうことは、前回のペダルスキャン時からペダル16の
状態が変化していないことを表す。このステップS21
でペダルイベントがないことが判断されると、シーケン
スはこのペダル処理ルーチンからメイン処理ルーチンに
リターンする。
Next, it is checked whether or not there is a pedal event (step S21). This is done by checking if the pedal event map is zero. Incidentally, the fact that the pedal event map is zero indicates that the state of the pedal 16 has not changed since the previous pedal scan. This step S21
If it is determined that there is no pedal event, the sequence returns from the pedal processing routine to the main processing routine.

【0052】一方、上記ステップS21でペダルイベン
トがあることが判断されると、次いで、該イベントはダ
ンパペダルの第1スイッチのオンイベントであるかどう
かが調べられる(ステップS22)。これは、ペダルイ
ベントマップ及び新ペダルデータ中のダンパペダルの第
1スイッチに対応するビットが双方とも「1」であるか
どうかを調べることにより行われる。
On the other hand, if it is determined in step S21 that there is a pedal event, then it is checked whether the event is an ON event of the first switch of the damper pedal (step S22). This is performed by checking whether the bits corresponding to the first switch of the damper pedal in the pedal event map and the new pedal data are both "1".

【0053】上記ステップS22でダンパペダルの第1
スイッチのオンイベントであることが判断されると、ダ
ンパペダルタイマがクリアされる(ステップS23)。
ダンパペダルタイマは、ワークメモリ12に設けられる
タイマであり、図示しないタイマ割込信号に応じて一定
時間毎にカウントアップされる。その後、シーケンスは
このペダル処理ルーチンからメイン処理ルーチンにリタ
ーンする。これにより、ダンパペダルの踏み込み速度の
計測が開始される。
In step S22, the first damper pedal is released.
If it is determined that the event is a switch ON event, the damper pedal timer is cleared (step S23).
The damper pedal timer is a timer provided in the work memory 12 and counts up at regular intervals in response to a timer interrupt signal (not shown). Thereafter, the sequence returns from the pedal processing routine to the main processing routine. Thus, the measurement of the stepping speed of the damper pedal is started.

【0054】上記ステップS22でダンパペダルの第1
スイッチのオンイベントでないことが判断されると、次
いで、ダンパペダルの第2スイッチのオンイベントがあ
るかどうかが調べられる(ステップS24)。これは、
ペダルイベントマップ及び新ペダルデータ中のダンパペ
ダルの第2スイッチに対応するビットが双方とも「1」
であるかどうかを調べることにより行われる。
In the above step S22, the first operation of the damper pedal is performed.
If it is determined that the event is not the switch on event, then it is checked whether or not there is an on event of the second switch of the damper pedal (step S24). this is,
The bits corresponding to the second switch of the damper pedal in the pedal event map and the new pedal data are both "1".
This is done by checking if

【0055】上記ステップS24でダンパペダルの第2
スイッチのオンイベントであることが判断されると、速
度算出処理が行われる(ステップS25)。即ち、その
時点でダンパペダルタイマにセットされている値が速度
値に換算される。次いで、発音処理が行われる(ステッ
プS26)。この発音処理では、先ず、音源回路19の
所定の発音チャンネルが発音用に割り当てられる。そし
て、上記速度算出処理によって得られた速度値に応じた
音色パラメータがプログラムメモリ11から読み出さ
れ、上記割り当てられた発音チャンネルに送られる。こ
れにより、割り当てられた発音チャンネルにおいて、上
記音色パラメータに基づいたデジタル楽音信号が生成さ
れ、これがD/A変換器192、増幅器193及びスピ
ーカ194に順次送られる。これにより、ダンパペダル
の踏み込み速度に応じたダンパペダルのペダル音が発生
される。
In step S24, the second operation of the damper pedal is performed.
If it is determined that the event is a switch ON event, a speed calculation process is performed (step S25). That is, the value set in the damper pedal timer at that time is converted into a speed value. Next, a sound generation process is performed (step S26). In this sound generation processing, first, a predetermined sound generation channel of the tone generator 19 is allocated for sound generation. Then, a tone color parameter corresponding to the speed value obtained by the speed calculation process is read from the program memory 11 and sent to the assigned tone generation channel. As a result, a digital tone signal based on the tone color parameter is generated in the assigned tone generation channel, and is sequentially transmitted to the D / A converter 192, the amplifier 193, and the speaker 194. As a result, a pedal sound of the damper pedal is generated according to the depressing speed of the damper pedal.

【0056】次いで、ダンパ処理が行われる(ステップ
S27)。この処理は、これから発音される音及び既に
発音中音のリリース時間を長くする処理である。具体的
には、CPU10から音源回路19に送られてくる音色
パラメータに含まれるエンベロープデータのリリースフ
ェーズの目標到達時間が長くなるように変更すると共
に、既に発音に使用されているエンベロープデータのリ
リースフェーズの目標到達時間が長くなるように変更す
る処理が行われる。その後、シーケンスはこのペダル処
理ルーチンからメインルーチンにリターンする。
Next, a damper process is performed (step S27). This process is to increase the release time of the sound to be generated and the sound that is already being generated. More specifically, the target phase of the release phase of the envelope data included in the timbre parameter sent from the CPU 10 to the tone generator 19 is changed to be longer, and the release phase of the envelope data already used for sound generation is changed. Is performed so as to increase the target arrival time. Thereafter, the sequence returns from the pedal processing routine to the main routine.

【0057】上記ステップS24でダンパペダルの第2
スイッチのオンイベントでないことが判断されると、次
いで、ソフトペダルの第1スイッチのオンイベントであ
るかどうかが調べられる(ステップS28)。これは、
ペダルイベントマップ及び新ペダルデータ中のソフトペ
ダルの第1スイッチに対応するビットが双方とも「1」
であるかどうかを調べることにより行われる。
In step S24, the second operation of the damper pedal is performed.
If it is determined that the event is not the switch ON event, then it is checked whether the event is the ON event of the first switch of the soft pedal (step S28). this is,
Bits corresponding to the first switch of the soft pedal in the pedal event map and the new pedal data are both "1".
This is done by checking if

【0058】ここでソフトペダルの第1スイッチのオン
イベントであることが判断されると、ソフトペダルタイ
マがクリアされる(ステップS29)。ソフトペダルタ
イマは、ワークメモリ12に設けられるタイマであり、
図示しないタイマ割込信号に応じて一定時間毎にカウン
トアップされる。その後、シーケンスはこのペダル処理
ルーチンからメイン処理ルーチンにリターンする。これ
により、ソフトペダルの踏み込み速度の計測が開始され
る。
If it is determined that the event is the ON event of the first switch of the soft pedal, the soft pedal timer is cleared (step S29). The soft pedal timer is a timer provided in the work memory 12,
It is counted up at regular intervals according to a timer interrupt signal (not shown). Thereafter, the sequence returns from the pedal processing routine to the main processing routine. Thus, the measurement of the depressing speed of the soft pedal is started.

【0059】上記ステップS28でソフトペダルの第1
スイッチのオンイベントでないことが判断されると、次
いで、ソフトペダルの第2スイッチのオンイベントがあ
るかどうかが調べられる(ステップS30)。これは、
ペダルイベントマップ及び新ペダルデータ中のソフトペ
ダルの第2スイッチに対応するビットが双方とも「1」
であるかどうかを調べることにより行われる。
In step S28, the first soft pedal is released.
If it is determined that the event is not a switch on event, then it is checked whether there is an on event of the second switch of the soft pedal (step S30). this is,
The bits corresponding to the second switch of the soft pedal in the pedal event map and the new pedal data are both "1".
This is done by checking if

【0060】上記ステップS30でソフトペダルの第2
スイッチのオンイベントであることが判断されると、速
度算出処理が行われる(ステップS31)。即ち、その
時点でソフトペダルタイマにセットされている値が速度
値に換算される。次いで、発音処理が行われる(ステッ
プS32)。この発音処理では、上述したステップS2
6の処理と同様の手順で行われる。これにより、ソフト
ペダルの踏み込み速度に応じたソフトペダルのペダル音
が発生される。
In step S30, the second soft pedal
If it is determined that the event is a switch ON event, a speed calculation process is performed (step S31). That is, the value set in the soft pedal timer at that time is converted into a speed value. Next, a sound generation process is performed (step S32). In this sound generation process, the above-described step S2
6 is performed in the same procedure. As a result, a pedal sound of the soft pedal is generated according to the depressing speed of the soft pedal.

【0061】次いで、ソフト処理が行われる(ステップ
S33)。この処理は、発音される音の音量を小さくす
る処理である。具体的には、CPU10から音源回路1
9に音色パラメータが送られてきた場合に、その音色パ
ラメータに含まれるエンベロープデータの全フェーズの
目標レベルを低くする処理が行われる。その後、シーケ
ンスはこのペダル処理ルーチンからメインルーチンにリ
ターンする。
Next, software processing is performed (step S33). This process is a process for reducing the volume of the sound to be generated. Specifically, the CPU 10 sends the sound source circuit 1
When the timbre parameter is sent to 9, a process of lowering the target level of all phases of the envelope data included in the timbre parameter is performed. Thereafter, the sequence returns from the pedal processing routine to the main routine.

【0062】上記ステップS30でソフトペダルの第2
スイッチのオンイベントでないことが判断されると、次
いで、ソステヌートペダルの第1スイッチのオンイベン
トがあるかどうかが調べられる(ステップS34)。こ
れは、ペダルイベントマップ及び新ペダルデータ中のソ
ステヌートペダルの第1スイッチに対応するビットが双
方とも「1」であるかどうかを調べることにより行われ
る。
In step S30, the second soft pedal
If it is determined that the event is not a switch ON event, then it is checked whether there is an ON event of the first switch of the sostenuto pedal (step S34). This is performed by checking whether the bits corresponding to the first switch of the sostenuto pedal in the pedal event map and the new pedal data are both "1".

【0063】ここでソステヌートペダルの第1スイッチ
のオンイベントであることが判断されると、ソステヌー
トペダルタイマがクリアされる(ステップS35)。ソ
ステヌートペダルタイマは、ワークメモリ12に設けら
れるタイマであり、図示しないタイマ割込信号に応じて
一定時間毎にカウントアップされる。その後、シーケン
スはこのペダル処理ルーチンからメイン処理ルーチンに
リターンする。これにより、ソステヌートペダルの踏み
込み速度の計測が開始される。
When it is determined that the event is the ON event of the first switch of the sostenuto pedal, the sostenuto pedal timer is cleared (step S35). The sostenuto pedal timer is a timer provided in the work memory 12 and counts up at regular intervals according to a timer interrupt signal (not shown). Thereafter, the sequence returns from the pedal processing routine to the main processing routine. Thus, the measurement of the depressing speed of the sostenuto pedal is started.

【0064】上記ステップS34でソステヌートペダル
の第1スイッチのオンイベントでないことが判断される
と、次いで、ソステヌートペダルの第2スイッチのオン
イベントがあるかどうかが調べられる(ステップS3
6)。これは、ペダルイベントマップ及び新ペダルデー
タ中のソステヌートペダルの第2スイッチに対応するビ
ットが双方とも「1」であるかどうかを調べることによ
り行われる。
If it is determined in step S34 that the event is not the ON event of the first switch of the sostenuto pedal, then it is checked whether there is an ON event of the second switch of the sostenuto pedal (step S3).
6). This is performed by checking whether the bits corresponding to the second switch of the sostenuto pedal in the pedal event map and the new pedal data are both “1”.

【0065】上記ステップS36でソステヌートペダル
の第2スイッチのオンイベントであることが判断される
と、速度算出処理が行われる(ステップS37)。即
ち、その時点でソステヌートペダルタイマにセットされ
ている値が速度値に換算される。次いで、発音処理が行
われる(ステップS38)。この発音処理では、上述し
たステップS26の処理と同様の手順で行われる。これ
により、ソステヌートペダルの踏み込み速度に応じたソ
ステヌートペダルのペダル音が発生される。
If it is determined in step S36 that the event is the ON event of the second switch of the sostenuto pedal, a speed calculation process is performed (step S37). That is, the value set in the sostenuto pedal timer at that time is converted into a speed value. Next, a sound generation process is performed (step S38). This sound generation processing is performed in the same procedure as the processing in step S26 described above. As a result, a pedal sound of the sostenuto pedal is generated according to the depressing speed of the sostenuto pedal.

【0066】次いで、ソステヌート処理が行われる(ス
テップS39)。この処理は、ソステヌートペダルが踏
まれた時に発音中の音のリリース時間を長くする処理で
ある。具体的には、CPU10から音源回路19に送ら
れてきて既に発音に使用されている音色パラメータに含
まれるエンベロープデータのリリースフェーズの目標到
達時間が長くなるように変更する処理が行われる。その
後、シーケンスはこのペダル処理ルーチンからメインル
ーチンにリターンする。
Next, a sostenuto process is performed (step S39). This processing is to increase the release time of the sound being generated when the sostenuto pedal is depressed. Specifically, a process of changing the target arrival time of the release phase of the envelope data, which is sent from the CPU 10 to the tone generator 19 and included in the timbre parameters already used for tone generation, is performed to be long. Thereafter, the sequence returns from the pedal processing routine to the main routine.

【0067】以上説明したように、本発明の実施の形態
に係る電子楽器によれば、ペダルが踏まれた時に、その
踏まれた速度に応じてペダル音を発生するようにしたの
で、例えばアコースティックピアノといった自然楽器の
音がより厳密に模擬されることになり、より自然楽器に
近い雰囲気をだすことができる。
As described above, according to the electronic musical instrument according to the embodiment of the present invention, when the pedal is depressed, the pedal sound is generated according to the depressed speed. The sound of a natural instrument such as a piano is more closely simulated, and an atmosphere closer to a natural instrument can be obtained.

【0068】なお、本発明の第2の態様の電子楽器にお
ける「踏み込み状態」が踏み込み毒度である場合につい
て説明したが、「踏み込み状態」として踏み込み量が使
用される場合は、速度検出機構15の代わりにボリュー
ム機構が用いられる。このボリューム機構は、例えばエ
クスプレッションペダルのように、ペダルの踏み込み量
に応じて回転することにより異なる抵抗値を示すボリュ
ームを用ることができる。CPU10は、このボリュー
ムからの信号により踏み込み量を検出する。
In the electronic musical instrument according to the second embodiment of the present invention, the case where the "stepping state" is the degree of stepping poison has been described. However, when the stepping amount is used as the "stepping state", the speed detecting mechanism 15 is used. Is replaced by a volume mechanism. This volume mechanism can use a volume, such as an expression pedal, that exhibits a different resistance value by rotating according to the amount of depression of the pedal. The CPU 10 detects the amount of depression based on a signal from the volume.

【0069】この構成によれば、例えばペダルを最大量
踏み込んだ時に該ペダルがストッパに衝突する音をも模
擬できるので、自然楽器に近い雰囲気を出すことができ
る。なお、踏み込み速度と踏み込み量の両方を検出し、
これらの組み合わせに応じてペダル音を発生するように
構成することもできる。
According to this structure, for example, the sound of the pedal colliding with the stopper when the pedal is depressed by the maximum amount can be simulated, so that an atmosphere close to a natural musical instrument can be produced. Note that both the stepping speed and the stepping amount are detected,
It is also possible to configure so as to generate a pedal sound in accordance with these combinations.

【0070】[0070]

【発明の効果】以上詳述したように、本発明によれば、
ペダル操作に応じた音を忠実に模擬することにより自然
楽器に近い雰囲気を出すことのできる電子楽器を提供で
きる。
As described in detail above, according to the present invention,
An electronic musical instrument capable of producing an atmosphere close to a natural musical instrument by faithfully simulating a sound corresponding to a pedal operation can be provided.

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

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

【図2】本発明の実施の形態で使用されるメイン処理を
示すフローチャートである。
FIG. 2 is a flowchart showing a main process used in the embodiment of the present invention.

【図3】本発明の実施の形態で使用されるペダル処理を
示すフローチャート(その1)である。
FIG. 3 is a flowchart (part 1) illustrating a pedal process used in the embodiment of the present invention.

【図4】本発明の実施の形態で使用されるペダル処理を
示すフローチャート(その1)である。
FIG. 4 is a flowchart (part 1) illustrating a pedal process used in the embodiment of the present invention.

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

10 CPU 11 プログラムメモリ 12 ワークメモリ 13 パネルインタフェース回路 14 操作パネル 15 速度検出機構 16 ペダル 17 鍵盤インタフェース回路 18 鍵盤装置 19 音源回路 191 波形メモリ 192 D/A変換器 193 増幅器 194 スピーカ Reference Signs List 10 CPU 11 Program memory 12 Work memory 13 Panel interface circuit 14 Operation panel 15 Speed detection mechanism 16 Pedal 17 Keyboard interface circuit 18 Keyboard device 19 Sound source circuit 191 Waveform memory 192 D / A converter 193 Amplifier 194 Speaker

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】ペダルと、 該ペダルの踏み込みの有無を検出する検出手段と、 該検出手段で該ペダルが踏み込まれたことが検出された
場合にペダル音を発生するペダル音発生手段、とを備え
た電子楽器。
1. A pedal, detecting means for detecting whether or not the pedal is depressed, and pedal sound generating means for generating a pedal sound when the detecting means detects that the pedal is depressed. Electronic musical instrument equipped.
【請求項2】前記ペダル音発生手段は、ペダル音の波形
データを記憶する波形メモリを含み、前記検出手段でペ
ダルが踏み込まれたことが検出された場合に該波形メモ
リからペダル音の波形データを読み出し、該読み出され
た波形データに基づいてペダル音を発生する請求項1に
記載の電子楽器。
2. The apparatus according to claim 1, wherein said pedal sound generating means includes a waveform memory for storing waveform data of the pedal sound. When the detecting means detects that the pedal is depressed, the waveform data of the pedal sound is read from the waveform memory. 2. The electronic musical instrument according to claim 1, wherein the electronic musical instrument generates a pedal sound based on the read waveform data.
【請求項3】ペダルと、 該ペダルの踏み込み状態を検出する検出手段と、 該検出手段で検出された踏み込み状態に応じて異なるペ
ダル音を発生するペダル音発生手段、とを備えた電子楽
器。
3. An electronic musical instrument comprising: a pedal; detecting means for detecting a depressed state of the pedal; and pedal sound generating means for generating a different pedal sound in accordance with the depressed state detected by the detecting means.
【請求項4】前記ペダル音発生手段は、ペダルの踏み込
み状態に応じた複数のペダル音の波形データを記憶する
波形メモリを含み、前記検出手段で検出された踏み込み
状態に応じたペダル音の波形データを該波形メモリから
読み出し、該読み出された波形データに基づいてペダル
音を発生する請求項3に記載の電子楽器。
4. The pedal sound generating means includes a waveform memory for storing waveform data of a plurality of pedal sounds according to a depression state of a pedal, and a pedal sound waveform corresponding to a depression state detected by said detection means. 4. The electronic musical instrument according to claim 3, wherein data is read from the waveform memory, and a pedal sound is generated based on the read waveform data.
JP9145873A 1997-05-20 1997-05-20 Electronic musical instrument Pending JPH10319963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9145873A JPH10319963A (en) 1997-05-20 1997-05-20 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9145873A JPH10319963A (en) 1997-05-20 1997-05-20 Electronic musical instrument

Publications (1)

Publication Number Publication Date
JPH10319963A true JPH10319963A (en) 1998-12-04

Family

ID=15395032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9145873A Pending JPH10319963A (en) 1997-05-20 1997-05-20 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH10319963A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014059534A (en) * 2012-09-19 2014-04-03 Casio Comput Co Ltd Musical sound generator, musical sound generating method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014059534A (en) * 2012-09-19 2014-04-03 Casio Comput Co Ltd Musical sound generator, musical sound generating method, and program

Similar Documents

Publication Publication Date Title
JPH03174590A (en) Electronic musical instrument
JPH06259065A (en) Electronic musical instrument
JPH06195075A (en) Musical tone generating device
JPH0720866A (en) Electronic musical instrument
US5430242A (en) Electronic musical instrument
JPH10319963A (en) Electronic musical instrument
JP3624780B2 (en) Music control device
CN112447159A (en) Resonance sound signal generating method, resonance sound signal generating apparatus, recording medium, and electronic music apparatus
JP3045915B2 (en) Electronic musical instrument data setting device
JPH10319949A (en) Electronic musical instrument
JPH10124055A (en) Effect controlling device
JPH11175065A (en) Device and method for musical sound signal generation
JP3532047B2 (en) Tone signal generator and tone signal generation method
JP3226268B2 (en) Concert magic automatic performance device
JPH06242781A (en) Electronic musical instrument
JP2953217B2 (en) Electronic musical instrument
JP2003099055A (en) Function allocation display device for electronic musical instrument
JP2915753B2 (en) Electronic musical instrument
JP4186855B2 (en) Musical sound control device and program
JPH09297577A (en) Touch display device and sound volume display device
JPH07152374A (en) Electronic musical instrument
JPH08278781A (en) Sound source module
JPH07146681A (en) Electronic musical instrument
JPH06195077A (en) Musical tone generating device
JPH0816166A (en) Rhythm selecting device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040514

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040520

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040921