JPH041698A - Musical sound waveform storing method and waveform reader for electronic musical instrument - Google Patents

Musical sound waveform storing method and waveform reader for electronic musical instrument

Info

Publication number
JPH041698A
JPH041698A JP2102159A JP10215990A JPH041698A JP H041698 A JPH041698 A JP H041698A JP 2102159 A JP2102159 A JP 2102159A JP 10215990 A JP10215990 A JP 10215990A JP H041698 A JPH041698 A JP H041698A
Authority
JP
Japan
Prior art keywords
waveform
waveform data
data
bits
musical sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2102159A
Other languages
Japanese (ja)
Inventor
Takashi Matsuda
隆 松田
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 JP2102159A priority Critical patent/JPH041698A/en
Publication of JPH041698A publication Critical patent/JPH041698A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To efficiently store a musical sound waveform in a data storage area small in capacity by storing address information and allocation information by attaching on the amplification information of waveform data converted to digital values divided into plural steps corresponding to the peak value of the musical sound waveform and of different number of bits. CONSTITUTION:The musical sound waveform for each tone frequency of several kinds of tone colors of a musical instrument is divided into the plural steps corresponding to the peak value, respectively, and divided musical sound waveform data are digital-converted with different number of bits, and an address is attached on each musical sound waveform data, and they are stored in different waveform data storage areas. In other words, in a piano, it is divided into two steps of a piano waveform 1 of 16 bits and a piano waveform 2 of 12 bits, and one piano tone is comprised by reading out the piano waveform 1 and the piano waveform 2 sequentially. The allocation information and the amplitude information of each waveform data divided respectively are stored in an address storage area. In such a way, it is possible to efficiently store the musical sound waveform by effectively using a memory area.

Description

【発明の詳細な説明】[Detailed description of the invention]

(産業上の利用分野] 本発明は、電子楽器に係り、特に、大容量のメモリを用
いることなく必要な楽音波形を記憶することのできる楽
音波形記憶方法、及びこの楽音波形記憶方法を用いた電
子楽器の波形読出し装置に関する。
(Industrial Application Field) The present invention relates to electronic musical instruments, and in particular to a musical sound waveform storage method that can store necessary musical sound waveforms without using a large-capacity memory, and a method using this musical sound waveform storage method. The present invention relates to a waveform reading device for an electronic musical instrument.

【従来の技術1 一般に、音源に発振器や記憶素子(回路)を使って機械
的な振動部分を持っていない電子楽器は。 各複数種類の楽器音色の各音高に対する楽音波形を予め
メモリに記憶させておき、このメモリに記憶されている
情報を、鍵盤等の操作によって指定することによって読
み出し、楽音を発音するようになっている。 この電子楽器の波形データの記憶は、第9図に示す如き
記憶エリアの割当方法によって行われている。図中、D
o  O〜D○ 15は、波形メモリの出力信号名であ
る。また、アドレスは、波形メモリのアドレスを示して
おり、0が波形メモリの先頭アドレスを表わし、nEN
Dが波形メモリの最終アドレスを示している。この第9
図の波形メモリは、各種ヘッダ、リズム伴奏パターン、
ピアノ波形、シンバル波形、ドラム波形、バイオリン波
形の6種類のデータに分類される。 各種ヘッダには、それぞれのデータがどこから始まるか
等のアドレスデータが入っており、リズム伴奏パターン
には、自動リズム伴奏の演奏パターンデータが入ってい
る。また、ピアノ波形、シンバル波形、ドラム波形、バ
イオリン波形は、それぞれの楽器の楽音の波形データが
入っており、1つのアドレスに一時点のパルス・コード
化した波形データ(1サンプルデータ)が入っている。 nR,np、nc、nd、nvは、それぞれリズム伴奏
パターン、ピアノ波形、シンバル波形、ドラム波形、バ
イオリン波形の先頭アドレスである。 (発明が解決しようとする課題] 最近の電子楽器は1機能を低下させない程度に小型にす
ることが要求され、しかも従来よりも多機能を持たせる
ことが要求されている。このため、電子回路内に組み込
まれているメモリの容量は増大する一方である。しかし
ながら、電子楽器内部の容積が、小型化の要求によって
従来よりも小さくなっており、このため電子回路の実装
面積は。 従来よりも大きくすることができない。 したがって、電子回路内に組み込まれているメモリに、
メモリ容量の大きいものを用いることができず、従来の
電子楽器の波形データを記憶する記憶エリアの割当方法
では、必要な波形データを充分に記憶することができな
いという問題点を有している。 本発明は、従来の技術の有するこのような問題点に鑑み
なされたものであり、その目的とするところは、大容量
のメモリを用いることなく少ないデータ記憶エリアに効
率良く必要な楽音波形を記憶することのできる楽音波形
記憶方法、及び波形メモリの節約を図り効率良く記憶さ
れている電子楽器の波形データを確実に、かつ効率良く
読み出し合成して正確な楽音波形を生成することのでき
る電子楽器の波形読出し装置を提供しようとするもので
ある。 【課題を解決するための手段】 上記目的を達成するために1本発明の電子楽器の楽音波
形記憶方法においては、複数種類の楽器音色の各音高に
対する楽音波形を波高値に応じてそれぞれ複数個のステ
ップに分割して複数の波形データとなし、各ステップ毎
に異なるビット数でデジタル変換し、前記各ステップ毎
の各楽器音色の楽音波形の波形データ毎にそれぞれアド
レスを付して異なった波形データ記憶エリアに記憶する
と共に、各楽器音色毎の各音高についてそれぞれ分割さ
れた波形データの割当形式を示す割当情報と各楽器音色
毎の各音高についてそれぞれ分割された波形の振幅を示
す振幅情報とをアドレス記憶エリアに記憶するようにし
たものである。 上記目的を達成するために1本発明の電子楽器の波形読
出し装置においては、複数種類の楽器音色の各音高に対
する楽音波形を波高値に応じて複数個のステップに分割
し、各ステップ毎に異なるビット数のデジタル値に変換
された波形データと。 前記ステップ毎に異なる各楽器音色の楽音波形の波形デ
ータ毎に異なった記憶領域を示すアドレス情報と、前記
波形データの各記憶領域への割当形式を示す割当情報と
、前記各記憶領域に記憶されている各楽音波形の振幅を
示す振幅情報のそれぞれを記憶した波形メモリと、鍵盤
等の操作によって選択された特定の種類の楽器音色の特
定音高の波形に対応する波形データを前記波形メモリか
ら選択する波形選択手段と、前記波形選択手段からの選
択信号により選択された波形データのアドレス情報を読
み出して該アドレス情報に基づく波形データを出力する
波形データ出力手段と、前記波形データ出力手段によっ
て出力される波形データから前記割当情報に対応して必
要な波形データのみを取り出す波形データ抽出手段と、
前記波形データ抽出手段によって取り出された波形デー
タを振幅情報に対応して上位又は下位にシフトして所定
ビット数に変換して出力するシフト手段と、前記波形デ
ータ抽出手段における所定ビット数の波形データと前記
シフト手段から出力される波形データとを合成して1つ
の楽音波形を生成して出力する楽音波形合成手段とによ
って構成したものである。
[Conventional technology 1] Generally, electronic musical instruments use an oscillator or memory element (circuit) as a sound source and do not have a mechanical vibrating part. Musical sound waveforms for each pitch of multiple types of musical instrument tones are stored in memory in advance, and the information stored in this memory is read out by specifying it by operating the keyboard, etc., and musical tones are produced. ing. The waveform data of this electronic musical instrument is stored using a storage area allocation method as shown in FIG. In the figure, D
o O~D○ 15 is the name of the output signal of the waveform memory. In addition, the address indicates the address of the waveform memory, where 0 represents the start address of the waveform memory, and nEN
D indicates the final address of the waveform memory. This ninth
The waveform memory shown in the figure includes various headers, rhythm accompaniment patterns,
It is classified into six types of data: piano waveform, cymbal waveform, drum waveform, and violin waveform. The various headers contain address data such as where each piece of data starts, and the rhythm accompaniment pattern contains performance pattern data for automatic rhythm accompaniment. Piano waveforms, cymbal waveforms, drum waveforms, and violin waveforms contain the waveform data of the musical tones of each instrument, and one address contains pulse-coded waveform data (one sample data) at one point. There is. nR, np, nc, nd, and nv are the start addresses of the rhythm accompaniment pattern, piano waveform, cymbal waveform, drum waveform, and violin waveform, respectively. (Problems to be Solved by the Invention) Recent electronic musical instruments are required to be miniaturized to the extent that one function is not degraded, and they are also required to have multiple functions than before. The capacity of the built-in memory continues to increase.However, due to the demand for miniaturization, the internal volume of electronic musical instruments has become smaller than before, and as a result, the mounting area of electronic circuits has become smaller than before. Therefore, in the memory embedded in the electronic circuit,
It is not possible to use a memory with a large capacity, and the conventional method of allocating a storage area for storing waveform data of an electronic musical instrument has the problem that the required waveform data cannot be sufficiently stored. The present invention was devised in view of the above-mentioned problems of the conventional technology, and its purpose is to efficiently store necessary musical sound waveforms in a small data storage area without using a large capacity memory. An electronic musical instrument capable of reliably and efficiently reading out and synthesizing waveform data of electronic musical instruments that are efficiently stored while saving waveform memory, and generating accurate musical sound waveforms. The present invention aims to provide a waveform readout device. [Means for Solving the Problems] In order to achieve the above object, in the musical sound waveform storage method for an electronic musical instrument of the present invention, a plurality of musical sound waveforms for each pitch of a plurality of types of musical instrument tones are stored in accordance with the peak value. Divide into multiple steps to create multiple waveform data, digitally convert with a different number of bits for each step, and add an address to each waveform data of the musical sound waveform of each instrument tone for each step to create different waveform data. It is stored in the waveform data storage area, and also indicates allocation information indicating the allocation format of the divided waveform data for each pitch of each musical instrument tone and the amplitude of the divided waveform for each pitch of each musical instrument tone. The amplitude information is stored in an address storage area. In order to achieve the above object, the waveform reading device for an electronic musical instrument of the present invention divides the musical waveform for each pitch of a plurality of types of musical instrument tones into a plurality of steps according to the peak value, and Waveform data converted to digital values with different number of bits. Address information indicating a different storage area for each waveform data of musical sound waveforms of each musical instrument tone that differs for each step, allocation information indicating an allocation format of the waveform data to each storage area, and information stored in each storage area. A waveform memory that stores amplitude information indicating the amplitude of each musical sound waveform, and waveform data corresponding to a waveform of a specific pitch of a specific type of musical instrument tone selected by operating a keyboard etc. from the waveform memory. a waveform selection means for selecting; a waveform data output means for reading address information of waveform data selected by a selection signal from the waveform selection means and outputting waveform data based on the address information; and output by the waveform data output means. waveform data extracting means for extracting only necessary waveform data from the waveform data corresponding to the allocation information;
Shifting means for shifting the waveform data extracted by the waveform data extraction means upward or downward according to amplitude information, converting the converted data into a predetermined number of bits, and outputting the same; and waveform data of the predetermined number of bits in the waveform data extraction means. and a tone waveform synthesizing means for synthesizing the waveform data outputted from the shift means to generate and output one tone waveform.

【作用】[Effect]

上述の構成により、複数種類の楽器音色の各音高に対す
る楽音波形を波高値に応じてそれぞれ複数個のステップ
に分割し、この分割した楽音波形データを異なるビット
数でデジタル変換し、各楽音波形データにアドレスを付
して異なった波形データ記憶エリアに記憶し、それぞれ
の分割された波形データの割当情報と振幅情報とをアド
レス記憶エリアに記憶させる。このため、従来の波形メ
モリを用いてもメモリエリアを有効に使って少ないデー
タ記憶エリアに効率良く楽音波形を記憶することができ
、従来以上の記憶容量を具えることができる。 また、上述の構成により、鍵盤等の操作によって複数種
類の楽器音色の各音高に対する楽音波形を指定すると、
予め楽音波形の波高値に応じて複数個のステップに分割
され異なるビット数のデジタル値に変換された波形デー
タの振幅情報にアドレス情報と割当情報とを付して記憶
されている波形メモリから、選択された楽器音色の特定
音高の波形データを選択し、この選択された波形データ
のアドレス情報、割当情報、振幅情報に基づいて、所定
ビット数の波形データに変換合成して出力する。このた
め、波形メモリの節約を図り効率良く記憶されている電
子楽器の波形データを確実に、かつ効率良く読み出して
合成し、楽音波形を生成することができる。
With the above configuration, musical sound waveforms for each pitch of multiple types of musical instrument tones are divided into a plurality of steps according to the peak value, and the divided musical sound waveform data is digitally converted with a different number of bits, and each musical sound waveform is The data is assigned an address and stored in different waveform data storage areas, and the allocation information and amplitude information of each divided waveform data are stored in the address storage area. Therefore, even if a conventional waveform memory is used, the memory area can be used effectively and musical waveforms can be efficiently stored in a small data storage area, and a storage capacity higher than that of the conventional waveform memory can be provided. Also, with the above configuration, if you specify the musical sound waveform for each pitch of multiple types of musical instrument tones by operating the keyboard, etc.,
From a waveform memory in which amplitude information of waveform data that has been divided into a plurality of steps according to the peak value of a musical sound waveform and converted into digital values of different numbers of bits is stored with address information and allocation information. Waveform data of a specific pitch of the selected musical instrument tone is selected, and based on the address information, assignment information, and amplitude information of the selected waveform data, the waveform data is converted and synthesized into a predetermined number of bits and output. Therefore, it is possible to reliably and efficiently read and synthesize the waveform data of the electronic musical instrument, which is efficiently stored while saving the waveform memory, to generate a musical sound waveform.

【実施例】【Example】

以下、本発明の実施例について説明する。 (本願第1の発明) 第1図には、本願第1の発明に係る電子楽器の楽音波形
記憶方法の一実施例が示されている。 図において、DOO−D○ 15は、第9図と同様、1
6bitの波形メモリの出力信号名である。また、アド
レスは、第9図と同様、波形メモリのアドレスであり、
Oが波形メモリの先頭アドレスを表わし、nENDが波
形メモリの最終アドレスを示している。そして、この第
1図の波形メモリは、各種ヘッダ、リズム伴奏パターン
、ピアノ波形、シンバル波形、ドラム波形、バイオリン
波形の6種類のデータに分類されている。 また、この第1図の波形メモリが、第9図と異なるのは
、各楽器音色の波形が複数個のステップに分割されてい
ることである。すなわち、ピアノでは、16bitのピ
アノ波形1と、12bitのピアノ波形2の2つのステ
ップに分けられている。このピアノ波形1とピアノ波形
2は1時間的に−続きのデータであり、ピアノ波形1、
ピアノ波形2と順に読み出すことによって、1つのピア
ノの音を構成している。また、シンバルでは、16bi
tのシンバル波形1と、12bitのシンバル波形2と
、8bitのシンバル波形3の3つのステップに分けら
れている。このシンバル波形1とシンバル波形2とシン
バル波形3の3つの波形は1時間的に−続きのデータで
あり、シンバル波形1、シンバル波形2、シンバル波形
3と順に読み出すことによって、1つのシンバルの音を
構成している。また、ドラムでは、12bitのドラム
波形1と、8bitのドラム波形2の2つのステップに
分けられている。このドラム波形1とドラム波形2は、
時間的に−続きのデータであり、ドラム波形1、ドラム
波形2と順に読み出すことによって、1つのドラムの音
を構成している。さらに、バイオリンでは、12bit
のバイオリン波形1と、8bitのバイオリン波形2の
2つのステップに分けられている。このバイオリン波形
1とバイオリン波形2は、時間的に−続きのデータであ
り、バイニリン波形1、バイオリン波形2と順に読み出
すことによって、1つのバイオリンの音を構成している
。 したがって、第1図の波形メモリのアドレス0−npl
−1内には、記憶されている内容に対応したは各種ヘッ
ダが記憶されている。この各種ヘッダ記憶エリアには、
それぞれの記憶データがどこから始まるか等のアドレス
データが入っている。この各種ヘッダの詳細内容は、第
2図に示されており、ピアノ、シンバル、ドラム、バイ
オリンの波形制御データとリズム伴奏パターンのヘッダ
ー(各リズムのデータの先頭アドレス等)が入っている
。 また、16bitの波形メモリのアドレス nC1〜n
p2−1内にはピアノ波形1が、アドレス nC1〜n
p2−1内にはシンバル波形1が、それぞれ16bit
で記憶されているつそして、アドレス np2〜n c
 3−1のメモリエリア内は、下位4bitと、上位1
2bitとに分けられている。 アドレス np2〜nc3−1のメモリエリア内の下位
4bitには、リズム伴奏パターン1が記憶されている
。このリズム伴奏パターンには、自動リズム伴奏の演奏
パターンデータが入っている。 また、アドレス np2〜nc3−1のメモリエリア内
の上位12bitには、各アドレスに対応してピアノ波
形2、シンバル波形2、ドラム波形1.バイオリン波形
1が記憶されている。すなわち、アドレス np2〜n
c2−1内にはピアノ波形2が、アドレス nc2〜n
dl−1内にはシンバル波形2が、アドレス ndl〜
nvl−1内にはドラム波形1が、アドレス nvl〜
nc3−1内にはバイオリン波形1が、それぞれ12b
itで記憶されている。 さらに、アドレス nc3〜nENDのメモリエリア内
は、上位8bi tと、下位8bi tとに分けられて
いる。 アドレス nc3〜nENDのメモリエリア内の上位8
bitには、シンバル波形3とバイオリン波形2とが記
憶されている。また、アドレスnc3〜nENDのメモ
リエリア内の下位8bitには、ドラム波形2とリズム
伴奏パターン2とが記憶されている。すなわち、アドレ
ス nc3〜nv2−1内の上位8bitにはシンバル
波形3が、アドレス n v 2〜n E N D内の
上位8bitにはバイオリン波形2が、それぞれ記憶さ
れている。また、アドレス nc3〜nR2−1内の下
位8bitにはシンバル波形3が、アドレスn R2〜
n E N D内の下位8bitにはリズム伴奏パター
ン2が、それぞれ記憶されている。 第3図には、各楽器音色の波形メモリの内容が示されて
いる。 第3図(A)は、各音色の波形制御データの内容を示す
もので、第1波形制御データ〜第3波形制御データが入
っている。 第3図(B)は、第n波形制御データの内容が示されて
いる。図中、STnはスタート・アドレスで第n波形の
先頭アドレスを、ENDnは、エンド・アドレスで第n
波形の最終アドレスをそれぞれ示している。第1図に図
示の本実施例のシンバルを例に挙げると、シンバルのS
r1 (第2波形の先頭アドレス)はnc2で、END
2 (第2波形の最終アドレス)はndl−1である。 そして、第n波形の内でないものは、5Tn=Oとする
。例えば、第1図に図示のドラムを例に採ると第3波形
がないので、5T3=Oとなる。 DFCnは、データ・フォーマット・コードで、楽器音
色の楽音波形の第n波形がどういうフォーマットで入っ
ているかを示すものである。また、SCnは、シフト・
コードで、当該波形データのビット数を拡大、又は縮小
して使うかどうかを示すものであり、SBnは、シフト
・ビット数で、波形データのビット数を拡大、又は縮小
して使う場合の倍率を示すものである。 第3図(C)には、第3図(B)に図示のデータ・フォ
ーマット・コードDFCnの具体的内容が示されている
。すなわち、DFCn=Oは16bitで、DFCn=
1は12bitで、DFCn=2は8bit上づめで、
DFCn=3は8bit下づめをそれぞれ示している。 このことを第1図に図示のシンバルを例に採って説明す
る。すなわち、シンバルでは、第1波形が16bitで
記録されているので、DFC1=0となる。また、第2
波形が12bitで記録されているので、DFC2=1
となる。さらに、第3波形が8bit上づめで記録され
ているので、DFC3=2となる。一方、第1図に図示
のドラムでは、第1波形が12bitで記録されている
ので、DFC1=1となる。また、第2波形が8bit
下づめで記録されているので、DFC2=3となる。 第3図(D)には、第3図(B)に図示のシフト・コー
ドSCnの表わす意味が示されている。 すなわち、5Cn=Oは、その波形データが、そのまま
の大きさで使われることを意味し、5Cn=1は、1/
2””に縮小すルコト、5Cn=2は、2#IIn倍に
拡大して使うことを意味している。 第4図には、第1図に図示の波形データに基づいた波形
制御データの値が表にして示されている。 この第4図に図示の表は、上欄がピアノ波形制御データ
、シンバル波形制御データ、ドラム波形制御データ、バ
イオリン波形制御データを、左欄が第1波形制御データ
〜第3波形制御データの内容を示している。この第4図
に図示の表は、ピアノの第1波形制御データのスタート
・アドレスST1がアドレス nplであるということ
を意味している。第4図の図中1本は、どんな値でも良
いことを表わしている。 このように、メモリデータを波形データとして使うとき
に不用のbitを削り、振幅を調整できるので、波形デ
ータをぎっしりと詰め込むことができる。すなわち、メ
モリエリアを有効に使って少ないデータ記憶エリアに効
率良く楽音波形を記憶することにより、第1図に図示す
る如く、メモリエリアに空きスペース(A)を持たせる
ことができる。 したがって、本実施例によれば、従来のメモリを用いて
も従来以上の容量を記憶することができる。 (本願第2の発明) 第5図には、本願第2の発明に係る電子楽器の波形読み
出し装置の一実施例が示されている。 図において、1は、波形読み出し装置で、鍵盤等の操作
によって複数種類の楽器音色の各音高に対する楽音波形
の指定に基づいて波形メモリを読み出すものである。 2は、CPUで、パスラインを介して、音色選択部3、
鍵盤部4、DSP (デジタル・シグナル・プロセッサ
)5が接続されている。また、DSP5には、パスライ
ンを介して、メモリ6、タイマ7、A/D変換部8が接
続されている。そして、A/D変換部8には、アンプ9
が、このアンプ9には、スピーカ10が接続されている
。 CPU2は、音色選択部3のスイッチ等の操作によって
外部から入力される楽器音色の選択を読み込み、メモリ
中のプログラムに従って、音階と発音のON、OFFを
指定する鍵盤部4の操作によって指定された音高に対す
る楽音波形の指定信号をDSP5に出力するものである
。 DSP5は、CPU2からの指定信号に基づいて、鍵盤
部4の操作によって指定された音高に対する楽音波形の
デジタル楽音データをメモリ6から選択して、所望のデ
ジタル波形に合成して出力するものである。 メモリ6は、第1図に示される波形データが格納されて
いる。 A/D変換部8は、DSP5において合成出力されたデ
ジタル波形をアナログ波形に変換するものである。この
アナログ信号に変換された波形は、アンプ9において増
幅されてスピーカ10より放音される。 なお、タイマ7は、DSP5によってセットされた値か
らデクリメントする回路で、このタイマ7の現在の数値
は、DSP5によって読み込めるようになっている。ま
た、このタイマ7は、値が0になるとセットされた値か
ら再びデクリメントを始めるようになっている。 次に、本実施例の動作について、第6図に示されるフロ
ーチャートを用いて説明する。 第6図に示される処理フローチャートは、DSP5がC
P U 2から発音開始指令を受けるとスタートする。 CPU2は、DSP5にどの音色(楽器)のどの音(音
高)を鳴らせというような指令を送る。例えば、ピアノ
の音色で、A4の音を鳴らせとというような指令をDS
P5に送出する。 以下、CPU2は、DSP5にピアノの音色で、A4の
音を鳴らせとというような指令を出力したものとして説
明する。 処理フローチャートがスタートすると、まず、ステップ
100において、第7図に示されるDSP5の内部レジ
スタのTONEREG (トーンレジスタ)にピアノを
表わす音色番号をセットする。 すると、ステップ110において、DSP5は、ピアノ
の音高A4に対応するタイマ値をタイマ7にセットする
。このタイマ7が作動し、デクリメントさ九ていった結
果、O(零)になるたびに、波形データを出力すると、
A4の音程が出る・次に、ステップ120において、第
7図に図示のnREGの内容を1にイニシャライズする
。このnREGの内容nは、現在、第n波形制御データ
を扱っていることを示している。このステップ120に
おいてnREGの内容を1にイニシャライズすると、ス
テップ130において、DSP5は、TONEREGに
よって指定楽器がピアノであることを認識し、nREG
によって現在の波形制御データが第n波形であることを
認識し、ピアノの第n波形制御データをメモリ6から取
り込み、READADREGにスタート・アドレスST
nを、ENDREGにエンド・アドレスENDnを、D
FCREGにデータ・フォーマット・コードDFCnを
、5CREGにシフト・コードSCnを、5BREGに
シフト・ビット数SBnを、それぞ九のレジスタにセッ
トする。 ステップ130において各種レジスタにセットすると、
ステップ140において、READADREGの内容が
O(零)であるか否かを判定する。 スタート・アドレスSTnがOのときは、発音終了を意
味するので、発音が終了したか否かを判断している。 このステップ140において、READADREGの内
容が0(零)でないと判定すると、ステップ150にお
いて、READADREGで指定されるアドレスのデー
タをメモリ6から読み込み、WDATAREGにセット
する。このREADADREGは、波形のアドレスポイ
ンタになっており、これで指定されるアドレスのメモリ
データをWDATAREGに入れる。このWDATAR
EGには、16bitのレジスタであり、メモリ6のデ
ータがぴったりと入る。 ステップ160において、DFCREGの値が幾つであ
るかを判定し、DFCREGの値がO(零)である場合
は、ステップ200に移る。また、ステップ160にお
いてDFCREGの値が1であると判定すると、すなわ
ち、例えば、第1図に図示のピアノ波形2と判定すると
、ステップ170において、WDATAREGの下位4
bitをOにする。すなわち、ピアノ波形2のときは、
下位4bitにリズム伴奏パターン1が入っているので
、下位4bitをクリアする。 また、ステップ160においてDFCREGの値が2で
あると判定すると、すなわち、例えば。 第1図に図示のシンバル波形3と判定すると、ステップ
180において、WDATAREGの下位8bitをO
にする。すなわち、シンバル波形3のときは、下位8b
itにドラム波形2が入っているので、下位8bitを
クリアする。 また、ステップ160においてDFCREGの値が3で
あると判定すると、すなわち、例えば、第1図に図示の
ドラム波形2と判定すると、ステップ190において、
WDATAREGの9bit目からOを入れる。すなわ
ち、ドラム波形2のときは、上位8bitにシンバル波
形3が入っているので、上位8bitの不要のデータを
削除している。 このように、ステップ170.180.190において
は、メモリ6から読み込んだ波形データに1発音すべき
波形データ以外のものが入っている場合があるので、そ
れを削っている。 このように処理された波形データは、ステップ200に
おいて、5CREGの値がいくつであるかを判定する。 5CREGの値が0(零)の場合は、ステップ230に
移る。また、ステップ200において5CREGの値が
1であると判定すると、ステップ210において、WD
ATAREGの値を、5BREGの値の回数だけ1/2
倍する。 また、ステップ200において5CREGの値が2であ
ると判定すると、ステップ220において、WDATA
REGの値を、5BREGの値の回数だけ2倍する。す
なわち、例えば、ドラム波形2では、5C2=2.5B
2=4なので、WDATAREGの値は、16倍される
。 次に、ステップ230において、タイマ7の値がO(零
)か否かを判定する。このステップ230においてタイ
マ7の値がO(零)になるのを待ち、0(零)になった
直後に、ステップ240において、WDATAREGの
楽音データをD/A変換部8へ送出し、アンプ9、スピ
ーカ10を通して放音される。 そして、この一連の動作が、第n波形の最後に到達した
かをステップ250において判定する。 このステップ250において、第n波形の最後に到達し
ていないと判定すると、ステップ260において、RE
ADADREGの値(アドレスポインタ)をインクリメ
ントし、ステップ150に戻り、再度処理を繰り返す。 また、ステップ250において、第n波形の最後に到達
していると判定すると、ステップ270において、nR
EGが3か否か、すなわち、現在処理している波形が第
3波形であるか否かを判定する。このステップ250に
おいて、現在処理している波形が第3波形であると判定
すると、発音を終了する。また、このステップ250に
おいて、現在処理している波形が第3波形でないと判定
すると、すなわち、現在処理している波形が第1波形又
は第2波形であったならば、第2波形又は第3波形に進
むために、ステップ280において、nREGをインク
リメントし、次の波形に対し、ステップ130以降の処
理を繰り返す。 このように、楽音波形の振幅が小さくなっていく領域は
、その振幅で必要なりit数だけを波形データとして使
っている。ピアノを例に採ると、ピアノは、打鍵直後が
最大振幅を示し、それ以後は、振幅が小さくなっていく
。そこで、ピアノの場合、打鍵直後の大きな振幅のとこ
ろは、16bitを使って(第1図に図示のピアノ波形
1)、その後振幅が小さくなっていく領域は、12bi
tあれば充分であるので、12bitLか使わない(第
1図に図示のピアノ波形2)、この12bitの波形デ
ータの場合、最大振幅に対する量子化ノイズは、1/2
”程度で、殆ど影響なく、ピアノ波形データの全てを1
6bi tで持ったときと同じである。 また、バイオリンでは、第4図のデータからも分かるよ
うに、バイオリン波形1の場合、12bit波形を1/
4して、バイオリン波形2の場合、8bit波形を1.
/2’  して使っている。これにより、ピアノの最大
振幅より、最初から小さい音を出すにもかかわらず、波
形データは無駄になっていない。 また、第1図に図示のドラム波形2では、24倍して使
っているので、メモリの下位8bitに波形を入れるこ
とができている。 第8図に、第1図とは異なるメモリフオーマットが示さ
れている。 本実施例は、各波形の最後のアドレスには、波形END
コードを入れておく。更に、各音色の波形ENDコード
を入れておく。すなわち、例えば、シンバルでは、nc
2−1とnc3−1とnc3−1とnvl−1のアドレ
スに波形ENDコードが入っている。波形ENDコード
が2アドレス続いて入っていたときは、発音終了を意味
し、1つだけの時は、その波形の終りを単に示している
。 この実施例では、各音色の波形が連続に入っているので
、スタート・アドレスのうち、Sr1、Sr3を省略す
ることができる。勿論、ENDnは、すべて省略するこ
とができる。 なお、図中■〜■は、リズム伴奏パターンデータである
Examples of the present invention will be described below. (First invention of the present application) FIG. 1 shows an embodiment of a musical sound waveform storage method for an electronic musical instrument according to the first invention of the present application. In the figure, DOO-D○ 15 is 1 as in Figure 9.
This is the output signal name of the 6-bit waveform memory. Also, the address is the address of the waveform memory, as in FIG.
O represents the starting address of the waveform memory, and nEND represents the final address of the waveform memory. The waveform memory shown in FIG. 1 is classified into six types of data: various headers, rhythm accompaniment patterns, piano waveforms, cymbal waveforms, drum waveforms, and violin waveforms. The waveform memory shown in FIG. 1 differs from that shown in FIG. 9 in that the waveform of each musical instrument tone is divided into a plurality of steps. That is, the piano is divided into two steps: a 16-bit piano waveform 1 and a 12-bit piano waveform 2. The piano waveform 1 and the piano waveform 2 are continuous data in one hour, and the piano waveform 1,
By sequentially reading out the piano waveform 2, one piano sound is constructed. Also, for cymbals, 16bi
It is divided into three steps: cymbal waveform 1 of t, cymbal waveform 2 of 12 bits, and cymbal waveform 3 of 8 bits. These three waveforms, cymbal waveform 1, cymbal waveform 2, and cymbal waveform 3, are continuous data in one time period, and by reading cymbal waveform 1, cymbal waveform 2, and cymbal waveform 3 in order, the sound of one cymbal can be heard. It consists of Furthermore, the drum waveform is divided into two steps: a 12-bit drum waveform 1 and an 8-bit drum waveform 2. These drum waveform 1 and drum waveform 2 are
This is temporally continuous data, and one drum sound is constructed by reading out drum waveform 1 and drum waveform 2 in order. Furthermore, for the violin, 12 bits
It is divided into two steps: violin waveform 1 of 8 bits and violin waveform 2 of 8 bits. The violin waveform 1 and the violin waveform 2 are sequential data in terms of time, and by reading out the vinyl waveform 1 and the violin waveform 2 in order, one violin sound is constructed. Therefore, the address 0-npl of the waveform memory in FIG.
-1, various headers corresponding to the stored contents are stored. This various header storage area contains
Contains address data such as where each stored data starts. The detailed contents of these various headers are shown in FIG. 2, and include waveform control data for piano, cymbal, drum, and violin, and headers for rhythm accompaniment patterns (head addresses of each rhythm data, etc.). In addition, 16-bit waveform memory addresses nC1 to n
Piano waveform 1 is in p2-1, and addresses nC1 to n
In p2-1, cymbal waveform 1 is 16 bits each.
Then, the address np2~nc
In the memory area of 3-1, the lower 4 bits and the upper 1
It is divided into 2 bits. Rhythm accompaniment pattern 1 is stored in the lower 4 bits in the memory area of addresses np2 to nc3-1. This rhythm accompaniment pattern contains performance pattern data for automatic rhythm accompaniment. Furthermore, the upper 12 bits in the memory area of addresses np2 to nc3-1 contain piano waveform 2, cymbal waveform 2, drum waveform 1, . . . corresponding to each address. Violin waveform 1 is stored. That is, addresses np2~n
Piano waveform 2 is in c2-1, address nc2~n
Cymbal waveform 2 is in dl-1 at address ndl~
Drum waveform 1 is in nvl-1, address nvl~
Violin waveform 1 is in nc3-1, each 12b
It is stored in it. Further, the memory area of addresses nc3 to nEND is divided into upper 8 bits and lower 8 bits. Top 8 in memory area from address nc3 to nEND
A cymbal waveform 3 and a violin waveform 2 are stored in the bit. Further, a drum waveform 2 and a rhythm accompaniment pattern 2 are stored in the lower 8 bits in the memory area from addresses nc3 to nEND. That is, cymbal waveform 3 is stored in the upper 8 bits of addresses nc3 to nv2-1, and violin waveform 2 is stored in the upper 8 bits of addresses nv2 to nEND. Furthermore, the lower 8 bits of addresses nc3 to nR2-1 contain cymbal waveform 3, and the lower 8 bits of addresses nR2 to nR2-1 contain cymbal waveform 3.
Rhythm accompaniment pattern 2 is stored in the lower 8 bits of nEND. FIG. 3 shows the contents of the waveform memory for each musical instrument tone. FIG. 3(A) shows the contents of the waveform control data for each tone color, and includes first to third waveform control data. FIG. 3(B) shows the contents of the n-th waveform control data. In the figure, STn is the start address and the first address of the nth waveform, and ENDn is the end address and the nth waveform.
Each shows the final address of the waveform. Taking the cymbal of this embodiment shown in FIG. 1 as an example, the cymbal's S
r1 (first address of second waveform) is nc2, END
2 (the final address of the second waveform) is ndl-1. For those other than the n-th waveform, 5Tn=O. For example, if we take the drum shown in FIG. 1 as an example, there is no third waveform, so 5T3=O. DFCn is a data format code that indicates in what format the nth waveform of the musical sound waveform of the musical instrument tone is contained. In addition, SCn is a shift
The code indicates whether to expand or reduce the number of bits of the waveform data, and SBn is the shift bit number, which is the magnification when the number of bits of the waveform data is expanded or reduced. This shows that. FIG. 3(C) shows the specific contents of the data format code DFCn shown in FIG. 3(B). That is, DFCn=O is 16 bits, and DFCn=
1 is 12 bits, DFCn=2 is 8 bits upwards,
DFCn=3 indicates 8-bit lower filling. This will be explained using the cymbal shown in FIG. 1 as an example. That is, for the cymbal, the first waveform is recorded in 16 bits, so DFC1=0. Also, the second
Since the waveform is recorded in 12 bits, DFC2=1
becomes. Furthermore, since the third waveform is recorded with 8 bits shifted upwards, DFC3=2. On the other hand, in the drum shown in FIG. 1, the first waveform is recorded in 12 bits, so DFC1=1. Also, the second waveform is 8 bits
Since the data is recorded in the bottom position, DFC2=3. FIG. 3(D) shows the meaning of the shift code SCn shown in FIG. 3(B). In other words, 5Cn=O means that the waveform data is used as is, and 5Cn=1 means that the waveform data is used as is.
5Cn=2 means that it is used after being enlarged to 2#IIn times. FIG. 4 shows values of waveform control data based on the waveform data shown in FIG. 1 in a tabular form. In the table shown in FIG. 4, the upper column shows the piano waveform control data, cymbal waveform control data, drum waveform control data, and violin waveform control data, and the left column shows the contents of the first to third waveform control data. It shows. The table shown in FIG. 4 means that the start address ST1 of the first waveform control data of the piano is the address npl. One line in the diagram of FIG. 4 indicates that any value is acceptable. In this way, when using memory data as waveform data, unnecessary bits can be removed and the amplitude can be adjusted, so waveform data can be packed tightly. In other words, by effectively using the memory area to efficiently store musical sound waveforms in a small data storage area, it is possible to provide free space (A) in the memory area, as shown in FIG. Therefore, according to this embodiment, even if a conventional memory is used, it is possible to store a capacity greater than that of the conventional memory. (Second invention of the present application) FIG. 5 shows an embodiment of a waveform reading device for an electronic musical instrument according to the second invention of the present application. In the figure, reference numeral 1 denotes a waveform reading device that reads out a waveform memory based on designation of musical sound waveforms for each pitch of a plurality of types of musical instrument tones by operating a keyboard or the like. 2 is a CPU that connects the tone color selection section 3 via a pass line;
A keyboard section 4 and a DSP (digital signal processor) 5 are connected. Further, a memory 6, a timer 7, and an A/D converter 8 are connected to the DSP 5 via a pass line. The A/D converter 8 includes an amplifier 9.
However, a speaker 10 is connected to this amplifier 9. The CPU 2 reads a selection of musical instrument tones input from the outside by operating a switch or the like in the tone selection section 3, and selects the tone specified by operating the keyboard section 4, which specifies ON/OFF of the scale and sound according to the program in the memory. A signal specifying a musical sound waveform for a pitch is output to the DSP 5. The DSP 5 selects from the memory 6 digital musical sound data of a musical waveform corresponding to the pitch specified by the operation of the keyboard section 4 based on a specified signal from the CPU 2, synthesizes it into a desired digital waveform, and outputs it. be. The memory 6 stores waveform data shown in FIG. The A/D converter 8 converts the digital waveform synthesized and outputted by the DSP 5 into an analog waveform. The waveform converted into an analog signal is amplified by an amplifier 9 and emitted from a speaker 10. The timer 7 is a circuit that decrements the value set by the DSP 5, and the current value of the timer 7 can be read by the DSP 5. Further, when the value reaches 0, the timer 7 starts decrementing again from the set value. Next, the operation of this embodiment will be explained using the flowchart shown in FIG. In the processing flowchart shown in FIG.
It starts when a sound generation start command is received from P U 2. The CPU 2 sends commands to the DSP 5, such as asking the DSP 5 to play which tone (musical instrument) and which tone (pitch). For example, if you send a command to play an A4 note using a piano tone, the DS
Send to P5. In the following description, it will be assumed that the CPU 2 outputs a command to the DSP 5 to play an A4 note with a piano tone. When the processing flowchart starts, first, in step 100, a tone color number representing a piano is set in TONEREG (tone register) of the internal register of the DSP 5 shown in FIG. Then, in step 110, the DSP 5 sets a timer value corresponding to the piano pitch A4 in the timer 7. This timer 7 operates and outputs waveform data every time it decrements to O (zero).
The pitch of A4 is played.Next, in step 120, the contents of nREG shown in FIG. 7 are initialized to 1. The content n of this nREG indicates that the n-th waveform control data is currently being handled. When the contents of nREG are initialized to 1 in this step 120, in step 130, the DSP 5 recognizes that the designated instrument is a piano by TONEREG, and registers nREG.
recognizes that the current waveform control data is the nth waveform, reads the piano's nth waveform control data from the memory 6, and writes the start address ST to READADREG.
n to ENDREG, end address ENDn to D
The data format code DFCn is set in FCREG, the shift code SCn is set in 5CREG, and the shift bit number SBn is set in 5BREG, respectively, in register 9. When various registers are set in step 130,
In step 140, it is determined whether the contents of READADREG are O (zero). When the start address STn is O, it means that the sound generation has ended, so it is determined whether or not the sound generation has ended. If it is determined in step 140 that the contents of READADREG are not 0 (zero), then in step 150 the data at the address specified by READADREG is read from the memory 6 and set in WDATAREG. This READADREG is a waveform address pointer, and the memory data at the address specified by this is put into WDATAREG. This WDATAR
EG is a 16-bit register, and the data of the memory 6 is exactly stored therein. In step 160, it is determined what the value of DFCREG is, and if the value of DFCREG is O (zero), the process moves to step 200. Further, if it is determined in step 160 that the value of DFCREG is 1, that is, if it is determined that the value is, for example, piano waveform 2 shown in FIG.
Set the bit to O. In other words, for piano waveform 2,
Since rhythm accompaniment pattern 1 is included in the lower 4 bits, the lower 4 bits are cleared. Further, if it is determined in step 160 that the value of DFCREG is 2, that is, for example. If it is determined that the cymbal waveform is 3 as shown in FIG. 1, the lower 8 bits of WDATAREG are
Make it. In other words, for cymbal waveform 3, the lower 8b
Since drum waveform 2 is included in it, clear the lower 8 bits. Further, if it is determined in step 160 that the value of DFCREG is 3, that is, if it is determined that the drum waveform is 2 as shown in FIG. 1, in step 190,
Insert O from the 9th bit of WDATAREG. That is, in the case of drum waveform 2, since cymbal waveform 3 is included in the upper 8 bits, unnecessary data in the upper 8 bits is deleted. In this manner, in steps 170, 180, and 190, the waveform data read from the memory 6 may contain data other than the waveform data that should be generated once, so that data is deleted. The waveform data processed in this way is used to determine the value of 5CREG in step 200. If the value of 5CREG is 0 (zero), the process moves to step 230. Further, if it is determined in step 200 that the value of 5CREG is 1, in step 210, WD
The value of ATAREG is halved by the number of times of the value of 5BREG.
Multiply. Further, if it is determined in step 200 that the value of 5CREG is 2, in step 220, WDATA
The value of REG is doubled by the number of times of the value of 5BREG. That is, for example, for drum waveform 2, 5C2=2.5B
Since 2=4, the value of WDATAREG is multiplied by 16. Next, in step 230, it is determined whether the value of timer 7 is O (zero). In this step 230, wait until the value of the timer 7 becomes O (zero), and immediately after it becomes 0 (zero), in step 240, the musical tone data of WDATAREG is sent to the D/A converter 8 and the amplifier 9 , the sound is emitted through the speaker 10. Then, in step 250, it is determined whether this series of operations has reached the end of the nth waveform. In this step 250, if it is determined that the end of the nth waveform has not been reached, in step 260, the RE
The value of ADADREG (address pointer) is incremented, the process returns to step 150, and the process is repeated again. Further, if it is determined in step 250 that the end of the n-th waveform has been reached, in step 270, nR
It is determined whether EG is 3, that is, whether the waveform currently being processed is the third waveform. At step 250, if it is determined that the waveform currently being processed is the third waveform, the sound generation ends. Further, in this step 250, if it is determined that the currently processed waveform is not the third waveform, that is, if the currently processed waveform is the first waveform or the second waveform, the second waveform or the third waveform To proceed to the waveform, nREG is incremented in step 280 and the processing from step 130 onward is repeated for the next waveform. In this way, in the region where the amplitude of the musical sound waveform becomes small, only the number of IT necessary for that amplitude is used as waveform data. Taking a piano as an example, the piano exhibits maximum amplitude immediately after a key is pressed, and thereafter the amplitude decreases. Therefore, in the case of a piano, 16 bits are used for the large amplitude area immediately after the key is pressed (piano waveform 1 shown in Figure 1), and 12 bits are used for the area where the amplitude decreases thereafter.
Since t is sufficient, only 12 bitL is used (piano waveform 2 shown in Figure 1).In the case of this 12 bit waveform data, the quantization noise with respect to the maximum amplitude is 1/2
” All piano waveform data can be changed to 1 with almost no effect.
It's the same as when you had it with 6 bits. In addition, for the violin, as can be seen from the data in Figure 4, in the case of violin waveform 1, the 12-bit waveform is
4, and in the case of violin waveform 2, convert the 8-bit waveform to 1.
/2' is used. As a result, even though the sound is initially smaller than the maximum amplitude of the piano, no waveform data is wasted. Furthermore, since the drum waveform 2 shown in FIG. 1 is multiplied by 24, the waveform can be stored in the lower 8 bits of the memory. FIG. 8 shows a memory format different from that in FIG. 1. In this embodiment, the last address of each waveform is the waveform END.
Enter the code. Furthermore, enter the waveform END code for each tone. That is, for example, for cymbals, nc
The waveform END code is contained in the addresses 2-1, nc3-1, nc3-1, and nvl-1. When the waveform END code is entered in two consecutive addresses, it means the end of sound generation, and when there is only one waveform END code, it simply indicates the end of the waveform. In this embodiment, since the waveforms of each tone are included continuously, Sr1 and Sr3 can be omitted from the start address. Of course, ENDn can be omitted entirely. Note that ■ to ■ in the figure are rhythm accompaniment pattern data.

【発明の効果】【Effect of the invention】

以上説明したように、本発明は、複数種類の楽器音色の
各音高に対する楽音波形を波高値に応じてそれぞれ複数
個のステップに分割し、この分割した楽音波形データを
異なるビット数でデジタル変換し、各楽音波形データに
アドレスを付して異なった波形データ記憶エリアに記憶
し、それぞれの分割された波形データの割当情報と振幅
情報とをアドレス記憶エリアに記憶するようにしである
。 このため、本発明によれば、メモリデータを波形データ
として使うとき、波形データの振幅の小さい領域におけ
る波形データの不用bitを削り、振幅を調整して記憶
することができるので、波形データをぎっしりと詰め込
むことができ、振幅の異なる音色の波形や振幅の変化の
激しい波形に対して品質を落さずに波形データの節約が
できる。 すなわち、メモリエリアを有効に使って少ないデータ記
憶エリアに効率良く楽音波形を記憶することにより、メ
モリエリアに空きスペースを持たせることができ、従来
のメモリと同様のメモリ容量のメモリを用いても従来以
上の容量を記憶することができる。 また、本発明は、鍵盤等の操作によって複数種類の楽器
音色の各音高に対する楽音波形を指定すると、予め楽音
波形の波高値に応じて複数個のステップに分割され異な
るビット数のデジタル値に変換された波形データの振幅
情報にアドレス情報と割当情報とを付して記憶されてい
る波形メモリから、選択された楽器音色の特定音高の波
形データを選択し、この選択された波形データのアドレ
ス情報、割当情報、振幅情報に基づいて、所定ビット数
の波形データに変換合成して出力すようになフている。 このため、本発明によれば、波形メモリの節約を図り効
率良く記憶されている電子楽器の波形データを確実に、
かつ効率良く読み出して合成し、楽音波形を生成するこ
とができる。
As explained above, the present invention divides musical waveforms for each pitch of a plurality of types of musical instrument tones into a plurality of steps depending on the peak value, and converts the divided musical waveform data into digital data using different numbers of bits. Each musical waveform data is assigned an address and stored in a different waveform data storage area, and the allocation information and amplitude information of each divided waveform data are stored in the address storage area. Therefore, according to the present invention, when using memory data as waveform data, unnecessary bits of the waveform data in the area where the amplitude of the waveform data is small can be deleted and the amplitude can be adjusted and stored, so that the waveform data can be stored tightly. It is possible to save waveform data without reducing quality for waveforms of tones with different amplitudes or waveforms with rapid changes in amplitude. In other words, by effectively using the memory area and efficiently storing musical sound waveforms in a small data storage area, it is possible to free up space in the memory area, and even when using memory with the same memory capacity as conventional memory. It is possible to store more capacity than before. Further, in the present invention, when a musical sound waveform for each pitch of a plurality of types of musical instrument tones is specified by operating a keyboard or the like, the musical sound waveform is divided into a plurality of steps according to the peak value of the musical instrument tone in advance and converted into a digital value with a different number of bits. Waveform data of a specific pitch of the selected instrument tone is selected from the waveform memory that stores the amplitude information of the converted waveform data with address information and assignment information, and the waveform data of the selected waveform data is Based on the address information, allocation information, and amplitude information, the waveform data is converted and synthesized into a predetermined number of bits and output. Therefore, according to the present invention, waveform data of an electronic musical instrument that is efficiently stored by saving waveform memory can be reliably stored.
Furthermore, it is possible to efficiently read out and synthesize the data to generate a musical sound waveform.

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

第1図は本願第1の発明に係る電子楽器の楽音波形記憶
方式の波形メモリエリアを示す図。 第2図は第1図に図示の各種ヘッダの内容を示す図。 第3図(A)、(B)、(C)、(D)は第1図に図示
の各音色の波形制御データの内容を示す図、 第4図は第1図に図示の波形制御データの値を示す図、 第5図は本願第2の発明に係る電子楽器の波形読み出し
装置の実施例を示すブロック図、第6図(A)、(B)
、(C)は第5図に図示の電子楽器の波形読み出し装置
の全体の制御フローチャート、 第7図は第5図に図示のDSPの内部レジスタを示す図
、 第8図は第1図と異なるメモリフォーマットを示す図、 第9図は従来の波形メモリエリアを示す図である。 波形読み出し装置 PU 鍵盤部 DSP メモリ A/D変換器 アンプ スピーカ
FIG. 1 is a diagram showing a waveform memory area of a musical sound waveform storage method for an electronic musical instrument according to the first invention of the present application. FIG. 2 is a diagram showing the contents of various headers shown in FIG. 1. Figures 3 (A), (B), (C), and (D) are diagrams showing the contents of the waveform control data for each tone shown in Figure 1, and Figure 4 is the waveform control data shown in Figure 1. FIG. 5 is a block diagram showing an embodiment of the waveform reading device for an electronic musical instrument according to the second invention of the present application, and FIGS. 6(A) and (B)
, (C) is an overall control flowchart of the waveform reading device of the electronic musical instrument shown in FIG. 5, FIG. 7 is a diagram showing the internal registers of the DSP shown in FIG. 5, and FIG. 8 is different from FIG. 1. A diagram showing a memory format. FIG. 9 is a diagram showing a conventional waveform memory area. Waveform readout device PU Keyboard DSP Memory A/D converter Amplifier Speaker

Claims (2)

【特許請求の範囲】[Claims] (1)複数種類の楽器音色の各音高に対する楽音波形を
波高値に応じてそれぞれ複数個のステップに分割して複
数の波形データとなし、各ステップ毎に異なるビット数
でデジタル変換し、前記各ステップ毎の各楽器音色の楽
音波形の波形データ毎にそれぞれアドレスを付して異な
った波形データ記憶エリアに記憶すると共に、各楽器音
色毎の各音高についてそれぞれ分割された波形データの
割当形式を示す割当情報と各楽器音色毎の各音高につい
てそれぞれ分割された波形の振幅を示す振幅情報とをア
ドレス記憶エリアに記憶するようにしたことを特徴とす
る電子楽器の楽音波形記憶方法。
(1) The musical sound waveforms for each pitch of multiple types of musical instrument tones are divided into multiple steps according to the peak value to create multiple waveform data, and each step is digitally converted with a different number of bits, and the The waveform data of the musical sound waveform of each musical instrument tone for each step is assigned an address and stored in a different waveform data storage area, and the waveform data is divided and allocated for each pitch of each musical instrument tone. 1. A musical sound waveform storage method for an electronic musical instrument, characterized in that allocation information indicating the pitch of each tone of each musical instrument and amplitude information indicating the amplitude of the divided waveform for each pitch of each musical instrument tone are stored in an address storage area.
(2)複数種類の楽器音色の各音高に対する楽音波形を
波高値に応じて複数個のステップに分割し、各ステップ
毎に異なるビット数のデジタル値に変換された波形デー
タと、前記ステップ毎に異なる各楽器音色の楽音波形の
波形データ毎に異なった記憶領域を示すアドレス情報と
、前記波形データの各記憶領域への割当形式を示す割当
情報と、前記各記憶領域に記憶されている各楽音波形の
振幅を示す振幅情報のそれぞれを記憶した波形メモリと
、 鍵盤等の操作によって選択された特定の種類の楽器音色
の特定音高の波形に対応する波形データを前記波形メモ
リから選択する波形選択手段と、前記波形選択手段から
の選択信号により選択された波形データのアドレス情報
を読み出して該アドレス情報に基づく波形データを出力
する波形データ出力手段と、 前記波形データ出力手段によって出力される波形データ
から前記割当情報に対応して必要な波形データのみを取
り出す波形データ抽出手段と、前記波形データ抽出手段
によって取り出された波形データを振幅情報に対応して
上位又は下位にシフトして所定ビット数に変換して出力
するシフト手段と、 前記波形データ抽出手段における所定ビット数の波形デ
ータと前記シフト手段から出力される波形データとを合
成して1つの楽音波形を生成して出力する楽音波形合成
手段と、 からなる電子楽器の波形読出し装置。
(2) The musical waveform for each pitch of multiple types of musical instrument tones is divided into multiple steps according to the peak value, and the waveform data converted to a digital value with a different number of bits for each step, and the waveform data for each step address information indicating a different storage area for each waveform data of musical sound waveforms of different instrument tones; allocation information indicating an allocation format of the waveform data to each storage area; A waveform memory that stores each piece of amplitude information indicating the amplitude of a musical sound waveform, and a waveform that selects from the waveform memory waveform data corresponding to a waveform of a specific pitch of a specific type of musical instrument tone selected by operating a keyboard or the like. a selection means; a waveform data output means for reading address information of waveform data selected by a selection signal from the waveform selection means and outputting waveform data based on the address information; and a waveform output by the waveform data output means. a waveform data extraction means for extracting only necessary waveform data from the data corresponding to the allocation information; and a waveform data extraction means for shifting the waveform data extracted by the waveform data extraction means to upper or lower positions corresponding to the amplitude information to a predetermined number of bits. Shifting means for converting and outputting the waveform data, and musical sound waveform synthesis for generating and outputting one musical sound waveform by synthesizing the waveform data of a predetermined number of bits in the waveform data extraction means and the waveform data output from the shifting means. A waveform reading device for an electronic musical instrument, comprising: means;
JP2102159A 1990-04-18 1990-04-18 Musical sound waveform storing method and waveform reader for electronic musical instrument Pending JPH041698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2102159A JPH041698A (en) 1990-04-18 1990-04-18 Musical sound waveform storing method and waveform reader for electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2102159A JPH041698A (en) 1990-04-18 1990-04-18 Musical sound waveform storing method and waveform reader for electronic musical instrument

Publications (1)

Publication Number Publication Date
JPH041698A true JPH041698A (en) 1992-01-07

Family

ID=14319949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2102159A Pending JPH041698A (en) 1990-04-18 1990-04-18 Musical sound waveform storing method and waveform reader for electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH041698A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06186978A (en) * 1992-12-15 1994-07-08 Kawai Musical Instr Mfg Co Ltd Musical sound generating device
JPH06186977A (en) * 1992-12-15 1994-07-08 Kawai Musical Instr Mfg Co Ltd Musical sound generating device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06186978A (en) * 1992-12-15 1994-07-08 Kawai Musical Instr Mfg Co Ltd Musical sound generating device
JPH06186977A (en) * 1992-12-15 1994-07-08 Kawai Musical Instr Mfg Co Ltd Musical sound generating device

Similar Documents

Publication Publication Date Title
US4754680A (en) Overdubbing apparatus for electronic musical instrument
US6525256B2 (en) Method of compressing a midi file
JPH041698A (en) Musical sound waveform storing method and waveform reader for electronic musical instrument
JPS6326398B2 (en)
JP2798077B2 (en) Sound source device for electronic musical instruments
JPH0219473B2 (en)
JP4191073B2 (en) Waveform data output device
JP4692056B2 (en) Sound waveform generation device and data structure of waveform generation data of sound waveform
JP2508138B2 (en) Musical tone signal generator
JP2712200B2 (en) Electronic musical instrument
JP3112743B2 (en) Sound source device
JPH07121182A (en) Interruption information generating device and sound information processor
KR950007152Y1 (en) Variable otave address generating apparatus of electronic musical instrument
JP3651675B2 (en) Electronic musical instruments
US5817964A (en) Electronic musical instrument and method for storing a plurality of waveform sampling data at a single address
JP3758267B2 (en) Sound source circuit setting method, karaoke apparatus provided with sound source circuit set by the method, and recording medium
JP3684078B2 (en) Musical sound waveform data storage device, musical sound waveform data storage method, musical sound waveform data reproduction device, and musical sound waveform data reproduction method
JP2956552B2 (en) Musical sound generating method and apparatus
JP2794561B2 (en) Waveform data generator
JPS58196594A (en) Musical tone synthesizer
JPH0631988B2 (en) Musical sound generator
JPH10124051A (en) Music data processing method, reproducing method for music data after processing, and storage medium
JPH052999B2 (en)
JPS6353596A (en) Sound source working for electronic musical instrument
JPH0142000B2 (en)