JPH09134171A - Sound generation indicating device - Google Patents

Sound generation indicating device

Info

Publication number
JPH09134171A
JPH09134171A JP8229618A JP22961896A JPH09134171A JP H09134171 A JPH09134171 A JP H09134171A JP 8229618 A JP8229618 A JP 8229618A JP 22961896 A JP22961896 A JP 22961896A JP H09134171 A JPH09134171 A JP H09134171A
Authority
JP
Japan
Prior art keywords
sound
key
resonance
input
tone
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.)
Granted
Application number
JP8229618A
Other languages
Japanese (ja)
Other versions
JP2666132B2 (en
Inventor
Shigeru Matsuyama
茂 松山
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP8229618A priority Critical patent/JP2666132B2/en
Publication of JPH09134171A publication Critical patent/JPH09134171A/en
Application granted granted Critical
Publication of JP2666132B2 publication Critical patent/JP2666132B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To reproduce the generation phenomenon of a resonant sound which is seen on an acoustic musical instrument such as a piano. SOLUTION: A keyboard is scanned to detect whether or not a key is pressed (S1-S3) and when a key is pressed, the key code of the pressed key is stored in a free ch (S4). Then whether or not another key is pressed at this time is detected (S5) and when so, the degree of a resonant sound based upon the key code difference between the two pressed keys is read out and stored in a resonant sound area of a work RAM (S6-S8) and the ch number of the key which is pressed earlier is stored in the said resonant sound area while paired with the degree of the resonant sound (S9). Then a resonant sound based upon the stored resonant sound degree is generated, an envelope is added, and the resulting sound is generated (S10 and S11). Then the keyboard is scanned again and when key release is detected (S1-S3), the sound of the key code of the key release is ceased and the ch where the key code is stored is made free (S12 and S13). When the ch number is in the resonant sound area, the resonant sound corresponding to the ch number is ceased and the resonant sound degree is erased.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はピアノ等に見られ
る、弦振動による共鳴音の発生現象を反映させた発音指
示装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sound generation instruction device which reflects a phenomenon of resonance generated by string vibration, which is observed in a piano or the like.

【0002】[0002]

【従来の技術】例えばピアノにおいて、C2の鍵を静か
に押し下げた状態で、F2の鍵を強く押鍵し、その後F
2の鍵を離すと、C4とC3の音高に相当する共鳴音が
明らかに聞こえる。これはF2の押鍵により発生した、
F2の弦の3次と6次モードの振動がC2の弦の4次及
び8次モードの共鳴振動を引き起こすためである。
2. Description of the Related Art For example, in a piano, a key of F2 is strongly pressed while a key of C2 is pressed down gently.
When the key 2 is released, resonances corresponding to the pitches of C4 and C3 are clearly heard. This was caused by pressing the key of F2,
This is because the vibration of the third and sixth order modes of the string of F2 causes the resonance vibration of the fourth and eighth order modes of the string of C2.

【0003】しかし従来の発音指示装置は、電子ピアノ
と称する製品においても、このような弦の振動による共
鳴音を発生させることは不可能であった。
[0003] However, it is impossible for a conventional sounding instruction device to generate a resonance sound due to the vibration of a string even in a product called an electronic piano.

【0004】[0004]

【発明が解決しようとする課題】本発明の課題は、ピア
ノ等のアコースティツク楽器にみられる共鳴音の発生現
象を再現することのできる発音指示装置を実現すること
にある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a sounding instruction device capable of reproducing a resonance sound generation phenomenon seen in an acoustic musical instrument such as a piano.

【0005】[0005]

【課題を解決するための手段】本発明は、上記課題を達
成するために、入力された発音指示情報により楽音の発
音開始を検知すると共に、入力された消音指示情報によ
り該楽音の発音終了を検知して、該楽音が発音中である
ことを認識する発音認識手段と、前記発音認識手段が発
音中であることを認識している場合に、前記発音指示情
報が新たに入力された時、発音中であることを認識して
いる該楽音に対応する発音指示情報と、新たに入力され
た発音指示情報との双方に基づく共鳴音の発生を指示す
る共鳴音発音指示手段と、この共鳴音発音指示手段によ
り発音の指示された共鳴音が発音中に、当該共鳴音に係
わる2つの前記発音指示情報のうち、先に入力された前
記発音指示情報に係る楽音の発音が認識されかつ後に入
力された前記発音指示情報に対応する前記消音指示が入
力された場合には前記共鳴音の発音を継続し、後に入力
された前記発音指示情報に係る楽音の発音が認識されか
つ先に入力された前記発音指示情報に対応する前記消音
指示が入力された場合、該共鳴音の消音を指示する共鳴
音消音指示手段と、を有することを要点とする。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention detects the start of tone generation based on input tone generation instruction information, and determines the end of the tone generation based on the input mute instruction information. When detecting, the pronunciation recognition means for recognizing that the tone is being produced, and when the pronunciation recognizing means recognizes that the pronunciation is being produced, when the pronunciation instruction information is newly input, Resonance sound generation instruction means for instructing generation of a resonance sound based on both the sound generation instruction information corresponding to the musical sound that is recognized as being sounded and the newly input sound generation instruction information; While the resonance sound whose pronunciation is instructed by the pronunciation instructing means is being generated, the pronunciation of the musical tone related to the previously input pronunciation instruction information is recognized among the two pieces of the pronunciation instruction information related to the resonance sound and is input later. Said pronunciation When the mute instruction corresponding to the sound indication information is input, the sounding of the resonance sound is continued, and the pronunciation of the musical tone related to the sound input instruction information input later is recognized, and the sound emission instruction information input earlier is received. And a resonance sound muffling instructing unit that instructs muffling of the resonance sound when the muffling instruction corresponding to the above is input.

【0006】[0006]

【発明の実施の形態】次に、図面を参照しながら、本発
明を電子ピアノに実施した第1の実施形態につき説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, a first embodiment in which the present invention is applied to an electronic piano will be described with reference to the drawings.

【0007】図1は第1の実施形態の全体の構成を示
す。1は鍵盤部、2は押鍵検出および発音割当て回路
で、鍵盤部1の押鍵、離鍵を検出し、押圧鍵を複数の発
音割当てチャネルのいずれかに割当て、その割当てた押
圧鍵を特定するキーコードを出力する。このキーコード
に対応して、周波数ナンバー・メモリ7から周波数ナン
バーを読み出し、これを用いて正弦波生成回路8におい
て、上記の周波数ナンバーに対応する周波数の基本波お
よびその高調波を生成する。
FIG. 1 shows the overall configuration of the first embodiment. Reference numeral 1 denotes a keyboard unit, and 2 denotes a key press detection and sound assignment circuit which detects a key press and a key release of the keyboard unit 1, assigns a pressed key to one of a plurality of sound assigned channels, and specifies the assigned pressed key. The key code to be output. A frequency number is read from the frequency number memory 7 corresponding to the key code, and the sine wave generation circuit 8 generates a fundamental wave having a frequency corresponding to the frequency number and a harmonic wave thereof using the frequency number.

【0008】次に、高調波係数メモリ9から、読出した
高調波係数を、対応する上記の基本波および高調波に乗
算器10においてそれぞれ乗算し、その後、累算器11
において、さらにそれらを累算する。
Next, the corresponding fundamental wave and harmonic are multiplied by the harmonic coefficient read from the harmonic coefficient memory 9 in the multiplier 10, and then the accumulator 11
, And further accumulate them.

【0009】その結果、正弦波合成方式により合成され
た、楽音波形が出力される。
As a result, a musical sound waveform synthesized by the sine wave synthesis method is output.

【0010】また、6は共鳴音次数テーブル・メモリ
(以後共鳴音次数メモリと呼ぶ)で、押鍵中の鍵が2鍵
以上存在するとき、後述する共鳴音を発生するために必
要なデータを予め記憶しているメモリであり、5のワー
クRAMは押圧鍵のキーコードや上記の共鳴音次数その
他を、一時記憶する作業用のRAMである。また3はプ
ログラムROM(リード・オンリー・メモリ、以後RO
Mと呼ぶ)4によって制御されるCPU(中央制御装
置)である。
Reference numeral 6 denotes a resonance order table memory (hereinafter referred to as resonance order memory). When two or more keys are depressed, data necessary for generating resonance to be described later is stored. The work RAM 5 is a work RAM for temporarily storing the key code of the pressed key, the above-described resonance order, and the like. 3 is a program ROM (read only memory, hereinafter RO)
M) 4 is a CPU (central control unit) controlled by the CPU 4.

【0011】次に、上記の楽音波形に対して、エンベロ
ープ生成回路12で生成されたエンベロープを付加する
ため、乗算器13において累算器11の出力と上記エン
ベローブ生成回路の出力を累算し、その後D/A変機器
14においてアナログ信号に変換した後、増幅器15を
介してスピーカ16より楽音を発音する。
Next, in order to add the envelope generated by the envelope generating circuit 12 to the musical tone waveform, a multiplier 13 accumulates the output of the accumulator 11 and the output of the envelope generating circuit, Then, after being converted into an analog signal in the D / A converter 14, a tone is generated from the speaker 16 via the amplifier 15.

【0012】次に、アコゥスティック・ピアノを例にと
って共鳴する二つの弦の振動モードと発生する共鳴音に
ついて詳述する。
Next, a vibration mode of two resonating strings and a generated resonance will be described in detail by taking an acoustic piano as an example.

【0013】ピアノの弦は押鍵している時やサスティー
ン・ペダルが作動してる時は、弦の振動を抑えているダ
ンバーが離れるので、振動している他の弦の影響で共鳴
振動が起きる。ただし共鳴が起きるのは、二つの弦の各
々の振動モードの周波数が等しい場合である。以上を図
2の具体例を用いて説明する。
When the key of the piano is depressed or the sustain pedal is operated, the damper which suppresses the vibration of the string is released, so that the resonance vibration is affected by the other vibrating strings. Get up. However, resonance occurs when the frequencies of the vibration modes of the two strings are equal. The above is described with reference to the specific example of FIG.

【0014】図2(a)と図2(b)はピアノのC2音
の弦とF2音の弦(以後C2の弦、あるいはF2の弦の
ように呼ぶ)各々の振動モードを表し、両者の基本波長
の比は4:3に画いてある。
FIGS. 2 (a) and 2 (b) show the vibration modes of the piano C2 string and F2 string (hereinafter referred to as C2 string or F2 string) of the piano, respectively. The fundamental wavelength ratio is plotted at 4: 3.

【0015】点線はいずれも基本振動モード(C2音と
F2音の基本波に対応)である。また図2(a)の実線
はC2の弦の4次振動モード(4次倍音に対応)を、ま
た図2(b)の実線はF2の弦の3次振動モード(3次
倍音に対応)をそれぞれ表している。
The dotted lines indicate the fundamental vibration modes (corresponding to the fundamental waves of the C2 sound and the F2 sound). The solid line in FIG. 2A shows the fourth vibration mode of the string C2 (corresponding to the fourth harmonic), and the solid line in FIG. 2B shows the third vibration mode of the string F2 (corresponding to the third harmonic). Respectively.

【0016】図2から分かるように、C2の弦の4次モ
ードとF2の弦の3次モードは振動周波数が等しく、両
方の弦は互いに共鳴する。
As can be seen from FIG. 2, the quartic mode of the string C2 and the tertiary mode of the string F2 have the same oscillation frequency, and both strings resonate with each other.

【0017】上例はC2の弦とF2の弦の両方に共通す
る最低次数の振動モードであるが、この次数の倍数の振
動モード、例えばC2の弦の8次モードとF2の弦の6
次モードも振動周波数が等しく、この周波数においても
両方の弦は共鳴する。
The above example is the vibration mode of the lowest order common to both the strings of C2 and F2, but the vibration mode of a multiple of this order, for example, the eighth mode of the string of C2 and the sixth mode of the string of F2.
The second mode also has the same vibration frequency, and at this frequency both strings resonate.

【0018】次に、図3(a)はアコゥスティック・ピ
アノのC2音とF2音(この2音のキーコード差は
5)、各々の基本波と倍音の周波数を示すもので、上述
のC2の弦とF2の弦の各々の振動モードに対応するも
のである。同図より明らかなように、C2音の4次倍音
とF2音の3次倍音が同じ周波数(262Hz、C4に
相当)であり、またC2音の8次倍音とF2音の6次倍
音も同じ周波数(523Hz、C5に相当)を有してい
る。
Next, FIG. 3 (a) shows the C2 and F2 sounds of the acoustic piano (the key code difference between these two sounds is 5), the respective fundamental waves and the frequencies of the overtones. This corresponds to each vibration mode of the strings C2 and F2. As is clear from the figure, the fourth harmonic of the C2 sound and the third harmonic of the F2 sound have the same frequency (262 Hz, corresponding to C4), and the eighth harmonic of the C2 sound and the sixth harmonic of the F2 sound are also the same. It has a frequency (523 Hz, corresponding to C5).

【0019】このように、C2音とF2音に共通する、
これらの倍音がC2の弦とF2の弦により生じる共鳴音
の周波数成分に等しい。
Thus, the C2 sound and the F2 sound are common,
These harmonics are equal to the frequency components of the resonance produced by the strings C2 and F2.

【0020】さらに図3(b)は他の組合せ、すなわち
C2音とG2音との組合せ(この2音のキーコード差は
7)であるが、上例と同様にC2の弦とG2の弦が共鳴
すると、G2音の3次倍音に当たる196Hz(G3に
相当)、およびG2音の4次倍音に当たる392Hz
(G4に相当)の成分を有する共鳴音が発生する。次
に、図4(a)はC2の鍵を静かに押鍵した状態で、F
2の鍵を強く、かつ短時間押鍵したときに、C2の弦の
共鳴音が発生する様子を示すものである。同図において
()内はC2およびF2音の倍音成分の音高を表し、上
記の図3(a)の倍音に対応している。これらのうちC
4とC5の音高に相当する倍音(図3(a)および図4
(a)における*印と△印)は、C2音とF2音に共通
で、図4(a)の2小節目のC4とC5の音高位置に示
されているが、これはC2の弦とF2の弦により、実際
に発生する共鳴音の成分を表している。
FIG. 3B shows another combination, that is, a combination of the C2 sound and the G2 sound (the key code difference of these two sounds is 7). As in the above example, the strings of C2 and G2 are used. When resonance occurs, 196 Hz (corresponding to G3) corresponding to the third harmonic of the G2 sound and 392 Hz corresponding to the fourth harmonic of the G2 sound
A resonance having a component (corresponding to G4) is generated. Next, FIG. 4A shows a state in which the key of C2 is depressed gently,
This shows how the resonance sound of the string C2 is generated when the key 2 is strongly pressed for a short time. In this figure, the parentheses indicate the pitches of the harmonic components of the C2 and F2 sounds, and correspond to the harmonics in FIG. 3A. Of these, C
4 and C5 (FIG. 3A and FIG.
(* And △ in (a)) are common to the C2 and F2 sounds, and are shown at the pitch positions of C4 and C5 in the second bar of FIG. And the strings of F2 represent the components of the resonance sound actually generated.

【0021】以上の説明を図4(b)を用いてさらに説
明する。同図は図4(a)における各音符の音長に対応
しており、F2の鍵の押鍵直後に発生したC2の弦の共
鳴音は、F2音にマスクされるが、1小節目の終わりに
おけるF2の鍵の離鍵とともに明瞭な共鳴音が聞こえ、
また2小節の終わりでC2の鍵が離鍵すると、共鳴音も
消音することを示している。
The above description will be further described with reference to FIG. This figure corresponds to the note length of each note in FIG. 4A. The resonance sound of the string of C2 generated immediately after the key of F2 is pressed is masked by the F2 sound, but in the first bar. A clear resonance is heard with the release of the F2 key at the end,
Also, when the key C2 is released at the end of the two measures, the resonance sound is also muted.

【0022】以上の説明から明らかなように、一般に二
つの鍵を押鍵したとき、各々に対応する弦の振動によっ
て発生する共鳴音の周波数成分は、押鍵した鍵に対応す
る2音のキーコード差によって定まる。
As is apparent from the above description, when two keys are depressed, the frequency components of the resonance generated by the vibration of the strings corresponding to each of the keys are two-tone keys corresponding to the depressed keys. Determined by the code difference.

【0023】図5は2音のキーコード差と共鳴音次数と
の関係を示す図であるが、ここで共鳴音次数とは、2音
に共通する最低次の倍音成分を、キーコードの大きな方
の音から見たときの倍音次数のことである。例えば図3
(a)のC2音とF2音の場合(2音のキーコード差
5)は、共通する最低次の倍音成分(C4の音高に相
当)は、キーコードの大きな方のF2音の3次倍音であ
るので、共鳴音次数は3である。同様に図3(b)のC
2音とG2音の場合(2音のキーコード差7)は、共通
する最低次の倍音域分(G3の音高に相当)はキーコー
ドの大きな方のG2音の2次倍音であるので、共鳴音次
数は2である。
FIG. 5 is a diagram showing the relationship between the key code difference of two tones and the order of the resonance tone. Here, the order of the resonance tone means the lowest harmonic component common to the two tones and the large key code. This is the harmonic order as viewed from the other sound. For example, FIG.
In the case (a) of the C2 and F2 sounds (the key code difference of the two sounds is 5), the common lowest harmonic component (corresponding to the pitch of C4) is the third order of the F2 sound with the larger key code. Since it is an overtone, the resonance order is 3. Similarly, C in FIG.
In the case of two tones and G2 tone (key code difference of two tones), the lowest common harmonic range (corresponding to the pitch of G3) is the second harmonic of the G2 tone with the larger key code. , And the resonance order is 2.

【0024】以上の説明から、二つの鍵を押鍵したとき
に発生する共鳴音は、各々の鍵に対応する楽音のうち、
キーコードの大きな方の楽音の基本周波数に、共鳴音次
数を乗じて得られた周波数を基本周波数とし、その整数
(1,2,3,・・・)倍の周波数成分よりなることが
分かる。
From the above description, the resonance sound generated when two keys are pressed is one of the tones corresponding to each key.
It can be seen that the frequency obtained by multiplying the fundamental frequency of the tone with the larger key code by the resonance order is the fundamental frequency, and is composed of frequency components that are integer times (1, 2, 3,...) Times that.

【0025】なお、上述の共鳴音はコード番号の大きな
方のキーコードに共鳴音次数を乗じて求めたが、キーコ
ードの小さな方の音を基準にすることも可能である。当
然その場合、共鳴音次数は変化する。1例をあげれば、
図3(a)のC2音とF2音の場合、キーコード差5に
対する共鳴音次数は4になり、キーコードの小さな方の
C2音の基本周波数(65.4Hz)に共鳴音次数4を
乗じた周波数(262Hz)が共鳴音の基本周波数にな
る。
Although the above-described resonance sound is obtained by multiplying the key code having the larger code number by the resonance sound order, the sound having the smaller key code may be used as a reference. Naturally, in that case, the resonance order changes. To give one example,
In the case of the C2 sound and the F2 sound in FIG. 3A, the resonance order for the key code difference 5 is 4, and the fundamental frequency (65.4 Hz) of the smaller C2 sound of the key code is multiplied by the resonance order 4. (262 Hz) becomes the fundamental frequency of the resonance sound.

【0026】次に、本発明の第1の実施形態の動作につ
き、図1を用いて説明するが、本実施形態においては、
楽音波形を生成するのに、正弦波合成法によっており、
その合成に関するタイミング・チャートを図6に示す。
Next, the operation of the first embodiment of the present invention will be described with reference to FIG.
To generate a musical sound waveform, it uses a sine wave synthesis method,
FIG. 6 shows a timing chart relating to the synthesis.

【0027】まず、図1において、鍵盤部1の、ある鍵
を押鍵すると、押鍵検出および発音割当て回路2より出
力した押圧鍵のキーコードが周波数ナンバー・メモリ7
に入り、このキーコードの音高周波数に比例する、周波
数ナンバーRのデータが同メモリ7より出力される。
First, in FIG. 1, when a key on the keyboard 1 is depressed, the key code of the depressed key output from the key depression detection and sound assignment circuit 2 is stored in the frequency number memory 7.
The data of the frequency number R, which is proportional to the pitch frequency of the key code, is output from the memory 7.

【0028】次に、周波数ナンバーRのデータは正弦波
生成回路8に入る。
Next, the data of the frequency number R enters the sine wave generation circuit 8.

【0029】この回路は例えば、図7に示すような2個
の累算器と特に図示しない正弦波メモリよりなる。
This circuit comprises, for example, two accumulators as shown in FIG. 7 and a sine wave memory (not shown).

【0030】同図において、周波数ナンバーRのデータ
を累算器17に入力し、サンプリング用クロックCLK
1を用いて累算すると、図6に示すように、 R,2R,3R,・・・,qR (ただしqは1,2,3,・・・の整数)が出力され
る。
In the figure, data of a frequency number R is input to an accumulator 17 and a sampling clock CLK is input.
When accumulation is performed using 1, R, 2R, 3R,..., QR (where q is an integer of 1, 2, 3,...) Are output as shown in FIG.

【0031】次に、この出力を累算器18に入力し、上
記のクロックCLK1のw倍(wは正弦波合成に用い
る、正弦波の総数)の周波数を有するクロックCLK2
を用いて累算すると、累算器18は図6に示す如く、累
算器18の入力データRに対して、 R,2R,3R,・・・,wR (1) を出力し、次の入力データ2Rに対しては 2R,4R,6R,・・・,w2R (2) を順次出力するが、一般に人力データqRに対しては qR,2qR,3qR,・・・,wqR (3) を出力する。
Next, this output is input to an accumulator 18, and a clock CLK2 having a frequency of w times the clock CLK1 (where w is the total number of sine waves used for sine wave synthesis).
, The accumulator 18 outputs R, 2R, 3R,..., WR (1) with respect to the input data R of the accumulator 18 as shown in FIG. For input data 2R, 2R, 4R, 6R,..., W2R (2) are sequentially output. Generally, for human power data qR, qR, 2qR, 3qR,. Output.

【0032】次に、上の(1)〜(3)式に示すデータ
をアドレス信号として、前述の正弦波メモリから、一つ
のサンプリング周期のタイミングの中で、1〜wまでの
高調波データを読出す。
Next, using the data shown in the above equations (1) to (3) as address signals, the above-mentioned sine wave memory is used to convert the harmonic data of 1 to w in the timing of one sampling cycle. Read.

【0033】その結果、一つのサンプリング周期毎に、 (SinR,Sin2R,Sin3R,・・・,SinwR) および (Sin2R,Sin4R,Sin6R,・・・,Sinw2R) (Sin3R,Sin6R,Sin9R,・・・,Sinw3R) ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ (SinqR,Sin2qR,Sin3qR,・・・,SinwqR) (4) の形の正弦波が正弦波生成回路8の出力として得られる
(上記の()内の正弦波が1サンプリング周期に対応す
る)。
As a result, (SinR, Sin2R, Sin3R,..., SinwR) and (Sin2R, Sin4R, Sin6R,..., Sinw2R) (Sin3R, Sin6R, Sin9R,. , Sinw3R) ... (SinqR, Sin2qR, Sin3qR, ..., SinwqR) Form of (4) Is obtained as an output of the sine wave generation circuit 8 (the sine wave in parentheses above corresponds to one sampling period).

【0034】この(4)式において、SinqRは図8
に示すように、正弦波メモリのアドレス値をRの間隔で
読出して得られる基本波であり、Sin2qRは同じく
2Rの間隔で続出される2次高調波である。また、Si
n3qRは3Rの間隔で続出される3次高調波であり、
SinwqRはwRの間隔で続出されるw次高調波を表
している。
In this equation (4), SinqR is calculated as shown in FIG.
As shown in (1), a fundamental wave obtained by reading the address value of the sine-wave memory at intervals of R, and Sin2qR is a second harmonic that is also successively transmitted at intervals of 2R. In addition, Si
n3qR is the third harmonic that follows at 3R intervals,
SinwqR represents the w-order harmonic that follows at the interval of wR.

【0035】次に、(4)式に示した各正弦波に対応し
て、高調波係数メモリ9より、高調波係数α1,α2,
α3・・・αwを順次読出し、乗算器10において、上
記の正弦波と乗算すると、 α1SinqR,α2Sin2qR,α3Sin3q
R,・・・αwSinwqR が得られる。
Next, the harmonic coefficient memory 9 stores the harmonic coefficients α1, α2,
α3... αw are sequentially read out and multiplied by the above sine wave in the multiplier 10 to obtain α1SinqR, α2Sin2qR, α3Sin3q
R,... ΑwSinwqR are obtained.

【0036】次に、これら基本波およびw次までの各高
調波の値を、累算器11で累算すると、クロックCLK
1の1周期で、
Next, the accumulator 11 accumulates the values of the fundamental wave and the respective harmonics up to the w-th order.
In one cycle of one,

【0037】[0037]

【数1】 (Equation 1)

【0038】が得られる。これは正弦波合成法による、
サンプリング・クロック1周期の楽音波形データを表し
ている。
Is obtained. This is based on sinusoidal synthesis.
This represents tone waveform data of one cycle of a sampling clock.

【0039】(5)式はサンプリング・クロックCLK
1の各々に対応しており、例えばq=1の場合は、
Equation (5) is the sampling clock CLK
1 and, for example, when q = 1,

【0040】[0040]

【数2】 (Equation 2)

【0041】が図6に示すように、累算器11の出力と
して得られる。
Is obtained as an output of the accumulator 11 as shown in FIG.

【0042】この後、累算器11の出力はエンベロープ
生成回路12で、押圧鍵のべロシティに応じたエンベロ
ープが付加され、D/A変換器14でアナログ信号に変
換された後、特に図示しないサンプルホールド回路やフ
ィルター、および増幅器15を介してスピーカ16より
発音される。
After that, the output of the accumulator 11 is added with an envelope corresponding to the velocity of the pressed key by an envelope generation circuit 12 and is converted into an analog signal by a D / A converter 14. Sound is output from a speaker 16 via a sample and hold circuit, a filter, and an amplifier 15.

【0043】以上は1個の鍵のみが押鍵され、弦の振動
による共鳴音が発生しない場合であるが、次に前述の共
鳴の原理的説明に従い、複数の鍵の押鍵により発生す
る、共鳴音の生成に関し、図1と図9の動作フローチャ
ートを用いてその動作を説明する。
The above is a case where only one key is depressed and no resonance is generated due to the vibration of the string. Next, according to the above-described principle of resonance, it is generated by depressing a plurality of keys. The operation of generating a resonance tone will be described with reference to the operation flowcharts of FIGS.

【0044】まず、ステップSIでCPU3が鍵盤を走
査する。次のステップS2で、鍵盤の状態に変化が生じ
たか否かを、鍵情報より判定し、YESの場合は、いず
れかの鍵が押鍵または離鍵されており、次のステップS
3に進む。また、NOの場合はリターンする。
First, in step SI, the CPU 3 scans the keyboard. In the next step S2, it is determined from the key information whether or not the state of the keyboard has changed, and if YES, any key has been pressed or released, and the next step S2
Proceed to 3. In the case of NO, the process returns.

【0045】ステップS3では、現在押鍵されているか
否かを判定し、YESならば、次のステップS4に進
む。
In step S3, it is determined whether or not the key is currently depressed. If YES, the flow advances to the next step S4.

【0046】ステップS4で、上記の押圧鍵のキーコー
ドを図10(a)に示すように、ワークRAMの押鍵領
域にある空きチャネル、例えばチャネル1(以後chl
と略記することがある)に記憶し、次のステップS5に
進む。
In step S4, as shown in FIG. 10A, the key code of the above-mentioned pressed key is changed to a free channel in the key pressed area of the work RAM, for example, channel 1 (hereinafter, ch1).
(May be abbreviated as "."), And then proceeds to the next step S5.

【0047】ステップS5で、ステップS3以前に押鍵
されている鍵が他にあるか否かを判定する。NOならば
共鳴音を発生しないで、ステップS11に進む。YES
ならば、共鳴音の発音処理に入るため、ステップS5に
進む。
In step S5, it is determined whether there is another key pressed before step S3. If NO, the process proceeds to step S11 without generating a resonance sound. YES
If so, the process proceeds to step S5 to enter the resonance sound generation process.

【0048】ステップS4で、押鍵されている2鍵のキ
ーコード差をCPU3とワークRAM5が演算する。
In step S4, the CPU 3 and the work RAM 5 calculate the key code difference between the two keys being pressed.

【0049】次に、ステップS7で、上記のキーコード
差に対応する、共鳴音次数を共鳴音次数メモリ6より読
出す。
Next, in step S7, the resonance order corresponding to the key code difference is read from the resonance order memory 6.

【0050】その後、ステップS8に進み、上記の共鳴
音次数をワークRAM5のチャネル・ナンバーn以降の
共鳴音領域の空きチャネル(図10(a)のch1)に
記憶する。
Thereafter, the process proceeds to step S8, where the above-mentioned resonance order is stored in a free channel (ch1 in FIG. 10A) of the resonance area after the channel number n in the work RAM 5.

【0051】さらに、ステップS8で先に押鍵され、減
衰してエンベロープ値が小さくなっている、他の鍵の割
当てチャネル・ナンバー、例えば図10(a)のch0
の0を共鳴音領域に記憶する。この場合、上記の共鳴音
次数と対にしておく(同図のENV(エンベロープの
略)小のチャネル・ナンバー参照)。
Further, in step S8, the assigned key number of another key, which is previously depressed and attenuated to reduce the envelope value, for example, ch0 in FIG. 10 (a).
Is stored in the resonance area. In this case, it is paired with the above-described resonance tone order (see ENV (abbreviation of envelope) small channel number in the figure).

【0052】次に、ステップS10に進むが、図11の
動作フローチャートを用いて説明する。ここでは共鳴音
を合成するため、不必要な倍音(高調波)成分を除くた
め、キーコードの大きな方の音の倍音のうち、共鳴音次
数の倍数次の係数以外をすべて0にする処理を行う。
Next, the process proceeds to step S10, which will be described with reference to the operation flowchart of FIG. In this case, in order to remove unnecessary harmonic (harmonic) components in order to synthesize a resonance, a process of setting all coefficients other than a coefficient of a multiple of the resonance order out of harmonics of a sound having a larger key code to 0 is performed. Do.

【0053】まず、ステップS20で、高調波次数n
(1,2,3・・・,w)を1とおく。次に、ステップ
S21でx=nとする。
First, in step S20, the harmonic order n
(1, 2, 3,..., W) is set to 1. Next, x = n is set in step S21.

【0054】次のステップS22,S23で、xが共鳴
音次数kで割切れるか否かを判定する。すなわち x=
x−kの演算をx≦0になるまで繰り返し、x≦0の状
態になったら、次のステップ24に進む。
In the next steps S22 and S23, it is determined whether or not x is divisible by the resonance order k. That is, x =
The calculation of x−k is repeated until x ≦ 0. When x ≦ 0, the process proceeds to the next step 24.

【0055】ステップS24で、x=0か否かを判定
し、YESならば高調波次数nが、共鳴音次数kの倍数
であるので、n次の高調波成分を共鳴音成分とし、次の
ステップS26に進む。またNOならば、n次の高調波
成分を共鳴音成分にしないようにするため、高調波係数
αn(この場合はα1)を0にし(ステップS25)、
ステップS26に進む。ステップS26で高調波次数n
を十1する。
In step S24, it is determined whether or not x = 0. If YES, the harmonic order n is a multiple of the resonance order k. Proceed to step S26. If NO, the harmonic coefficient αn (α1 in this case) is set to 0 (step S25) to prevent the nth harmonic component from becoming a resonance component.
Proceed to step S26. In step S26, the harmonic order n
11

【0056】次に、ステップS27で、n>w(wは高
調波の総数)であるか否かを判定し、NOならばステッ
プS21に戻る。
Next, in step S27, it is determined whether or not n> w (w is the total number of harmonics). If NO, the process returns to step S21.

【0057】このような動作を、ステップS27におけ
る判定が、YESになるまで繰り返し、YESになった
ら、リターンする。
Such an operation is repeated until the determination in step S27 becomes YES, and the process returns if YES.

【0058】ステップS11では、基本波およびw次ま
での各高調波に、それぞれ対応する高調波係数を乗じた
後、累算し、さらに押鍵べロシティに応じたエンベロー
プを付加して発音する。
In step S11, the fundamental wave and each of the harmonics up to the w-th order are multiplied by the corresponding harmonic coefficient, then accumulated, and the sound is generated by adding an envelope corresponding to the key velocity.

【0059】共鳴音の発音の場合は、押鍵により発音し
た2音のエンベロープを比較し、例えばエンベロープの
大きな方に対応した共鳴音のエンベローブを付加して発
音する。またアフタータッチの機能があれば、共鳴音の
大きさを制御することも可能である。
In the case of resonance sound generation, the envelopes of two sounds generated by pressing a key are compared, and for example, a resonance sound envelope corresponding to the larger envelope is added to generate sound. Also, if there is an aftertouch function, it is possible to control the magnitude of the resonance sound.

【0060】次に、ステップS3で判定がNOの場合は
離鍵があったことを意味し、ステップS12に進む。
Next, if the determination is NO in step S3, it means that the key has been released, and the process proceeds to step S12.

【0061】ステップS12で、その離鍵した鍵のキー
コードに対応する音を消音し、次のステップS13でワ
ークRAMの押鍵領域にある、上記のキーコードを消去
する。その方法としては、例えば最低音A0から最高音
のC8まで、順にキーコードを0,1,2,・・・87
とつけたとき、離鍵時に今までのキーコードの代わり
に、255(FFH)をワークRAMに書込むなどの方
法をとる。
In step S12, the sound corresponding to the key code of the released key is muted, and in step S13, the key code in the key depression area of the work RAM is erased. As the method, for example, key codes 0, 1, 2,... 87 from the lowest sound A0 to the highest sound C8 are sequentially set.
When the key is released, a method such as writing 255 (FFH) into the work RAM instead of the conventional key code is used.

【0062】次にステップS14で、離鍵した鍵のキー
コードに対応する割当てチャネル・ナンバーがワークR
AM5の共鳴音領域にあるか否かを判定し、NOならば
リターンに行く。YESならば、ステップS15に進
み、そのチャネル・ナンバーに対応する共鳴音に消音す
る。例えぱ押鍵領域にあるch0のキーコードが離鍵
し、かつ共鳴音領域のENV小のチャネル・ナンバーが
ch0と同じナンバーの0であるとすると、離鍵した鍵
のキーコードに対応する、割当てチャネルと同じナンバ
ーが共鳴音領域に入っているので、この場合は離鍵と同
時に共鳴音を消音する。
Next, in step S14, the assigned channel number corresponding to the key code of the released key is set to the work R
It is determined whether or not it is in the resonance sound area of AM5. If YES, the process proceeds to step S15 to mute the resonance sound corresponding to the channel number. For example, if the key code of ch0 in the key depression area is released and the channel number of ENV small in the resonance area is 0, which is the same number as ch0, the key code of the released key corresponds to Since the same number as the assigned channel is in the resonance area, in this case, the resonance is muted simultaneously with the key release.

【0063】さらにステップS16に進み、共鳴音領域
にある共鳴音次数およびそれと対になっているチャネル
・ナンバーを消去する。以上をさらに具体例として、図
4を再び用いて説明する。
Further, the process proceeds to step S16, where the order of the resonance in the resonance region and the channel number paired therewith are deleted. The above will be described as a specific example again with reference to FIG.

【0064】図4はC2音を静かに押鍵してしばらくし
てから、F2音を強くかつ短く押鍵した場合であるが、
図10(b)に示すように、C2音のキーコード15を
ワークRAM(図1の5)の押鍵領域のナンバー0のチ
ャネルch0に入れ、F2音のキーコード20を同じく
ナンバー1のチャネルch1に入れておく。C2音とF
2音のキーコード差は5であるので共鳴音次数メモリよ
り値3が読出され、これがワークRAMのチャネル・ナ
ンバーn以降の共鳴音領域の空きチャネル(図10
(b)のchn)に記憶する。それと同時にキーコード
の大きな方のF2音の高調波成分のうち、3次の整数倍
の3次,6次(図4(a)の*印と△印に相当)の成分
からなる、共鳴音(音高としてはC4)を発音する。
FIG. 4 shows a case in which the key F2 is pressed strongly and shortly after a while after the key C2 is gently pressed.
As shown in FIG. 10B, the key code 15 of the C2 sound is put into the channel ch0 of the number 0 in the key depression area of the work RAM (5 in FIG. 1), and the key code 20 of the F2 sound is set into the channel 1 of the same number Put it in ch1. C2 sound and F
Since the key code difference between the two tones is 5, a value of 3 is read from the resonance order memory, and this value is used as an empty channel in the resonance area after the channel number n of the work RAM (FIG. 10).
(B) in chn). At the same time, of the harmonic components of the F2 sound having the larger key code, the resonance sound composed of the third and sixth order components (corresponding to the * and △ marks in FIG. 4A) which are integral multiples of the third order. (The pitch is C4).

【0065】この場合はC2音のエンベローブの方がF
2音のエンベローブより小さいので、C2音のチャネル
・ナンバー0を上記の共鳴音次数の3と対にして記憶す
る。この後、F2の離鍵によって、F2音を消音し、押
鍵領域にあるF2のチャネル・ナンバー1にあるキーコ
ード(20)を消去する。しかしF2のチャネル・ナン
バーは共鳴音領域に書込まれていないので、共鳴音はF
2の離鍵に無関係に鳴り続ける。その後、C2が離鍵す
ると、C2のチャネル・ナンバー0が共鳴音領域に入っ
ているので、このチャネル・ナンバー及びこれと対にな
っている共鳴音次数を消去し、共鳴音も消音する。
In this case, the envelope of the C2 sound is F
Since it is smaller than the envelope of the two sounds, the channel number 0 of the sound C2 is stored in pairs with the above-mentioned resonance order of 3. Thereafter, the F2 key is released by releasing the key of F2, and the key code (20) in the channel number 1 of F2 in the key depression area is erased. However, since the channel number of F2 is not written in the resonance area, the resonance is F2.
Continues ringing regardless of key release 2. After that, when C2 is released, the channel number 0 of C2 is in the resonance area, so that this channel number and the resonance order coupled thereto are deleted, and the resonance is also muted.

【0066】以上、2音の弦が振動する場合の、共鳴音
の発生動作を説明したが、実際の演奏では3音、あるい
はより多数の音が同じ時間に発音されるのが普通であ
る。このような場合は、それらの音を任意の2音の組合
せに分け、各々の組合せについて上述の方法で共鳴音を
発生させる。
The operation of generating a resonance sound when a two-tone string vibrates has been described above. In an actual performance, three or more sounds are usually generated at the same time. In such a case, the sounds are divided into arbitrary combinations of two sounds, and a resonance is generated for each combination by the above-described method.

【0067】例えば、C2音を静かに押鍵した状態で、
F2音とG2音を同時に強くかつ短く押鍵した場合を考
えると、まずC2音とF2音との組合せを考え、その共
鳴音は図3より、F2の3,6,・・・次倍音に等しい
成分を発生させ、C2音とG2との粗合せに対しては、
共鳴音は図3(b)に示すように、G2音の2,3,・
・・次倍音に等しい成分を発生させる。
For example, with the key C2 being pressed gently,
Considering the case where the F2 and G2 notes are simultaneously pressed strongly and shortly, first consider a combination of the C2 note and the F2 note. From FIG. Equal components are generated, and for coarse matching between C2 sound and G2,
As shown in FIG. 3 (b), the resonance sound is G2 sound 2, 3,.
..Generate a component equal to the next harmonic.

【0068】次に、本発明を電子ピアノに実施した第2
の実施形態につき説明する。図12は第2の実施形態の
全体の構成図であるが、その大部分は、第1の実施例と
共通している。
Next, the second embodiment in which the present invention is applied to an electronic piano.
An embodiment will be described. FIG. 12 is an overall configuration diagram of the second embodiment, most of which is common to the first embodiment.

【0069】21は鍵盤部、22は押鍵検出および割当
て回路で、鍵盤部21の押鍵、離鍵を検出し、押圧鍵を
複数の発音チャネルのいずれかに割当て、その割当てた
押圧鍵を特定するキーコードを出力する。このキーコー
ドに基づいて、波形生成回路27で楽音波形を生成、出
力する。なおこの波形生成回路27は、例えば予め記憶
させた波形データをメモリより読出すPCM音源回路等
である。
Reference numeral 21 denotes a keyboard portion, and reference numeral 22 denotes a key press detection and assignment circuit, which detects a key press and a key release of the keyboard portion 21, assigns a press key to one of a plurality of sounding channels, and assigns the assigned press key. Outputs the specified key code. Based on this key code, the waveform generation circuit 27 generates and outputs a musical tone waveform. The waveform generation circuit 27 is, for example, a PCM tone generator circuit that reads out waveform data stored in advance from a memory.

【0070】また、26は共鳴音データ・ブーブル・メ
モリ(以後共鳴音データ・メモリと呼ぶ)で押鍵中の鍵
が2鍵以上存在するとき、共鳴音を発生するために必要
なデータを、予め記憶しているメモリであり、25のワ
ークRAMは押圧鍵や共鳴音のキーコード等を、一時記
憶する作業用のRAMである。23はプログラムROM
(以後単にROMと呼ぶ)24のプログラムによって制
御されるCPUである。
Reference numeral 26 denotes a resonance sound data buble memory (hereinafter referred to as resonance sound data memory) which stores data necessary for generating a resonance sound when two or more keys are being pressed. The work RAM 25 is a work RAM for temporarily storing a press key, a key code of a resonance sound, and the like. 23 is a program ROM
(Hereinafter simply referred to as ROM) is a CPU controlled by a program of 24.

【0071】次に、波形生成回路27より出力した、楽
音波形に対して、エンベロープ生成回路28で生成され
たエンベロープを付加するため、乗算器29において、
上記の楽音波形出力とエンベロープ生成回路28の出力
を乗算し、その後D/A変換器30、増幅器31を介し
てスピーカ32より楽音を発音する。
Next, in order to add the envelope generated by the envelope generation circuit 28 to the musical tone waveform output from the waveform generation circuit 27, the multiplier 29
The output of the musical tone waveform is multiplied by the output of the envelope generation circuit 28, and thereafter, a tone is emitted from the speaker 32 via the D / A converter 30 and the amplifier 31.

【0072】なお、波形生成回路27は鋸歯状波あるい
は矩形彼等を用いた音源回路の場合でも、本発明の実施
は可能である。
The present invention can be implemented even if the waveform generation circuit 27 is a sound source circuit using a sawtooth wave or a rectangle.

【0073】次に、共鳴音の発生動作につき説明する。
前述の第1の実施形態においては、2音のキーコード差
により定まる共鳴音次数を用いて、共鳴音を発生させた
が、第2の実施形態においても、基本的にそれと同様な
方法を用いる。
Next, the operation of generating a resonance sound will be described.
In the above-described first embodiment, the resonance is generated using the resonance order determined by the key code difference between the two sounds. However, in the second embodiment, basically the same method is used. .

【0074】図13は2音のキーコード差と共鳴音デー
タとの関係を示す図で、第1の実施形態の図5に対応し
ている。ここで共鳴音データとは共鳴する2音に共通す
る、最低次の倍音に対応するキーコードと、2音のキー
コードのうち、大きな方のキーコードとの差である。例
えば、図3(a)のC2(キーコード15)とF2(キ
ーコード20)の場合は、キーコード差が5であるが、
共通する最低次の倍音に対応するキーコードは、キーコ
ードの大きい方のF2の第3倍音に相当する、C4のキ
ーコードの39である。それとF2のキーコード20と
の差19が共鳴音データになる。
FIG. 13 is a diagram showing the relationship between the key code difference between two sounds and the resonance sound data, and corresponds to FIG. 5 of the first embodiment. Here, the resonance sound data is the difference between the key code corresponding to the lowest harmonic that is common to the two resonating sounds and the key code of the larger key code of the two sounds. For example, in the case of C2 (key code 15) and F2 (key code 20) in FIG. 3A, the key code difference is 5,
The common key code corresponding to the lowest harmonic is 39 of the key code of C4, which corresponds to the third harmonic of F2 with the larger key code. The difference 19 between it and the key code 20 of F2 becomes resonance sound data.

【0075】さらに1例を加えると、図3(b)のC2
(キーコード15)とG2(キーコード22)の場合
は、キーコード差が7であるが、共通する最低次の倍音
に対応するキーコードは、G2の第2倍音に相当するC
3の34である。それとG2のキーコード22との差1
2が共鳴データになる。
If one more example is added, C2 in FIG.
In the case of (key code 15) and G2 (key code 22), the key code difference is 7, but a common key code corresponding to the lowest harmonic is C2 corresponding to the second harmonic of G2.
3 of 34. Difference 1 between it and G2 key code 22
2 becomes resonance data.

【0076】以上のように、キーコード差1〜12に対
する共鳴音データの値をそれぞれ求めると、図13のよ
うになる。
As described above, the values of the resonance sound data for the key code differences 1 to 12 are obtained as shown in FIG.

【0077】次に、第2の実施形態の動作を説明する。
図12において、まず、鍵盤部21のある鍵が押鍵され
ると、押鍵検出及び発音割当て回路22より出力した、
押圧鍵のキーコードが波形生成回路27に入力する。波
形生成回路27は上記のキーコードに対応する、基本周
波数を有する楽音波形を生成した後、その波形にエンベ
ローブ生成回路28より出力した、エンベロープ・デー
タを乗算器29において乗算する。その後、乗算器29
の出力をD/A変換器30においてアナログ信号に変換
した後、増幅器31を介しスピーカ32より楽音の発音
を行う。
Next, the operation of the second embodiment will be described.
In FIG. 12, first, when a key on the keyboard 21 is depressed, the key is output from a key depression detection and sound generation assignment circuit 22.
The key code of the pressed key is input to the waveform generation circuit 27. After generating a tone waveform having a fundamental frequency corresponding to the key code, the waveform generation circuit 27 multiplies the waveform by an envelope data output from an envelope generation circuit 28 in a multiplier 29. Thereafter, the multiplier 29
Is converted into an analog signal by the D / A converter 30, and a tone is generated from the speaker 32 via the amplifier 31.

【0078】次に図12と、図14の動作フローチャー
トを用いて共鳴音発生の動作につき説明する。まず、ス
テップS30で、CPU23が鍵盤を走査する。
Next, the operation of generating a resonance tone will be described with reference to the operation flowchart of FIG. 12 and FIG. First, in step S30, the CPU 23 scans the keyboard.

【0079】次のステップS31で、鍵盤の状態に変化
が生じたか否かを、鍵情報より判定し、YESの場合
は、いずれかの鍵が押鍵または離鍵されており、次のス
テップS32に進む。またNOの場合はリターンする。
In the next step S31, it is determined from the key information whether or not the state of the keyboard has changed. If YES, one of the keys has been pressed or released, and the next step S32 Proceed to. In the case of NO, the process returns.

【0080】ステップS32では、現在押鍵されている
か否かを判定し、YESならば、次のステップS33に
進む。
In step S32, it is determined whether or not the key is currently pressed. If YES, the flow advances to the next step S33.

【0081】ステップS33で、上記の押圧鍵のキーコ
ードをワークRAMの押鍵領域の空きチャネルに記憶し
(図15(a)のch1参照)、次のステップS34に
進む。
In step S33, the key code of the above-described pressed key is stored in a free channel in the key pressed area of the work RAM (see ch1 in FIG. 15A), and the flow advances to the next step S34.

【0082】ステップS34で、ステップS31以前に
押鍵されている鍵が他にあるか否かを判定する。NOな
らば共鳴音を発生しないで、ステップS40に進む。Y
ESならば、共鳴音の発音処理に入るため、ステップS
35に進む。
At step S34, it is determined whether or not there is another key pressed before step S31. If NO, the process proceeds to step S40 without generating a resonance sound. Y
If it is ES, the process proceeds to step S in order to enter the resonance sound generation process.
Proceed to 35.

【0083】ステップS35で、押鍵されている2鍵の
キーコード差をCPU23とワークRAM25が演算す
る。
In step S35, the CPU 23 and the work RAM 25 calculate the key code difference between the two keys being pressed.

【0084】次にステップS36で上記のキーコード差
に対応する共鳴音データを共鳴音データ・メモリ26よ
り読出す。
Next, in step S 36, the resonance data corresponding to the key code difference is read from the resonance data memory 26.

【0085】その後、ステップS37で、共鳴する2音
のうち、コード番号の大きな方のキーコードとステップ
S36で求めた共鳴音データとの和を演算する。この結
果得られた値が、共鳴音の基本周波数に対応するキーコ
ードである。
Then, in step S37, the sum of the key code having the larger code number of the two resonating sounds and the resonance sound data obtained in step S36 is calculated. The value obtained as a result is a key code corresponding to the fundamental frequency of the resonance sound.

【0086】次にステップS38で、上記共鳴音のキー
コードをワークRAM25のチャネル・ナンバーn以降
の共鳴音領域の空きチャネル(図15(a)のchn)
に記憶する。
Next, in step S38, the key code of the above-mentioned resonance sound is set to an empty channel of the resonance sound area after the channel number n of the work RAM 25 (chn in FIG. 15A).
To memorize.

【0087】さらにステップS39で、先に押鍵された
ため減衰してユンベローブ値が小さくなっている、他の
鍵の割当てチャネル・ナンバー、例えば図13(a)の
ch0のナンバー0を、共鳴音領域に記憶する。この場
合、上記の共鳴音のキーコードと対にしておく(同図の
ENV小のチャネル・ナンバー参照)。次にステップS
40で、第1の実施形態で前述したようなエンベローブ
を付加して楽音を発音する。またアフタータッチの機能
があれば、共鳴音の大きさを制御することができる。
Further, in step S39, the assigned channel number of another key, for example, the number 0 of ch0 in FIG. To memorize. In this case, the key code is paired with the above-mentioned key code of the resonance sound (see the small channel number of ENV in FIG. 3). Next, step S
At 40, a musical tone is generated by adding an envelope as described in the first embodiment. Also, if there is an aftertouch function, the magnitude of the resonance sound can be controlled.

【0088】次に、ステップS32で判定がNOの場合
は、離鍵があったことを意味し、ステップS40に進
む。
Next, if the determination in step S32 is NO, it means that a key has been released, and the flow advances to step S40.

【0089】ステップS41で、その雛鍵した音を消音
し、次のステップS42に進む。
At step S41, the templated sound is muted, and the flow advances to the next step S42.

【0090】ステップS42で、ワークRAMの押鍵領
域にある、上記の離鍵した鍵のキーコードを消去する。
In step S42, the key code of the released key in the key depression area of the work RAM is deleted.

【0091】次にステップS32で、離鍵した鍵のキー
コードに対応する割当てチャネルのナンバーがワークR
AM25の共鳴音領域にあるか否かを判定し、NOなら
ばリターンする。YESならば、次のステップS44に
進む。
Next, in step S32, the number of the assigned channel corresponding to the key code of the released key is
It is determined whether or not it is in the resonance sound area of AM25, and if NO, the process returns. If YES, the process proceeds to the next step S44.

【0092】ステップS44で、そのチャネル・ナンバ
ーに対応する共鳴音を消音する。例えば、押鍵領域にあ
るch0(チャネル0)のキーコードが離鍵し、かつ共
鳴音領域のBNV小のチャネル・ナンバーかch0と同
じナンバーの0であるとすると、離鍵した鍵のキーコー
ドに対応する、割当てチャネルと同じナンバーが共鳴音
領域に入っているので、この場合は離鍵と同時に共鳴音
を消音する。
In step S44, the resonance sound corresponding to the channel number is muted. For example, assuming that the key code of ch0 (channel 0) in the key depression area is released and the channel number of the BNV is small in the resonance area or is the same number 0 as ch0, the key code of the released key is In this case, the same number as the assigned channel is included in the resonance area, and in this case, the resonance is muted simultaneously with the key release.

【0093】さらにステップS45に進み、共鳴音領域
にある共鳴音のキーコード、およびそれと対をなしてい
るチャネル・ナンバーを消去する。以上をさらに具体例
として、第1の実施形態の同じく図4の場合を説明す
る。
Then, the process proceeds to a step S45, wherein the key code of the resonance sound in the resonance sound area and the channel number paired with the key code are deleted. As a further specific example, the case of FIG. 4 of the first embodiment will be described.

【0094】図4はC2音を静かに押鍵してしばらくし
てから、F2音を強くかつ短く押鍵した場合であるが、
図15(b)に示すように、C2音のキーコード15を
ワークRAM(図12の25)の押鍵領域内のナンバー
0のチャネルch〇に入れ、F2音のキーコード20を
同じくナンバー1のチャネルch1に入れておく。C2
音とF2音のキーコード差は5で、この値5に対応する
共鳴音データ19が共鳴音データ・メモリより続出され
る(図13参照)。これとキーコードの大きな方のF2
音のキーコード20が加算されて得られる値39を、ワ
ークRAMのチャネル・ナンバーn以降の共鴫音領域の
空きチャネル(図15(b)のchn)に記憶する。こ
の値39が共鳴音の基本周波数に対応するキーコードで
あり、このキーコードに相当するC4の音高に等しい共
鳴音を発音させる。この場合、C2音のエンベローブの
方がF2音のエンベロープより小さいので、C2音のチ
ャネル・ナンバー0を上記の共鳴音のキーコード(3
9)と対にして記憶する。
FIG. 4 shows a case where the key F2 is pressed strongly and shortly after a while after the key C2 is gently pressed.
As shown in FIG. 15 (b), the key code 15 of the C2 sound is put into the channel ch # of the number 0 in the key pressing area of the work RAM (25 in FIG. 12), and the key code 20 of the F2 sound is also the number 1 Channel ch1. C2
The key code difference between the sound and the F2 sound is 5, and the resonance data 19 corresponding to the value 5 is successively read from the resonance data memory (see FIG. 13). This and the key code F2
The value 39 obtained by adding the sound key code 20 is stored in a free channel (chn in FIG. 15B) in the common sound area after the channel number n in the work RAM. This value 39 is a key code corresponding to the fundamental frequency of the resonance sound, and a resonance sound equal to the pitch of C4 corresponding to this key code is generated. In this case, since the envelope of the sound C2 is smaller than the envelope of the sound F2, the channel number 0 of the sound C2 is changed to the key code (3
Store as a pair with 9).

【0095】この後、F2の離鍵以後の動作は第1の実
施形態の場合とほとんど同じ(ch3が異なるのみ)な
ので説明を省略する。
Thereafter, the operation after the key release of F2 is almost the same as that of the first embodiment (only ch3 is different), and the description is omitted.

【0096】[0096]

【発明の効果】本発明によれば、入力された発音指示情
報により、楽音が発音中であることを認識している場合
に、発音指示情報が新たに入力された時、発音中の楽音
に対応する発生指示情報と、新たに入力された発音指示
情報との双方に基づく共鳴音の発生を指示するととも
に、発生中の共鳴音に係わる2つの発音指示情報のう
ち、先に入力された前記発音指示情報に対応する消音指
示情報が新たに入力された場合、該共鳴音の消音を指示
するようにしたので、ピアノ等のアコースティック楽器
に見られる共鳴音の発生現象を再現することのできる発
音指示装置を実現することができる。
According to the present invention, when it is recognized that a musical tone is being produced based on the inputted pronunciation instruction information, when the pronunciation instruction information is newly inputted, the tone being produced is replaced with the tone being produced. Along with instructing the generation of a resonance sound based on both the corresponding generation instruction information and the newly input pronunciation instruction information, of the two pieces of pronunciation instruction information related to the resonance sound being generated, When silencing instruction information corresponding to the sounding instruction information is newly input, the user is instructed to mute the resonance sound, so that the sound generation that can reproduce the phenomenon of generating the resonance sound seen in acoustic instruments such as pianos can be reproduced. An indicating device can be realized.

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

【図1】本発明の第1の実施例の全体構成図である。FIG. 1 is an overall configuration diagram of a first embodiment of the present invention.

【図2】弦の振動モードの説明図である。FIG. 2 is an explanatory diagram of a string vibration mode.

【図3】二つの楽音の共通倍音を示す図である。FIG. 3 is a diagram showing a common overtone of two musical tones.

【図4】C2の弦とF2の弦による共鳴音を示す図であ
る。
FIG. 4 is a diagram showing a resonance sound by a string of C2 and a string of F2.

【図5】2音のキーコード差と共鳴音次数との関係を示
す図である。
FIG. 5 is a diagram illustrating a relationship between a key code difference between two sounds and a resonance sound order.

【図6】正弦波合成方式のタイミング・チャートであ
る。
FIG. 6 is a timing chart of a sine wave synthesis method.

【図7】2個の累算器による累算を説明する図である。FIG. 7 is a diagram for explaining accumulation by two accumulators;

【図8】正弦波メモリの説明図である。FIG. 8 is an explanatory diagram of a sine wave memory.

【図9】第1の実施形態における、主として共鳴音に関
する動作フローチャートである。
FIG. 9 is an operation flowchart mainly related to resonance sound in the first embodiment.

【図10】第1の実施形態のワークRAMの構成図であ
る。
FIG. 10 is a configuration diagram of a work RAM according to the first embodiment.

【図11】図9のステップS10の動作フローチャート
である。
FIG. 11 is an operation flowchart of step S10 in FIG. 9;

【図12】本発明の第2の実施形態の全体構成を示す図
である。
FIG. 12 is a diagram illustrating an overall configuration of a second embodiment of the present invention.

【図13】2音のキーコード差と共鳴音データとの関係
を示す図である。
FIG. 13 is a diagram showing a relationship between a key code difference between two sounds and resonance sound data.

【図14】第2の実施形態における、主として、共鳴音
に関する動作フローチャートである。
FIG. 14 is an operation flowchart mainly related to resonance in the second embodiment.

【図15】第2の実施形態のワークRAMの構図であ
る。
FIG. 15 is a configuration diagram of a work RAM according to the second embodiment.

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

1 鍵盤部 2 押鍵検出および発音割当て回路 3 CPU 4 プログラムROM 5 ワークRAM 6 共鳴音次数テーブル・メモリ 7 周波数ナンバー・メモリ 8 正弦波生成回路 9 高調波係数メモリ 10 乗算器 11 累算器 12 エンベロープ生成回路 13 乗算器 14 D/A変換器 15 増幅器 16 スピー力 17 累算器 18 累算器 21 鍵盤部 22 押鍵検出および発音割当て回路 23 CPU 24 プログラムROM 25 ワークRAM 26 共鳴音データ・テーブル・メモリ 27 波形生成回路 28 エンベローブ生成回路 29 乗算器 30 D/A変換器 31 増幅器 32 スピー力 DESCRIPTION OF SYMBOLS 1 Keyboard part 2 Key press detection and sound assignment circuit 3 CPU 4 Program ROM 5 Work RAM 6 Resonance sound order table memory 7 Frequency number memory 8 Sine wave generation circuit 9 Harmonic coefficient memory 10 Multiplier 11 Accumulator 12 Envelope Generation circuit 13 Multiplier 14 D / A converter 15 Amplifier 16 Speech force 17 Accumulator 18 Accumulator 21 Keyboard part 22 Key press detection and sound assignment circuit 23 CPU 24 Program ROM 25 Work RAM 26 Resonance sound data table Memory 27 Waveform generation circuit 28 Envelope generation circuit 29 Multiplier 30 D / A converter 31 Amplifier 32 Speech force

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力された発音指示情報により楽音の発
音開始を検知すると共に、入力された消音指示情報によ
り該楽音の発音終了を検知して、該楽音が発音中である
ことを認識する発音認識手段と、 前記発音認識手段が発音中であることを認識している場
合に、前記発音指示情報が新たに入力された時、発音中
であることを認識している該楽音に対応する発音指示情
報と、新たに入力された発音指示情報との双方に基づく
共鳴音の発生を指示する共鳴音発音指示手段と、 前記共鳴音発音指示手段により発音の指示された共鳴音
が発音中に、当該共鳴音に係わる2つの前記発音指示情
報のうち、先に入力された前記発音指示情報に係る楽音
の発音が認識されかつ後に入力された前記発音指示情報
に対応する前記消音指示が入力された場合には前記共鳴
音の発音を継続し、後に入力された前記発音指示情報に
係る楽音の発音が認識されかつ先に入力された前記発音
指示情報に対応する前記消音指示が入力された場合、該
共鳴音の消音を指示する共鳴音消音指示手段と、 を有することを特徴とする発音指示装置。
1. A method for detecting the start of tone generation based on input tone generation instruction information and detecting the end of tone generation based on input mute instruction information to recognize that the tone is being generated. Recognizing means, when the pronunciation recognizing means recognizes that the sound is being produced, and when the pronunciation instruction information is newly input, the sound corresponding to the musical tone that is recognized as being produced. Instruction information and resonance sound generation instruction means for instructing the generation of a resonance sound based on both the newly input sound generation instruction information, while the resonance sound instructed by the resonance sound generation instruction means is sounding, Of the two pieces of the sounding instruction information related to the resonance sound, the sounding of the musical tone related to the previously input sounding instruction information is recognized, and the mute instruction corresponding to the sounding instruction information input later is input. in case of When the pronunciation of the note is continued, and the pronunciation of the musical tone related to the tone input instruction information input later is recognized, and the mute instruction corresponding to the tone input instruction information input earlier is input, the resonance tone is input. And a resonance sound muffling instruction means for instructing mute of the sound.
【請求項2】 入力される前記発音指示情報は前記楽音
の音高を示す音高情報を含み、前記共鳴音発音指示手段
は、前記双方の前記発音指示情報各々に含まれる前記音
高情報により夫々示される2つの前記音高の双方に基づ
く音高の共鳴音の発生を指示することを特徴とする特許
請求の範囲第1項記載の発音指示装置。
2. The sounding instruction information to be inputted includes pitch information indicating a pitch of the musical tone, and the resonance sound generating instruction means uses the pitch information included in each of the two sounding instruction information. 2. The sound generation instruction device according to claim 1, wherein the generation of a resonance sound having a pitch based on both of the two pitches indicated is specified.
【請求項3】 前記指示手段は、前記2つの音高の共通
倍音に対応する音高の前記共鳴音の発生を指示すること
を特徴とする特許請求の範囲第2項記載の発音指示装
置。
3. The sounding instruction device according to claim 2, wherein said instruction means instructs the generation of said resonance having a pitch corresponding to a common overtone of said two pitches.
JP8229618A 1996-08-30 1996-08-30 Pronunciation instruction device Expired - Fee Related JP2666132B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8229618A JP2666132B2 (en) 1996-08-30 1996-08-30 Pronunciation instruction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8229618A JP2666132B2 (en) 1996-08-30 1996-08-30 Pronunciation instruction device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP1198664A Division JPH0721716B2 (en) 1989-07-31 1989-07-31 Pronunciation indicator

Publications (2)

Publication Number Publication Date
JPH09134171A true JPH09134171A (en) 1997-05-20
JP2666132B2 JP2666132B2 (en) 1997-10-22

Family

ID=16895018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8229618A Expired - Fee Related JP2666132B2 (en) 1996-08-30 1996-08-30 Pronunciation instruction device

Country Status (1)

Country Link
JP (1) JP2666132B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010231248A (en) * 2010-07-23 2010-10-14 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010231248A (en) * 2010-07-23 2010-10-14 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument

Also Published As

Publication number Publication date
JP2666132B2 (en) 1997-10-22

Similar Documents

Publication Publication Date Title
US11881196B2 (en) Electronic keyboard musical instrument and method of generating musical sound
JPH035758B2 (en)
JPH09127941A (en) Electronic musical instrument
JPH03174590A (en) Electronic musical instrument
US20020166441A1 (en) Resonance apparatus, resonance method and computer program for resonance processing
JP2666132B2 (en) Pronunciation instruction device
JPH0721716B2 (en) Pronunciation indicator
JP3419563B2 (en) Tone signal level control device
JP2670306B2 (en) Musical tone synthesizing apparatus and musical tone synthesizing method
JP2698942B2 (en) Tone generator
JP3439312B2 (en) Electronic musical instrument pitch controller
JP2961867B2 (en) Music signal generator
JP7173107B2 (en) electronic musical instrument, method, program
JP2701177B2 (en) Tone generator
JPH0736456A (en) Electronic musical instrument
JP4012410B2 (en) Musical sound generation apparatus and musical sound generation method
JPH05108068A (en) Phrase information input and output device
JPH06250660A (en) Electronic musical instrument
JP5151523B2 (en) Electronic musical instruments
JP3476863B2 (en) Automatic accompaniment device for electronic musical instruments
JP3090382B2 (en) Tone assigning device and tone generating device
JP2004020989A (en) Device and method for generating musical sound signal, computer program, and computer readable recording medium
JPH10133661A (en) Automatic playing device
JPH0736457A (en) Electronic musical instrument
JPH06214567A (en) Musical sound allocating device and musical sound generating device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080627

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090627

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees