JP4935348B2 - Musical sound control device and musical sound control processing program - Google Patents
Musical sound control device and musical sound control processing program Download PDFInfo
- Publication number
- JP4935348B2 JP4935348B2 JP2006353603A JP2006353603A JP4935348B2 JP 4935348 B2 JP4935348 B2 JP 4935348B2 JP 2006353603 A JP2006353603 A JP 2006353603A JP 2006353603 A JP2006353603 A JP 2006353603A JP 4935348 B2 JP4935348 B2 JP 4935348B2
- Authority
- JP
- Japan
- Prior art keywords
- state
- effect
- soft
- soft pedal
- pedal
- 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
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
本発明は、楽音制御装置および楽音制御処理のプログラムに関し、特に、発音される楽音に付加する効果を制御する楽音制御装置および楽音制御処理のプログラムに関するものである。 The present invention relates to a musical tone control device and a program for musical tone control processing, and more particularly to a musical tone control device for controlling an effect added to a musical tone to be generated and a program for musical tone control processing.
アコースティックピアノにおいては、ソフトペダルを踏むことにより、弦を叩くハンマーの位置が横方向にシフトして、弦に対するフェルトの位置が変化するので、音色および音量が変化する。この場合において、ソフトペダルの踏み込み量に応じて音色および音量の変化を調整することができる。すなわち、踏み込み量が少ない場合には、音色がやわらくなるが音量は少ししか低下しない。踏み込み量を多くすると、音色が変化するとともに、音量も大きく低下する。
一方、高級な機種の電子鍵盤楽器においても、ソフトペダルに2つ以上の複数の接点を設けて、ソフトペダルの踏み込み量を段階的に検出することにより、アコースティックピアノを疑似するような楽音制御処理を行っている。
あるいは、鍵盤の押鍵頻度を検出して、鍵盤の操作による楽音に人声音すなわちボーカル音を付加する提案もなされている。例えば、ある先行技術文献の電子楽器においては、上鍵盤、下鍵盤、およびペダル鍵盤の押鍵頻度を検出し、その押鍵頻度に応じて人声音の音韻を切り換える構成が開示されている(特許文献1参照)。この電子楽器では、第3図又は第5図の押鍵頻度検出部4は、ボーカル音検出部6において検出される最高音押圧鍵がx回変化するのに要した合計時間、又は、一定時間内における最高音押圧鍵の変化回数から押鍵頻度を検出して、人声音の音韻を切り換える。
On the other hand, even in high-class electronic keyboard instruments, musical tone control processing that simulates an acoustic piano by providing two or more contacts to the soft pedal and detecting the stepping amount of the soft pedal step by step It is carried out.
Alternatively, it has been proposed to detect the frequency of key pressing and add a human voice, that is, a vocal sound, to a musical sound generated by operating the keyboard. For example, in an electronic musical instrument of a certain prior art document, a configuration is disclosed in which key press frequencies of an upper keyboard, a lower keyboard, and a pedal keyboard are detected and a phoneme tone is switched according to the key press frequency (patent) Reference 1). In this electronic musical instrument, the key pressing
しかしながら、ソフトペダルに単一の接点しか設けられていない安価な電子鍵盤楽器に比べると、ソフトペダルに2つ以上の複数の接点を設けた高級な機種の電子鍵盤楽器は、機構が複雑になるので製造や調節のコストが高くなるという問題があった。また、上記特許文献1の電子楽器の場合には、第3図に示された押鍵頻度検出部4のように、最高音押圧鍵がx回変化するのに要した合計時間を算出するまで、又は、第5図に示された押鍵頻度検出部4のように、一定時間内に最高音押圧鍵が何回変化したかを算出するまでは、人声音の音韻を切り換えることができないので、演奏中の楽音にリアルタイムで効果を付加することができないという問題がある。
本発明は、このような従来の課題を解決するためのものであり、製造や調節のコストアップを招くことなく、演奏中の楽音にリアルタイムで複数段階の効果を付加することができる安価な電子鍵盤楽器を提供することを目的とする。
However, compared to an inexpensive electronic keyboard instrument in which only a single contact is provided on the soft pedal, the mechanism of a high-end electronic keyboard instrument in which two or more contacts are provided on the soft pedal has a complicated mechanism. Therefore, there was a problem that the manufacturing and adjustment costs were high. In the case of the electronic musical instrument disclosed in
The present invention is to solve such a conventional problem, and is an inexpensive electronic device that can add a multi-stage effect to a musical tone being played in real time without incurring manufacturing and adjustment costs. The purpose is to provide a keyboard instrument.
請求項1に記載の楽音制御装置は、鍵盤の操作に応じて発生された演奏信号を検出する第1の検出手段と、操作に応じてオン状態又はオフ状態のいずれか一方に変化するソフトペダルの状態を検出する第2の検出手段と、前記ソフトペダルがオン状態からオフ状態に変化したことが前記第2の検出手段によって検出されたときは、前記ソフトペダルが再びオン状態に変化したことが前記第2の検出手段によって検出されるまで、前記ソフトペダルのオフ状態の継続時間を計測する計測手段と、前記ソフトペダルがオン状態のときに、前記計測手段によって計測された直前のオフ状態の継続時間に応じた効果を前記第1の検出手段によって検出される演奏信号に付加する効果制御手段と、を備えたことを特徴とする。
The musical tone control apparatus according to
請求項1の楽音制御装置において、請求項2に記載したように、前記効果制御手段は、前記計測手段によって計測されたオフ状態の継続時間が所定時間より短い場合には、前記第2の検出手段によって検出された前記ソフトペダルオン操作に応じて前記第1の検出手段によって検出される演奏信号に第1の効果を付加し、前記計測手段によって計測されたオフ状態の継続時間が所定時間以上である場合には、前記第2の検出手段によって検出された前記ソフトペダルオン操作に応じて前記第1の検出手段によって検出される演奏信号に第2の効果を付加することを特徴とする。
2. The musical sound control apparatus according to
請求項3に記載の楽音制御処理のプログラムは、鍵盤の操作に応じて発生された演奏信号を検出する第1のステップと、操作に応じてオン状態又はオフ状態のいずれか一方に変化するソフトペダルの状態を検出する第2のステップと、前記ソフトペダルがオン状態からオフ状態に変化したことが前記第2のステップによって検出されたときは、前記ソフトペダルが再びオン状態に変化したことが前記第2のステップによって検出されるまで、前記ソフトペダルのオフ状態の継続時間を計測する第3のステップと、前記ソフトペダルがオン状態のときに、前記第3のステップによって計測された直前のオフ状態の継続時間に応じた効果を前記第1のステップによって検出される演奏信号に付加する第4のステップと、をコンピュータに実行させることを特徴とする。
According to a third aspect of the present invention, there is provided a program for musical tone control processing including a first step of detecting a performance signal generated in response to an operation of a keyboard, and software that changes to either an on state or an off state in accordance with the operation. A second step of detecting a pedal state; and when the second step detects that the soft pedal has changed from an on state to an off state, the soft pedal has changed to an on state again. A third step of measuring the duration of the soft pedal in an off state until detected by the second step, and a time immediately before the measurement by the third step when the soft pedal is in an on state . And causing the computer to execute a fourth step of adding an effect corresponding to the duration of the off state to the performance signal detected by the first step. It is characterized in.
本発明の楽音制御装置および楽音制御処理のプログラムによれば、製造や調節のコストアップを招くことなく、演奏中の楽音にリアルタイムで複数段階の効果を付加することができるという効果が得られる。 According to the musical tone control apparatus and the musical tone control processing program of the present invention, it is possible to obtain an effect that multiple stages of effects can be added to the musical tone being played in real time without causing an increase in manufacturing and adjustment costs.
以下、本発明の楽音制御装置の実施形態について、電子鍵盤楽器を例に採って、図を参照して説明する。
図1は、実施形態の電子鍵盤楽器1の構成を示す外観図である。図1において、鍵盤2は任意の鍵の操作に応じて音高およびベロシティ(音量)を含む演奏信号を発生する。ソフトペダル3および他のソステヌートペダルおよびダンパペダルは、それぞれ単一の接点スイッチを備えた簡単な構造であり、足の踏み込み操作によって接点スイッチがオフ状態からオン状態に変化する。2つのスピーカ4は、ソフトペダル3が操作されず接点スイッチがオフ状態になっている場合には、鍵盤2の演奏によって発生された演奏信号に応じた音高および音量、並びに、スイッチ等によって設定された音色あるいはデフォルトの音色に基づく楽音を発音し、ソフトペダル3が操作された場合には、発音する楽音に対して効果が付加される。すなわち、発音する楽音がやわらかい音色に変更され、楽音の音量を減衰するような効果が付加される。
Hereinafter, embodiments of a musical tone control apparatus according to the present invention will be described with reference to the drawings, taking an electronic keyboard instrument as an example.
FIG. 1 is an external view showing a configuration of an
図2は、図1の電子鍵盤楽器1のシステム構成を示すブロック図である。図2において、CPU11は、マトリックス回路等の所定のインタフェース(図示せず)を介して、図1の鍵盤2並びにソフトペダル3および他のソステヌートペダルおよびダンパペダルをスキャンし、各鍵および各ペダルのオン・オフを検出する。CPU11はまた、ROM12、RAM13、タイマ14、音源15に接続されている。ROM12は、CPU11によって実行される楽音制御処理のプログラムやその他の制御処理のプログラムを格納している。RAM13は、CPU11のワークエリアであり、レジスタ13aやカウンタ13bなどを備えている。タイマ14は、CPU11からのスタートコマンドに応じて時間を計測し、ストップコマンドに応じて計測を停止して、計測した時間をCPU11に入力する。
FIG. 2 is a block diagram showing a system configuration of the
音源15は、鍵盤2の演奏によって発生された演奏信号に応じたイベントデータおよび発音コマンドがCPU11から与えられると、内部の波形ROM(図示せず)から波形データを読み出して、楽音信号を生成する。さらに、音源15にはソフト効果付加回路15aが設けられている。ソフト効果付加回路15aは、CPU11からの効果付加信号のオンの場合には、音源15で生成される楽音信号に効果を付加する。音源15にはサウンドシステム16が接続されている。この効果付加信号は、例えば2ビットの信号であり、「00」、「01」、「10」、「11」の4種類の効果コマンドを音源15に与える。効果付加信号が「00」の場合には、効果を付加しない。効果付加信号が「01」の場合には、効果「1」を音源15の楽音信号に付加する。効果付加信号が「10」の場合には、効果「2」を音源15の楽音信号に付加する。効果付加信号が「11」の場合には、効果「3」を音源15の楽音信号に付加する。なお、効果付加信号は、3ビット以上の信号でもよい。ビット数が多くなるにしたがって、音源15の楽音信号に付加する効果の種類(段階)は多くなる。
サウンドシステム16は、A/D変換回路、フィルタ回路、増幅回路等(図示せず)を備え、音源15から出力される楽音信号をデジタルからアナログに変換し、フィルタ処理および増幅処理を施してスピーカ4から発音させる。
When event data and a sound generation command corresponding to a performance signal generated by the performance of the
The
図3ないし図5は、CPU11によって実行される制御プログラムのフローチャートである。
図3は、メインルーチンのフローチャートである。まず、所定のイニシャライズ処理を実行する(ステップSA1)。イニシャライズ処理では、RAM13のレジスタ13a、カウンタ13b、および他のデータエリアを「0」にクリアする。次に、鍵盤2の操作に応じた鍵盤処理を実行する(ステップSA2)。すなわち、鍵盤2の各鍵のオン・オフを検出して、その検出結果をRAM13に一時的にストアする。次に、ソフトペダル3の操作についてのソフトペダル処理を実行し(ステップSA3)、他のソステヌートペダルやダンパペダルが操作についての他のペダル処理を実行する(ステップSA4)。そして、鍵盤2や各ペダルの操作に応じて音源処理を実行する(ステップSA5)。次に、スイッチ群の操作などに応じて他の処理を実行し(ステップSA6)、ステップSA2に移行して上記の処理を繰り返す。
3 to 5 are flowcharts of a control program executed by the
FIG. 3 is a flowchart of the main routine. First, a predetermined initialization process is executed (step SA1). In the initialization process, the
図4および図5は、図3のステップSA4のソフトペダル処理のフローチャートである。このソフトペダル処理では、ソフトペダル3の操作によって、ソフト効果1、ソフト効果2、ソフト効果3の3段階の制御を行う。ソフト効果1では音色がやわらかくなり、ソフト効果2では音量が小さくなり、ソフト効果3では音量が最小値に制限される。
4 and 5 are flowcharts of the soft pedal process in step SA4 of FIG. In this soft pedal process, three steps of control of
図4において、ソフトペダル3が現在オフ状態であるか否かを判別し(ステップSB1)、オフ状態である場合には、RAM13のレジスタ13aが「0」であるか又は「1」であるかを判別する(ステップSB2)。レジスタ13aは、前回の操作によって、ソフトペダル3がオフ状態からオン状態に変化すると「1」の値がセットされ、ソフトペダル3がオン状態からオフ状態に変化すると「0」にクリアされる。ソフトペダル3が現在オフ状態で、且つ、レジスタ13aが「0」である場合には、ソフトペダル3が操作されていないので、図3のメインルーチンに戻る。
In FIG. 4, it is determined whether or not the
ステップSB2において、レジスタ13aが「1」である場合には、前回の操作によってオン状態であったソフトペダル3が、今回の操作でオフ状態に変化した場合である。この場合には、タイマ14をスタートさせ(ステップSB3)、レジスタ13aの値を「0」にクリアし(ステップSB4)、ソフト効果付加回路15aに対する効果付加信号をオフにして、音源15のソフト効果を「0(効果の付加なし)」にする(ステップSB5)。そして、図3のメインルーチンに戻る。
In step SB2, when the
ステップSB1において、ソフトペダル3が現在オン状態である場合には、図5において、レジスタ13aの値が「0」であるか又は「1」であるかを判別する(ステップSB6)。レジスタ13aの値が「0」である場合には、タイマ14の現在の値すなわちソフトペダル3のオフ状態の継続時間Tが、所定時間TSより短いか又は所定時間TS以上であるかを判別する(ステップSB7)。
In step SB1, if the
ソフトペダル3のオフ状態の継続時間Tが所定時間TSより短い場合には、カウンタ13bの値が「0」であるか否かを判別する(ステップSB8)。カウンタ13bの値が「0」である場合には、ソフト効果「1」をかけるための効果付加信号を音源15に出力して、音源15の楽音信号に効果を付加する(ステップSB9)。次に、カウンタ13bの現在の値に「1」を加え(ステップSB10)、レジスタ13aの値を「1」にセットする(ステップSB11)。そして、タイマ14を停止させて(ステップSB12)、図3のメインルーチンに戻る。
When the duration T of the
ステップSB8において、カウンタ13bの値が「0」でない場合には、カウンタ13bの値が「1」であるか否かを判別し(ステップSB13)、カウンタ13bの値が「1」である場合には、ソフト効果「2」をかけるための効果付加信号を音源15に出力して、音源15の楽音信号に効果を付加する(ステップSB14)。次に、カウンタ13bの現在の値に「1」を加え(ステップSB10)、レジスタ13aの値を「1」にセットする(ステップSB11)。そして、タイマ14を停止させて(ステップSB12)、図3のメインルーチンに戻る。
In step SB8, when the value of the
ステップSB13において、カウンタ13bの値が「1」でない場合、すなわち、カウンタ13bの値が「2」以上である場合には、ソフト効果「3」をかけるための効果付加信号を音源15に出力して、音源15の楽音信号に効果を付加する(ステップSB15)。次に、カウンタ13bの現在の値に「1」を加え(ステップSB10)、レジスタ13aの値を「1」にセットする(ステップSB11)。そして、タイマ14を停止させて(ステップSB12)、図3のメインルーチンに戻る。
In step SB13, when the value of the
ステップSB7において、ソフトペダル3のオフ状態の継続時間Tが所定時間TS以上である場合には、カウンタ13bの値を「0」にクリアして(ステップSB16)、ソフト効果「1」をかけるための効果付加信号を音源15に出力して、音源15の楽音信号に効果を付加する(ステップSB17)。次に、レジスタ13aの値を「1」にセットして(ステップSB11)、タイマ14を停止させて(ステップSB12)、図3のメインルーチンに戻る。
ステップSB6において、レジスタ13aの値が「1」である場合には、ソフトペダル3が現在オン状態であるので、図3のメインルーチンに戻る。
In step SB7, when the duration T of the
In step SB6, when the value of the
図6は、図4および図5のソフトペダル処理において、ソフトペダル3の操作に応じて変化するレジスタ13aの値、カウンタ13bの値、効果の内容、タイマ14の動作の一例を示すタイミングチャートである。図6において、ef0はソフト効果0(効果なし)、ef1はソフト効果1、ef2はソフト効果2、ef3はソフト効果3をそれぞれ表している。
図6の例では、ソフトペダル3がオン(1)、オン(2)、オン(3)、オン(4)、オン(5)と5回のオン操作がなされている。最初のオン(1)の操作前では、レジスタおよびカウンタの値は「0」にクリアされ、効果の内容はef0(ソフト効果0)になっている。また、タイマは停止しており、その値は「0」になっている。この状態においては、図4のステップSB1、ステップSB2を経て、効果の付加を行うことなく、メインルーチンに戻るループを繰り返す。
FIG. 6 is a timing chart showing an example of the value of the
In the example of FIG. 6, the
ソフトペダルのオン(1)の操作では、図4のステップSB1から図5のステップSB6に移行する。この場合はレジスタの値が「0」であるので、ステップSB6からステップSB7に進む。いま、タイマの値は「0」で所定時間STより短いので、ステップSB7からステップSB8に進み、カウンタの値が「0」であるので、さらにステップSB9に進む。そして、音源にef1(ソフト効果1)をかける。次に、ステップSB10でカウンタの値を「0」から「1」に変更し、ステップSB11でレジスタの値を「0」から「1」に変更する。この場合は、タイマが停止しているので、ステップSB12では特に停止処理を行うことなくメインルーチンに戻る。
なお、オン(1)の操作でソフトペダルがオン状態の期間においては、図4のステップSB1から図5のステップSB6に移行する。この場合は、レジスタの値が「1」であるので、そのままメインルーチンに戻る。オン(2)〜オン(5)の操作でソフトペダルがオン状態の期間においても同様である。
When the soft pedal is turned on (1), the process proceeds from step SB1 in FIG. 4 to step SB6 in FIG. In this case, since the value of the register is “0”, the process proceeds from step SB6 to step SB7. Now, since the value of the timer is “0”, which is shorter than the predetermined time ST, the process proceeds from step SB7 to step SB8, and since the value of the counter is “0”, the process further proceeds to step SB9. Then, ef1 (soft effect 1) is applied to the sound source. Next, the counter value is changed from “0” to “1” in step SB10, and the register value is changed from “0” to “1” in step SB11. In this case, since the timer is stopped, in step SB12, the process returns to the main routine without performing a stop process.
In the period when the soft pedal is in the on state by the on (1) operation, the process proceeds from step SB1 in FIG. 4 to step SB6 in FIG. In this case, since the value of the register is “1”, the process directly returns to the main routine. The same applies to the period when the soft pedal is in the on state by the on (2) to on (5) operation.
ソフトペダルがオン(1)の操作の後オフになったときは、図4のステップSB1からステップSB3に進み、タイマをスタートさせる。したがって、図6に示す三角波形のように、タイマの値が時間経過に比例して増加する。また、ステップSB3からステップSB4に進み、レジスタの値を「1」から「0」に変更する。そして、ステップSB5においてソフト効果0にする。すなわち、ソフトペダルがオン(1)の操作で音源にかけていたef1(ソフト効果1)をef0(ソフト効果0)に変更する。
なお、ソフトペダルがオン(2)〜オン(5)の操作の後オフになったときも同様に、レジスタの値を「1」から「0」に変更し、音源にかけていたソフト効果をef0(ソフト効果0)に変更する。
When the soft pedal is turned off after the on (1) operation, the process proceeds from step SB1 to step SB3 in FIG. 4 to start a timer. Therefore, the value of the timer increases in proportion to the passage of time as in the triangular waveform shown in FIG. Further, the process proceeds from step SB3 to step SB4, and the value of the register is changed from “1” to “0”. In step SB5, the soft effect is set to zero. That is, ef1 (soft effect 1) applied to the sound source when the soft pedal is turned on (1) is changed to ef0 (soft effect 0).
Similarly, when the soft pedal is turned off after the on (2) to on (5) operation, the register value is changed from “1” to “0”, and the soft effect applied to the sound source is changed to ef0 ( Change to soft effect 0).
次に、ソフトペダルのオン(2)の操作では、図4のステップSB1から図5のステップSB6に移行する。この場合はレジスタの値が「0」であるので、ステップSB6からステップSB7に進む。この場合、タイマの値Tは所定時間STより短いので、ステップSB7からステップSB8に進む。この場合には、カウンタの値は「1」であるので、ステップSB8、ステップSB13、ステップSB14と進み、音源にef2(ソフト効果2)をかける。次に、ステップSB10でカウンタの値を「1」から「2」に変更し、ステップSB11でレジスタの値を「0」から「1」に変更する。さらに、ステップSB12においてタイマを停止させる。 Next, when the soft pedal is turned on (2), the process proceeds from step SB1 in FIG. 4 to step SB6 in FIG. In this case, since the value of the register is “0”, the process proceeds from step SB6 to step SB7. In this case, since the timer value T is shorter than the predetermined time ST, the process proceeds from step SB7 to step SB8. In this case, since the value of the counter is “1”, the process proceeds to step SB8, step SB13, and step SB14, and ef2 (soft effect 2) is applied to the sound source. Next, the counter value is changed from “1” to “2” in step SB10, and the register value is changed from “0” to “1” in step SB11. Furthermore, the timer is stopped in step SB12.
次に、ソフトペダルのオン(3)の操作では、図4のステップSB1から図5のステップSB6に移行する。この場合はレジスタの値が「0」であるので、ステップSB6からステップSB7に進む。この場合、タイマの値Tは所定時間STより短いので、ステップSB7からステップSB8に進む。この場合には、カウンタの値は「2」であるので、ステップSB8、ステップSB13、ステップSB15と進み、音源にef3(ソフト効果3)をかける。次に、ステップSB10でカウンタの値を「2」から「3」に変更し、ステップSB11でレジスタの値を「0」から「1」に変更する。さらに、ステップSB12においてタイマを停止させる。 Next, when the soft pedal is turned on (3), the process proceeds from step SB1 in FIG. 4 to step SB6 in FIG. In this case, since the value of the register is “0”, the process proceeds from step SB6 to step SB7. In this case, since the timer value T is shorter than the predetermined time ST, the process proceeds from step SB7 to step SB8. In this case, since the value of the counter is “2”, the process proceeds to step SB8, step SB13, and step SB15, and ef3 (soft effect 3) is applied to the sound source. Next, the counter value is changed from “2” to “3” in step SB10, and the register value is changed from “0” to “1” in step SB11. Furthermore, the timer is stopped in step SB12.
次に、ソフトペダルのオン(4)の操作では、図4のステップSB1から図5のステップSB6に移行する。この場合はレジスタの値が「0」であるので、ステップSB6からステップSB7に進む。この場合、タイマの値Tは所定時間STより短いので、ステップSB7からステップSB8に進む。この場合には、カウンタの値は「3」であるので、ステップSB8、ステップSB13、ステップSB15と進み、音源にef3(ソフト効果3)をかける。次に、ステップSB10でカウンタの値を「3」から「4」に変更し、ステップSB11でレジスタの値を「0」から「1」に変更する。さらに、ステップSB12においてタイマを停止させる。すなわち、カウンタの値が「2」以上の場合には、音源に最大の効果であるef3(ソフト効果3)をかける。 Next, when the soft pedal is turned on (4), the process proceeds from step SB1 in FIG. 4 to step SB6 in FIG. In this case, since the value of the register is “0”, the process proceeds from step SB6 to step SB7. In this case, since the timer value T is shorter than the predetermined time ST, the process proceeds from step SB7 to step SB8. In this case, since the value of the counter is “3”, the process proceeds to step SB8, step SB13, and step SB15, and ef3 (soft effect 3) is applied to the sound source. Next, in step SB10, the counter value is changed from “3” to “4”, and in step SB11, the register value is changed from “0” to “1”. Furthermore, the timer is stopped in step SB12. That is, when the counter value is “2” or more, the maximum effect ef3 (soft effect 3) is applied to the sound source.
次に、ソフトペダルのオン(5)の操作では、図4のステップSB1から図5のステップSB6に移行する。そして、レジスタの値が「0」であるので、ステップSB6からステップSB7に進む。この場合には、タイマの値Tは所定時間ST以上であるので、ステップSB7からステップSB16に進み、カウンタの値を「4」から「0」に変更し、ステップSB17において音源にef1(ソフト効果1)をかける。また、ステップSB11でレジスタの値を「0」から「1」に変更する。さらに、ステップSB12においてタイマを停止させる。 Next, when the soft pedal is turned on (5), the process proceeds from step SB1 in FIG. 4 to step SB6 in FIG. Since the value of the register is “0”, the process proceeds from step SB6 to step SB7. In this case, since the timer value T is equal to or longer than the predetermined time ST, the process proceeds from step SB7 to step SB16, the counter value is changed from “4” to “0”, and ef1 (soft effect) is applied to the sound source in step SB17. 1). In step SB11, the value of the register is changed from “0” to “1”. Furthermore, the timer is stopped in step SB12.
以上のように、上記実施形態によれば、CPU11は、鍵盤2の操作に応じて発生された演奏信号を検出するとともに、操作に応じてオン状態又はオフ状態のいずれか一方に変化するソフトペダル3の状態を検出する。そして、ソフトペダル3がオン状態からオフ状態に変化したときは、再びオン状態に変化するまでのオフ状態の継続時間Tをタイマ14によって計測し、計測したオフ状態の継続時間Tに応じた効果(ソフト効果1、ソフト効果2、ソフト効果3)を演奏信号に付加する。さらに、ソフトペダル3のオン操作のタイミングで直ちに効果を付加する。
したがって、単一の接点スイッチを備えた簡単な構造のソフトペダル3を利用することにより、製造や調節のコストアップを招くことなく、演奏中の楽音にリアルタイムで複数段階の効果を付加することができる。
As described above, according to the embodiment, the
Therefore, by using the
この場合において、CPU11は、計測したオフ状態の継続時間Tが所定時間TSより短い場合には、ソフトペダル3のオン操作のタイミングで、鍵盤2の操作に応じて検出する演奏信号にソフト効果1、ソフト効果2、又はソフト効果3の効果を付加し、計測したオフ状態の継続時間Tが所定時間TS以上である場合には、ソフトペダル3のオン操作のタイミングで、鍵盤2の操作に応じて検出する演奏信号にソフト効果1の効果を付加する。
したがって、ソフトペダル3を操作してオフ状態の継続時間Tを調整することにより、複数段階の効果を付加することができる。
In this case, when the measured duration time T of the off state is shorter than the predetermined time TS, the
Therefore, by operating the
さらに、CPU11は、所定時間TSより短い期間にソフトペダル3がオフ状態からオン状態に複数回変化したことを検出したときには、カウンタ13bに変化の回数をストアして、そのカウンタ値に応じた効果を鍵盤2の操作に応じて検出する演奏信号に付加する。カウンタ値が「0」のときはソフト効果1の効果を付加し、カウンタ値が「1」のときはソフト効果2の効果を付加し、カウンタ値が「2」以上のときはソフト効果3の効果を付加する。
したがって、ソフトペダル3を操作してオン状態とオフ状態との切り換えを連続することにより、複数段階の効果を付加することができる。
Further, when the
Therefore, by operating the
なお、この実施形態においては、カウンタ値に応じて3段階のソフト効果の効果を付加する構成にしたが、ソフト効果を4段階以上に細かく設定して、ソフトペダル3の操作で効果を付加する構成にしてもよい。このような構成によれば、アコースティクピアノのようにソフトペダルの機械的な操作に制限されないので、アコースティクピアノの機能を超えるほどのバリエーション豊かな効果を付加することが可能である。
In this embodiment, the soft effect is added in three steps according to the counter value. However, the soft effect is set in four steps or more and the effect is added by operating the
また、この実施形態においては、ソフトペダル3によって3段階のソフト効果の効果を付加する構成を説明したが、従来のようにソフト効果オン又はオフの単純な効果付加を望むユーザのために、ソフト効果のモードスイッチを設けて、3段階のソフト効果のモードとソフト効果オン又はオフのモードとを切り換える構成にしてもよい。
In this embodiment, the configuration in which the
また、上記実施形態においては、電子鍵盤楽器のROM12にあらかじめ記憶された楽音制御処理のプログラムをCPU11が実行する装置の発明について説明したが、フレキシブルディスク(FD)、CD、メモリカードなどの外部記憶媒体に記録されている楽音制御処理のプログラムをハードディスクやフラッシュROMなどの書き込み可能な不揮発性メモリにインストールするか、又は、インターネットなどのネットワークからダウンロードした楽音制御処理のプログラムを不揮発性メモリにインストールし、そのプログラムをCPU11によって実行することも可能である。この場合には、プログラムの発明やそのプログラムを記録した記録媒体の発明を実現できる。
In the above-described embodiment, the invention of the device in which the
すなわち、本発明による楽音制御処理のプログラムは、鍵盤の操作に応じて発生された演奏信号を検出する第1のステップと、操作に応じてオン状態又はオフ状態のいずれか一方に変化するソフトペダルの状態を検出する第2のステップと、前記ソフトペダルがオン状態からオフ状態に変化したことが前記第2のステップによって検出されたときは、前記ソフトペダルが再びオン状態に変化したことが前記第2のステップによって検出されるまで、前記ソフトペダルのオフ状態の継続時間を計測する第3のステップと、前記第3のステップによって計測されたオフ状態の継続時間に応じた効果を前記第1のステップによって検出される演奏信号に付加する第4のステップと、
をコンピュータに実行させることを特徴とする。
したがって、上記実施形態における装置の発明と同様に、単一の接点スイッチを備えた簡単な構造のソフトペダル3を利用することにより、製造や調節のコストアップを招くことなく、演奏中の楽音にリアルタイムで複数段階の効果を付加することができる。
That is, a program for musical tone control processing according to the present invention includes a first step for detecting a performance signal generated in response to an operation of a keyboard, and a soft pedal that changes to either an on state or an off state in accordance with the operation. A second step of detecting the state of the soft pedal, and when the second step detects that the soft pedal has changed from the on state to the off state, the fact that the soft pedal has changed to the on state again. A third step of measuring the duration of the soft pedal off state until it is detected by the second step, and an effect according to the duration of the off state measured by the third step of the first step. A fourth step of adding to the performance signal detected by the steps of
Is executed by a computer.
Therefore, similarly to the invention of the device in the above-described embodiment, by using the
1 電子鍵盤楽器
2 鍵盤
3 ソフトペダル
4 スピーカ
11 CPU
12 ROM
13 RAM
14 タイマ
15 音源
15a ソフト効果付加回路
16 サウンドシステム
1
12 ROM
13 RAM
14
Claims (3)
操作に応じてオン状態又はオフ状態のいずれか一方に変化するソフトペダルの状態を検出する第2の検出手段と、
前記ソフトペダルがオン状態からオフ状態に変化したことが前記第2の検出手段によって検出されたときは、前記ソフトペダルが再びオン状態に変化したことが前記第2の検出手段によって検出されるまで、前記ソフトペダルのオフ状態の継続時間を計測する計測手段と、
前記ソフトペダルがオン状態のときに、前記計測手段によって計測された直前のオフ状態の継続時間に応じた効果を前記第1の検出手段によって検出される演奏信号に付加する効果制御手段と、
を備えたことを特徴とする楽音制御装置。 First detection means for detecting a performance signal generated in response to an operation of the keyboard;
Second detection means for detecting the state of the soft pedal that changes to either the on state or the off state according to the operation;
When it is detected by the second detection means that the soft pedal has changed from the on state to the off state, until the second detection means detects that the soft pedal has changed to the on state again. Measuring means for measuring the duration of the soft pedal in the off state;
Effect control means for adding an effect according to the duration of the off state immediately before measured by the measurement means to the performance signal detected by the first detection means when the soft pedal is on ;
A musical sound control apparatus comprising:
操作に応じてオン状態又はオフ状態のいずれか一方に変化するソフトペダルの状態を検出する第2のステップと、A second step of detecting a soft pedal state that changes to either an on state or an off state in response to an operation;
前記ソフトペダルがオン状態からオフ状態に変化したことが前記第2のステップによって検出されたときは、前記ソフトペダルが再びオン状態に変化したことが前記第2のステップによって検出されるまで、前記ソフトペダルのオフ状態の継続時間を計測する第3のステップと、When it is detected by the second step that the soft pedal has changed from the on state to the off state, until the second step detects that the soft pedal has changed to the on state again, A third step of measuring the duration of the soft pedal off state;
前記ソフトペダルがオン状態のときに、前記第3のステップによって計測された直前のオフ状態の継続時間に応じた効果を前記第1のステップによって検出される演奏信号に付加する第4のステップと、A fourth step of adding, to the performance signal detected by the first step, an effect corresponding to the duration of the immediately previous off state measured by the third step when the soft pedal is on; ,
をコンピュータに実行させることを特徴とする楽音制御処理のプログラム。A program for musical tone control processing that causes a computer to execute.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006353603A JP4935348B2 (en) | 2006-12-28 | 2006-12-28 | Musical sound control device and musical sound control processing program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006353603A JP4935348B2 (en) | 2006-12-28 | 2006-12-28 | Musical sound control device and musical sound control processing program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008164879A JP2008164879A (en) | 2008-07-17 |
| JP4935348B2 true JP4935348B2 (en) | 2012-05-23 |
Family
ID=39694484
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006353603A Expired - Fee Related JP4935348B2 (en) | 2006-12-28 | 2006-12-28 | Musical sound control device and musical sound control processing program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4935348B2 (en) |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0719152B2 (en) * | 1986-01-29 | 1995-03-06 | ヤマハ株式会社 | Musical tone state control device for electronic musical instruments |
| JP2546358B2 (en) * | 1988-11-15 | 1996-10-23 | ヤマハ株式会社 | Electronic piano with pedal |
| JP3358292B2 (en) * | 1994-05-26 | 2002-12-16 | ヤマハ株式会社 | Electronic musical instrument |
| JPH1195764A (en) * | 1997-09-16 | 1999-04-09 | Ricoh Co Ltd | Music performance equipment |
| JP3935004B2 (en) * | 2002-07-12 | 2007-06-20 | ローランド株式会社 | Effect imparting device |
| JP4186855B2 (en) * | 2004-03-29 | 2008-11-26 | ヤマハ株式会社 | Musical sound control device and program |
-
2006
- 2006-12-28 JP JP2006353603A patent/JP4935348B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008164879A (en) | 2008-07-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3633420B2 (en) | Music generator | |
| JP4475323B2 (en) | Musical sound generator and program | |
| US5569870A (en) | Keyboard electronic musical instrument having partial pedal effect circuitry | |
| JP2010160424A (en) | Pedal output conversion device and program | |
| CN101751915B (en) | Musical tone generating apparatus and musical tone generating program | |
| JP5315883B2 (en) | Electronic musical instrument and musical sound generation program | |
| JP4935348B2 (en) | Musical sound control device and musical sound control processing program | |
| JP7516746B2 (en) | Musical sound information output device, musical sound generating device, musical sound information generating method and program | |
| JP4935556B2 (en) | Electronic musical instrument resonance sound adding device and electronic musical instrument | |
| JP5701509B2 (en) | Electronic keyboard instrument | |
| JP4578108B2 (en) | Electronic musical instrument resonance sound generating apparatus, electronic musical instrument resonance generating method, computer program, and recording medium | |
| JP5318460B2 (en) | Resonant sound generator | |
| JP5458494B2 (en) | Electronic musical instruments | |
| JP3928725B2 (en) | Music signal generator and legato processing program | |
| JP5816245B2 (en) | Resonant sound generator | |
| JP4855202B2 (en) | Electronic keyboard instrument | |
| JP6700891B2 (en) | Control device for pedal operator | |
| JP4648177B2 (en) | Electronic musical instruments and computer programs | |
| JP5640308B2 (en) | Performance device and performance processing program | |
| JP4303023B2 (en) | Tone control method, waveform memory creation method, electronic musical tone generation method, timbre control system, waveform memory, and electronic musical tone generator | |
| JP2001215973A (en) | Method and device for creating musical sound control parameter, and recording medium | |
| JP4692287B2 (en) | Keyboard instrument and mute unit | |
| JP4186855B2 (en) | Musical sound control device and program | |
| JP2009288348A (en) | Resonance sound generator | |
| JP2009276693A (en) | Resonance sound generator |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20080515 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091214 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110810 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111011 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111129 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120124 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120206 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150302 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4935348 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |