JP4042753B2 - Electronic musical instruments - Google Patents

Electronic musical instruments Download PDF

Info

Publication number
JP4042753B2
JP4042753B2 JP2005063141A JP2005063141A JP4042753B2 JP 4042753 B2 JP4042753 B2 JP 4042753B2 JP 2005063141 A JP2005063141 A JP 2005063141A JP 2005063141 A JP2005063141 A JP 2005063141A JP 4042753 B2 JP4042753 B2 JP 4042753B2
Authority
JP
Japan
Prior art keywords
key
sound
switch
contact
value
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
Application number
JP2005063141A
Other languages
Japanese (ja)
Other versions
JP2005222073A (en
Inventor
順一 三島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2005063141A priority Critical patent/JP4042753B2/en
Publication of JP2005222073A publication Critical patent/JP2005222073A/en
Application granted granted Critical
Publication of JP4042753B2 publication Critical patent/JP4042753B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、鍵盤に配設された例えば鍵スイッチにより押鍵操作時の鍵ストローク中に鍵タッチ信号を生成し、該タッチ信号に基づいて楽音を制御する電子楽器に関する。   The present invention relates to an electronic musical instrument that generates a key touch signal during a keystroke during a key press operation, for example, by a key switch disposed on a keyboard, and controls a musical sound based on the touch signal.

従来、電子鍵盤楽器において、例えば特公平8−10399号公報に開示されているように、鍵ストロークの全行程で鍵の位置をセンシングして楽音を制御する技術がある。このような技術によれば、例えば1つの鍵スイッチの2つの接点スイッチの時間差だけからイニシャルタッチを求めて楽音を制御するものよりも、多彩な表現が可能となる。   2. Description of the Related Art Conventionally, in an electronic keyboard instrument, as disclosed in, for example, Japanese Patent Publication No. 8-10399, there is a technique for controlling a tone by sensing a key position in the entire stroke of a key stroke. According to such a technique, for example, a variety of expressions can be achieved as compared with a case where an initial touch is obtained only from a time difference between two contact switches of one key switch and a musical tone is controlled.

また、例えば特開平7−199932号公報には、鍵ストロークの全行程でのセンシングにより、鍵ストロークの時間変化の非線形性に基づいて奏法を判別する技術が開示されている。   For example, Japanese Patent Laid-Open No. 7-199932 discloses a technique for discriminating a rendition style based on non-linearity of the time variation of the key stroke by sensing in the entire stroke of the key stroke.

また、3つの接点スイッチによる2つの時間差のデータを用い、鍵ストロークの浅い方の(前の)時間差データで楽音の音量を制御し、深い方の(後の)時間差データで音色を制御するものもある。   Also, using two time difference data by three contact switches, the tone volume is controlled by the shallower (previous) time difference data of the keystroke, and the tone is controlled by the deeper (later) time difference data. There is also.

ところで、ピアノは、鍵、アクション、ハンマー、弦という伝達機構によって発音するようになっている。このため、弱打の場合は押し終わりころに小さな音が鳴るような感じがする。また、強打の場合は、鍵への初速が大で強音になる場合と、押し弾きで強音になる場合とがある。また、ピアノを弱打する場合は、押し終わりで打弦されることが演奏者には解っているので、タイミングに関してあまり違和感がないが、強打した場合は、伝達機構特有の伝達遅れによる発音の遅れがあるので、強打をしてジャストタイミングで演奏したと思っても、打鍵動作よりは発音が少し遅れる感じがする。   By the way, the piano is sounded by a transmission mechanism of keys, actions, hammers and strings. For this reason, in the case of a weak hit, it feels like a small sound is heard around the end of pressing. In addition, in the case of a strong hit, there are cases where the initial speed to the key is high and the sound is strong, and there is a case where the sound is strong when pressed. Also, if the player hits the piano softly, the player knows that the string will be struck at the end of the press, so there is no sense of incongruity in terms of timing. Because there is a delay, even if you think you played hard and played at just timing, you feel that the pronunciation is a little behind the keystroke action.

このように、伝達機構や鍵への強弱が微妙な発音遅れを生み、特に初心者では表現力やアーティキュレーションが低下することがある。   In this way, the strength of the transmission mechanism and the key causes a subtle delay in pronunciation, and in particular, beginners' expression and articulation may be reduced.

また、パイプオルガンでは、押鍵のストロークの初期に若干遊びがあり、それから少し押し下げたところで弁の感触が伝わってくる。そして弁を開放する瞬間に最も抵抗が大きくなり、この時点から発音が開始する。すなわち、実質的な発音が押鍵のタイミングから遅れ気味になる。このような傾向は楽器の発音機構によるものであり、ホルン、バスーン、トロンボーンなどのような管楽器やヴィオラダガンバのうち、中型以上の弦楽器でも、同様に演奏操作に対して発音が遅れ気味になる。   In the pipe organ, there is some play at the beginning of the stroke of the key depression, and then the feel of the valve is transmitted when it is depressed a little. The resistance becomes the largest at the moment when the valve is opened, and the sound generation starts from this point. That is, substantial pronunciation seems to be delayed from the timing of the key depression. This tendency is due to the sound generation mechanism of the instrument, and even for wind instruments such as the horn, bassoon, trombone, and viola dagamba, medium-sized and higher stringed instruments are similarly delayed in their performance. Become.

したがって、このような楽器を演奏するプロの演奏者は、その楽器の特性を自然に会得し、合奏、合唱、アンサンブル演奏を行う場合など、発音すべきタイミングよりも突っ込み気味(あるいは前のめり)にして演奏動作を連続させるようにしている。例えば、オーケストラ演奏のように、複数楽器が同時に休符した後、複数楽器が同時発音するとき(テュッティー部分)などは演奏中の見せ場であり、発音タイミングを合わせるのが重要となる。   Therefore, a professional performer who plays such an instrument naturally learns the characteristics of the instrument and makes it more intimate (or forward) than when it should be pronounced, such as when performing ensemble, chorus, or ensemble performance. The performance action is made continuous. For example, when a plurality of musical instruments are simultaneously pronounced (tuty part) after a plurality of musical instruments are rested at the same time as in orchestra performance, it is a showcase during performance, and it is important to match the sounding timing.

一方、このようにプロの演奏者は専門の楽器の特性を会得しているため、べつの楽器を演奏するときに支障となる場合もある。例えば、パイプオルガン奏者は突っ込み気味に演奏するため、同じ鍵盤楽器でもピアノを演奏すると発音タイミングが速くなりがちとなる。また、逆にピアノ奏者がパイプオルガンを演奏すると発音タイミングが遅れ気味となる。テュッティーの部分毎に突っ込み演奏または遅れ気味演奏が繰り返されると、演奏始めと終り近傍で、かなりのテンポの差を生じ、作曲者が意図した曲になり得ないことがある。
特公平8−10399号公報 特開平7−199932号公報
On the other hand, since professional players know the characteristics of specialized musical instruments in this way, there are cases where it becomes an obstacle when playing other musical instruments. For example, a pipe organ player plays in a hurry, so when playing the piano with the same keyboard instrument, the pronunciation timing tends to be faster. Conversely, when a piano player plays a pipe organ, the sounding timing is delayed. If a rush performance or a delayed performance is repeated for each portion of the tutty, a considerable tempo difference may occur near the beginning and end of the performance, and the song may not be the song intended by the composer.
Japanese Patent Publication No. 8-10399 Japanese Patent Laid-Open No. 7-199932

しかし、従来は、鍵タッチの強さに応じて発音タイミングを切換え制御することは行われていない。本発明は、上記の点に鑑みてなされたものであり、押鍵の鍵タッチに応じて発音タイミングを制御することで、早めの発音(以後、「突っ込み発音」という。)と通常の発音(以後、「非突っ込み発音」という。)との切換発音を可能にして、表現力やアーティキュレーションを増大し、発音タイミングを合わせ易くし、演奏し易い電子楽器を提供することを課題とする。   However, conventionally, the sound generation timing is not switched and controlled according to the strength of the key touch. The present invention has been made in view of the above points, and by controlling the sound generation timing in accordance with the key touch of the key press, early sounding (hereinafter referred to as “rush sounding”) and normal sounding ( Hereinafter, it is an object to provide an electronic musical instrument that can be switched to "non-protrusive pronunciation"), increase expressive power and articulation, make it easy to match the timing of pronunciation, and perform easily.

本発明の請求項1の電子楽器は、音色を設定する音色設定手段と、押離鍵操作される鍵と、該鍵を押鍵操作した時の鍵ストローク中浅い位置において第1の鍵タッチ信号を生成する第1のタッチセンサと鍵ストローク中深い位置において第2の鍵タッチ信号を生成する第2のタッチセンサとでなる鍵タッチセンサ手段と、該鍵タッチセンサ手段で生成される鍵タッチ信号に基づいて前記設定された音色でなる楽音を制御する楽音制御手段と、演奏者情報を入力する演奏者情報入力手段と、演奏者情報入力手段で入力される演奏者情報に応じて、前記鍵ストロークの浅い方で発生される第1の鍵タッチ信号が得られた直後に発音するか、前記鍵ストロークの深い方で発生された第2の鍵タッチ信号に応じて発音/非発音を制御するかを切り換える発音タイミング制御手段とを備えたことを特徴とする。 According to a first aspect of the present invention, there is provided an electronic musical instrument that includes a timbre setting means for setting a timbre, a key that is operated by pressing and releasing keys , and a first key touch signal at a shallow position in the keystroke when the key is pressed. A key touch sensor means comprising: a first touch sensor for generating a second key sensor, and a second touch sensor for generating a second key touch signal at a deep position in the keystroke; and a key generated by the key touch sensor means a tone control means for controlling a musical tone comprising at tone the set based on the touch signal, and performer information input means for inputting player information, depending on the player information input by the player information input means Sounding immediately after the first key touch signal generated at the shallower key stroke is obtained, or sounding / non-sounding according to the second key touch signal generated at the deeper keystroke Turn off control Characterized by comprising a sound generation timing control means for changing.

上記のように構成された請求項1の電子楽器によれば、鍵ストロークの浅い方で発生される第1の鍵タッチ信号が得られると直ぐに発音するような突っ込み発音が可能であり、この突っ込み発音をするか、鍵ストロークの深い方で発生される第2の鍵タッチ信号に応じて発音/非発音を制御するかを演奏者情報に応じて設定できる。この鍵ストロークの深い方で発生された第2の鍵タッチ信号に応じて発音/非発音を制御するとき、鍵ストロークの深い方で発生される第2鍵タッチ信号が第2閾を越えているとき発音し、該鍵タッチ信号の強さが第2閾値以下のとき非発音とすることができる。これにより、発音の場合は非突っ込み発音を行うことができ、非発音となる押鍵操作のときは探り弾き等による誤発音を防止できる。   According to the electronic musical instrument of the first aspect configured as described above, it is possible to perform a plunging sound that is pronounced as soon as the first key touch signal generated at a shallow keystroke is obtained. Whether to sound or to control sound / non-sound according to the second key touch signal generated in the deeper key stroke can be set according to the player information. When sounding / non-sounding is controlled according to the second key touch signal generated in the deeper key stroke, the second key touch signal generated in the deeper key stroke exceeds the second threshold. When the key touch signal is less than the second threshold, the sound can be turned off. As a result, in the case of pronunciation, non-intrusive pronunciation can be performed, and in the case of a key pressing operation that does not produce pronunciation, erroneous pronunciation due to exploration and the like can be prevented.

上記演奏者情報としては、例えば、演奏者の癖、初心者(アマチュア)か上級者(プロ)か、ピアノ奏者かパイプオルガン奏者か、せっかちかのんびりかなど、演奏者の特に押鍵操作のタイミングの違いを考慮した情報とする。そして、そのタイミングの違いに応じて突っ込み発音を行うか行わないかを設定することができる。例えば、初心者は押鍵操作のタイミングが上級者よりも遅れがちになるので突っ込み発音を行うように設定する。したがって、例えば初心者でも表現力やアーティキュレーションが増大し、演奏し易い電子楽器となる。また、ピアノ奏者は押鍵操作のタイミングがパイプオルガン奏者よりも遅めになるので、パイプオルガンの音色のとき、浅スイッチの鍵タッチ信号に応じて突っ込み発音を行うようにすると、実際の発音タイミングがパイプオルガン奏者のようになる。また、パイプオルガン奏者は押鍵操作のタイミングがピアノ奏者よりも早めになるので、深スイッチの鍵タッチ信号に応じて非突っ込み発音を行うようにすると、実際の発音タイミングがピアノ奏者のようになる。したがって、演奏し易い電子楽器となり、特に他楽器とのアンサンブル演奏や合唱を含むオーケストラ演奏がしやすくなる。   The player information includes, for example, the timing of the key press operation of the performer, such as whether the performer's habit, beginner (amateur) or advanced player (professional), piano player or pipe organ player, Information that takes into account differences. Then, it is possible to set whether or not to rush sound according to the difference in timing. For example, since the beginner tends to delay the timing of the key pressing operation compared to the advanced user, the user is set to perform the rush sounding. Therefore, for example, even beginners have an increased expressive power and articulation, and the electronic musical instrument is easy to play. In addition, since the piano player has a later timing of the key press operation than the pipe organ player, if the sound of the pipe organ is struck in response to the key touch signal of the shallow switch, the actual sounding timing will be Becomes a pipe organ player. Also, pipe organ players will be able to press the keys earlier than piano players, so if you make a non-intrusive sound in response to the key switch signal of the deep switch, the actual sounding timing will be like a piano player. . Therefore, the electronic musical instrument is easy to play, and in particular, it is easy to perform orchestra performance including ensemble performance and chorus with other musical instruments.

なお、本願明細書および図面において、「閾値以下」および「閾値を越える」の組からなる表現は、「閾値未満」および「閾値以上」の組からなる表現と同等な表現とする。   In the specification and drawings of the present application, an expression consisting of a set of “below threshold” and “exceeding a threshold” is equivalent to an expression consisting of a set of “below threshold” and “above threshold”.

請求項1の電子楽器によれば、押鍵操作に応じて突っ込み発音が可能となり、この突っ込み発音をするか、鍵ストロークの深い方で発生された鍵タッチ信号に応じて発音/非発音を制御するかを演奏者情報に応じて設定できるので、演奏者の特に押鍵操作のタイミングの違いに応じて突っ込み発音を行うか行わないかを設定することができ、例えば初心者でも表現力やアーティキュレーションが増大し、演奏し易い電子楽器となる。また、ピアノ奏者はパイプオルガンの音色のとき実際の発音タイミングをパイプオルガン奏者のようにでき、また、パイプオルガン奏者は例えばピアノの音色のとき実際の発音タイミングをピアノ奏者のようにでき、演奏し易い電子楽器となる。   According to the electronic musical instrument of the first aspect, it is possible to generate a plunging sound in response to a key depression operation, and to control the sounding / non-sounding according to the key touch signal generated at the deeper keystroke or the plunging sounding. Can be set according to the player information, so it is possible to set whether or not to perform the rush sound according to the difference in the timing of the player's key press operation. The electronic musical instrument becomes easy to play. Also, a piano player can make the actual pronunciation timing like a pipe organist when playing a pipe organ tone, and a pipe organ player can play and play the actual pronunciation timing like a piano player when playing a piano tone, for example. It becomes an easy electronic musical instrument.

以下、図面を参照して本発明の実施形態について説明する。図1は本発明の実施形態の電子楽器のブロック図である。この例の電子楽器は、CPU1、ROM2、RAM3、押離鍵検出手段4、スイッチ検出手段5、表示制御手段6、音源手段7等を備え、これらの要素1〜7は、バス8を介して互いに接続されている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an electronic musical instrument according to an embodiment of the present invention. The electronic musical instrument of this example includes a CPU 1, ROM 2, RAM 3, pressed / released key detection means 4, switch detection means 5, display control means 6, sound source means 7, etc., and these elements 1 to 7 are connected via a bus 8. Are connected to each other.

システム全体を制御するCPU1は、これを駆動するクロックおよびタッチデータ(鍵タッチ信号)を取得するための割込み処理のクロックを発生するクロック発生器9を備えている。そして、CPU1は、所定のプログラムに従って種々の制御を行い、主に、後述する発音タイミングの制御を中枢的に遂行する。ROM2には制御プログラムが記憶されており、後述する押鍵検出手段4の鍵スイッチ(浅スイッチおよび深スイッチ)に応じた発音制御に関する各種処理プログラムや、後述する落とし込みテーブル1、落とし込みテーブル2、鍵スイッチの接点時間差をタッチデータ(ベロシティ値)に換するための変換テーブルTBL1、変換テーブルTBL2等の所要の各種テーブル、各種制御データが記憶されている。   The CPU 1 that controls the entire system includes a clock generator 9 that generates a clock for driving the system and an interrupt processing clock for obtaining touch data (key touch signal). Then, the CPU 1 performs various controls according to a predetermined program, and mainly performs the sound generation timing control to be described later. The ROM 2 stores a control program, and various processing programs related to sound generation control according to key switches (shallow switch and deep switch) of the key press detecting means 4 described later, a drop table 1, a drop table 2, and a key described later. Various necessary tables such as a conversion table TBL1 and a conversion table TBL2 for converting the contact time difference of the switch into touch data (velocity value) and various control data are stored.

RAM3は、CPU1の処理に際して必要なデータやパラメータを記憶し、また、各種レジスタやフラグ、処理中の各種データ等を一時記憶するためのワーク領域として用いられる。例えば、RAM3内には、キーバッファKEYBUF、フラグバッファTCBUF等のバッファや、カウンタ領域、レジスタ、一時メモリ領域などが確保されている。キーバッファKEYBUFには、各発音チャンネルnに対応してキーコードKC(n)、キーイベント種類KV(n)、タッチデータVon(n)、Voff(n+16)等が一時記憶され、フラグバッファTCBUFには、各チャンネルnに対応して接点時間差計測モードフラグTC(n)が一時記憶される。   The RAM 3 stores data and parameters required for processing by the CPU 1 and is used as a work area for temporarily storing various registers and flags, various data being processed, and the like. For example, in the RAM 3, buffers such as a key buffer KEYBUF and a flag buffer TCBUF, a counter area, a register, a temporary memory area, and the like are secured. In the key buffer KEYBUF, the key code KC (n), key event type KV (n), touch data Von (n), Voff (n + 16), etc. are temporarily stored corresponding to each tone generation channel n, and stored in the flag buffer TCBUF. The contact time difference measurement mode flag TC (n) is temporarily stored corresponding to each channel n.

また、RAM3内には、押離鍵タッチ情報を得るための鍵スイッチ(浅スイッチおよび深スイッチ)による接点時間差Ton(n)およびToff(n+16)をカウントするためのソフトウエアカウンタ領域が設定されている。さらに、一時メモリ領域は、各種レジスタや、減衰レートを記憶するレートレジスタ等が設けられる。なお、チャンネル番号「n」は、例えば、“0”〜“15”の整数である。これに対応して、音源手段7側には、番号“0”〜“31”の32チャンネルがあり、例えばピアノの音色の場合、キーオン用およびキーオフ用にそれぞれnチャンネルおよびn+16チャンネルが割り当てられる。   Also, in the RAM 3, a software counter area for counting contact time differences Ton (n) and Toff (n + 16) by key switches (shallow switch and deep switch) for obtaining press / release key touch information is set. Yes. Further, the temporary memory area is provided with various registers, a rate register for storing the attenuation rate, and the like. The channel number “n” is an integer from “0” to “15”, for example. Correspondingly, there are 32 channels of numbers “0” to “31” on the sound source means 7 side. For example, in the case of a piano tone, n channels and n + 16 channels are assigned for key-on and key-off, respectively.

押離鍵検出手段4は、鍵盤装置10等を備えた演奏操作装置に内蔵され、バス8を介してCPU1等に接続されている。スイッチ検出手段5に接続されるパネルスイッチ11は、演奏者情報としてのパーソナルデータを入力するための文字キー、パーソナルデータに対応するPデータキー、数値を入力するテンキー、音色選択キー、各種効果などの演奏条件等の設定を行うための種々の操作キーを操作パネル上に備えている。液晶パネルや各種インジケータから成るディスプレイ12は、表示制御手段6を介してバス8に接続され、パネルスイッチ11の操作パネル上の各種操作子に並置されている。また、ディスプレイ12には、各種設定画面や各種操作ボタンを表示し、ディスプレイ画面上で各種設定・表示を行うこともできる。   The pressed / released key detection means 4 is built in a performance operating device including a keyboard device 10 and is connected to the CPU 1 and the like via a bus 8. The panel switch 11 connected to the switch detection means 5 is a character key for inputting personal data as player information, a P data key corresponding to personal data, a numeric keypad for inputting numerical values, a tone color selection key, various effects, etc. Various operation keys for setting performance conditions are provided on the operation panel. A display 12 including a liquid crystal panel and various indicators is connected to the bus 8 via the display control means 6 and is juxtaposed with various operators on the operation panel of the panel switch 11. The display 12 can display various setting screens and various operation buttons, and can perform various settings and displays on the display screen.

音源手段7には、楽音波形の波高値(瞬時値)データからなる波形データを記憶している波形ROM70、および、CPU1との送受信を行う送受信レジスタ71を含んでおり、この波形ROM70は、キーオン時に発生する楽音の生成に用いられるキーオン波形を含む第1音源ソースと、例えばピアノの音色に対応してキーオフ時に発生する楽音の生成に用いられるキーオフ波形を含む第2音源ソースとから成る。   The sound source means 7 includes a waveform ROM 70 that stores waveform data consisting of musical tone waveform peak value (instantaneous value) data, and a transmission / reception register 71 that performs transmission / reception with the CPU 1. The waveform ROM 70 is key-on. It consists of a first sound source including a key-on waveform used for generating a musical sound that is sometimes generated, and a second sound source including a key-off waveform used for generating a musical sound generated at the time of key-off corresponding to, for example, a piano tone color.

鍵盤10が操作されると、CPU1は、キーコード、タッチデータ(ベロシティ値)、キーオン/キーオフ等の各種データを音源手段7の対応するチャンネルに設定することで発音/消音処理を行う。なお、音源手段7は時分割多重処理により各チャンネルの処理を行い、CPU1から設定された各種データに基づいて波形ROM70から波形を読み出し、タッチデータ等に基づいて所定の演算を行なってデジタル楽音信号を発生する。そして、サウンドシステム13はデジタル楽音信号のD/A変換や増幅等を行って、鍵操作に対応した楽音を発生する。なお、DSP等で構成される効果回路もこのサウンドシステム13に含まれる。   When the keyboard 10 is operated, the CPU 1 performs sound generation / mute processing by setting various data such as key code, touch data (velocity value), key-on / key-off, etc. to the corresponding channel of the sound source means 7. The sound source means 7 performs processing of each channel by time division multiplexing processing, reads a waveform from the waveform ROM 70 based on various data set from the CPU 1, performs a predetermined calculation based on touch data, etc., and performs a digital musical tone signal. Is generated. The sound system 13 performs D / A conversion, amplification, etc. of the digital musical tone signal to generate a musical tone corresponding to the key operation. Note that an effect circuit constituted by a DSP or the like is also included in the sound system 13.

[鍵盤装置]次に、実施形態における鍵盤装置と鍵タッチセンサ手段のセンサ部を構成する鍵スイッチについて、説明する。図2は、実施形態に係る鍵盤装置10を示し、鍵操作情報を電子楽器システムに取り込むための一手段を表わす。この図では、鍵盤装置10は、非押鍵状態を側面から見て、ごく概略的に表わされている。 [Keyboard Device] Next, the key switch constituting the sensor unit of the keyboard device and the key touch sensor means in the embodiment will be described. FIG. 2 shows the keyboard device 10 according to the embodiment, and represents one means for taking key operation information into the electronic musical instrument system. In this figure, the keyboard device 10 is very schematically represented when the non-key-pressed state is viewed from the side.

鍵盤装置10は、白鍵21Wと黒鍵21Bとから成る鍵21と、鍵21に連動して駆動される質量体(ハンマー)43とを多数備えている。楽器の棚板部22上には、主鍵支持部23Aおよび副鍵支持部23Bが固着され、両支持部23A,23Bは鍵支持部23を構成する。主鍵支持部23Aには支点ピンWf,Bfが固設され、白鍵21Wは支点ピンWfに回動自在に支持され、黒鍵21Bは支点ピンBfに回動自在に支持されている。鍵21の前方部(図示左側部)には、副鍵支持部23Bから突設させた鍵ガイド部WG、BGが設けられ、白黒鍵21W,21Bを別々に押して離鍵する時の鍵動を鍵ガイド部WG、BGによってガイドする構成になっている。また、副鍵支持部23Bには白鍵用下限ストッパ部WSおよび黒鍵用下限ストッパ部BSが設けられる。   The keyboard device 10 includes a number of keys 21 including a white key 21 </ b> W and a black key 21 </ b> B, and a mass body (hammer) 43 that is driven in conjunction with the key 21. On the shelf 22 of the musical instrument, a main key support portion 23A and a sub key support portion 23B are fixed, and both support portions 23A and 23B constitute a key support portion 23. The main key support portion 23A is fixed with fulcrum pins Wf and Bf, the white key 21W is rotatably supported by the fulcrum pin Wf, and the black key 21B is rotatably supported by the fulcrum pin Bf. Key guide portions WG and BG projecting from the sub-key support portion 23B are provided in the front portion (left side in the figure) of the key 21, and the key movement when the black and white keys 21W and 21B are pressed and released separately is provided. It is configured to be guided by the key guide portions WG and BG. Further, the sub key support portion 23B is provided with a white key lower limit stopper portion WS and a black key lower limit stopper portion BS.

鍵支持部23では、主鍵支持部23Aおよび副鍵支持部23Bを固定的に一体成形した接続部LDによって、押鍵方向から見てラダー状に両支持部23A,23Bを結合させている。そして、この接続部LDの上方において鍵21の下方に位置するところには、支持部B1,B2を介して棚板部22に設けられた基板SB1上に鍵にて駆動される浅スイッチ47が配設されている。鍵21の後方では、支点部Mfを有する質量体支持部41が棚板部22に固設され、錘りW1,W2を内包した樹脂製の質量体43の支点部mfが支点部Mfに回動自在に支持され、これにより、質量体43は支持部41に保持されている。支持部41の上部には、前方側に上限ストッパUSが設けられ、後方側にストッパ部41Sが設けられる。   In the key support portion 23, both the support portions 23A and 23B are coupled in a ladder shape when viewed from the key pressing direction by a connection portion LD in which the main key support portion 23A and the sub key support portion 23B are fixed and integrally formed. A shallow switch 47 that is driven by a key on the substrate SB1 provided on the shelf plate part 22 via the support parts B1 and B2 is located above the connection part LD and below the key 21. It is arranged. Behind the key 21, a mass body support portion 41 having a fulcrum portion Mf is fixed to the shelf plate portion 22, and a fulcrum portion mf of a resin mass body 43 including weights W1 and W2 is rotated around the fulcrum portion Mf. The mass body 43 is held by the support portion 41. In the upper part of the support part 41, an upper limit stopper US is provided on the front side, and a stopper part 41S is provided on the rear side.

この質量体43は、前部に錘W1、後部に錘W2を分散して有し、鍵21の後方上面の質量体駆動部WAにより力伝達部44を介して駆動されるように配設される。力伝達部44は、押鍵時に力を質量体43に伝達すると共に、発音位置の微調節用ねじでもある。鍵21の質量体駆動部WAは、滑加工面を有する。さらに、質量体43の下方で質量体支持部41の上方に位置するところには、支持部41の上面に基板SB2が載置され、この基板SB2上には質量体43により駆動される深スイッチ48が配設されている。鍵21W(21B)は、非押鍵時には、後部が上限ストッパ部USに当接されて静止しているが、押鍵時には、前方においてストッパ部WS、BSと当接し、このとき、質量体43は、後部下端がストッパ部41Sに当接する。この際、ストッパ部41Sにて質量体43は衝突が緩和されるので機械的雑音が軽減される。   The mass body 43 has a weight W1 distributed in the front part and a weight W2 dispersed in the rear part, and is arranged so as to be driven by the mass body drive part WA on the rear upper surface of the key 21 via the force transmission part 44. The The force transmission unit 44 transmits a force to the mass body 43 when the key is depressed, and also serves as a fine adjustment screw for the sound generation position. The mass body drive unit WA of the key 21 has a smooth surface. Further, a substrate SB2 is placed on the upper surface of the support portion 41 below the mass body 43 and above the mass body support portion 41, and a depth switch driven by the mass body 43 on the substrate SB2. 48 is arranged. When the key 21W (21B) is not pressed, the rear part is in contact with the upper limit stopper unit US and is stationary. However, when the key is pressed, the key 21W (21B) is in contact with the stopper parts WS and BS in the front. The lower end of the rear part comes into contact with the stopper part 41S. At this time, since the collision of the mass body 43 is reduced by the stopper portion 41S, mechanical noise is reduced.

このような構成により、図示左側の矢印で示すように下方向に押鍵すると、鍵21の後方および質量体43の前方は、図示中央の矢印a1で示すように上方向に回動し、質量体43の後方は、図示右側の矢印a2で示すように下方向に回動する。離鍵時には、鍵21および質量体43は、それぞれ、矢印とは逆方向に回動して図示の位置に復帰する。   With such a configuration, when the key is pressed downward as indicated by the arrow on the left side of the figure, the rear side of the key 21 and the front side of the mass body 43 rotate upward as indicated by the arrow a1 in the center of the figure, and the mass The rear side of the body 43 rotates downward as indicated by an arrow a2 on the right side of the figure. When the key is released, the key 21 and the mass body 43 are each rotated in the direction opposite to the arrow and returned to the illustrated position.

[鍵スイッチ]この実施形態においては、浅スイッチ47および深スイッチ48によって押離鍵ストロークを検出している。図2の例では、第1および第2アクチュエータ部45,46が鍵21および質量体43の下面に設けられ、第1アクチュエータ45により浅スイッチ47が駆動し、第2アクチュエータ部46により深スイッチ48が駆動する。 [Key Switch] In this embodiment, the key press stroke is detected by the shallow switch 47 and the deep switch 48. In the example of FIG. 2, first and second actuator portions 45, 46 are provided on the lower surface of the key 21 and the mass body 43, the shallow switch 47 is driven by the first actuator 45, and the depth switch 48 is driven by the second actuator portion 46. Drive.

ここで、各アクチュエータ部45,46と各スイッチ47,48との間の配置は、押鍵ストロークにおいて、先ず、第1アクチュエータ部45が浅スイッチ47に当接し、これに遅れて、第2アクチュエータ部46が深スイッチ48に当接するような関係になっている。浅スイッチ47および深スイッチ48は、何れも、ラバーで構成された2つの接点a,b;c,dを備える接点時間差タイプの2メイク式タッチレスポンススイッチであり、各接点a,b;c,dは基板SB1,SB2上における図示しない固定接点に対して閉成(オン)動作および開放(オフ)動作を行い、各閉成動作および開放動作の間にはストローク差が設定されている。   Here, the arrangement between the actuator portions 45 and 46 and the switches 47 and 48 is such that the first actuator portion 45 first comes into contact with the shallow switch 47 in the key pressing stroke, and the second actuator is delayed after that. The portion 46 is in contact with the depth switch 48. Each of the shallow switch 47 and the deep switch 48 is a contact time difference type two-make touch response switch having two contacts a, b; c, d made of rubber, and each contact a, b; c, d performs a closing (on) operation and an opening (off) operation on a fixed contact (not shown) on the substrates SB1 and SB2, and a stroke difference is set between the closing operation and the opening operation.

すなわち、浅スイッチ47においては、例えば、押鍵ストロークで第1アクチュエータ部45が当接する場合、先ず、浅スイッチ47の第1接点aが閉成(オン)し、次に、浅スイッチ47の第2接点bが閉成する。深スイッチ48においても、例えば、押鍵ストロークで第2アクチュエータ部46が当接する場合、先ず、深スイッチ48の第1接点cが閉成し、次に、深スイッチ48の第2接点dが閉成する。また、離鍵ストロークでは、これとは逆に、深スイッチ48の接点d→c、浅スイッチ47の接点b→aの順に開放(オフ)していく。   That is, in the shallow switch 47, for example, when the first actuator unit 45 contacts with a key pressing stroke, first, the first contact a of the shallow switch 47 is closed (turned on), and then the shallow switch 47 The two contacts b are closed. Also in the depth switch 48, for example, when the second actuator portion 46 comes into contact with the key pressing stroke, first, the first contact c of the depth switch 48 is closed, and then the second contact d of the depth switch 48 is closed. To do. In the key release stroke, on the contrary, the contact d → c of the deep switch 48 and the contact b → a of the shallow switch 47 are opened (off) in this order.

図3は実施形態における鍵スイッチの機能を説明するための図である。鍵盤装置10の各鍵21は、それぞれ、図2の状態に対応する離鍵(非押鍵)位置Sから最も深い最大押鍵位置Eまで、例えば、押指位置(例えば鍵先端)にて最大10mmだけ、上下方向に変位することができるように構成される。これに対して、鍵スイッチ即ち浅スイッチ47および深スイッチ48の第1および第2接点a〜dは、図3に示すように、鍵21の押鍵方向動作に応じて鍵位置A〜Dで閉成(オン)し、鍵21の離鍵方向動作に応じて鍵位置D〜Aで開放(オフ)する。   FIG. 3 is a diagram for explaining the function of the key switch in the embodiment. Each key 21 of the keyboard device 10 has a maximum from the key release (non-key press) position S corresponding to the state of FIG. 2 to the deepest maximum key press position E, for example, at the finger press position (for example, key tip). It is configured to be able to be displaced in the vertical direction by 10 mm. On the other hand, the first and second contacts a to d of the key switch, that is, the shallow switch 47 and the depth switch 48 are at the key positions A to D according to the key pressing direction operation of the key 21, as shown in FIG. It is closed (turned on), and is released (turned off) at the key positions D to A according to the key release direction operation of the key 21.

例えば、離鍵(非押鍵)位置Sから最大押鍵位置Eに達するまで鍵21を押鍵すると、下方向に向かう押鍵ストロークでは、先ず、鍵位置Aで、浅スイッチ(SW)47の第1接点aを閉成(オン)して浅スイッチ(SW)47のオン区間が開始し、次に、鍵位置Bに達すると、浅スイッチ(SW)47の第2接点bを閉成して浅スイッチ(SW)47のオン区間が終了する。さらに、鍵位置Cにおいては、深スイッチ(SW)48の第1接点cを閉成して深スイッチ(SW)48のオン区間が開始し、鍵位置Dで、深スイッチ(SW)48の第2接点dを閉成して深スイッチ(SW)48のオン区間が終了する。その後、鍵21は最大押鍵位置Eに到達する。なお、以下の説明において「スイッチ」を適宜「SW」と表記する。   For example, when the key 21 is depressed from the key release (non-key depression) position S until the maximum key depression position E is reached, first, in the downward key depression stroke, the shallow switch (SW) 47 is switched at the key position A. The first contact a is closed (ON) to start the ON section of the shallow switch (SW) 47. Next, when the key position B is reached, the second contact b of the shallow switch (SW) 47 is closed. The ON section of the shallow switch (SW) 47 ends. Further, at the key position C, the first contact c of the depth switch (SW) 48 is closed, and the ON section of the depth switch (SW) 48 starts, and at the key position D, the first switch c of the depth switch (SW) 48 starts. The two contacts d are closed, and the ON section of the deep switch (SW) 48 ends. Thereafter, the key 21 reaches the maximum key pressing position E. In the following description, “switch” is appropriately expressed as “SW”.

逆に、鍵21が最大押鍵位置Eから上方向に向かう離鍵ストロークでは、先ず、鍵位置Dで、深SW48の第2接点dを開放(オフ)して深SW48のオン区間が開始し、次に、鍵位置Cに達すると、深SW48の第1接点cを開放して深SW48のオン区間が終了する。さらに、鍵位置Bにおいては、浅SW47の第2接点bを開放して浅SW47のオン区間が開始し、鍵位置Aで、浅SW47の第1接点aを開放して浅SW47はオフとなり、浅SW47のオン区間が終了する。そして、鍵21は離鍵(非押鍵)位置Sに復帰し、全押離鍵ストロークが完了する。   Conversely, in the key release stroke in which the key 21 moves upward from the maximum key pressing position E, first, at the key position D, the second contact d of the deep SW 48 is opened (off), and the ON section of the deep SW 48 starts. Next, when the key position C is reached, the first contact c of the deep SW 48 is opened, and the ON section of the deep SW 48 ends. Further, at the key position B, the second contact b of the shallow SW 47 is opened to start the ON section of the shallow SW 47, and at the key position A, the first contact a of the shallow SW 47 is opened and the shallow SW 47 is turned off. The ON section of the shallow SW 47 ends. Then, the key 21 returns to the key release (non-key press) position S, and the full key release key stroke is completed.

この例では、4つの接点a〜dの閉成(オン)/開放(オフ)を常時チェックし、オン/オフ状態変化の時点および方向を計測することによって、全部で8種類のオン(閉成)およびオフ(開放)イベントから成るキーイベントが生成される。すなわち、浅SW47の第1および第2接点a,bおよび深SW48の第1および第2接点c,dは、押鍵に伴う位置A〜Dでの閉成(オン)によって4種類のオン(閉成)イベントを生成し、離鍵に伴う位置D〜Aでの開放(オフ)によって4種類のオフ(開放)イベントを生成する。そして、タッチデータを生成するために、各接点a〜dのうち所定の接点間のイベントの時間差(時間間隔)を計測する。   In this example, the four contacts a to d are always checked for closing (on) / opening (off), and by measuring the time and direction of the on / off state change, a total of eight types of on (closing) ) And off (release) events are generated. That is, the first and second contacts a and b of the shallow SW 47 and the first and second contacts c and d of the deep SW 48 are turned on in four types (ON) by closing (ON) at the positions A to D accompanying the key depression. (Closed) event is generated, and four types of off (open) events are generated by opening (off) at positions D to A accompanying the key release. And in order to produce | generate touch data, the time difference (time interval) of the event between the predetermined contacts among each contact a-d is measured.

なお、押鍵時に質量体43がその後端下部をストッパ41Sで受けることによって質量体43がリバウンドする場合のリバウンドリミット位置RLを、位置Cと位置Dとの間に設定することにより、質量体43のリバウンドによるチャタリングの発生を抑制することができる。   The mass body 43 is set between the position C and the position D by setting a rebound limit position RL when the mass body 43 rebounds by receiving the lower end of the rear end thereof with the stopper 41S when the key is depressed. Occurrence of chattering due to rebounding can be suppressed.

〔制御データの構成〕図18および図19は、RAM3上に確保されたフラグバッファおよびカウンタ領域のフォーマットを示しており、図18(A) は、各チャンネル(CH)n毎の発音情報および消音情報を記憶するためのキーバッファKEYBUFのフォーマットを表わし、図18(B) は、キーイベント種類データKV(n)の詳細を表わす。図19(A) は、各チャンネル(CH)n毎の時間差計測モードフラグTC(n)を記憶するためのフラグバッファTCBUFのフォーマットを表わし、図19(B) は、各チャンネルn毎のオン時間差Ton(n)およびオフ時間差Toff(n+16)を計測するためのカウンタ領域のフォーマットを表わす。 [Configuration of Control Data] FIGS. 18 and 19 show the format of the flag buffer and counter area secured on the RAM 3, and FIG. 18 (A) shows the sound generation information and mute for each channel (CH) n. The format of the key buffer KEYBUF for storing information is shown. FIG. 18B shows the details of the key event type data KV (n). FIG. 19A shows the format of the flag buffer TCBUF for storing the time difference measurement mode flag TC (n) for each channel (CH) n, and FIG. 19B shows the on-time difference for each channel n. It represents the format of the counter area for measuring Ton (n) and off-time difference Toff (n + 16).

キーバッファKEYBUFは、図18(A) に示すように、左端のチャンネルナンバ域NRの発音チャンネル番号n(この例では、“0”〜“15”の計16個)それぞれに対して、キーコードデータKC(n)を格納するためのキーコード格納領域CR、キーイベント種類データKV(n)を格納するためのキーイベント種類格納領域VR、キーオンタッチデータVon(n)を格納するためのキーオンタッチ格納領域VnR、および、キーオフタッチデータVoff(n+16)を格納するためのキーオフタッチ格納領域VfRにより構成される。   As shown in FIG. 18 (A), the key buffer KEYBUF has a key code for each of the sounding channel numbers n in the leftmost channel number area NR (in this example, a total of 16 from “0” to “15”). Key code storage area CR for storing data KC (n), key event type storage area VR for storing key event type data KV (n), key on touch for storing key on touch data Von (n) The storage area VnR and the key-off touch storage area VfR for storing the key-off touch data Voff (n + 16).

キーイベント種類データKV(n)は、キーイベントを区別するためのデータであり、例えば、3ビットで表される。すなわち、3ビットの各データは、図18(B) に示すように、第3ビットがスイッチ種類を表わしており“0”=深スイッチ48、“1”=浅スイッチ47を示している。また、第2ビットが接点種類を表わしており“0”=第2接点(b又はd)(2M)、“1”=第1接点(a又はc)(1M)を示している。さらに、第1ビットがイベント種類を表わしており“0”=オフ(開放)、“1”=オン(閉成)を示している。   The key event type data KV (n) is data for distinguishing key events, and is represented by 3 bits, for example. That is, in each 3-bit data, as shown in FIG. 18B, the third bit represents the switch type, and “0” = depth switch 48 and “1” = shallow switch 47. The second bit represents the contact type, and “0” = second contact (b or d) (2M) and “1” = first contact (a or c) (1M). Further, the first bit represents the event type, and indicates “0” = off (open) and “1” = on (closed).

例えば、図18(A) の例では、第0チャンネル(チャンネル番号=0)におけるキーイベント種類データKV(0)=“101”B(なお、記号「B」は、その直前の数値が2進数であることを示す。)は、浅スイッチ47の第2接点b(2M)のオン(閉成)イベントを示し、第1チャンネル(チャンネル番号=1)のキーイベント種類データKV(1)=“010”Bは、深スイッチ48の第1接点c(1M)のオフ(開放)イベントを示している。   For example, in the example of FIG. 18 (A), the key event type data KV (0) = “101” B in the 0th channel (channel number = 0) (the symbol “B” is a numerical value immediately before the binary number) Indicates the ON (closed) event of the second contact b (2M) of the shallow switch 47, and the key event type data KV (1) = "" of the first channel (channel number = 1). 010 ″ B indicates an off (open) event of the first contact c (1M) of the deep switch 48.

図19に示す時間差計測モードフラグTC(n)は、キーイベントの経緯に応じて4つの状態値“00”B,“01”B,“10”B,“11”Bをとり、これらの状態値は、図19(A) の欄外に示すように、次のような状態を表わす。
〔1〕TC(n)=“00”B→割込みによりオン時間差Ton(n)又はオフ時間差Toff(n+16)の何れをも計測しない状態、
〔2〕TC(n)=“01”B→割込みによりオン時間差Ton(n)を計測する状態、
〔3〕TC(n)=“10”B→割込みによりオフ時間差Toff(n+16)を計測する状態
〔4〕TC(n)=“11”B→オン時間差Ton(n)、オフ時間差Toff(n+16)の計測終了状態
また、図19(B) に示すように、カウンタ領域は各チャンネル番号に対応してオン時間差Ton(n)とオフ時間差Toff(n+16)のカウンタレジスタを構成している。
The time difference measurement mode flag TC (n) shown in FIG. 19 takes four state values “00” B, “01” B, “10” B, “11” B according to the history of the key event, and these states. The value represents the following state as shown in the margin of FIG.
[1] TC (n) = “00” B → A state in which neither an on-time difference Ton (n) nor an off-time difference Toff (n + 16) is measured due to an interruption,
[2] TC (n) = “01” B → A state in which an on-time difference Ton (n) is measured by an interruption
[3] State where TC (n) = “10” B → OFF time difference Toff (n + 16) is measured by interruption [4] TC (n) = “11” B → On time difference Ton (n), Off time difference Toff (n + 16) Further, as shown in FIG. 19B, the counter area constitutes a counter register of an on time difference Ton (n) and an off time difference Toff (n + 16) corresponding to each channel number.

図4は、実施形態における楽音発生の一例を説明する図であり、(a)は突っ込み発音の場合、(b)は非突っ込み発音の場合を示している。押鍵操作の鍵ストロークの過程で、浅スイッチ47の第1接点aが閉成(オン)した時点t1から第2接点bが閉成した時点t2までのオン時間差Ton(n)により、図20(A) に示す「Ton→Von変換」テーブルTBL1からキーオンタッチデータV1on(n)を取得する。   FIGS. 4A and 4B are diagrams for explaining an example of musical tone generation in the embodiment. FIG. 4A shows a case of sudden sound generation, and FIG. 4B shows a case of non-rush sound generation. In the process of the key stroke of the key pressing operation, the ON time difference Ton (n) from the time t1 when the first contact a of the shallow switch 47 is closed (ON) to the time t2 when the second contact b is closed is shown in FIG. Key-on touch data V1on (n) is acquired from the “Ton → Von conversion” table TBL1 shown in FIG.

第1実施例の場合は、キーオンタッチデータV1on(n)が所定値A1を越えているときは(a)の突っ込み発音となり、第2〜第4実施例では設定値であるDP値=“0”のとき突っ込み発音となる。そして、この突っ込み発音では、第2接点bが閉成した時点t2の直後から、音源手段7においてキーオン波形が読み出され、キーオンタッチデータVon(n)=V1on(n)に応じた楽音が発生される。   In the case of the first embodiment, when the key-on touch data V1on (n) exceeds the predetermined value A1, the rush sound of (a) is generated, and in the second to fourth embodiments, the DP value = “0” which is a set value. "" In this rush sounding, the key-on waveform is read out by the sound source means 7 immediately after the time t2 when the second contact b is closed, and a musical sound corresponding to the key-on touch data Von (n) = V1on (n) is generated. Is done.

一方、第1実施例でキーオンタッチデータV1onが所定値A1以下の場合および第2〜第4実施例でDP値=“0”でない場合は、時点t2ではキーオン波形は読み出されず、発音の制御がその後の深スイッチ48の状態に委ねられる。すなわち、深スイッチ48の第1接点cが閉成(オン)した時点t3から第2接点dが閉成した時点t4までのオン時間差Ton(n)により、図20(B) に示す「Ton→Von変換」テーブルTBL2からキーオンタッチデータV2on(n)が取得される。このキーオンタッチデータV2on(n)が所定値A2を越えている場合は(b)の非突っ込み発音となり、第2接点dが閉成した時点t4の直後から、音源手段7においてキーオン波形が読み出され、キーオンタッチデータVon(n)=V2on(n)に応じた楽音が発生される。   On the other hand, when the key-on touch data V1on is equal to or less than the predetermined value A1 in the first embodiment and when the DP value is not “0” in the second to fourth embodiments, the key-on waveform is not read at time t2, and the sound generation is controlled. It is left to the state of the deep switch 48 thereafter. That is, by the on-time difference Ton (n) from the time t3 when the first contact c of the deep switch 48 is closed (ON) to the time t4 when the second contact d is closed, “Ton → Key-on touch data V2on (n) is acquired from the “Von conversion” table TBL2. When the key-on touch data V2on (n) exceeds the predetermined value A2, the non-rush sound of (b) is generated, and the key-on waveform is read out by the sound source means 7 immediately after the time t4 when the second contact d is closed. Then, a tone corresponding to the key-on touch data Von (n) = V2on (n) is generated.

また、キーオンタッチデータV2on(n)が所定値A2以下の場合はキーオン波形は読み出されず、発音されない。なお、第4実施例においては、DP値=“1”の場合は深スイッチ48の第1接点cが閉成した時点t3の直後から中位の(medium)非突っ込み発音(破線で図示)となる。   When the key-on touch data V2on (n) is equal to or less than the predetermined value A2, the key-on waveform is not read and is not sounded. In the fourth embodiment, when the DP value = “1”, a medium non-intrusive sound (shown by a broken line) immediately after the time t3 when the first contact c of the deep switch 48 is closed. Become.

そして、突っ込み発音、非突っ込み発音のいずれの場合も、浅スイッチ47の第2接点bが開成(オフ)した時点t5からキーオン波形はレートRonで減衰を開始する。ここで、この図4の例はピアノの音色のようにキーオフ音を付加する例であり、キーオン波形の減衰を開始するとともに、キーオフ波形が読み出されてレートR0で増加させる。これにより、キーオン波形とキーオフ波形のクロスフェード処理が行われる。そして、浅スイッチ47の第2接点bが開成した時点t5から第1接点aが開成した時点t6までのオフ時間差Toff(n+16)によりキーオフタッチデータVoff(n+16)が取得され、第1接点aが開成した時点t6からキーオフ波形がレートR1で減衰を開始して消音される。このレートR1はキーオフタッチデータVoff(n+16)に応じて制御される。   In either case of rush sound or non-rush sound, the key-on waveform starts to decay at the rate Ron from the time t5 when the second contact b of the shallow switch 47 is opened (turned off). Here, the example of FIG. 4 is an example in which a key-off sound is added like a piano tone, and the attenuation of the key-on waveform is started and the key-off waveform is read and increased at the rate R0. Thereby, the cross-fade processing of the key-on waveform and the key-off waveform is performed. Then, the key-off touch data Voff (n + 16) is acquired by the off time difference Toff (n + 16) from the time t5 when the second contact b of the shallow switch 47 is opened to the time t6 when the first contact a is opened, and the first contact a is The key-off waveform starts to attenuate at the rate R1 and is muted from the time t6 when it is opened. This rate R1 is controlled according to the key-off touch data Voff (n + 16).

上記のようにキーオフ波形を用いるのは、例えばピアノでは、ペダルを踏まない状態で離鍵すると、ダンパーが弦に徐々に当てられて弦の振動が強制的に減衰されることによる高調波を含んだ楽音をリアルに再現するためである。また、キーオン波形からキーオフ波形への移行を違和感なくスムーズに再生するため、波形のクロスフェード処理を行いつつ、キーオフ波形に移行し、キーオフ波形では、音量の減衰と音色変化とをともないながら再生される。また、ピアノでなく弦楽器の非突っ込み系楽器であるヴィオラダガンバやダブルベース等の音色に対する波形記憶/読出しについては、ピチカート奏法のみオフ波形をオフ時(t5)から読み出すシステムにしてもよい。   The key-off waveform is used as described above. For example, in a piano, when the key is released without stepping on the pedal, the damper is gradually applied to the string to forcibly attenuate the vibration of the string. This is to reproduce the musical sound realistically. Also, in order to smoothly and smoothly reproduce the transition from the key-on waveform to the key-off waveform, the waveform transitions to the key-off waveform while performing the crossfading process, and the key-off waveform is reproduced with volume reduction and timbre change. The As for waveform storage / reading for timbres such as violada gamba and double bass which are non-intrusive instruments of stringed instruments instead of the piano, a system may be used to read off waveforms from off (t5) only for the pizzicato method.

なお、キーオフ波形を用いない音色の場合には、浅スイッチ47の第1接点aが開成した時点t6からキーオン波形を減衰してもよいし、第2接点bが開成した時点t5からキーオン波形を減衰してもよい。以下の実施例では、図4に示すように、キーオン波形の後、キーオフ波形を読み出すようにしているが、キーオフ波形を用いない音色の場合には、第1接点aが開成した時点t6からキーオン波形を減衰するものとする。   In the case of a tone that does not use the key-off waveform, the key-on waveform may be attenuated from the time t6 when the first contact a of the shallow switch 47 is opened, or the key-on waveform is generated from the time t5 when the second contact b is opened. It may be attenuated. In the following embodiment, as shown in FIG. 4, the key-off waveform is read after the key-on waveform. However, in the case of a tone that does not use the key-off waveform, the key-on is started from the time t6 when the first contact a is opened. The waveform shall be attenuated.

さらに、t2〜t3またはt2〜t4もしくはt3〜t4の時間差(タイムインターバル)、すなわち、突っ込み発音/非突っ込み発音に起因するタイムラグは、演奏者の鍵タッチの態様(例えば「押し初めゆっくりでその後速く押鍵」、「初めから速くその後も速く押鍵」、「初めから最押下までゆっくりと押鍵」等)によって、コントロール可能だというこうとである。したがって、楽曲終了直前のピアニッシモで表現される楽音など、押鍵動作の深い部分で注意深く表現することが可能となっている。この表現はアコースティックピアノに近似している。   Further, the time difference (time interval) between t2 to t3 or t2 to t4 or t3 to t4, that is, the time lag caused by the rush sound / non-rush sound, is a mode of the player's key touch (for example, “slowly at the beginning and fast thereafter. The key can be controlled by pressing the key, pressing the key quickly from the beginning and then pressing the key quickly, pressing the key slowly from the beginning to the end). Therefore, it is possible to express carefully in a deep part of the key pressing operation such as a musical sound expressed by pianissimo immediately before the end of the music. This representation approximates an acoustic piano.

次に、フローチャートに基づいて実施形態の動作について説明する。〔メイン処理〕図8は、実施形態の電子楽器におけるメイン処理のフローチャートであり、各実施例に共通である。この処理を開始すると、先ず、初期化ルーチンRT1において、RAM3内のキーバッファKEYBUF,フラグバッファTCBUF、カウンタ領域等が初期化され、デフォルト音色等の設定等、各種初期化処理を実行する。次の楽音制御パラメータ入力処理ルーチンRT2では、後述の各実施例に対応して、それぞれ、「突っ込み発音/非突っ込み発音」を制御するための所定値A1(第1実施例)、所定値A2(第1〜4実施例)、パーソナルデータ(第2実施例、第3実施例)あるいはDP値(第4実施例)の入力、音色(楽器種類等)の選択など、演奏者による各種の入力処理により指定されたパラメータをRAM3の対応レジスタ等に設定する処理を実行する。   Next, the operation of the embodiment will be described based on a flowchart. [Main Process] FIG. 8 is a flowchart of the main process in the electronic musical instrument of the embodiment, and is common to the respective examples. When this process is started, first, in the initialization routine RT1, the key buffer KEYBUF, flag buffer TCBUF, counter area, and the like in the RAM 3 are initialized, and various initialization processes such as setting a default tone color are executed. In the next musical sound control parameter input processing routine RT2, a predetermined value A1 (first embodiment) and a predetermined value A2 (for controlling “protruding pronunciation / non-protruding pronunciation”) corresponding to each embodiment described later, respectively. First to fourth embodiments), personal data (second embodiment, third embodiment) or DP value (fourth embodiment) input, selection of timbre (instrument type, etc.), various input processes by the performer A process for setting the parameter designated by the above in the corresponding register of the RAM 3 is executed.

続いて、押離鍵処理ルーチンRT3において、演奏者による鍵盤装置10の押離鍵操作に応じて発音/消音制御情報を生成し、発音/消音制御情報を音源手段7に送出して発音/消音処理の実行を指示する。そして、楽音パラメータ設定処理ルーチンRT2に戻り、以後、ルーチンRT2、RT3の処理を繰り返す。   Subsequently, in the key release / removal processing routine RT3, sound generation / mute control information is generated in response to the player's key release operation on the keyboard device 10, and the sound generation / mute control information is sent to the sound source means 7 for sound generation / mute. Instructs execution of processing. Then, the process returns to the musical tone parameter setting processing routine RT2, and thereafter, the processing of routines RT2 and RT3 is repeated.

この実施形態では、このメイン処理に並行して、所定時間(例えば、1μsec)毎に発生されるクロック発生器9からのタイマ割込みクロックに応じてタイマ割込み処理が起動される。この割込み処理は、押離鍵処理と連繋をとりながら処理が実行されるもので、鍵ストローク中のオン時間差およびオフ時間差の計測処理を行うが、その詳細については後述する。   In this embodiment, in parallel with this main process, a timer interrupt process is started in response to a timer interrupt clock from the clock generator 9 generated every predetermined time (for example, 1 μsec). This interrupt process is executed while being linked to the key release process, and performs an on-time difference and off-time difference measurement process during keystrokes, the details of which will be described later.

〔楽音制御パラメータ入力処理〕図9は、楽音制御パラメータ入力処理(図8のRT2)の詳細を表すフローチャートである。まず、ステップP1において、パーソナルデータ入力またはパーソナルデータキーの何れかのオンイベントの有無を判定し、何れもオンイベントが無ければステップP7に進み、何れかのオンイベントが有ればステップP2で、キーバッファKEYBUFUの全チャンネル中にキーコード有りのチャンネルが有るか否かを判定する。一つのチャンネルでもキーコードが有れば、現在発音中であるので入力を禁止としてステップP7に進み、全チャンネルにキーコードが無ければ、現在発音中でないのでステップP3以降で入力処理を行う。 [Musical Sound Control Parameter Input Process] FIG. 9 is a flowchart showing details of the musical sound control parameter input process (RT2 in FIG. 8). First, in step P1, the presence / absence of an on event for any of the personal data input or personal data key is determined. If there is no on event, the process proceeds to step P7, and if there is any on event, the process proceeds to step P2. It is determined whether or not there is a channel with a key code among all the channels of the key buffer KEYBUFU. If there is a key code in one channel, it is currently sounding, so input is prohibited and the process proceeds to step P7. If there is no key code in all channels, no sound is currently being produced, and input processing is performed after step P3.

ステップP3では、ディスプレイ12に「Pデータキー入力可能」を表示するか、または、ディスプレイ12中の入力部分においてその入力可能部分先端でカーソルをブリンクしてこのブリンクにより入力可能状態を表示する。次に、ステップP4で入力処理を行う。この入力処理は、テンキーあるいは文字キーまたはプッシュキーにて数字または文字を入力する処理、入力文字をディスプレイ12に表示する処理、カーソル位置をシフトする処理などを行う。そして、ステップP5で、リターンキー(入力確定を指定するキー)のオンイベントの有無を判定し、リターンキーのオンイベントがあるまで、P3,P4により入力処理を行う。リターンキーのオンイベントがあればステップP6に進む。ステップP6では、P3のブリンクを停止し、入力可能表示を消す。   In step P3, “P data key input possible” is displayed on the display 12, or the cursor is blinked at the tip of the input possible part in the input part of the display 12 and the input possible state is displayed by this blinking. Next, input processing is performed in step P4. This input process includes a process of inputting numbers or characters using a numeric keypad, a character key, or a push key, a process of displaying the input character on the display 12, and a process of shifting the cursor position. In step P5, it is determined whether or not there is an on event of the return key (key for specifying input), and input processing is performed by P3 and P4 until there is an on event of the return key. If there is a return key ON event, the process proceeds to step P6. In step P6, the blinking of P3 is stopped and the input ready display is turned off.

ステップP7の処理は各実施例に応じて異なる。第1実施例では、テンキーから入力された数値を所定値A1あるいは所定値A2として設定する。第2実施例、第3実施例では、入力された文字列を識別し、識別した文字列MOJIにより、各実施例に対応する図6の落とし込みテーブルTBL1(x)または図7の落とし込みテーブルTBL2(x)を参照し、この文字列で各実施例に対応するDP値を所定値(“0”/“1”)に設定する。また、所定値A2を設定する。さらに、第4実施例では、テンキーから入力された数値(“0”/“1”/“2”)をDP値に設定し、また、所定値A2を設定する。すなわち、このステップP7で各実施例に対応する所定値A1、A2またはDP値が決まり、ステップP8の処理に進む。ステップP8では、ディスプレイ12をパーソナリティデータ表示モードから音色表示モードに変更して音色の入力処理を行ったり、その他入力処理を行い、メインルーチンに復帰する。   The process of step P7 differs depending on each embodiment. In the first embodiment, the numerical value input from the numeric keypad is set as the predetermined value A1 or the predetermined value A2. In the second and third embodiments, the input character string is identified, and the drop table TBL1 (x) of FIG. 6 or the drop table TBL2 (FIG. 7) corresponding to each embodiment is identified by the identified character string MOJI. x), the DP value corresponding to each embodiment is set to a predetermined value (“0” / “1”) with this character string. Also, a predetermined value A2 is set. Further, in the fourth embodiment, a numerical value (“0” / “1” / “2”) input from the numeric keypad is set as the DP value, and a predetermined value A2 is set. That is, the predetermined value A1, A2 or DP value corresponding to each embodiment is determined in step P7, and the process proceeds to step P8. In step P8, the display 12 is changed from the personality data display mode to the timbre display mode to perform timbre input processing or other input processing, and the process returns to the main routine.

図10〜図12は、実施形態における押離鍵処理(図8のRT3)の詳細を表わすフローチャートである。なお、最初に第1実施例について主に説明するが、図10は第1〜第4実施例に共通、図11は第1〜第4実施例に殆ど共通、また、図12は第1〜第3実施例に殆ど共通であり、異なる部分はその都度断ってその詳細については後述する。   10 to 12 are flowcharts showing details of the key pressing / releasing process (RT3 in FIG. 8) in the embodiment. First, the first embodiment will be mainly described. FIG. 10 is common to the first to fourth embodiments, FIG. 11 is almost common to the first to fourth embodiments, and FIG. This is almost common to the third embodiment, and different parts are cut off each time, and the details will be described later.

(第1実施例)第1実施例は、突っ込み発音するか非突っ込み発音するかを決定する鍵タッチ信号の閾値である第1の所定値A1と、第2の所定値A2を演奏者が入力設定するものであるが、後述のように音色に対応して設定するようにしてもよい。まず、図10のステップK1において、何れかの鍵のキーイベントの有無を判別し、キーイベントが有ればステップK2に進み、キーイベントがなければ直ちにメインルーチンに復帰する。 (First Embodiment) In the first embodiment, a player inputs a first predetermined value A1 and a second predetermined value A2 which are threshold values of a key touch signal for determining whether to sound suddenly or not. Although it is set, it may be set corresponding to the tone color as described later. First, in step K1 in FIG. 10, it is determined whether or not there is a key event for any key. If there is a key event, the process proceeds to step K2, and if there is no key event, the process immediately returns to the main routine.

ステップK2では、キーバッファKEYBUFにおいて、発生したキーイベントのキーコードKC(n)を格納しているチャンネル(CH)があるか否かを判別し、当該キーコードを格納したチャンネル(CH)があればステップK4に進む。一方、このようなチャンネル(CH)がなければステップK3に進んで、RAM3上のキーバッファKEYBUFにおいてキーコード領域CRにキーコードデータKC(n)が格納されていない「空きチャンネル(CH)」があるか否かを調べる。その結果、空きチャンネル(CH)があればステップK4に進み、そうでなければ直ちにメインルーチンに復帰する。ここで、メインルーチンに復帰するということは、過去の短時間に多くのイベントが発生し、多くの発音/消音処理の実行中であるから、これ以上新押鍵処理は不可能であることによる処理であり、今発生したイベントを無視する。   In step K2, it is determined whether or not there is a channel (CH) storing the key code KC (n) of the generated key event in the key buffer KEYBUF, and there is a channel (CH) storing the key code. If YES, go to step K4. On the other hand, if there is no such channel (CH), the process proceeds to step K3, and “key channel (CH)” in which the key code data KC (n) is not stored in the key code area CR in the key buffer KEYBUF on the RAM 3 exists. Check if there is any. As a result, if there is an empty channel (CH), the process proceeds to step K4, and if not, the process immediately returns to the main routine. Here, returning to the main routine is because many events have occurred in the past short time and many sound generation / mute processes are being executed, so that no new key pressing process is possible. Processing, ignores the event that has just occurred.

ステップK4では発音を割り当てるチャンネル(CH)を決定し、続いて、ステップK5にて、キーバッファKEYBUFにおいて、チャンネル番号領域NR内の決定したチャンネル番号nに対応するキーコード領域CRおよびキーイベント種類領域VRに、発生したキーイベントのキーコードKC(n)およびキーイベント種類KV(n)をそれぞれ書き込んだ後、ステップK6に進む。   In step K4, the channel (CH) to which the sound is assigned is determined. Subsequently, in step K5, in the key buffer KEYBUF, the key code region CR and the key event type region corresponding to the determined channel number n in the channel number region NR. After writing the key code KC (n) and key event type KV (n) of the generated key event in VR, the process proceeds to step K6.

ステップK6では、キーイベントが浅スイッチ47から発生したか否かを判別し、浅スイッチ47のキーイベントのときはステップK7に進み、そうでないときは、深スイッチ48のキーイベントであるのでステップK8に進む。ステップK7,K8では、それぞれイベントがオン/オフの何れのイベントであるかを判定し、これにより、イベントのあったスイッチの種類とイベントの種類に応じて制御のフローが変化する。   In step K6, it is determined whether or not a key event is generated from the shallow switch 47. If the key event is for the shallow switch 47, the process proceeds to step K7. If not, the key event is for the deep switch 48. Proceed to In Steps K7 and K8, it is determined whether the event is an on / off event, and the control flow changes according to the type of switch in which the event occurred and the type of event.

ここで、楽音の発生から消滅に至るプロセスでは、通常、図3に示した押鍵ストローク→離鍵ストロークとなり、これに応じた順序でイベントが発生する。そこで、この押鍵ストローク→離鍵ストロークのプロセスで発生するイベントの順序(接点aオン→接点bオン→接点cオン→接点dオン→接点dオフ→接点cオフ→接点bオフ→接点aオフ)に従って、動作を説明する。   Here, in the process from the generation of the musical sound to the disappearance, normally, the key pressing stroke shown in FIG. 3 is changed to the key releasing stroke, and events are generated in the order corresponding to the key pressing stroke. Therefore, the sequence of events that occur in this key pressing stroke → key release stroke process (contact a on → contact b on → contact c on → contact d on → contact d off → contact c off → contact b off → contact a off) ) To explain the operation.

≪接点aオン≫まず、浅スイッチ47の第1接点aのオンイベントが発生するので、図10のステップK7から図11のステップA1に進む。なお、図11のステップA6は第1実施例の処理であり、図11のステップA6以外の処理は第1〜第4実施例に共通である。ステップA1では、オンイベントが第1接点aであるか第2接点bであるかを判定し、第1接点aのオンイベントであるのでステップA2に進み、時間差計測モードフラグTC(n)に“01”Bをセットし、元のルーチンに復帰する。これにより、同時に進行しているタイマ割込み処理により、カウンタ領域の対応するチャンネルnでオン時間差Ton(n)のカウント(計測)が開始される。 << Contact a ON >> First, since the ON event of the first contact a of the shallow switch 47 occurs, the process proceeds from step K7 in FIG. 10 to step A1 in FIG. Note that step A6 in FIG. 11 is the process of the first embodiment, and the processes other than step A6 in FIG. 11 are common to the first to fourth embodiments. In step A1, it is determined whether the on-event is the first contact a or the second contact b. Since this is an on-event of the first contact a, the process proceeds to step A2, and the time difference measurement mode flag TC (n) is set to “ Set 01 "B and return to the original routine. Thereby, the counting (measurement) of the on-time difference Ton (n) is started in the channel n corresponding to the counter area by the timer interruption process that is proceeding simultaneously.

≪接点bオン≫次に、浅スイッチ47の第2接点bのオンイベントが発生するので、図10のステップK7から図11のステップA1を経てステップA3に進む。ステップA3では、浅スイッチ47のオン時間差Ton(n)から変換テーブルTBL1に基づいて第1タッチデータTBL1(Ton(n))を取得し、KEYBUF(キーオンタッチデータ領域VnR)のV1on(n)に取り込み、ステップA4に進む。なお、オン時間差Ton(n)は第1接点aのオンイベントから第2接点bのオンイベントまでの時間である。 << Contact b ON >> Next, since the ON event of the second contact b of the shallow switch 47 occurs, the process proceeds from step K7 in FIG. 10 to step A3 through step A1 in FIG. In step A3, the first touch data TBL1 (Ton (n)) is acquired from the on-time difference Ton (n) of the shallow switch 47 based on the conversion table TBL1, and is set to V1on (n) of the KEYBUF (key-on touch data area VnR). Capture and go to step A4. The ON time difference Ton (n) is the time from the ON event of the first contact a to the ON event of the second contact b.

ステップA4では、オン時間差のレジスタTon(n)をリセットし、ステップA5で、時間差計測モードフラグTC(n)に“11”Bを格納して非計測モードに設定し、ステップA6に進む。ステップA6では、タッチデータV1on(n)が所定値A1を越えているか否かを判定し、所定値A1以下であればステップA7で発音延期フラグWAIT(n)に“1”を立てて元のルーチンに復帰する(第1実施例)。なお、このステップSA6に対応する第2〜第4実施例の処理については後述する。一方、タッチデータV1on(n)が所定値A1を越えていれば、ステップA8でタッチデータV1on(n)を音源送出用のレジスタVon(n)に格納し、ステップA9で発音処理を行って元のルーチンに復帰する。なお、この発音処理では、チャンネルデータ(n)とキーコードKC(n)とキーオン(n)およびVon(n)を音源手段7に送出し、これにより楽音が発生する。   In step A4, the on-time difference register Ton (n) is reset. In step A5, "11" B is stored in the time difference measurement mode flag TC (n) to set the non-measurement mode, and the process proceeds to step A6. In step A6, it is determined whether or not the touch data V1on (n) exceeds the predetermined value A1, and if it is equal to or smaller than the predetermined value A1, the sound generation postponement flag WAIT (n) is set to “1” in step A7. Return to the routine (first embodiment). The processing of the second to fourth embodiments corresponding to step SA6 will be described later. On the other hand, if the touch data V1on (n) exceeds the predetermined value A1, the touch data V1on (n) is stored in the sound source sending register Von (n) in step A8, and the sound generation process is performed in step A9. Return to the routine. In this sound generation process, channel data (n), key code KC (n), key-on (n), and Von (n) are sent to the sound source means 7, thereby generating a musical sound.

このように、浅スイッチ47の第2接点bのオンイベント時にオン時間差Ton(n)が検出され、この時間差に応じたタッチデータV1on(n)が所定値A1を越えているとき、すなわち強く弾かれたときは、ステップA9で直ぐに発音が開始され、「突っ込み発音」となる。また、タッチデータV1on(n)が所定値A1以下のとき、すなわち弱く弾かれたときは、発音が延期され、後述のように、後に続く深スイッチ48のタッチデータに基づく発音/非発音の判断に委ねられる。   As described above, the ON time difference Ton (n) is detected at the ON event of the second contact b of the shallow switch 47, and when the touch data V1on (n) corresponding to the time difference exceeds the predetermined value A1, that is, strongly If so, at step A9, sound generation is started immediately, and "rush sound" is obtained. Further, when the touch data V1on (n) is equal to or less than the predetermined value A1, that is, when played softly, the sound generation is postponed and, as will be described later, determination of sound generation / non- sound generation based on the touch data of the subsequent deep switch 48, as will be described later. It is entrusted to.

≪接点cオン≫次に、押鍵が進んで深スイッチ48の第1接点cのオンイベントが発生するので、図10のステップK8から図12のステップB1に進む。なお、図12は第1〜第3実施例に共通の処理であり、第4実施例の場合は、図10のステップK8から後述する図17のステップB101に進む。図12のステップB1では、オンイベントが第1接点cであるか第2接点dであるかを判定し、第1接点cのオンイベントであるのでステップB2に進み、このステップB2で時間差計測モードフラグTC(n)に“01”Bをセットして、元のルーチンに復帰する。これにより、深スイッチ48による接点の時間差の計測が開始される。   << Contact c ON >> Next, the key depression proceeds and an ON event of the first contact c of the deep switch 48 occurs, so the process proceeds from step K8 in FIG. 10 to step B1 in FIG. FIG. 12 is a process common to the first to third embodiments. In the case of the fourth embodiment, the process proceeds from step K8 in FIG. 10 to step B101 in FIG. In step B1 of FIG. 12, it is determined whether the on-event is the first contact c or the second contact d. Since this is an on-event of the first contact c, the process proceeds to step B2, and in this step B2, the time difference measurement mode is selected. The flag TC (n) is set to “01” B, and the process returns to the original routine. Thereby, measurement of the time difference of the contact by the deep switch 48 is started.

≪接点dオン≫次に、深スイッチ48の第2接点dのオンイベントが発生するので、図10のステップK8から図12のステップB1を経てステップB3に進む。なお、第4実施例の場合は、図10のステップK8から図17のステップB101に進む。図12のステップB3では、深スイッチ48のオン時間差Ton(n)から変換テーブルTBL2に基づいて第2タッチデータTBL2(Ton(n))を取得し、KEYBUFのV2on(n)に取り込み、ステップB4に進む。なお、オン時間差Ton(n)は第1接点cのオンイベントから第2接点dのオンイベントまでの時間である。   << Contact d ON >> Next, since the ON event of the second contact d of the deep switch 48 occurs, the process proceeds from step K8 in FIG. 10 to step B3 through step B1 in FIG. In the case of the fourth embodiment, the process proceeds from step K8 in FIG. 10 to step B101 in FIG. In Step B3 of FIG. 12, the second touch data TBL2 (Ton (n)) is acquired from the on-time difference Ton (n) of the deep switch 48 based on the conversion table TBL2, and is taken into V2on (n) of the KEYBUF. Step B4 Proceed to The ON time difference Ton (n) is the time from the ON event of the first contact c to the ON event of the second contact d.

ステップB4では、オン時間差のレジスタTon(n)をリセットし、ステップB5で、時間差計測モードフラグTC(n)に“11”Bを格納して非計測モード(計時終了状態)に設定し、ステップB6に進む。ステップB6では、タッチデータV2on(n)が所定値A2を越えているか否かを判定し、所定値A2以下であれば元のルーチンに復帰する。一方、タッチデータV2on(n)が所定値A2を越えていれば、ステップB7で、発音延期フラグWAIT(n)に“1”が立っているか否かを判定し、“1”が立っていなければ元のルーチンに復帰する。そして、“1”が立っていれば、ステップB8でタッチデータV2on(n)を音源送出用のタッチデータVon(n)とし、ステップB9で発音処理を行い、ステップB10で発音延期フラグWAIT(n)をリセットして元のルーチンに復帰する。なお、発音処理では、チャンネルデータ(n)とキーコードKC(n)とキーオン(n)およびVon(n)とを音源手段7に送出し、これにより発音が行われる。   In step B4, the on-time difference register Ton (n) is reset, and in step B5, "11" B is stored in the time difference measurement mode flag TC (n) to set the non-measurement mode (time measurement end state). Proceed to B6. In step B6, it is determined whether or not the touch data V2on (n) exceeds a predetermined value A2. If the touch data V2on (n) is equal to or smaller than the predetermined value A2, the process returns to the original routine. On the other hand, if the touch data V2on (n) exceeds the predetermined value A2, it is determined in step B7 whether or not “1” is set in the pronunciation postponement flag WAIT (n), and “1” must not be set. Returns to the original routine. If "1" is set, the touch data V2on (n) is set as touch data Von (n) for sound source transmission in step B8, the sound generation process is performed in step B9, and the sound generation postponement flag WAIT (n) is processed in step B10. ) To return to the original routine. In the sound generation process, channel data (n), key code KC (n), key-on (n), and Von (n) are sent to the sound source means 7, thereby generating sound.

このように、突っ込み発音しないで浅スイッチ47のオンイベント時から発音が延期された場合、深スイッチ48による時間差に応じた第2のタッチデータV2on(n)と第2の所定値A2とにより発音するか発音しないかが判断される。そして、第2のタッチデータV2on(n)が所定値A2を越えているときは発音が開始され、「非突っ込み発音」となる。   Thus, when sound generation is postponed from the on event of the shallow switch 47 without rushing sound generation, sound is generated by the second touch data V2on (n) corresponding to the time difference by the deep switch 48 and the second predetermined value A2. It is judged whether to pronounce or not to pronounce. When the second touch data V2on (n) exceeds the predetermined value A2, sound generation is started, and “non-rush sound generation” is set.

また、第2タッチデータV2on(n)が第2の所定値A2以下のときは発音されない。この第2の所定値A2は、例えば通常のタッチデータに対して小さな値に設定し、この所定値A2で発音を抑制することにより、探り弾き等による誤発音を防止することができる。なお、この実施形態では第2の所定値A2を入力設定するようにしているが、第2の所定値A2は予め設定された値でもよいし、音色毎に設定された値でもよい。   Further, no sound is generated when the second touch data V2on (n) is equal to or smaller than the second predetermined value A2. For example, the second predetermined value A2 is set to a small value with respect to normal touch data, and by suppressing the sound generation with the predetermined value A2, it is possible to prevent erroneous sound generation due to exploration or the like. In this embodiment, the second predetermined value A2 is input and set. However, the second predetermined value A2 may be a preset value or a value set for each tone color.

≪接点dオフ,接点cオフ≫次に、離鍵が開始されると、深スイッチ48の第2接点dのオフイベントおよび第1接点cのオフイベントが順次発生するが、いずれの場合も、図10のステップK8から元のルーチンに復帰し、何も処理をしない。 << Contact d Off, Contact c Off >> Next, when the key release is started, an off event of the second contact d and an off event of the first contact c of the deep switch 48 are sequentially generated. In either case, Returning to the original routine from step K8 in FIG. 10, no processing is performed.

≪接点bオフ≫次に、浅スイッチ47の第2接点bのオフイベントが発生すると、図10のステップK7から図13のステップC1に進む。なお、図13はキーオフ処理に対応するフローであり、第1〜第4実施例に共通である。ステップC1では、オフイベントが第1接点aであるか第2接点bであるかを判定し、第2接点bのオフイベントであるのでステップC2に進み、ステップC2で現在設定されている音色がキーオフ波形を付加する音色(例えばピアノ)であるか否かを判定する。キーオフ波形を付加する音色でなければそのままステップC4に進み、キーオフ波形を付加する音色であれば、ステップC3で、レート値Rn(n)にRonをレートR(n+16)にR0にセットして音源手段7に出力し、キーオン波形とキーオフ波形のクロスフェード処理を指示してステップC4に進む。 << Contact b Off >> Next, when an off event of the second contact b of the shallow switch 47 occurs, the process proceeds from step K7 in FIG. 10 to step C1 in FIG. FIG. 13 is a flow corresponding to the key-off process, and is common to the first to fourth embodiments. In step C1, it is determined whether the off event is the first contact a or the second contact b. Since the off event is the second contact b, the process proceeds to step C2, and the tone currently set in step C2 is determined. It is determined whether or not the timbre (for example, piano) to which a key-off waveform is added. If the timbre to which the key-off waveform is not added, the process proceeds directly to step C4. If the timbre is to add the key-off waveform, in step C3, Ron is set to the rate value Rn (n) and R0 to the rate R (n + 16), and the sound source. The data is output to the means 7 to instruct cross-fade processing of the key-on waveform and the key-off waveform, and the process proceeds to Step C4.

そして、ステップC4で、時間差計測モードフラグTC(n+16)を“10”B(Toff計測)にセットしてオフ時間差Toff(n+16)の計測を開始させ、元のルーチンに復帰する。   In step C4, the time difference measurement mode flag TC (n + 16) is set to “10” B (Toff measurement) to start the measurement of the off time difference Toff (n + 16), and the process returns to the original routine.

≪接点aオフ≫次に、浅スイッチ47の第1接点aのオフイベントが発生すると、図10のステップK7から図13のステップC1を経てステップC5に進む。ステップC5では、浅スイッチ47のオフ時間差Toff(n+16)から変換テーブルTBL2に基づいて第3タッチデータTBL2(Toff(n+16))を取得し、KEYBUF(キーオフタッチデータ格納領域VfR)のVoff(n+16)に取り込み、ステップC6に進む。なお、オフ時間差Toff(n+16)は第2接点bのオフイベントから第1接点aのオフイベントまでの時間である。 << Contact a Off >> Next, when an off event of the first contact a of the shallow switch 47 occurs, the process proceeds from step K7 in FIG. 10 to step C5 through step C1 in FIG. In Step C5, the third touch data TBL2 (Toff (n + 16)) is acquired from the OFF time difference Toff (n + 16) of the shallow switch 47 based on the conversion table TBL2, and Voff (n + 16) of KEYBUF (key-off touch data storage area VfR). And proceed to Step C6. The off time difference Toff (n + 16) is the time from the off event of the second contact b to the off event of the first contact a.

次に、ステップC6で、オフ時間差のレジスタToff(n+16)をリセットし、ステップC7で、消音処理を行う。このステップC7の消音処理では、キーオフタッチデータVoff(n+16)からレートR1を求め、チャンネルデータ(n)、キーコードKC(n)、キーオフ(n)、およびレートR1を音源手段7に送出し、キーバッファKEYBUFおよびカウンタ領域の当該チャンネルのデータをクリアし、元のルーチンに復帰する。これにより、音源手段7において消音される。   Next, in step C6, the off-time difference register Toff (n + 16) is reset, and in step C7, mute processing is performed. In the silencing process in step C7, the rate R1 is obtained from the key-off touch data Voff (n + 16), and the channel data (n), the key code KC (n), the key-off (n), and the rate R1 are sent to the sound source means 7. The data of the channel in the key buffer KEYBUF and the counter area is cleared, and the process returns to the original routine. Thereby, the sound source means 7 is muted.

〔タイマ割込み処理〕図14は、タイマ割込み処理のフローチャートである。このタイマ割込み処理では、時間差計測モードフラグTC(n)の状態値に応じてオン時間差Ton(n)又はオフ時間差Toff(n+16)の計測を行う。まず、ステップT1で、フラグバッファTCBUFの全てのチャンネル(CH)の時間差計測モードフラグTC(0)〜TC(31)が“00”Bまたは“11”B(不計時状態/計時終了状態)であるか否かを判別し、全チャンネルのフラグTC(0)〜TC(31)が“00”Bまたは“11”Bのときは元のルーチンに復帰し、そうでないときはステップT2に進む。 [Timer Interrupt Processing] FIG. 14 is a flowchart of timer interrupt processing. In this timer interruption process, the on-time difference Ton (n) or the off-time difference Toff (n + 16) is measured according to the state value of the time difference measurement mode flag TC (n). First, in step T1, the time difference measurement mode flags TC (0) to TC (31) of all the channels (CH) of the flag buffer TCBUF are “00” B or “11” B (untimed state / timed state). If the flags TC (0) to TC (31) of all the channels are “00” B or “11” B, the process returns to the original routine, and if not, the process proceeds to step T2.

ステップT2では、フラグバッファTCBUF内において“00”Bまたは“11”Bでない時間差計測モードフラグを識別し、チャンネル(CH)番号nを決定する。この場合、最初の番号値nは、“1”とする(或いは、“00”Bまたは“11”Bでない時間差計測モードフラグのある該当チャンネル(CH)のうち最も小さいチャンネル(CH)番号とする)。すなわち、チャンネル番号の最小値から最大値までをスキャンし、すべての“00”Bまたは“11”Bでないチャンネルを抽出する。その手法は様々であるが、チャンネル番号を更新する処理を含む。   In step T2, a time difference measurement mode flag that is not “00” B or “11” B is identified in the flag buffer TCBUF, and a channel (CH) number n is determined. In this case, the first number value n is “1” (or the smallest channel (CH) number among the corresponding channels (CH) having a time difference measurement mode flag other than “00” B or “11” B). ). That is, the channel number is scanned from the minimum value to the maximum value, and all channels that are not “00” B or “11” B are extracted. The method is various, but includes a process of updating the channel number.

次に、ステップT3で、決定されたチャンネルnの時間差計測モードフラグTC(n)が“01”Bであるか否かを判別する。TC(n)が“01”B(Ton計測)のときは、ステップT4でカウンタ領域のオン時間差Ton(n)(現在までのカウント値)を“1”だけインクリメントし、ステップT6に進む。一方、TC(n)が“01”Bでないときは、ステップT5でカウンタ領域のオフ時間差Toff(n)(現在までのカウント値)を“1”だけインクリメントし、ステップT6に進む。そして、ステップT6では、現チャンネル番号nが最大チャンネル番号値MAX(ステップT2でサーチ対象とするチャンネル番号の最大値)であるか否かを判別し、チャンネル番号nが最大チャンネル番号値MAXであるときは元のルーチンに復帰し、そうでないときは、ステップT2に進んで前回のチャンネル番号値nを含まない他のチャンネル番号を抽出した上、ステップT3以降の処理をする。   Next, in step T3, it is determined whether or not the determined time difference measurement mode flag TC (n) of channel n is “01” B. When TC (n) is “01” B (Ton measurement), the on-time difference Ton (n) (count value up to now) of the counter area is incremented by “1” in Step T4, and the process proceeds to Step T6. On the other hand, when TC (n) is not “01” B, the OFF time difference Toff (n) (count value up to now) of the counter area is incremented by “1” in step T5, and the process proceeds to step T6. In step T6, it is determined whether or not the current channel number n is the maximum channel number value MAX (the maximum channel number to be searched in step T2), and the channel number n is the maximum channel number value MAX. If not, the process returns to the original routine. If not, the process proceeds to step T2 to extract other channel numbers that do not include the previous channel number value n, and then perform the processing after step T3.

以上の処理により、浅スイッチ47および深スイッチ48の各オン時間差Ton(n)、浅スイッチ47および深スイッチ48の各オフ時間差Toff(n)が得られる。なお、この実施形態では浅スイッチ47の時間差データを利用するのみで、深スイッチ48のオフ時間差のデータは処理に利用しないが、何らかの制御(例えば音色制御:オフベロシティが大ほど発音中の楽音の高調波含有率を上げる)に利用するようにしてもよい。   By the above processing, the on-time differences Ton (n) of the shallow switch 47 and the deep switch 48 and the off-time differences Toff (n) of the shallow switch 47 and the deep switch 48 are obtained. In this embodiment, only the time difference data of the shallow switch 47 is used, and the OFF time difference data of the deep switch 48 is not used for processing, but some control (for example, tone control: off-velocity has a greater tone of a musical tone that is being sounded). It may be used for increasing the harmonic content.

上記のように、浅スイッチ47から得られるキーオンタッチデータが所定値A1を越えるような押鍵操作により突っ込み発音を行うことができ、所定値A1以下となるような押鍵操作により非突っ込み発音が可能となる。そして、深スイッチ48から得られるキーオンタッチデータが所定値A2を越えるような押鍵操作により、非突っ込み発音となる。したがって、例えば初心者でも表現力やアーティキュレーションが増大し、演奏し易い電子楽器となる。さらに、深スイッチ48から得られるキーオンタッチデータが所定値A2以下となるような押鍵操作のときは非発音となるので、探り弾き等による誤発音を防止できる。すなわち、探り弾きしたとしても、そのタッチが弱いはずなので、発音しないことが多いということである。   As described above, the key-on touch data obtained from the shallow switch 47 can generate a plunging sound by a key pressing operation that exceeds a predetermined value A1, and a non-pushing sound can be generated by a key pressing operation that is equal to or less than the predetermined value A1. It becomes possible. Then, the key-on touch data obtained from the depth switch 48 causes a non-rush sound by a key pressing operation that exceeds a predetermined value A2. Therefore, for example, even beginners have an increased expressive power and articulation, and the electronic musical instrument is easy to play. Further, since the sound is not produced when the key-on touch data obtained from the depth switch 48 is less than the predetermined value A2, no sound is produced. In other words, even if you try to play, it is often not pronounced because the touch should be weak.

また、所定値A1>所定値A2とすると、スタッカート奏法の条件を満たすことになるので、スタッカート奏法が上手くなる。なぜなら、押し弾き奏法では発音されにくいからである。また、強タッチの押鍵操作に限り突っ込み発音が可能となり、弱タッチでは、発音がわずかに遅れる(より正確には発音位置が押鍵方向に沈む)ので、ピアノの鍵をゆっくりと押した場合と同じような感覚として作用し、ピアニシモ(PP)がよりアコースティックピアノらしくなる。また、所定値A1<所定値A2とすると、A2を比較的小にした場合には弱タッチでも突っ込み発音が可能となり、力の弱い小指による表現力も強化され、A1を比較的大とすれば、比較的タッチを大にしないと発音されないので、指の練習になる。   Further, if the predetermined value A1> the predetermined value A2, the condition of the staccato playing method is satisfied, so that the staccato playing method is improved. This is because it is difficult to pronounce in the playing method. In addition, it is possible to squeeze sound only when the key is pressed with a strong touch, and with a weak touch, the sound is slightly delayed (more precisely, the sounding position sinks in the key-pressing direction). It acts as the same feeling and makes Pianissimo (PP) more like an acoustic piano. Further, if the predetermined value A1 <predetermined value A2, if A2 is relatively small, it is possible to generate a plunging sound even with a weak touch, and the expressive power with a weak little finger is strengthened, and if A1 is relatively large, If you do not make a relatively large touch, it will not be pronounced, so it will be a finger practice.

以上の実施例では、図12のステップB7において発音延期フラグWAIT(n)に“1”が立っていない場合、すなわち、突っ込み発音を行なっている場合、そのまま元のルーチンに復帰するようにしているが、ステップB7の判定がNOの後の処理として、図15(A) に示した処理を行うようにしてもよい。すなわち、ステップB7において発音延期フラグWAIT(n)に“1”が立っていない場合、ステップB7−1で、深スイッチ48に基づいて検出されたキーオンタッチデータV2on(n)が浅スイッチ47に基づいて検出されたキーオンタッチデータV1on(n)を越えているか否かを判定し、越えていなければ元のルーチンに復帰する。一方、V2on(n)がV1on(n)を越えていれば、ステップB7−2で、キーオンタッチデータV2on(n)をレジスタVon(n)に格納して音源手段7に送出し、発音中のキーオンタッチデータVon(n)を書き換える。   In the above embodiment, when “1” is not set in the sound generation postponement flag WAIT (n) in step B7 in FIG. 12, that is, when the rush sound generation is performed, the process returns to the original routine as it is. However, the process shown in FIG. 15A may be performed as a process after the determination in step B7 is NO. That is, if “1” is not set in the pronunciation postponement flag WAIT (n) in step B7, the key-on touch data V2on (n) detected based on the depth switch 48 in step B7-1 is based on the shallow switch 47. It is determined whether or not the detected key-on touch data V1on (n) is exceeded. If not, the process returns to the original routine. On the other hand, if V2on (n) exceeds V1on (n), in step B7-2, the key-on touch data V2on (n) is stored in the register Von (n) and sent to the sound source means 7 to generate sound. The key-on touch data Von (n) is rewritten.

これにより、図15(B) に示したように、V2on(n)>V1on(n)でない場合は、破線のように音量がスタッカート的奏法に対応する楽音となるが、V2on(n)>V1on(n)の場合は、音量が実線のように変化して押し弾きの場合に対応する楽音となる。なお、図15(B) 中の時間t2、t4は図4のt2、t4に対応している。   As a result, as shown in FIG. 15B, when V2on (n)> V1on (n) is not satisfied, the sound volume becomes a musical sound corresponding to the staccato performance as shown by the broken line, but V2on (n)> V1on. In the case of (n), the sound volume changes as shown by a solid line and becomes a musical sound corresponding to the case of pushing. Note that times t2 and t4 in FIG. 15B correspond to t2 and t4 in FIG.

なお、以上の第1実施例では、所定値A1あるいはA2をパネルスイッチ11のテンキー等の操作子で入力するようにしているが、例えばスライド操作子やホイール操作子など、既存の操作子、あるいは別途設けた操作子により入力設定できるようにしてもよい。   In the first embodiment described above, the predetermined value A1 or A2 is input by an operator such as a numeric keypad of the panel switch 11. However, for example, an existing operator such as a slide operator or a wheel operator, The input setting may be made by an operator provided separately.

また、以上の第1実施例では、突っ込み発音するか否かを決定する第1の所定値A1を演奏者が入力設定するようにしているが、例えば、図5に示したテーブル等を用い、音色に対応して所定値A1を設定するようにしてもよい。例えば、パイプオルガン、ヴィオラダガンバ、バスーン、ホルン、オーボエなどをシミュレートする音色では、そのエンベロープにより実質的な発音が遅れ気味になる(すなわち、アコースティックな上記楽器の発音は、所定発音タイミングから楽音が立ち上がるが、人の耳に聞こえる程度に成長するのにタイムラグが生じるという意味であり、音のかたまり(音価)の大きさ(音のエネルギーととらえるとわかりやすい)が実質的に知覚されるタイミングは、実発音開始タイミングからわずかに遅れる)ので、所定値A1を“0”に設定しておくことで常に「突っ込み発音」となり、初心者が演奏しても発音タイミングの遅れを防止することができる。また、鉄琴や木琴の音色は発音が立ち上がりが速いので、所定値A1を最大値(MIDI規格のベロシティ“127”)に設定して、常に「非突っ込み発音」とする。   In the first embodiment described above, the player inputs and sets the first predetermined value A1 for determining whether or not to rush sound. For example, the table shown in FIG. The predetermined value A1 may be set corresponding to the tone color. For example, in a tone that simulates a pipe organ, violada gamba, bassoon, horn, oboe, etc., the actual sound will be delayed due to its envelope (that is, the sound of the acoustic instrument described above is a musical tone from a predetermined sounding timing). This means that there is a time lag for growing to the extent that it can be heard by the human ear, and the volume of sound (tone value) (which is easy to understand when considered as sound energy) is actually perceived. Is slightly delayed from the actual sounding start timing), and by setting the predetermined value A1 to “0”, it always becomes “rush sounding”, and even if a beginner plays, it is possible to prevent the sounding timing from being delayed. . Also, since the sound of the koto and xylophone sounds quickly, the predetermined value A1 is set to the maximum value (Velocity “127” of the MIDI standard) and is always “non-intrusive pronunciation”.

(第2実施例)第2実施例は、突っ込み発音するか非突っ込み発音するかを決定するDP値を、演奏者が「何プレーヤーであるか」に応じて入力設定するものである。すなわちり、図9の楽音制御パラメータ入力処理のステップP4〜P7において、入力された文字列MOJIにより、例えば図6の落とし込みテーブルTBL1(x)を参照し、この文字列(プレーヤー名等)でDP値を所定値(“0”/“1”)に設定する。なお、第2の所定値A2は演奏者が入力設定するものである。そして、図10の押鍵処理を経て図11のステップA6以外は前記第1実施例と同様の処理を行う。 (Second Embodiment) In the second embodiment, a DP value for determining whether to sound suddenly or not is inputted and set according to "how many players". That is, in steps P4 to P7 of the musical tone control parameter input process of FIG. 9, for example, the drop table TBL1 (x) of FIG. 6 is referred to by the input character string MOJI, and this character string (player name, etc.) is used for DP. The value is set to a predetermined value (“0” / “1”). The second predetermined value A2 is input by the performer. Then, after the key pressing process of FIG. 10, the same process as in the first embodiment is performed except for step A6 of FIG.

この第2実施例では図11のステップA6の代わりに図16の処理を行う。すなわち、浅スイッチ47の第2接点bの閉成により浅スイッチ47のオン時間差からタッチデータV1on(n)を取得し、ステップA5で、時間差計測モードフラグTC(n)に“11”Bを格納した後、ステップA6′に進む。ステップA6′では、DP値が“0”であるか否かを判定し、DP値が“0”でなければステップA7で発音延期フラグWAIT(n)に“1”を立てて元のルーチンに復帰する。そして、DP値が“0”であれば、ステップA8でタッチデータV1on(n)を音源送出用のレジスタVon(n)に格納し、前記ステップA9(図11)で発音処理を行う。なお、深スイッチ48のオンイベントのときは図12の処理を行い、浅スイッチ47のオフイベントのときは図13の処理を行うことは、第1実施例と同様である。   In the second embodiment, the process of FIG. 16 is performed instead of step A6 of FIG. That is, the touch data V1on (n) is acquired from the ON time difference of the shallow switch 47 by closing the second contact b of the shallow switch 47, and “11” B is stored in the time difference measurement mode flag TC (n) in step A5. After that, the process proceeds to step A6 ′. In step A6 ', it is determined whether or not the DP value is "0". If the DP value is not "0", in step A7, the pronunciation postponing flag WAIT (n) is set to "1" and the original routine is returned to. Return. If the DP value is “0”, the touch data V1on (n) is stored in the sound source sending register Von (n) in step A8, and the sound generation process is performed in step A9 (FIG. 11). The process of FIG. 12 is performed when the deep switch 48 is on, and the process of FIG. 13 is performed when the shallow switch 47 is off, as in the first embodiment.

以上の第2実施例では、DP値が“0”のとき「突っ込み発音」となり、DP値が“1”のとき「非突っ込み発音」となる。図6に示したように、パーソナルデータが「何プレーヤー」であるかに対して、ピアノ、ギター、鉄琴、木琴等のプレーヤーとして入力した場合はDP値=0となり、ヴィオラダガンバ、バスーン、オーボエ、ホルン、パイプオルガン等のプレーヤーとして入力したときはDP値=1となる。したがって、例えばパイプオルガンのように発音が遅れがちになる音色が現在選択されれいる場合、ピアノ〜木琴の「プレーヤー」は突っ込み発音により発音タイミングの遅れを防止できる。ヴィオラダガンバ〜パイプオルガンの「プレーヤー」は通常の演奏でよい。   In the second embodiment described above, when the DP value is “0”, “intrusive sound generation” is obtained, and when the DP value is “1”, “non-intrusive sound generation” is obtained. As shown in FIG. 6, when the personal data is “how many players”, if it is input as a player such as piano, guitar, iron koto, xylophone, etc., the DP value = 0, and viola dagamba, bassoon, DP value = 1 when input as a player such as oboe, horn, pipe organ. Therefore, for example, when a tone color that tends to be delayed, such as a pipe organ, is currently selected, the “player” of piano to xylophone can prevent a delay in sound generation timing due to the sudden sound. The “player” of Viorada Gamba to Pipe Organ can play normally.

また、例えばピアノの音色が現在選択されている場合、ピアノ〜木琴の「プレーヤー」は突っ込み発音により、従来のピアノの伝達機構特有の伝達遅れによる発音の遅れを感じさせないアーティキュレーションの優れたジャストタイミングの発音となり、ヴィオラダガンバ〜パイプオルガンの「プレーヤー」は非突っ込み発音により、同様にアーティキュレーションの優れたピアノの発音が得られる。   Also, for example, when a piano tone is currently selected, the piano-xylophone “player” has a fine articulation that does not feel the delay in pronunciation due to the transmission delay peculiar to the conventional piano transmission mechanism due to the rushing pronunciation. The sounding of the timing, violadagamba-pipe organ "player" can be obtained by non-rushing pronunciation, as well as piano sound with excellent articulation.

(第3実施例)第3実施例は、突っ込み発音するか非突っ込み発音するかを決定するDP値を、演奏者が「何プレーヤーであるか」および「プロであるかアマチュア」であるかに応じて入力設定するものである。すなわち、図9の楽音制御パラメータ入力処理のステップP4〜P7において、入力された文字列MOJIにより、例えば図7の落とし込みテーブルTBL2(x)を参照し、この文字列(プレーヤー名、「プロ」/「アマ」等)でDP値を所定値(“0”/“1”)に設定する。また、第2の所定値A2は演奏者が入力設定するものである。なお、DP値および所定値A2に応じた制御は第2実施例と同様である。 (Third Embodiment) In the third embodiment, the DP value for determining whether to sound suddenly or not is determined by whether the player is “how many players” and “professional or amateur”. Input is set accordingly. That is, in steps P4 to P7 of the musical tone control parameter input process of FIG. 9, the character string MOJI is referred to, for example, the drop table TBL2 (x) of FIG. 7, and this character string (player name, “pro” / The DP value is set to a predetermined value (“0” / “1”) with “Ama” or the like. The second predetermined value A2 is input by the performer. The control according to the DP value and the predetermined value A2 is the same as in the second embodiment.

これにより、例えばピアノプレーヤーの場合、アマチュアを選択すると突っ込み発音となり、演奏動作が遅れ気味になる初心者でも、表現力やアーティキュレーションが増大してプロ並みに演奏でき、演奏し易い電子楽器となる。   As a result, for example, in the case of a piano player, when an amateur is selected, even a beginner who is slow to perform will be able to perform professionally with increased expressiveness and articulation, making it an easy-to-play electronic musical instrument .

(第4実施例)第4実施例は、突っ込み発音するか非突っ込み発音するかを決定するDP値を3段階の中から演奏者が入力設定するものである。また、第2の所定値A2は演奏者が入力設定するものである。すなわち、図9の楽音制御パラメータ入力処理において、DP値を例えばテンキーで“0”または“1”または“2”を選択して入力する。この第4実施例では、図10、図11、図16および図13の前記第2実施例と同様な処理を行い、DP値が“0”の場合は、図11および図16の処理で突っ込み発音され、DP値が“0”以外のときは、図16のステップA6′およびステップA7を経て、発音が延期される。そして、深スイッチ48のオンイベントの時に、図10のステップK8から図17のステップB101に進む。 (Fourth Embodiment) In the fourth embodiment, the performer inputs and sets the DP value for determining whether to pronounce suddenly or non-protrusively from among three stages. The second predetermined value A2 is input by the performer. That is, in the musical tone control parameter input process of FIG. 9, the DP value is input by selecting “0”, “1” or “2” with the numeric keypad, for example. In the fourth embodiment, processing similar to that in the second embodiment shown in FIGS. 10, 11, 16, and 13 is performed. When the DP value is “0”, the processing shown in FIGS. 11 and 16 is performed. When the sound is generated and the DP value is other than “0”, the sound generation is postponed through steps A6 ′ and A7 of FIG. When the deep switch 48 is on, the process proceeds from step K8 in FIG. 10 to step B101 in FIG.

ステップB101では、発音延期フラグWAIT(n)に“1”が立っているか否かを判定し、“1”が立っていなければ元のルーチンに復帰する。そして、“1”が立っていれば、ステップB102で、DP値が“1”であるか否かを判定し、DP値が“1”でなければステップB105に進み、DP値が“1”であれば、ステップB103に進む。ステップB103では、タッチデータV1on(n)を音源送出用のレジスタVon(n)に格納し、ステップB104で、前記同様な発音処理を行い、ステップB115で発音延期フラグWAIT(n)をリセットして元のルーチンに復帰する。これにより、図4に示したように深スイッチ48の第1接点cが閉成した時点t3の直後から中位の(medium)非突っ込み発音が行われる。   In step B101, it is determined whether or not “1” is set in the pronunciation postponing flag WAIT (n). If “1” is not set, the process returns to the original routine. If “1” stands, it is determined in step B102 whether the DP value is “1”. If the DP value is not “1”, the process proceeds to step B105, and the DP value is “1”. If so, the process proceeds to step B103. In step B103, the touch data V1on (n) is stored in the sound source sending register Von (n). In step B104, the sound generation process similar to that described above is performed. In step B115, the sound generation postponement flag WAIT (n) is reset. Return to the original routine. As a result, as shown in FIG. 4, the medium non-rush sounding is performed immediately after the time t3 when the first contact c of the deep switch 48 is closed.

ステップB105では、DP値が“2”であるか否かを判定し、DP値が“2”でなければ元のルーチンに復帰し、DP値が“2”であれば、ステップB106以降の処理を行う。なお、ステップB106〜B110の処理は、図12のステップB1〜B10の処理と同じであり、DP値が“2”のときは、浅スイッチ47のオンイベント時および深スイッチ48の第1接点cの閉成時に発音が延期され、深スイッチ48の第2接点dが閉成した直後に、第2のタッチデータV2on(n)が所定値A2を越えているときは発音が開始され、「非突っ込み発音」となる。また、第2タッチデータV2on(n)が第2の所定値A2以下のときは発音されない。なお、深スイッチ48のオフイベントのときは、図10のステップK8から元のルーチンに復帰し、浅スイッチ47のオフイベントのときは図13の処理を行うことは、他の実施例と同様である。   In Step B105, it is determined whether or not the DP value is “2”. If the DP value is not “2”, the process returns to the original routine. If the DP value is “2”, the processing after Step B106 is performed. I do. The processing in steps B106 to B110 is the same as the processing in steps B1 to B10 in FIG. 12. When the DP value is “2”, the shallow switch 47 is turned on and the first contact c of the depth switch 48 is set. When the second touch data V2on (n) exceeds the predetermined value A2 immediately after the second contact d of the deep switch 48 is closed, the sound generation is started. "Intrusive pronunciation". Further, no sound is generated when the second touch data V2on (n) is equal to or smaller than the second predetermined value A2. When the deep switch 48 is an off event, the process returns to the original routine from step K8 in FIG. 10, and when the shallow switch 47 is an off event, the process of FIG. 13 is performed as in the other embodiments. is there.

以上のように、第4実施例では、浅スイッチ47および深スイッチ48の4つの接点のうち最初の2つはタッチデータV1on(n)を取得するために利用し、タッチデータV1on(n)が取得された2接点めで発音開始するモード(DP値=0)と、深スイッチ48の第1接点cのオンイベントで発音開始するモード(DP値=1)と、深スイッチ48の第2接点dのオンイベントで発音開始するモード(DP値=2)とがある。   As described above, in the fourth embodiment, the first two contacts of the shallow switch 47 and the deep switch 48 are used for acquiring the touch data V1on (n), and the touch data V1on (n) The mode for starting sound generation at the second contact point obtained (DP value = 0), the mode for starting sound generation at the ON event of the first contact c of the deep switch 48 (DP value = 1), and the second contact point d of the deep switch 48 There is a mode (DP value = 2) in which sound generation is started by an on event.

この第4実施例によれば、突っ込み発音、中位の非突っ込み発音、および非突っ込み発音を選択することができ、さらに演奏し易い電子楽器となる。例えばパイプオルガンのように発音が遅れがちになる音色に対して、ピアノ〜木琴の「プレーヤー」はDP値=0にして「突っ込み発音」とし、ヴィオラダガンバ〜パイプオルガンの「プレーヤー」はDP値=1として「中位の非突っ込み発音」とし、ピアノのような音色に対して、ピアノ〜木琴の「プレーヤー」はDP値=0または1にして「突っ込み発音または中位の非突っ込み発音」とし、ヴィオラダガンバ〜パイプオルガンの「プレーヤー」はDP値=2として「非突っ込み発音」としてもよい。   According to the fourth embodiment, it is possible to select a sudden sound, a medium non-rush sound, and a non-rush sound, and the electronic musical instrument becomes easier to play. For example, for piano to xylophone “players” with a DP value = 0 for “sounding pronunciation”, and for violada gamba to pipe organ “players” DP values = 1 for “moderate non-intrusive pronunciation”, and for piano-like timbres, the “player” of piano to xylophone sets DP value = 0 or 1 to “intrusive or intermediate non-intrusive pronunciation” The “player” of Viorada Gamba to pipe organ may be set to “non-intrusive pronunciation” with DP value = 2.

また、鍵ストロークの全行程で鍵の位置をセンシングするような技術を用いてもよいが、この第4実施例によれば浅スイッチ47および深スイッチ48の2つのメカニックなスイッチだけで制御しているので、鍵ストロークの検出精度(確度)が高い。さらに、制御フローが簡単で、全行程センシングのようなソフト処理も必要なく、押鍵操作に対応して処理速度を速くすることができる。   Further, a technique for sensing the key position in the entire stroke of the key stroke may be used. However, according to the fourth embodiment, the control is performed by only two mechanic switches such as the shallow switch 47 and the deep switch 48. Therefore, the key stroke detection accuracy (accuracy) is high. Furthermore, the control flow is simple, and software processing such as full-stroke sensing is not required, and the processing speed can be increased in response to a key pressing operation.

以上の実施例では、4つの接点のオン/オフに応じて発音タイミングを制御するようにしているが、3つの接点の鍵スイッチを用い、押鍵ストロークの前2つの接点の時間差から取得したタッチデータに応じて、突っ込み発音をするようにしてもよい。   In the above embodiment, the sound generation timing is controlled according to the ON / OFF of the four contacts, but the touch acquired from the time difference between the two contacts before the key pressing stroke using the key switch of the three contacts. Depending on the data, you may make a rush sound.

また、鍵ストローク中の接点数を増やしたり、さらに、全行程センシングを利用し、設定できるDP値の数を増やし、非突っ込み発音の態様(発音タイミング)を多段に設定できるようにしてもよいし、無段階に設定できるようにしてもよい。この場合、タッチデータも、発音直前のデータや、押鍵初期、あるいは、中間、またはそれらをミックスして平均を取ったデータを利用してもよい。   In addition, the number of contacts in a keystroke may be increased, or the number of DP values that can be set is increased using full-stroke sensing, so that the non-rush sounding mode (sounding timing) can be set in multiple stages. , It may be set steplessly. In this case, as touch data, data immediately before sound generation, initial key pressing, intermediate, or data obtained by mixing them may be used.

本発明の実施形態の電子楽器のブロック図である。It is a block diagram of the electronic musical instrument of the embodiment of the present invention. 実施形態に係る鍵盤装置を示す図である。It is a figure which shows the keyboard apparatus which concerns on embodiment. 実施形態における鍵スイッチの機能を説明するための図である。It is a figure for demonstrating the function of the key switch in embodiment. 実施形態における楽音発生の一例を説明する図である。It is a figure explaining an example of musical tone generation in an embodiment. 実施形態における所定値を音色で設定する場合のテーブルの一例を示す図である。It is a figure which shows an example of the table in the case of setting the predetermined value by tone color in embodiment. 実施形態における落とし込みテーブルTBL1(第2実施例)を示す図である。It is a figure which shows dropping table TBL1 (2nd Example) in embodiment. 実施形態における落とし込みテーブルTBL2(第3実施例)を示す図である。It is a figure which shows dropping table TBL2 (3rd Example) in embodiment. 実施形態におけるメイン処理のフローチャートである。It is a flowchart of the main process in embodiment. 実施形態における楽音制御パラメータ入力処理のフローチャートである。It is a flowchart of a musical tone control parameter input process in the embodiment. 実施形態における押離鍵処理のフローチャートの一部である。It is a part of flowchart of the key release process in embodiment. 実施形態における押離鍵処理のフローチャートの他の一部である。It is another part of the flowchart of the key release key process in an embodiment. 実施形態における押離鍵処理のフローチャートの他の一部である。It is another part of the flowchart of the key release key process in an embodiment. 実施形態における押離鍵処理のフローチャートの他の一部である。It is another part of the flowchart of the key release key process in an embodiment. 実施形態におけるタイマ割込み処理のフローチャートである。It is a flowchart of the timer interruption process in the embodiment. 実施形態における突っ込み発音を行っている場合のタッチデータを変更する他の実施例のフローチャートおよび作用を説明する図である。It is a figure explaining the flowchart and effect | action of the other Example which changes the touch data at the time of performing the rush sound generation in embodiment. 実施形態における第2実施例に係るフローチャートである。It is a flowchart which concerns on the 2nd Example in embodiment. 実施形態における第4実施例に係るフローチャートである。It is a flowchart which concerns on the 4th Example in embodiment. 実施形態におけるキーバッファおよびキーイベント種類データのフォーマットを示す図である。It is a figure which shows the format of the key buffer and key event kind data in embodiment. 実施形態におけるフラグバッファTCBUFとカウンタ領域のフォーマットを示す図である。It is a figure which shows the format of the flag buffer TCBUF and counter area | region in embodiment. 実施形態における「Ton→Von変換」テーブルTBL1および「Ton→Von変換」テーブルTBL2を示す図である。It is a figure which shows "Ton-> Von conversion" table TBL1 and "Ton-> Von conversion" table TBL2 in embodiment.

符号の説明Explanation of symbols

1…CPU、7…音源手段、10…鍵盤装置、21W…白鍵、21B…黒鍵、47…浅スイッチ、48…深スイッチ   DESCRIPTION OF SYMBOLS 1 ... CPU, 7 ... Sound source means, 10 ... Keyboard device, 21W ... White key, 21B ... Black key, 47 ... Shallow switch, 48 ... Deep switch

Claims (1)

音色を設定する音色設定手段と、
押離鍵操作される鍵と、
該鍵を押鍵操作した時の鍵ストローク中浅い位置において第1の鍵タッチ信号を生成する第1のタッチセンサと鍵ストローク中深い位置において第2の鍵タッチ信号を生成する第2のタッチセンサとでなる鍵タッチセンサ手段と、
該鍵タッチセンサ手段で生成される鍵タッチ信号に基づいて前記設定された音色でなる楽音を制御する楽音制御手段と、
演奏者情報を入力する演奏者情報入力手段と、
演奏者情報入力手段で入力される演奏者情報に応じて、前記鍵ストロークの浅い方で発生される第1の鍵タッチ信号が得られた直後に発音するか、前記鍵ストロークの深い方で発生された第2の鍵タッチ信号に応じて発音/非発音を制御するかを切り換える発音タイミング制御手段と
を備えたことを特徴とする電子楽器。
Timbre setting means for setting the timbre,
The key to be pressed and released,
A first touch sensor that generates a first key touch signal at a shallow position in the keystroke when the key is pressed, and a second touch that generates a second key touch signal at a deep position in the keystroke and the sensor, and the key touch sensor means consisting of,
Musical tone control means for controlling a musical tone having the set timbre based on a key touch signal generated by the key touch sensor means;
Performer information input means for inputting performer information ;
Depending on the player information input by the player information input means, or sound immediately after the first key touch signal generated by shallower of said key stroke is obtained, the deeper of said key stroke An electronic musical instrument comprising sound generation timing control means for switching whether sound generation / non- sound generation is controlled according to the generated second key touch signal.
JP2005063141A 2005-03-07 2005-03-07 Electronic musical instruments Expired - Fee Related JP4042753B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005063141A JP4042753B2 (en) 2005-03-07 2005-03-07 Electronic musical instruments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005063141A JP4042753B2 (en) 2005-03-07 2005-03-07 Electronic musical instruments

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001011564A Division JP3719144B2 (en) 2001-01-19 2001-01-19 Electronic musical instruments

Publications (2)

Publication Number Publication Date
JP2005222073A JP2005222073A (en) 2005-08-18
JP4042753B2 true JP4042753B2 (en) 2008-02-06

Family

ID=34997679

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005063141A Expired - Fee Related JP4042753B2 (en) 2005-03-07 2005-03-07 Electronic musical instruments

Country Status (1)

Country Link
JP (1) JP4042753B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937671A (en) * 2009-06-30 2011-01-05 卡西欧计算机株式会社 Electric keyboard instrument

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008046249A (en) * 2006-08-11 2008-02-28 Kawai Musical Instr Mfg Co Ltd Electronic keyboard instrument
JP2010160263A (en) * 2009-01-07 2010-07-22 Casio Computer Co Ltd Electronic keyboard musical instrument
JP2011013258A (en) * 2009-06-30 2011-01-20 Casio Computer Co Ltd Electronic keyboard instrument
JP4888842B2 (en) * 2009-06-30 2012-02-29 カシオ計算機株式会社 Electronic keyboard instrument

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937671A (en) * 2009-06-30 2011-01-05 卡西欧计算机株式会社 Electric keyboard instrument
CN101937671B (en) * 2009-06-30 2013-09-11 卡西欧计算机株式会社 Electronic keyboard instrument

Also Published As

Publication number Publication date
JP2005222073A (en) 2005-08-18

Similar Documents

Publication Publication Date Title
JP4107107B2 (en) Keyboard instrument
JP4748011B2 (en) Electronic keyboard instrument
JP3587167B2 (en) Electronic musical instrument
US7361825B2 (en) Electronic keyboard instrument
US7429699B2 (en) Electronic musical instrument and recording medium that stores processing program for the electronic musical instrument
US7470855B2 (en) Tone control apparatus and method
JP4042753B2 (en) Electronic musical instruments
JPH03174590A (en) Electronic musical instrument
JP6149354B2 (en) Electronic keyboard instrument, method and program
JPH11296168A (en) Performance information evaluating device, its method and recording medium
JP3719144B2 (en) Electronic musical instruments
JP3995408B2 (en) Electronic musical instrument and keyboard device for electronic musical instrument
JP6410345B2 (en) Sound preview apparatus and program
JP2007018004A (en) Electronic keyboard musical instrument
JP5845752B2 (en) Sound effect imparting device and piano
JP4095475B2 (en) Musical sound control device, musical sound control method, and computer program for musical sound control
JP2013061541A (en) Device for imparting acoustic effect, and piano
JP4186855B2 (en) Musical sound control device and program
JP6394737B2 (en) Electronic keyboard instrument, method and program
JP4218566B2 (en) Musical sound control device and program
JP2004077521A (en) Playing information preparation device, playing information recording device, and keyboard musical instrument
JP5857564B2 (en) Sound effect imparting device and piano
JP2000172253A (en) Electronic musical instrument
JP2013061538A (en) Device for imparting acoustic effect, and piano
JP3870948B2 (en) Facial expression processing device and computer program for facial expression

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050701

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070525

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070605

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070806

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: 20071023

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071105

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101122

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101122

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111122

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111122

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121122

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121122

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131122

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees