JPH0460590A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH0460590A
JPH0460590A JP2170256A JP17025690A JPH0460590A JP H0460590 A JPH0460590 A JP H0460590A JP 2170256 A JP2170256 A JP 2170256A JP 17025690 A JP17025690 A JP 17025690A JP H0460590 A JPH0460590 A JP H0460590A
Authority
JP
Japan
Prior art keywords
touch
data
key
function
curve
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
JP2170256A
Other languages
Japanese (ja)
Other versions
JP2724905B2 (en
Inventor
Seiji Okamoto
誠司 岡本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2170256A priority Critical patent/JP2724905B2/en
Publication of JPH0460590A publication Critical patent/JPH0460590A/en
Application granted granted Critical
Publication of JP2724905B2 publication Critical patent/JP2724905B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To enable performance with a key touch that a player images by using a touch curve represented by a function conforming with the key touch characteristic of the player. CONSTITUTION:The touch curve as the 1st function f(tn) is stored in a storage means and plural touch data tn from a touch sensor which correspond to the key depression of the player are processed statistically to obtain a statistic value, e.g. mean value tAV; and the input touch data tn for constituting a 2nd function f'(tn) corresponding to the obtained mean value tAV are converted into addresses to be supplied to the storage means. The converted addresses are used to generate a musical sound by using data read out of the storage means as touch data. Consequently, the sound is generated according to new touch curve shown by the 2nd function f'(tn) and the sound generation matching the key touch characteristic of the player become possible.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は電子楽器に関し、特に演奏者が自己に好ましい
キータッチで演奏することができるようにタッチデータ
を自動的に変換する電子楽器に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to an electronic musical instrument, and in particular, to automatic conversion of touch data so that a player can play with a key touch that suits him or her. Regarding electronic musical instruments.

(従来の技術) 従来、電子楽器においては、演奏者が演奏する際の押鍵
の強さ又は速さ(キータッチ)をタッチセンサで検出し
、これにより得られたタッチデータを所定の関数f (
t、)を構成するデータを記憶したメモリ(タッチカー
ブメモリという)に供給して該関数に応じたデータ変換
を行い、この変換により得られたデータに基づいて楽音
を生成することにより演奏者のキータッチに応じた強弱
を有する音を発生するようになっている。
(Prior Art) Conventionally, in electronic musical instruments, a touch sensor detects the strength or speed of key depression (key touch) when a performer performs a performance, and the touch data obtained thereby is processed by a predetermined function f. (
t,) is supplied to a stored memory (referred to as a touch curve memory), the data is converted according to the function, and musical tones are generated based on the data obtained by this conversion, so that the performer's It is designed to generate a sound with a strength depending on the key touch.

しかしながら、上記関数f(t、)、つまりタッチカー
ブを構成するデータは、例えばROM等の固定記憶装置
で構成されるタッチカーブメモリに記憶されるのが一般
的である。したがって、タッチセンサで検出したタッチ
データに対してタッチカーブに従った一定の固定値しか
出力できないようになっている。
However, the above function f(t,), that is, the data constituting the touch curve, is generally stored in a touch curve memory constituted by a fixed storage device such as a ROM. Therefore, only a certain fixed value according to the touch curve can be output for touch data detected by the touch sensor.

一方、演奏者は、所定の強さのキータッチで電子楽器を
演奏した場合に、自己の予期しない音量で発音されると
、当該電子楽器の特性に応じたキータッチで演奏を行う
ようにキータッチを変更せざるを得す、非常に演奏しづ
らいものとなっていた。
On the other hand, if a performer plays an electronic musical instrument with a key touch of a predetermined strength and the sound is produced at a volume that he or she did not expect, the performer may be forced to press the keys to play with a key touch that is appropriate for the characteristics of the electronic instrument. This forced me to change my touch, making it extremely difficult to play.

そこで、このような間圧を解決するために、タッチカー
ブを書き換え可能な例えばRAMに記憶しておき、この
タッチカーブをユーザ(演奏者)が任意に変更して自己
のキータッチに適合するように編集できる電子楽器が開
発されている。
Therefore, in order to solve this problem, the touch curve is stored in a rewritable memory, for example, and the user (performer) can arbitrarily change this touch curve to suit his/her own key touch. Electronic musical instruments that can be edited have been developed.

しかしながら、タッチカーブを自己キータッチの特性に
会わせて編集するには、タッチカーブに関する十分な知
識と、編集のための細かい作業を行う必要があり、実用
性に乏しかった。
However, in order to edit the touch curve to match the characteristics of the self-key touch, it is necessary to have sufficient knowledge about the touch curve and to perform detailed editing work, which is impractical.

(発明が解決しようとする課H) 本発明は、上記事情に鑑みてなされたもので、タッチカ
ーブに関する知識がなくても、また人手による編集のた
めの作業を行わずとも、演奏者のキータッチ特性に合致
したタッチカーブが容易に得られ、演奏者が有している
イメージのキータッチで演奏が可能な電子楽器を提供す
ることを目的とする6 [発明の構成] (課題を解決するための手段) 本発明の電子楽器は、第1の関数を構成するデータを記
憶する記憶手段と、押鍵の強さ又は速さを検出するタッ
チセンサと、このタッチセンサで検出したタッチデータ
を統計処理して統計値を算出する算出手段と、この算出
手段で算出した統計値に応じて、前記タッチセンサで検
出されたタッチデータを、前記記憶手段の内容を第2の
関数を構成するデータとして読出すためのアドレスに変
換する変換手段と、この変換手段で変換されたアドレス
を前記記憶手段に供給して第2の関数を構成するデータ
を読出す読出手段と、この読出手段て読出されたデータ
を新しいタッチデータとして楽音を発生する楽音発生手
段とを具備したことを特徴とする。
(Problem H to be Solved by the Invention) The present invention has been made in view of the above circumstances, and allows the performer to play the key without having any knowledge of touch curves or without performing manual editing work. It is an object of the present invention to provide an electronic musical instrument that can easily obtain a touch curve that matches the touch characteristics and that can be played by touching the keys based on the player's image. (Means for) The electronic musical instrument of the present invention includes a storage means for storing data constituting the first function, a touch sensor for detecting the strength or speed of key depression, and touch data detected by the touch sensor. a calculation means for performing statistical processing to calculate statistical values; and a calculation means for calculating the touch data detected by the touch sensor according to the statistical values calculated by the calculation means, and converting the contents of the storage means to data constituting a second function. a converting means for converting the address into an address for reading as a second function; a reading means for supplying the address converted by the converting means to the storage means to read data constituting the second function; The present invention is characterized by comprising a musical tone generating means for generating a musical tone using the touch data as new touch data.

(作用) 本発明は、第1図(a)に示すような第1の関数f(t
、)としてのタッチカーブを記憶手段に記憶しておき、
演奏者の押鍵に応じたタッチセンサからの複数のタッチ
データt。に統計処理を施して統計値、例えば平均値t
Avを得、この得られた平均値tAVに応じた第2の関
数f’(t、)を構成するべく、入力されたタッチデー
タtイを上記記憶手段に与えるアドレスに変換する。こ
こで、第2の関数f’(t、)としては、同図(b)に
示すように、例えばタッチデータt。が平均値tAV以
下のときは、上記タッチカーブを圧縮した特性を有する
開数f2′(t、)に、タッチデータt0が上記平均値
t AVより大きいときは、上記タッチカーブを伸長し
た特性を有する関数f ’s′(to)になるようなも
のである。そして、変換したアドレスを用いて上記記憶
手段から読出したデータをタッチデータとして楽音発生
するようにしている。
(Operation) The present invention provides a first function f(t
, ) in the storage means,
A plurality of touch data t from the touch sensor according to the player's key presses. is subjected to statistical processing to obtain a statistical value, for example, the average value t
Av is obtained, and the input touch data t is converted into an address given to the storage means in order to construct a second function f'(t,) corresponding to the obtained average value tAV. Here, the second function f'(t,) is, for example, touch data t, as shown in FIG. is less than the average value tAV, the touch data t0 is set to a numerical value f2'(t,) having a characteristic obtained by compressing the touch curve. such that the function f's'(to) has the function f's'(to). Then, using the converted address, the data read from the storage means is used as touch data to generate a musical tone.

これにより、第2の関数f′(t、)で示す新しいタッ
チカーブに従って放音することとなり、演奏者のキータ
ッチ特性に合致した放音ができるものとなっている。
As a result, the sound is emitted according to the new touch curve represented by the second function f'(t,), making it possible to emit sound that matches the key touch characteristics of the performer.

(実施例) 第1図は、本発明に係る電子楽器の一実施例の要部のブ
ロック図である。
(Embodiment) FIG. 1 is a block diagram of essential parts of an embodiment of an electronic musical instrument according to the present invention.

図において、1は操作パネルであり、電源スィッチ、モ
ード指定スイッチ、音色選択スイッチ等の各種スイッチ
類の他、本電子楽器の状態を表示する表示器が設けられ
ている。
In the figure, reference numeral 1 denotes an operation panel, which is provided with various switches such as a power switch, a mode designation switch, and a tone selection switch, as well as a display that displays the status of the electronic musical instrument.

2は鍵盤であり、複数のキーと、このキーの押鍵/離鍵
を検出する検出回路等から構成されている。この鍵盤2
の出力はタッチセンサ3に供給されるようになっている
Reference numeral 2 denotes a keyboard, which includes a plurality of keys and a detection circuit for detecting key depression/key release of the keys. This keyboard 2
The output of is supplied to the touch sensor 3.

3はタッチセンサであり、鍵盤2から出力される信号か
ら押鍵の強さ又は速度(キータッチ)を検出する周知の
ものである。このタッチセンサ3が出力するタッチデー
タt。は入出力インタフェース4に供給されるようにな
っている。また、鍵盤2からの押鍵又は離鍵されたキー
の番号を示すキーナンバは、このタッチセンサ3を経由
してCPU5に供給されるようになっている。
Reference numeral 3 denotes a touch sensor, which is a well-known sensor that detects the strength or speed of key depression (key touch) from a signal output from the keyboard 2. Touch data t output by this touch sensor 3. is supplied to the input/output interface 4. Further, a key number indicating the number of a pressed or released key from the keyboard 2 is supplied to the CPU 5 via the touch sensor 3.

4は入出力インタフェースであり、上述した操作パネル
1からのスイッチデータ又はタッチセンサ3からのタッ
チデータtnをバス13に出力したり、バス13からの
データを受は取って操作パネル1に送り出すものであり
、信号送受の仲介を行う。
Reference numeral 4 denotes an input/output interface, which outputs switch data from the operation panel 1 or touch data tn from the touch sensor 3 to the bus 13, or receives and receives data from the bus 13 and sends it to the operation panel 1. It mediates the transmission and reception of signals.

5はCPUであり、操作パネル1に設けられた電源スィ
ッチ(図示しない)の投入により、プログラムメモリ6
に記憶された制御プログラムに従って動作を行い、電子
楽器的各部を制御するものである。CPU5は、通常は
メインプログラム(第3図参照)を実行しながら所定の
処理を行っている。
5 is a CPU, and when a power switch (not shown) provided on the operation panel 1 is turned on, the program memory 6 is
It operates according to a control program stored in the controller and controls each part of the electronic musical instrument. The CPU 5 normally performs predetermined processing while executing the main program (see FIG. 3).

6はプログラムメモリであり、例えばROMにより構成
される。このプログラムメモリ6には、上述したメイン
プログラム、サブプログラム等の各種プログラムが格納
される他、CPU5の動作に必要な各種の固定データが
含まれる。
Reference numeral 6 denotes a program memory, which is composed of, for example, a ROM. The program memory 6 stores various programs such as the above-mentioned main program and subprograms, and also includes various fixed data necessary for the operation of the CPU 5.

7はワーキングメモリであり、例えばRAMにより構成
される。このワーキングメモ)ノアには、CPU5の処
理に必要なレジスタ、テーブルあるいはフラグ類の領域
、各種データを一時記憶するバッファ領域等が設けられ
ている。CPU3は、このワーキングメモリ7に設けら
れたレジスタ、フラグ等の状態に応じて処理を進めるこ
とになる。
7 is a working memory, which is constituted by, for example, a RAM. This working memo) is provided with registers necessary for processing by the CPU 5, an area for tables or flags, a buffer area for temporarily storing various data, and the like. The CPU 3 proceeds with processing according to the states of registers, flags, etc. provided in the working memory 7.

8はタッチカーブメモリであり、例えばROMにより構
成される。このタッチカーブメモリ8には第1図(a)
に示した関数f(t、、)を構成するデータ(タッチカ
ーブ)が記憶されている。
Reference numeral 8 denotes a touch curve memory, which is composed of, for example, a ROM. This touch curve memory 8 is shown in Fig. 1(a).
Data (touch curve) constituting the function f(t, , ) shown in is stored.

9は音源部であり、CPU5の制御の下に、与えられた
演奏データに応じてアナログ楽音信号を生成するもので
ある。この音源部9は複数の楽音信号形成チャネルを有
している。この音源部9の出力はDACl 0に供給さ
れるようになっている。
Reference numeral 9 denotes a sound source section, which generates analog musical tone signals under the control of the CPU 5 in accordance with given performance data. This sound source section 9 has a plurality of musical tone signal forming channels. The output of this sound source section 9 is supplied to the DAC10.

10はD/A変換器(DAC)であり、音源部9から供
給されるアナログ楽音信号をディジタル楽音信号に変換
するものである。このDAC10の出力は増幅器11に
供給されるようになっている。
Reference numeral 10 denotes a D/A converter (DAC), which converts an analog musical tone signal supplied from the tone source section 9 into a digital musical tone signal. The output of this DAC 10 is supplied to an amplifier 11.

11は増幅器であり、DACIOから出力されるディジ
タル楽音信号を増幅してサウンドシステム12に供給す
るものである。
Reference numeral 11 denotes an amplifier that amplifies the digital musical tone signal output from the DACIO and supplies it to the sound system 12.

12はサウンドシステムであり、例えばスピーカ又はヘ
ッドホンで構成される。このサウンドシステム12によ
り楽音が放音出力されるようになっている。
Reference numeral 12 denotes a sound system, which includes, for example, speakers or headphones. This sound system 12 outputs musical tones.

なお、上記入出力インタフェース4、CPU5、プログ
ラムメモリ6、ワーキングメモリ7、及び音源部9は、
バス13により相互に接続されている。
The input/output interface 4, CPU 5, program memory 6, working memory 7, and sound source section 9 are as follows:
They are interconnected by a bus 13.

次に、上記構成において第3図乃至第7図のフローチャ
ートを参照しながら動作について説明する。
Next, the operation of the above configuration will be explained with reference to the flowcharts of FIGS. 3 to 7.

第3図は、この発明の電子楽器のメインルーチンを示す
ものである。
FIG. 3 shows the main routine of the electronic musical instrument of the present invention.

本電子楽器の電源投入が投入されると、まず、初期設定
処理が行われる(ステップSL)。即ち、CPU5の内
部レジスタを初期化するとともに、ワーキングメモリ7
に定義されているレジスタやフラグ類を初期値に設定し
、さらに所定のハードウェアを初期化する。これにより
イニシャルの音色等が設定され、放音が可能になる。
When the electronic musical instrument is powered on, initial setting processing is first performed (step SL). That is, the internal registers of the CPU 5 are initialized, and the working memory 7
It sets the registers and flags defined in , to their initial values, and also initializes the specified hardware. This sets the initial tone, etc., and makes it possible to emit sound.

次いで、操作パネル1上のパネルスイッチのオンイベン
トがあったか否かが調べられる(ステップS2)、そし
て、パネルスイッチのオンイベントがあったことが判断
されると、該スイッチに対応するパネル処理を行い(ス
テップS3)、その後ステップS2に戻る。このパネル
処理では、例えば操作パネル1上の音色選択スイッチが
操作されることにより他の音色が選択されると、その選
択された音色を放音するために必要な音色データ設定処
理等が行われる。その他のスイ・ンチにつ11)ても同
様である。
Next, it is checked whether there is an on event of a panel switch on the operation panel 1 (step S2), and if it is determined that there is an on event of a panel switch, panel processing corresponding to the switch is performed. (Step S3), and then returns to Step S2. In this panel processing, when another tone is selected by operating a tone selection switch on the operation panel 1, for example, tone data setting processing etc. necessary for emitting the selected tone are performed. . The same applies to other switches 11).

一方、上記ステップS2でバネルスイ・ソチにオンイベ
ントがなかったことが判断されると、次に、鍵盤2の押
鍵があったか否かが調べられる(ステップS4)。そし
て、押鍵があったことが判断されると押鍵処理のサブル
ーチンをコールし、押下されたキーに対応する発音処理
を行い(ステ・ツブS5)、その後ステップS2に戻る
。この押鍵処理において、本発明の特徴に関係するタッ
チデータの変換処理が行われることになる。これらの詳
細については後述する。
On the other hand, if it is determined in step S2 that there is no on-event in Banelsui Sochi, then it is checked whether or not there has been a key depression on the keyboard 2 (step S4). When it is determined that a key has been pressed, a key press processing subroutine is called, and a sound generation process corresponding to the pressed key is performed (step S5), after which the process returns to step S2. In this key press processing, touch data conversion processing, which is related to the features of the present invention, is performed. Details of these will be described later.

一方、上記ステップS4で押鍵がなかったことが判断さ
れると離鍵があったか否かが調べられる(ステップS6
)。そして、離鍵があったことが判断されると離鍵処理
を行う(ステ・ンプS7)。
On the other hand, if it is determined in step S4 that no key has been pressed, it is checked whether or not there has been a key release (step S6).
). Then, when it is determined that the key has been released, a key release process is performed (step S7).

この離鍵処理は、演奏者がキーを離したことに伴う消音
処理である。この離鍵処理の後、ステ・ツブS2に戻る
This key release process is a mute process that occurs when the player releases a key. After this key release process, the process returns to step S2.

一方、上記ステップS6で離鍵もなかったことが判断さ
れると、ステップS2に戻り、再度同様の処理を繰り返
す。以降は、パネルスイ・ンチが操作されたかくステッ
プS2)、押鍵があったか(ステップS4)及びMfs
があったか(ステップS6)を調べながらループするこ
とになる。
On the other hand, if it is determined in step S6 that no key has been released, the process returns to step S2 and the same process is repeated again. From then on, it is determined whether the panel switch was operated (step S2), whether a key was pressed (step S4), and whether the Mfs
The process loops while checking whether there was a problem (step S6).

次に、押鍵処理について説明する。この押鍵処理は、第
4図に示す手順で行われる。まず、アサイン処理が行わ
れる(ステップ5IO)、このアサイン処理は、これか
ら発音しようとする楽音信号の発音チャネルを割り当て
る処理である。
Next, key press processing will be explained. This key pressing process is performed according to the procedure shown in FIG. First, an assignment process is performed (step 5IO). This assignment process is a process of allocating a sound generation channel for a musical tone signal to be generated from now on.

次いで、新タッチデータ計算処理が行われる(ステップ
511)。この新タッチデータ計算処理は、第5図に示
すように、タッチデータの平均値計算処理(ステップ5
20)と、アドレス計算処理(ステップ521)とによ
り実現される(詳細は後述する)、そして、この新タッ
チデータ計算処理が終了すると第4図のステップS12
に戻り、発音処理を行う(ステップ512)、この発音
処理では、新タッチデータに基づいて変換されたタッチ
データにより、演奏者に好適な音量で発音が行おれるこ
とになる。
Next, new touch data calculation processing is performed (step 511). This new touch data calculation process includes touch data average value calculation process (step 5), as shown in FIG.
20) and address calculation processing (step 521) (details will be described later), and when this new touch data calculation processing is completed, step S12 in FIG.
The process returns to step 512 and performs a sound generation process (step 512). In this sound generation process, sound is produced at a volume suitable for the performer using the touch data converted based on the new touch data.

上記第5図に示したタッチデータの平均値計算処理につ
いて、第6図のフローチャートを参照しながら説明する
The touch data average value calculation process shown in FIG. 5 will be described with reference to the flowchart in FIG. 6.

一般に、01個のタッチデータ(t、)(n=12.3
.4.・・、C1)があり、それらの平均値をt AV
とすると、平均値t AVは次式で求められる。
Generally, 01 touch data (t,) (n=12.3
.. 4. ..., C1), and their average value is t AV
Then, the average value t AV is obtained by the following formula.

t AV−Σ t、/C1−(1) 今、−例として、平均値tAvを算出するためのサンプ
リング数を256個とし、これから平均値t AVを算
出するものとする。
tAV-Σt,/C1-(1) Now, as an example, it is assumed that the number of samples for calculating the average value tAv is 256, and the average value tAV is calculated from this.

まず、CPU5は、タッチセンサ3が出力するタッチデ
ータt。を入出力インタフェース4を介して受は取り、
ワーキングメモリ7に設けられたテンポラリレジスタT
MP (図示しない)に格納する(ステップ531)。
First, the CPU 5 receives touch data t output from the touch sensor 3. is received via the input/output interface 4,
Temporary register T provided in working memory 7
MP (not shown) (step 531).

そして、変数i(電源投入時にゼロに初期設定されてい
る)がr256」より小さいか否か、つまり押鍵回数が
256回に達したか否かを調べる(ステップ532)、
そして、r256」より小さければ、上記テンポラリレ
ジスタTMPの内容な、ワーキングメモリ7に設けられ
たバッファBUFのi番地(以下、BUF (i)て表
す)に格納する(ステップ833)。
Then, it is checked whether the variable i (which is initially set to zero when the power is turned on) is smaller than "r256", that is, whether the number of key presses has reached 256 (step 532).
If it is smaller than "r256", the contents of the temporary register TMP are stored in address i (hereinafter referred to as BUF (i)) of the buffer BUF provided in the working memory 7 (step 833).

次に、変数iをインクリメントしくステップ534)、
C2を平均値t AVとする(ステップ535)。ここ
で、C2は、タッチカーブメモリ8に記憶されている関
数f (t、)のタッチデータの平均値である。即ち、
上記ステップ331〜S35の一連の処理は、タッチデ
ータのサンプル数がr256」に満たない場合に、強制
的にタッチカーブメモリ8に記憶された関数f(t、、
)の平均値C2を以下の処理で使用する平均値t AV
とするものである。この平均値C2は、タッチカーブメ
モリ8の内容は固定であるので、一意的に決定される定
数である。
Next, increment the variable i (step 534),
Let C2 be the average value tAV (step 535). Here, C2 is the average value of the touch data of the function f(t,) stored in the touch curve memory 8. That is,
The series of processes from Steps 331 to S35 described above is performed when the number of samples of touch data is less than r256'', the function f(t, ,
) average value C2 is used in the following processing as the average value t AV
That is. This average value C2 is a constant that is uniquely determined because the contents of the touch curve memory 8 are fixed.

一方、上記ステップS32で変数iがr256J以上に
なったことが判断されると、変数jをゼロに初期設定し
くステップ536)、平均値tAv(の格納領域〉をゼ
ロに初期設定する(ステップ537)。そして、上記バ
ッファBUFのj番地の内容(以下、BUF Cj:]
で表す)を平均値t AVの格納領域に加算し、累積値
t AVを算出する(ステップ538)。次いで、変数
jがr255Jになったか否か、つまりバッファBUF
の内容の全の加算が完了したか否かを調べる(ステップ
839)。もし、r255]でなければ変数jをインク
リメントしくステップ540)、ステップS38に戻る
On the other hand, if it is determined in step S32 that the variable i is equal to or greater than r256J, the variable j is initialized to zero (step 536), and the average value tAv (storage area) is initialized to zero (step 537). ).Then, the contents of address j of the above buffer BUF (hereinafter referred to as BUF Cj:]
) is added to the storage area for the average value t AV to calculate the cumulative value t AV (step 538). Next, check whether the variable j has become r255J, that is, the buffer BUF
It is checked whether the addition of all the contents of has been completed (step 839). r255], the variable j is incremented (step 540), and the process returns to step S38.

そして、ステップ338〜40を変数jが[255]に
なるまで繰り返し実行し、r255Jになったことが判
断されると、平均値t AVの格納領域に累算された内
容をr256Jで除算することにより新しい平均値t 
AVを求める。ここで算出された平均値t AVは、演
奏者のキータッチを反映したものである。以降は、この
平均値j AVを考慮してタッチカーブを補正しながら
発音処理が行われることになる。
Then, steps 338 to 40 are repeatedly executed until the variable j becomes [255], and when it is determined that it has become r255J, the contents accumulated in the storage area of the average value tAV are divided by r256J. The new mean value t
Find AV. The average value t AV calculated here reflects the player's key touches. Thereafter, the sound generation process will be performed while correcting the touch curve in consideration of this average value j AV.

次に、第5図に示したアドレス計算処理につき、第7図
のフローチャートを臀照しながら説明する。
Next, the address calculation process shown in FIG. 5 will be explained with reference to the flowchart shown in FIG.

このアドレス計算処理は、既にタッチカーブメモリ8に
記憶されているタッチカーブf (t、)の読出位置、
つまりアドレスを変えて読出すことにより、新しいタッ
チカーブf′(tn)を求めるものである。
In this address calculation process, the readout position of the touch curve f (t,) already stored in the touch curve memory 8,
In other words, a new touch curve f'(tn) is obtained by changing the address and reading the data.

例えば、新しいタッチカーブは上記(1)式で求めた平
均値をt AVを用いて、次のようにして求められる。
For example, a new touch curve can be obtained as follows using the average value obtained using the above equation (1) and tAV.

C0〈t、≦t AVの場合 f′(tア)=f2′(t、、) −f +(C2/ t Av) ・t n)−(2)■
t、Av≦t h < aの場合 f′(tn)=fs’(t、) −f (((a  C2)/ (a  t Av))・
七〇〕・・(3) ここで、aはt。がとりうる最大の値に「1」を加えた
ものであり、C2は上述した定数である。
C0〈t,≦t AV, f' (ta) = f2' (t,,) -f + (C2/ t Av) ・t n) - (2) ■
If t, Av≦t h < a, then f'(tn)=fs'(t,) -f (((a C2)/(a t Av))・
70]...(3) Here, a is t. is the maximum possible value plus "1", and C2 is the constant described above.

上記(2)式は、第1図(b)に示すように、同図(a
)のf (t、、): O<tn≦t AVを横軸方向
にtAv/C2倍、圧縮、伸長することを表す。
As shown in FIG. 1(b), the above equation (2) is expressed as shown in FIG.
) of f (t,,): O<tn≦t This represents compressing and expanding AV by 2 times tAv/C in the horizontal axis direction.

上記(3)式は、第1図(b)に示すように、同図(a
)のf (t、): 0<t、≦t AVを横軸方向に
(a  tAv) / (a  C2)倍、圧縮、伸長
することを表す。
As shown in FIG. 1(b), the above equation (3) is expressed as shown in FIG.
) of f (t,): 0<t, ≦t AV is compressed and expanded by (a tAv) / (a C2) times in the horizontal axis direction.

具体的には、第7図に示すように、まず、テンポラリレ
ジスタTMPの内容、つまりタッチセンサ3が出力した
タッチデータをADRという変数に代入する(ステップ
550)。次いで、この変数ADRが、上記タッチデー
タの平均値算出処理で求めた平均値t A V以下であ
るか否かを調べる(ステップ551)。そして、平均値
tAV以下であることが判断されると、下式により新し
い変数ADR′を算出し、これをタッチカーブメモリ8
のアドレスとして該メモリ8からデータを読出し、タッ
チデータ変換出力とする(ステップ552)。
Specifically, as shown in FIG. 7, first, the contents of the temporary register TMP, that is, the touch data output by the touch sensor 3, are substituted into a variable called ADR (step 550). Next, it is determined whether or not this variable ADR is less than or equal to the average value t AV calculated in the touch data average value calculation process (step 551). When it is determined that it is below the average value tAV, a new variable ADR' is calculated using the following formula, and this is stored in the touch curve memory 8.
The data is read from the memory 8 as the address of , and is used as a touch data conversion output (step 552).

ADR’ = l (C2/1Av)・ADRl −=
(4)ここで「1」は絶対値記号である。
ADR' = l (C2/1Av)・ADRl −=
(4) Here, "1" is an absolute value symbol.

一方、変数ADRが平均値t AVより大きいことが判
断されると、下式により新しい変数ADR′を算出し、
これをタッチカーブメモリ8のアドレスとして該めもり
8がらデータを読出し、タッチデータ変換出力とする(
ステップ553)。
On the other hand, if it is determined that the variable ADR is larger than the average value tAV, a new variable ADR' is calculated using the following formula,
Using this as the address of the touch curve memory 8, read the data from the memory 8 and use it as a touch data conversion output (
step 553).

ADR′−C2+ 1 +(C2−tAv)/(C3−
tAv))・ADRI・・(5) ここで、C3は最大タッチ+1であり、タッチデータテ
ーブルのアドレスがO1l〜FF、であれば、1008
である。なお、添字の「H」は16進数であることを示
す。
ADR'-C2+ 1 +(C2-tAv)/(C3-
tAv))・ADRI...(5) Here, C3 is the maximum touch +1, and if the address of the touch data table is O1l~FF, then 1008
It is. Note that the subscript "H" indicates a hexadecimal number.

第8図は、上記処理によりタッチデータが変換される様
子を示すものである。
FIG. 8 shows how touch data is converted by the above processing.

あるタッチデータt1が入力されたとき、それと変換出
力との関係を表す式をf′(t)、タッチカーブメモリ
8の内容をf(t)とすると、次の等式が成り立つ。
When certain touch data t1 is input, the following equation holds true, where f'(t) is an expression expressing the relationship between it and the conversion output, and f(t) is the content of the touch curve memory 8.

f′fADR(tl)l=f(ADR′(tl))・・
(6)ゆえに、新タッチカーブテーブルf′(t)をス
トアする必要はない。
f'fADR(tl)l=f(ADR'(tl))...
(6) Therefore, there is no need to store the new touch curve table f'(t).

以上のように、第1図(a)に示すような第1の関数f
 (t、)としてのタッチカーブをタッチカーブメモリ
8に記憶しておき、演奏者の押鍵に応じたタッチセンサ
3からの複数のタッチデータ1、を順次蓄積記憶し、所
定数のタッチデータを記憶したところで、統計値として
の平均値t AVを算出し、この算出された平均値tA
Vに応じた第2の関数f′(t、)を構成するべく、入
力されたタッチデータtnを上記タッチカーブメモリ8
に与えるアドレスに変換する。ここで、第2の関数f′
(t、)としては、第1図(b)に示すように、例えば
タッチデータt。が平均値t AV以下のときは、上記
タッチカーブを圧縮した特性を有する関数fz′(t−
)に、タッチデータtnが上記平均値t AVより大き
いときは、上記タッチカーブを伸長した特性を有する関
数fi′(t−)になるようなものである。そして、こ
の変換したアドレスを用いて上記タッチカーブメモリ8
から読出したデータをタッチデータとして楽音発生する
ようにしている。これにより、第2の関数f’(t、)
で示す新しいタッチカーブに従って放音することとなり
、演奏者のキータッチ特性に合致した放音ができるもの
となっている。
As described above, the first function f as shown in FIG. 1(a)
(t,) is stored in the touch curve memory 8, a plurality of touch data 1 from the touch sensor 3 corresponding to the player's key presses are sequentially accumulated and stored, and a predetermined number of touch data are stored. Once stored, calculate the average value tAV as a statistical value, and use the calculated average value tA
The input touch data tn is stored in the touch curve memory 8 to form a second function f'(t,) corresponding to V.
Convert to the address given to . Here, the second function f'
(t,) is, for example, touch data t, as shown in FIG. 1(b). is less than the average value tAV, the function fz'(t-
), when the touch data tn is larger than the average value tAV, the function fi'(t-) has the characteristic of expanding the touch curve. Then, using this converted address, the touch curve memory 8
The data read from the touch panel is used as touch data to generate musical sounds. This gives us the second function f'(t,)
The sound will be emitted according to the new touch curve shown by , making it possible to emit sound that matches the key touch characteristics of the performer.

なお、上記実施例では、電源投入直後から256個のタ
ッチデータが入力されることによりタッチカーブが変わ
るように構成したが、256個というサンプルの数、サ
ンプルのとり方、タッチカーブを変更するタイミングは
上記に限定されない。
In the above embodiment, the touch curve is changed by inputting 256 pieces of touch data immediately after the power is turned on. Not limited to the above.

例えば、1番目から256番目の平均値t IAV、2
57番目から512番目の平均値t 2AV、・・・’
256X (n−1)+IJ番目から「256×n」番
目の平均値j nAVを用い、tlからtnの平均を求
め、これを第6図に示したタッチデータの平均値計算ル
ーチンの出力とすることもできるにれは256X (n
+1>個のサンノルをとったことと同じになる。
For example, the average value t IAV, 2 of the 1st to 256th
57th to 512th average value t 2AV,...'
256X (n-1) + IJ to "256 x n"th average value j nAV is used to find the average of tl to tn, and this is the output of the touch data average value calculation routine shown in Figure 6. The number of people who can also do this is 256X (n
It is the same as taking +1> Sunnor.

[発明の効果] 以上詳述したように、本発明によればタッチカーブに関
する知識がなくても、また人手による編集のための作業
を行わずとも、演奏者のキータッチ特性に合致したタッ
チカーブが容易に得られ、演奏者が有しているイメージ
のキータッチで演奏が可能な電子楽器を提供できる。
[Effects of the Invention] As detailed above, according to the present invention, a touch curve that matches the key touch characteristics of a performer can be created without knowledge of touch curves or without manual editing work. It is possible to provide an electronic musical instrument that can be easily obtained and can be played by touching the keys based on the player's image.

隻セ史出かIs it Fuide?

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の詳細な説明するための図、第2図は本
発明の電子楽器の構成を示すブロック図、 第3図乃至第7図本発明の詳細な説明するためのフロー
チャート、 第8図は本発明の実施例の動作を説明するための図であ
る。 1・・操作パネル、2・・・鍵盤、3・・・タッチセン
サ、4・・・入出力インタフェース、5・・cpu(3
11手段、変換手段、読出手段)、6・・・プログラム
メモリ、7・・・ワーキングメモリ、8・・・タッチカ
ーブメモリ(記憶手段)、9・音源部(楽音発生手段)
、10・・・DAClll・・増幅器、12・・・サウ
ンドシステム。 (a) (b) 第1図 手続補正書 平成2年7月24日
FIG. 1 is a diagram for explaining the present invention in detail, FIG. 2 is a block diagram showing the configuration of the electronic musical instrument of the present invention, FIGS. 3 to 7 are flowcharts for explaining the present invention in detail, FIG. 8 is a diagram for explaining the operation of the embodiment of the present invention. 1...Operation panel, 2...Keyboard, 3...Touch sensor, 4...I/O interface, 5...CPU (3
11 means, conversion means, reading means), 6... program memory, 7... working memory, 8... touch curve memory (storage means), 9. sound source section (musical sound generation means)
, 10... DACll... amplifier, 12... sound system. (a) (b) Figure 1 procedural amendment dated July 24, 1990

Claims (1)

【特許請求の範囲】 第1の関数を構成するデータを記憶する記憶手段と、 押鍵の強さ又は速さを検出するタッチセンサと、このタ
ッチセンサで検出したタッチデータを統計処理して統計
値を算出する算出手段と、 この算出手段で算出した統計値に応じて、前記タッチセ
ンサで検出されたタッチデータを、前記記憶手段の内容
を第2の関数を構成するデータとして読出すためのアド
レスに変換する変換手段と、この変換手段で変換された
アドレスを前記記憶手段に供給して第2の関数を構成す
るデータを読出す読出手段と、 この読出手段で読出されたデータを新しいタッチデータ
として楽音を発生する楽音発生手段とを具備したことを
特徴とする電子楽器。
[Scope of Claims] A storage means for storing data constituting the first function, a touch sensor for detecting the strength or speed of key depression, and statistical processing of the touch data detected by the touch sensor to obtain statistics. a calculation means for calculating a value; and a calculation means for reading out the touch data detected by the touch sensor according to the statistical value calculated by the calculation means, the contents of the storage means as data constituting a second function. a converting means for converting into an address; a reading means for supplying the address converted by the converting means to the storage means and reading data constituting the second function; An electronic musical instrument characterized by comprising a musical sound generating means for generating musical sounds as data.
JP2170256A 1990-06-29 1990-06-29 Electronic musical instrument Expired - Fee Related JP2724905B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2170256A JP2724905B2 (en) 1990-06-29 1990-06-29 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2170256A JP2724905B2 (en) 1990-06-29 1990-06-29 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH0460590A true JPH0460590A (en) 1992-02-26
JP2724905B2 JP2724905B2 (en) 1998-03-09

Family

ID=15901570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2170256A Expired - Fee Related JP2724905B2 (en) 1990-06-29 1990-06-29 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2724905B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6906695B1 (en) 1999-11-26 2005-06-14 Kabushiki Kaisha Kawai Gakki Seisakusho Touch control apparatus and touch control method that can be applied to electronic instrument

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5522750A (en) * 1978-08-08 1980-02-18 Nippon Musical Instruments Mfg Touch response devide for electronic musical instrument
JPS58207084A (en) * 1982-05-27 1983-12-02 ヤマハ株式会社 Processing of touch data for keyed instrument
JPS6363095A (en) * 1986-09-03 1988-03-19 松下電器産業株式会社 Electronic musical instrument
JPH02137890A (en) * 1988-11-18 1990-05-28 Yamaha Corp Electronic musical instrument

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5522750A (en) * 1978-08-08 1980-02-18 Nippon Musical Instruments Mfg Touch response devide for electronic musical instrument
JPS58207084A (en) * 1982-05-27 1983-12-02 ヤマハ株式会社 Processing of touch data for keyed instrument
JPS6363095A (en) * 1986-09-03 1988-03-19 松下電器産業株式会社 Electronic musical instrument
JPH02137890A (en) * 1988-11-18 1990-05-28 Yamaha Corp Electronic musical instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6906695B1 (en) 1999-11-26 2005-06-14 Kabushiki Kaisha Kawai Gakki Seisakusho Touch control apparatus and touch control method that can be applied to electronic instrument

Also Published As

Publication number Publication date
JP2724905B2 (en) 1998-03-09

Similar Documents

Publication Publication Date Title
US4909121A (en) Tone signal generation device with reasonance tone effect
JP2658463B2 (en) Automatic performance device
JP3404794B2 (en) Waveform generator
JP4112268B2 (en) Music generator
JPH0784574A (en) Electronic musical instrument
JPH0460590A (en) Electronic musical instrument
JP3037861B2 (en) Waveform forming device and electronic musical instrument using the output waveform
JPH0968980A (en) Timbre controller for electronic keyboard musical instrument
JP2538809B2 (en) Musical sound generator
JP2698942B2 (en) Tone generator
JP2701177B2 (en) Tone generator
JP4132268B2 (en) Waveform playback device
JP4191073B2 (en) Waveform data output device
JP2001209382A (en) Beat processing device of electronic instrument
JPH096343A (en) Musical tone signal generator
JP3581763B2 (en) Electronic musical instrument
JP3301173B2 (en) Automatic performance device
JP2814939B2 (en) Waveform processing device
JP3105132B2 (en) Tone generator for electronic musical instruments
JP3612742B2 (en) Electronic musical instruments
JP3476863B2 (en) Automatic accompaniment device for electronic musical instruments
JP4503275B2 (en) Waveform playback device
JP3375220B2 (en) Electronic musical instrument
JPH09114460A (en) Filter device of electronic musical instrument
JPH0416898A (en) Envelope generator

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees