JPH04260099A - Musical sound generating device - Google Patents

Musical sound generating device

Info

Publication number
JPH04260099A
JPH04260099A JP3042423A JP4242391A JPH04260099A JP H04260099 A JPH04260099 A JP H04260099A JP 3042423 A JP3042423 A JP 3042423A JP 4242391 A JP4242391 A JP 4242391A JP H04260099 A JPH04260099 A JP H04260099A
Authority
JP
Japan
Prior art keywords
musical
waveform data
waveform
section
circuit
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
JP3042423A
Other languages
Japanese (ja)
Other versions
JP2640991B2 (en
Inventor
Gen Izumisawa
玄 和泉沢
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 JP3042423A priority Critical patent/JP2640991B2/en
Publication of JPH04260099A publication Critical patent/JPH04260099A/en
Priority to US08/004,386 priority patent/US5288940A/en
Application granted granted Critical
Publication of JP2640991B2 publication Critical patent/JP2640991B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To offer the musical sound generating device which can easily be constituted at low cost by reading loop waveform data for generating a sustain sound and a one-shot waveform through a common circuit. CONSTITUTION:This device consists of a waveform memory 8 stored with musical sound waveform data consisting of a single read section where musical sound waveform data extracted to optional length from the rising part of a musical sound is stored and a repetitive read section where musical sound waveform data which generates a zero-level output is stored, a read means which consists of an adder 20 and an address calculating circuit 21 and reads the musical sound waveform data out of the memory 8 in the order of the single read section and repetitive read section, an interpolating circuit 24 which generates a musical sound according to the read musical sound waveform data, a waveform generating circuit 25, an envelope generating circuit 26, and a multiplier 27.

Description

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

【0001】0001

【産業上の利用分野】本発明は、例えばシンセサイザ、
電子ピアノ、電子オルガン、シングルキーボード等の電
子楽器に用いられる楽音発生装置に関し、特に波形メモ
リから楽音波形データを読み出すことにより楽音信号を
発生する波形読み出し方式を採用する音源で、ワンショ
ット波形の読み出しを簡単な方法で行なうようにした楽
音発生装置に関する。
[Industrial Application Field] The present invention is applicable to, for example, a synthesizer,
Regarding musical tone generators used in electronic musical instruments such as electronic pianos, electronic organs, and single keyboards, one-shot waveform readout is particularly important for sound sources that adopt a waveform readout method that generates musical tone signals by reading musical waveform data from a waveform memory. The present invention relates to a musical tone generating device which performs the following in a simple manner.

【0002】0002

【従来の技術】従来、電子楽器等に用いられる楽音発生
装置(音源)には、種々の音色に応じた複数の楽音波形
データを記憶する波形メモリを備えている。そして、こ
の波形メモリから、例えばパネルスイッチ等で指定され
た音色に応じた楽音波形データを選択し、これを鍵盤で
指定された音高に応じた速度で読み出すことにより楽音
信号を発生し、この楽音信号を音響回路に供給すること
により放音するようになっている。
2. Description of the Related Art Conventionally, musical tone generators (sound sources) used in electronic musical instruments and the like are equipped with a waveform memory that stores a plurality of musical waveform data corresponding to various tones. Then, from this waveform memory, a musical sound signal is generated by selecting musical waveform data corresponding to the tone specified by, for example, a panel switch, etc., and reading this at a speed corresponding to the pitch specified by the keyboard. Sound is emitted by supplying a musical tone signal to an acoustic circuit.

【0003】このような楽音発生装置においては、波形
メモリの容量にも制限があることから、各音色に対応す
る楽音波形データは所定長に限って記憶されるようにな
っている。即ち、波形メモリに格納する楽音波形データ
は、例えば図7に示すように、楽音波形データの先頭か
ら一回だけ読み出す波形データAと、繰り返し読み出す
ループ波形データBとから構成されている。ループ波形
データBは、読み出しを開始すべき波形メモリ上のアド
レス(ループトップアドレスLT)と、読み出しを終了
すべき波形メモリ上のアドレス(ループエンドアドレス
LE)とにより指定される。
[0003] In such a musical tone generator, since the capacity of the waveform memory is limited, musical waveform data corresponding to each tone color is stored only to a predetermined length. That is, as shown in FIG. 7, for example, the musical waveform data stored in the waveform memory is composed of waveform data A that is read out only once from the beginning of the musical waveform data, and loop waveform data B that is repeatedly read out. The loop waveform data B is specified by an address on the waveform memory at which reading should start (loop top address LT) and an address on the waveform memory at which reading should end (loop end address LE).

【0004】かかる楽音波形データを波形メモリから読
み出して発音する際の読出方法として、「ノーマル読み
出し」と「オルタネート読み出し」の2通りがある。
[0004] There are two reading methods for reading out such musical waveform data from the waveform memory and producing sound: ``normal reading'' and ``alternate reading.''

【0005】ノーマル読み出しは、図7(a)に示すよ
うに、先ず、楽音波形データの先頭から波形データAと
ループ波形データBとを連続して1回読み出し(図中、
■で示す)、最後まで読み出した後は、ループ波形デー
タBのみを同一方向に繰り返し読み出す(図中、■、■
、…で示す)。これにより持続する楽音信号が生成され
るようになっている。
In normal reading, as shown in FIG. 7(a), first, waveform data A and loop waveform data B are successively read once from the beginning of musical waveform data (in the figure,
After reading to the end, only the loop waveform data B is read out repeatedly in the same direction (indicated by ■, ■ in the figure).
,...). As a result, a sustained musical tone signal is generated.

【0006】一方、オルタネート読み出しは、図7(b
)に示すように、先ず、楽音波形データの先頭から波形
データAとループ波形データBとを連続して1回読み出
し(図中、■で示す)、最後まで読み出した後は、ルー
プ波形データBのみを異なった方向に交互に繰り返し読
み出す(図中、■、■、…で示す)。これにより上記と
同様の持続する楽音信号が生成されるようになっている
On the other hand, alternate reading is performed as shown in FIG. 7(b).
), first, waveform data A and loop waveform data B are read out once in succession from the beginning of the musical waveform data (indicated by ■ in the figure), and after reading to the end, loop waveform data B is read out. (indicated by ■, ■, ... in the figure). As a result, a sustained musical tone signal similar to that described above is generated.

【0007】このような処理により、楽音の立ち上がり
部分(波形データA部分)に含まれる複雑で微妙な音を
忠実に再現できるとともに、持続する部分(ループ波形
データB部分)の音を少ない楽音波形データで発音でき
、データの圧縮が図れるものとなっている。
[0007] Through such processing, it is possible to faithfully reproduce the complex and subtle sounds included in the rising part of a musical sound (part A of the waveform data), and to create a musical waveform with fewer sounds in the continuing part (part B of the loop waveform data). The data can be used to generate sounds, and the data can be compressed.

【0008】ところで、このような楽音発生装置におい
ては、上述したような持続音の発音のみでなく、波形メ
モリに記憶された楽音波形データを一回だけ読み出して
発音する場合も少なくない(このような楽音波形データ
の読み出し方法を、以下、「ワンショット波形読み出し
」という)。
By the way, in such a musical tone generator, in addition to producing sustained tones as described above, there are many cases in which the musical sound waveform data stored in the waveform memory is read out only once and produced (such as this). This method of reading musical waveform data is hereinafter referred to as "one-shot waveform reading").

【0009】このワンショット波形読み出しは、図8に
示すように、楽音波形データの先頭から、読出終了アド
レスREまでを一回読み出す処理である。この場合、上
述した持続音の読み出しと区別するために、読出終了ア
ドレスREが新たに定義され、波形メモリからの楽音波
形データの読み出しが、該読出終了アドレスREに至っ
たときに読み出し動作を停止する特別の読み出し停止回
路を設ける必要があった。
As shown in FIG. 8, this one-shot waveform readout is a process of reading out the musical waveform data once from the beginning to the readout end address RE. In this case, a read end address RE is newly defined in order to distinguish it from the above-mentioned reading of a sustained tone, and the read operation is stopped when the reading of musical waveform data from the waveform memory reaches the read end address RE. It was necessary to provide a special readout stop circuit.

【0010】図9は、上記ワンショット波形読み出し回
路の動作をフローチャートで示したものである。回路図
は図示しないが、読出終了アドレスREを保持するRE
レジスタ、テンポラリレジスタを内蔵するアドレス計算
回路、加算器、及びこれらを制御する制御回路から構成
されている。
FIG. 9 is a flowchart showing the operation of the one-shot waveform readout circuit. Although the circuit diagram is not shown, an RE that holds the read end address RE
It consists of a register, an address calculation circuit containing a temporary register, an adder, and a control circuit that controls these.

【0011】先ず、アドレス計算回路から出力される現
在の読出アドレスΣaに外部のCPUから出力される周
波数ナンバーωを加算器で加算して次の読出アドレスΣ
aを算出し、アドレス計算回路の内部に設けられるレジ
スタに記憶する(ステップS31)。
First, an adder adds the frequency number ω output from an external CPU to the current read address Σa output from the address calculation circuit to obtain the next read address Σ.
a is calculated and stored in a register provided inside the address calculation circuit (step S31).

【0012】次いで、REレジスタにセットされている
読出終了アドレスRE値からステップS31で求めた次
の読出アドレスΣaを減算して差Δを求める(ステップ
S32)。そして、この差Δがゼロより大きいか否かを
調べ(ステップS33)、差Δがゼロより大きければ、
つまり次のサンプリング位置が読出終了アドレスREを
越えていなければ、読出終了アドレスREから差Δを減
算して次読出アドレスΣaを復元する(ステップS34
)。そして、ステップS31に戻って再度同様の処理を
繰り返し実行する。
Next, the next read address Σa obtained in step S31 is subtracted from the read end address RE value set in the RE register to obtain a difference Δ (step S32). Then, it is checked whether this difference Δ is larger than zero (step S33), and if the difference Δ is larger than zero,
That is, if the next sampling position does not exceed the read end address RE, the next read address Σa is restored by subtracting the difference Δ from the read end address RE (step S34).
). Then, the process returns to step S31 and the same process is repeated again.

【0013】上記繰り返し実行の過程において、ステッ
プS33で差Δがゼロ以下であることが判断されると、
つまり次サンプリング位置が読出終了アドレスREを越
えると、一連の楽音波形データの読み出しが完了したも
のとして読み出しを停止する(ステップS35)。
In the process of the above-described repeated execution, if it is determined in step S33 that the difference Δ is less than zero,
That is, when the next sampling position exceeds the readout end address RE, it is assumed that the readout of the series of tone waveform data has been completed and the readout is stopped (step S35).

【0014】このように、従来の楽音発生装置では、持
続音を発生するためのループ波形データを読み出す回路
と、ワンショット波形読み出しを実現するための読み出
し停止回路との2種類を持つ必要があり、楽音発生装置
が複雑且つ高価になるという欠点があった。
[0014] As described above, the conventional musical tone generator needs to have two types of circuits: a circuit for reading loop waveform data to generate a sustained tone, and a readout stop circuit for realizing one-shot waveform reading. However, the disadvantage is that the musical tone generator is complicated and expensive.

【0015】[0015]

【発明が解決しようとする課題】この発明は、上記事情
に鑑みてなされたもので、持続音を発生するためのルー
プ波形データの読み出しと、ワンショット波形読み出し
とを共通回路で行なうことにより、装置を簡単且つ安価
に構成することのできる楽音発生装置を提供することを
目的とする。
[Problems to be Solved by the Invention] The present invention has been made in view of the above circumstances, and by reading out loop waveform data for generating a sustained sound and reading out one-shot waveform data using a common circuit, It is an object of the present invention to provide a musical tone generating device that can be configured simply and inexpensively.

【0016】[0016]

【課題を解決するための手段】この発明の楽音発生装置
は、楽音の立ち上がり部分から任意の長さを抽出した楽
音波形データが記憶される第1の区間と、この第1の区
間に引き続く任意の長さであって、出力が零となる楽音
波形データが記憶された第2の区間と、でなる楽音波形
データを記憶する波形メモリと、この波形メモリに記憶
された楽音波形データを第1の区間、第2の区間の順序
で読み出し、引き続いて第2の区間を繰り返し読み出す
読出手段と、この読出手段で読み出された楽音波形デー
タに基づき楽音を発生する楽音発生手段とを具備したこ
とを特徴とする。
[Means for Solving the Problems] The musical tone generating device of the present invention has a first section in which musical waveform data extracted from a rising portion of a musical tone of an arbitrary length is stored, and an arbitrary length following the first section. a second section in which musical sound waveform data having a length of , and the output is zero, is stored; and a second section, and a reading means for repeatedly reading out the second section, and a musical sound generating means for generating a musical sound based on the musical sound waveform data read by the reading means. It is characterized by

【0017】[0017]

【作用】本発明は、波形メモリに楽音波形データを記憶
する際、楽音の立ち上がり部分から任意の長さを抽出し
て第1の区間となし、この第1の区間に引き続く任意の
長さであって、読み出して楽音を発生しようとした場合
に出力が零となるような楽音波形データを記憶して第2
の区間となし、これらを第1及び第2の区間の順で波形
メモリに記憶しておく。
[Operation] When storing musical waveform data in the waveform memory, the present invention extracts an arbitrary length from the rising part of the musical tone and sets it as the first section, and extracts an arbitrary length from the rising part of the musical tone and sets it as the first section. Therefore, if you try to read out and generate a musical tone, the musical sound waveform data will be such that the output will be zero.
These sections are stored in the waveform memory in the order of the first and second sections.

【0018】波形メモリから楽音波形データを読み出す
際は、先ず、第1、第2の区間を続けて読み出し、次い
で、第2の区間の最後まで読み出したら、以降は第2の
区間を繰り返し読み出す。
When reading tone waveform data from the waveform memory, first, the first and second sections are read out successively, and then, after reading out to the end of the second section, the second section is repeatedly read out.

【0019】かかる動作は、通常の持続音を発生する場
合のループ波形データの読み出しの場合と同じであるが
、第2の区間を繰り返し読み出しても記憶内容が零であ
るため発音されない。つまり、ワンショット波形読み出
しによる放音と同等の機能が発揮される。
This operation is the same as when reading loop waveform data when generating a normal sustained tone, but even if the second section is repeatedly read out, no sound is generated because the stored content is zero. In other words, the same function as sound emission by one-shot waveform reading is achieved.

【0020】したがって、ワンショット波形読み出しを
実現するための読み出し停止回路が不要になるとともに
、ループ波形データを読み出す回路とワンショット波形
読み出し回路とを共通の回路で構成することができ、ハ
ードウエアを節減できるものとなっている。
[0020] Therefore, there is no need for a readout stop circuit to realize one-shot waveform readout, and the loop waveform data readout circuit and one-shot waveform readout circuit can be configured with a common circuit, which saves hardware. This allows for savings.

【0021】[0021]

【実施例】図2は、本発明に係る楽音発生装置を適用し
た電子楽器の全体的な構成を示す概略ブロック図である
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 is a schematic block diagram showing the overall structure of an electronic musical instrument to which a musical tone generator according to the present invention is applied.

【0022】図において、1は鍵盤スイッチ群であり、
鍵盤と各々の鍵の押下の状態を検知するためのキースキ
ャン回路とを含むものである。
In the figure, 1 is a group of keyboard switches;
It includes a keyboard and a key scan circuit for detecting the pressed state of each key.

【0023】2はパネルスイッチ群であり、電源スイッ
チ、モード指定スイッチ、メロディ選択スイッチ、リズ
ム選択スイッチ等の各種スイッチを備えている。各スイ
ッチのセット状態は、上記鍵盤スイッチ群1と同様に、
内部に含まれるパネルスキャン回路によって検知される
ようになっている。
Reference numeral 2 denotes a panel switch group, which includes various switches such as a power switch, a mode designation switch, a melody selection switch, and a rhythm selection switch. The set state of each switch is the same as the keyboard switch group 1 above.
It is detected by an internal panel scan circuit.

【0024】3はスイッチインタフェースであり、上記
鍵盤スイッチ群1及びパネルスイッチ群2の状態を調べ
、オン(ON)状態になっているパネルスイッチデータ
、新たにオン状態になった鍵の鍵盤コードとタッチ、及
び新たにオフ状態になった鍵の鍵盤コード等を出力する
ものである。なお、上記タッチ情報は、図示しない周知
のタッチ検出回路で生成されるようになっている。
Reference numeral 3 denotes a switch interface, which checks the states of the keyboard switch group 1 and panel switch group 2, and records the panel switch data that is in the ON state, the keyboard code of the key that is newly turned on, and the like. It outputs the touch and the keyboard code of the key that is newly turned off. Note that the touch information is generated by a known touch detection circuit (not shown).

【0025】4は中央処理装置(CPU)であり、読出
し専用記憶装置(ROM)5のプログラムメモリ部に記
憶されているプログラムに従って当該電子楽器の各部を
制御するものである。
A central processing unit (CPU) 4 controls each part of the electronic musical instrument according to a program stored in a program memory section of a read-only storage device (ROM) 5.

【0026】上記ROM5は、上述したCPU4を動作
させるプログラムの他、音色データ、その他の種々の固
定データを含んでいる。
The ROM 5 contains, in addition to the program for operating the CPU 4 described above, timbre data and other various fixed data.

【0027】7は本発明の特徴に直接関係する音源回路
であり、波形メモリ8が接続されるようになっている。 この音源回路7及び波形メモリ8の詳細については後述
する。
Reference numeral 7 denotes a sound source circuit directly related to the features of the present invention, to which a waveform memory 8 is connected. Details of the sound source circuit 7 and waveform memory 8 will be described later.

【0028】上記スイッチインタフェース3、CPU4
、ROM5及び音源回路7は、システムバス11を介し
て相互に接続されるようになっている。
[0028] The above switch interface 3, CPU 4
, ROM 5 and sound source circuit 7 are connected to each other via a system bus 11.

【0029】また、上記音源回路7から出力されるデジ
タル楽音信号は、D/A変換器9に送出されるようにな
っている。D/A変換器9は、入力されたデジタル楽音
信号をアナログ楽音信号に変換するものである。このD
/A変換器9で変換されたアナログ楽音信号は、音響回
路10に供給されるようになっている。
Further, the digital musical tone signal outputted from the tone generator circuit 7 is sent to a D/A converter 9. The D/A converter 9 converts the input digital musical tone signal into an analog musical tone signal. This D
The analog tone signal converted by the /A converter 9 is supplied to an audio circuit 10.

【0030】音響回路10は、入力された電気信号とし
てのアナログ楽音信号を音響信号に変換するものである
。つまり、音響回路10は、例えばスピーカやヘッドホ
ン等に代表される音響発生手段であり放音を行うもので
ある。
The acoustic circuit 10 converts an input analog musical tone signal as an electric signal into an acoustic signal. That is, the acoustic circuit 10 is a sound generating means represented by, for example, a speaker or headphones, and emits sound.

【0031】図3は、上記波形メモリ8と音源回路7と
をさらに詳細に示すブロック図である。
FIG. 3 is a block diagram showing the waveform memory 8 and tone generator circuit 7 in more detail.

【0032】波形メモリ8には、所定の工程を経て作成
された楽音波形データが記憶されるようになっている。 図1は、この波形メモリ8に格納する楽音波形データの
作成過程を示すものである。
The waveform memory 8 stores musical waveform data created through a predetermined process. FIG. 1 shows the process of creating musical waveform data to be stored in the waveform memory 8.

【0033】先ず、同図(a)は原波形データ(元デー
タ)となるPCMの波形であり、これがA/D変換され
てデジタルデータとして与えられる。この場合、例えば
ピアノのような減衰音の楽音信号の場合は、同図(b)
に示すように、エンベロープを正規化し、一定振幅の楽
音波形データに変換する。次いで、同図(c)に示すよ
うに、楽音波形データの終端部の所定長の繰り返し読み
出し区間Bを零にする。
First, (a) in the same figure shows a PCM waveform serving as original waveform data (original data), which is A/D converted and provided as digital data. In this case, for example, in the case of a musical sound signal of a decaying sound such as a piano, as shown in FIG.
As shown in , the envelope is normalized and converted to musical waveform data with constant amplitude. Next, as shown in FIG. 4(c), a repeated readout section B of a predetermined length at the end of the tone waveform data is set to zero.

【0034】このようにして生成された楽音波形データ
が波形メモリ8に記憶されることになる。そして、上記
楽音波形データを波形メモリから読出して発音する際は
、図6の矢印■で示すように、楽音波形データの先頭か
ら読み出しを開始し、所定長の一回読み出し区間Aとこ
れに続く繰り返し読み出し区間Bとを続けて1回読み出
す。
The musical waveform data thus generated is stored in the waveform memory 8. When reading out the musical sound waveform data from the waveform memory and producing a sound, reading starts from the beginning of the musical sound waveform data, as shown by the arrow ■ in FIG. Repeated reading section B is read out once in succession.

【0035】次いで、矢印■、■、…に示すように、ル
ープトップアドレスLTとループエンドアドレスLEと
で囲まれる繰り返し読み出し区間Bを繰り返し読み出す
。しかし、該繰り返し読み出し区間Bの部分の繰り返し
読み出しによっては発音がなされない。したがって、楽
音波形データの読み出し動作は、あたかもループ波形読
み出しの如く動作するが、ワンショット波形読み出しの
機能が実現される。
Next, as shown by the arrows ■, ■, . . . , a repetitive reading section B surrounded by the loop top address LT and the loop end address LE is repeatedly read. However, no sound is produced by repeatedly reading out the portion of the repeated reading section B. Therefore, although the tone waveform data readout operation operates as if it were a loop waveform readout, a one-shot waveform readout function is realized.

【0036】また、同図(d)に示すように、楽音波形
データの一回読み出し区間Aの終端部の所定長Cを減衰
特性を持つようにすることもできる。この場合、詳細は
後述するが、ワンショット波形読み出しによる発音から
消音への移行時にノイズを発生させないでスムーズな移
行を行なうことができるものとなる。
Further, as shown in FIG. 2D, the predetermined length C at the end of the one-time reading section A of the tone waveform data can be made to have attenuation characteristics. In this case, although the details will be described later, a smooth transition can be made without generating noise when transitioning from sound generation to mute by one-shot waveform reading.

【0037】次に、音源回路7の構成を図3を参照しな
がら説明する。なお、上記波形メモリ8には、上述した
楽音波形データの他、エンベロープデータも格納されて
いるものとする。
Next, the configuration of the sound source circuit 7 will be explained with reference to FIG. It is assumed that the waveform memory 8 stores not only the above-mentioned musical waveform data but also envelope data.

【0038】加算器20は、アドレス計算回路21で計
算された読出アドレスΣaとCPU4から与えられる周
波数ナンバーω(何れも小数部を含む)とを加算するも
のである。この加算器20で加算された結果はアドレス
計算回路21に供給される。
The adder 20 adds the read address Σa calculated by the address calculation circuit 21 and the frequency number ω (both include decimal parts) given from the CPU 4. The result of addition by this adder 20 is supplied to an address calculation circuit 21.

【0039】アドレス計算回路21は、波形メモリ8に
与える読み出しアドレスを計算するものであり、楽音波
形データの先頭から一回だけ読み出すためのアドレスを
生成するとともに、LTレジスタ22及びLEレジスタ
23にセットされている各アドレス値に応じて、繰り返
し読み出すためのアドレスを生成するものである。
The address calculation circuit 21 calculates a read address to be given to the waveform memory 8, and generates an address for reading out only once from the beginning of the musical waveform data, and also sets it in the LT register 22 and LE register 23. An address for repeated reading is generated according to each address value.

【0040】このアドレス計算回路21では、読出アド
レスΣaの整数部である読出アドレス整数部K1 及び
この読出アドレス整数部K1 に「1」を加えた補間用
整数アドレスK2 が計算され、波形メモリ8に供給さ
れる。 また、読出アドレスΣaは、上記加算器20の他、補間
回路24にも供給されるようになっている。
This address calculation circuit 21 calculates a read address integer part K1, which is the integer part of the read address Σa, and an interpolation integer address K2, which is the read address integer part K1 plus "1", and stores them in the waveform memory 8. Supplied. Further, the read address Σa is supplied not only to the adder 20 but also to the interpolation circuit 24.

【0041】補間回路24は、読出アドレス整数部K1
 、補間用整数アドレスK2 により波形メモリ8から
読み出された2つの楽音波形データから現読出アドレス
Σaの小数部に応じて補間をとり、この結果を波形発生
回路25に供給するものである。
The interpolation circuit 24 uses the read address integer part K1.
, interpolation is performed on the two tone waveform data read out from the waveform memory 8 using the interpolation integer address K2 according to the decimal part of the current read address Σa, and the result is supplied to the waveform generation circuit 25.

【0042】即ち、補間回路24は、算出された読出ア
ドレスΣaが小数部を含む場合は、その読出アドレスΣ
aの前後の2つの整数である読出アドレス整数部K1 
、補間用整数アドレスK2 の記憶内容の差(傾き)に
応じて当該読出アドレスΣaの記憶内容となるべき値を
算出し、これを楽音波形データ値として波形発生回路2
5に供給するものである。
That is, if the calculated read address Σa includes a decimal part, the interpolation circuit 24
Read address integer part K1 which is two integers before and after a
, calculates the value that should be the memory content of the read address Σa according to the difference (slope) in the memory content of the interpolation integer address K2, and uses this value as the musical waveform data value in the waveform generation circuit 2.
5.

【0043】波形発生回路25は、補間回路24からの
データに基づき波形信号を発生し、乗算器27に供給す
るようになっている。
The waveform generation circuit 25 generates a waveform signal based on the data from the interpolation circuit 24 and supplies it to the multiplier 27 .

【0044】一方、エンベロープ発生回路26は、波形
メモリ8から読み出されたエンベロープデータに基づい
てエンベロープ信号を発生し、乗算器27に供給するよ
うになっている。
On the other hand, the envelope generating circuit 26 generates an envelope signal based on the envelope data read from the waveform memory 8 and supplies it to the multiplier 27 .

【0045】乗算器27は、波形発生回路25からの楽
音波形信号とエンベロープ発生回路26からのエンベロ
ープ信号を乗算することによりエンベロープ信号が付加
された楽音信号を発生するものである。この楽音信号は
D/A変換器9でアナログ信号に変換され、音響回路1
0で放音されるようになっている(図2参照)。
The multiplier 27 multiplies the musical waveform signal from the waveform generating circuit 25 and the envelope signal from the envelope generating circuit 26 to generate a musical tone signal to which an envelope signal is added. This musical tone signal is converted into an analog signal by a D/A converter 9, and is converted into an analog signal by a D/A converter 9.
The sound is emitted at 0 (see Figure 2).

【0046】次に、上記のような構成において、本発明
の実施例の動作を図4及び図5のフローチャートを参照
しながら説明する。なお、本フローチャートは、オルタ
ネート読み出しの場合を示しており、その動作は図6(
b)のようになる。ノーマル読み出しは、図4に示すフ
ローチャート(ステップS11を除く)で実現され、そ
の動作は図6(a)のようになるが、上記オルタネート
読み出しの動作に包含されるので説明は省略する。
Next, the operation of the embodiment of the present invention in the above configuration will be explained with reference to the flowcharts of FIGS. 4 and 5. Note that this flowchart shows the case of alternate reading, and the operation is shown in Figure 6 (
b) Normal reading is realized by the flowchart shown in FIG. 4 (excluding step S11), and its operation is as shown in FIG. 6(a), but since it is included in the above-mentioned alternate reading operation, the explanation will be omitted.

【0047】波形メモリ8には、図1(c)又は(d)
で示した楽音波形データが記憶されているものとする。 また、初期状態において、UDフラグは「1」にセット
されているものとする。
The waveform memory 8 contains the data shown in FIG. 1(c) or (d).
It is assumed that musical waveform data shown in is stored. Further, it is assumed that the UD flag is set to "1" in the initial state.

【0048】先ず、UDフラグが「1」であるか否かが
調べられる(ステップS11)。ここで、UDフラグは
読み出し方向を指示するフラグであり、「1」でアップ
方向、つまりループトップLTからループエンドLE方
向に読み出すことを指示し、「0」でダウン方向、つま
りループエンドLEからループトップLT方向に読み出
すことを指示するものである。
First, it is checked whether the UD flag is "1" (step S11). Here, the UD flag is a flag that instructs the reading direction; when it is "1", it instructs to read in the up direction, that is, from the loop top LT to the loop end LE direction, and when it is "0", it instructs to read out in the down direction, that is, from the loop end LE. This is an instruction to read in the loop top LT direction.

【0049】上記ステップS11でUDフラグが「1」
であることが判断されると、ステップS12乃至ステッ
プS20のアップ方向の読み出し及び補間処理が行なわ
れる。
[0049] In step S11 above, the UD flag is set to "1".
If it is determined that this is the case, the upward readout and interpolation processing in steps S12 to S20 is performed.

【0050】即ち、加算器20において、アドレス計算
回路21から出力される現在の読出アドレスΣaにCP
U4から出力される周波数ナンバーωを加算して次の読
出アドレスΣaを算出し、アドレス計算回路21の内部
レジスタ(図示しない)に記憶する(ステップS12)
That is, the adder 20 adds CP to the current read address Σa output from the address calculation circuit 21.
The next read address Σa is calculated by adding the frequency number ω output from U4, and is stored in an internal register (not shown) of the address calculation circuit 21 (step S12).
.

【0051】次いで、LEレジスタ23にセットされて
いるループエンドLE値から上記ステップS12で求め
た次読出アドレスΣaを減算して差Δを求める(ステッ
プS13)。そして、この差Δがゼロより大きいか否か
を調べ(ステップS14)、差Δがゼロより大きければ
、つまりサンプリング位置がループエンドLEを越えて
いなければLEから差Δを減算して次読出アドレスΣa
を復元する(ステップS15)。
Next, the next read address Σa obtained in step S12 is subtracted from the loop end LE value set in the LE register 23 to obtain a difference Δ (step S13). Then, it is checked whether this difference Δ is larger than zero (step S14), and if the difference Δ is larger than zero, that is, if the sampling position does not exceed the loop end LE, the difference Δ is subtracted from LE and the next read address is Σa
is restored (step S15).

【0052】一方、差Δがゼロより小さければ、つまり
サンプリング位置がループエンドLEを越えていれば、
次はダウン方向の読みだし及び補間処理を行うためにU
Dフラグを「0」にする(ステップS16)。次いで、
ループエンドLEに差Δを加算して次読出アドレスΣa
とする(ステップS17)。この場合の差Δは負の値で
あるので、ループエンドLEからループトップLT方向
にΔだけ離れた位置が次読出アドレスΣaとなる。
On the other hand, if the difference Δ is smaller than zero, that is, if the sampling position exceeds the loop end LE,
Next, to perform reading in the down direction and interpolation processing, use U
The D flag is set to "0" (step S16). Then,
Add the difference Δ to the loop end LE and get the next read address Σa
(Step S17). Since the difference Δ in this case is a negative value, a position separated by Δ from the loop end LE in the direction of the loop top LT becomes the next read address Σa.

【0053】この次読出アドレスΣaは、複数周期の点
対称波形、つまりループエンドLEを中心として180
°回転した場合に形成される逆位相の複数周期波形を繋
げた波形で考えると、現読出アドレスΣaに周波数ナン
バーωを加算して得られるアドレス値と同一の値になる
This next read address Σa is a point-symmetric waveform with multiple periods, that is, 180 degrees around the loop end LE.
If we consider a waveform that is a combination of a plurality of periodic waveforms with opposite phases formed when rotated by .degree., the value will be the same as the address value obtained by adding the frequency number ω to the current read address Σa.

【0054】次に、上記ステップS15又はS17で算
出した次読出アドレスΣa中の整数部を取り出して読出
アドレス整数部K1 とし(ステップS18)、この読
出アドレス整数部K1 に「1」を加えて補間用整数ア
ドレスK2 とする(ステップS19)。次に、上記現
読出アドレスΣa、読出アドレス整数部K1 及び補間
用整数アドレスK2 を用いて、補間回路24で補間処
理を実行する(ステップS20)。
Next, the integer part of the next read address Σa calculated in step S15 or S17 is extracted and set as the read address integer part K1 (step S18), and "1" is added to this read address integer part K1 for interpolation. Integer address K2 (step S19). Next, the interpolation circuit 24 executes interpolation processing using the current read address Σa, the read address integer part K1, and the interpolation integer address K2 (step S20).

【0055】この際、現読出アドレスΣaが、「LE−
1≦Σa≦LE」の範囲にあれば、読出アドレス整数部
K1 として「LE−1」を用い、補間用整数アドレス
K2 として「LE」を用いて補間処理を行うことにな
る。
At this time, the current read address Σa is "LE-
If it is within the range of 1≦Σa≦LE, interpolation processing is performed using “LE-1” as the read address integer part K1 and “LE” as the interpolation integer address K2.

【0056】一方、上記ステップS11においてUDフ
ラグが「0」であることが判断されると、ステップS2
1乃至ステップS29のダウン方向の読み出し及び補間
処理が行なわれる。
On the other hand, if it is determined in step S11 that the UD flag is "0", step S2
The readout and interpolation processing in the down direction from step S1 to step S29 is performed.

【0057】先ず、加算器20において、アドレス計算
回路21から出力される現在の読出アドレスΣaからC
PU4が出力する周波数ナンバーωを減算して次の読出
アドレスΣaを算出し、アドレス計算回路21の内部レ
ジスタ(図示しない)に記憶する(ステップS21)。 上記読出アドレスΣa、周波数ナンバーωは小数部を含
んでいることは上述した通りである。
First, in the adder 20, the current read address Σa outputted from the address calculation circuit 21 to C
The next read address Σa is calculated by subtracting the frequency number ω output by the PU 4, and is stored in an internal register (not shown) of the address calculation circuit 21 (step S21). As described above, the read address Σa and the frequency number ω include a decimal part.

【0058】次いで、LTレジスタ22にセットされて
いるループトップLT値から、上記ステップS21で求
めた次読出アドレスΣaを減算して差Δを求める(ステ
ップS22)。そして、この差Δがゼロより小さいか否
かを調べ(ステップS23)、差Δがゼロより小さけれ
ば、つまりサンプリング位置がループトップLTを越え
ていなければLTから差Δを減算して次読出アドレスΣ
aを復元する(ステップS24)。
Next, the next read address Σa obtained in step S21 is subtracted from the loop top LT value set in the LT register 22 to obtain a difference Δ (step S22). Then, it is checked whether this difference Δ is smaller than zero (step S23), and if the difference Δ is smaller than zero, that is, if the sampling position does not exceed the loop top LT, the difference Δ is subtracted from LT and the next read address is Σ
a is restored (step S24).

【0059】一方、差Δがゼロ以上であれば、つまりサ
ンプリング位置がループトップLTを越えていれば、次
はアップ方向の読み出し及び補間を行うためにUDフラ
グを「1」にする(ステップS25)。次いで、ループ
トップLTに差Δを加算して次読出アドレスΣaとする
(ステップS26)。これにより、差Δは正の値である
ので、ループトップLTからループエンドLE方向にΔ
だけ離れた位置が読出アドレスとなる。
On the other hand, if the difference Δ is greater than or equal to zero, that is, if the sampling position exceeds the loop top LT, then the UD flag is set to "1" in order to perform upward reading and interpolation (step S25). ). Next, the difference Δ is added to the loop top LT to obtain the next read address Σa (step S26). As a result, since the difference Δ is a positive value, Δ
The read address is a position that is away from the address.

【0060】次に、上記ステップS24又はS26で算
出した現読出アドレスΣa中の整数部を取り出して読出
アドレス整数部K1 とし(ステップS27)、この読
出アドレス整数部K1 に「1」を加えて補間用整数ア
ドレスK2 とする(ステップS28)。次に、上記現
読出アドレスΣa、読出アドレス整数部K1 及び補間
用整数アドレスK2 を用いて、補間回路24で補間処
理を実行する(ステップS29)。
Next, the integer part of the current read address Σa calculated in step S24 or S26 is extracted and set as the read address integer part K1 (step S27), and "1" is added to this read address integer part K1 for interpolation. Integer address K2 (step S28). Next, the interpolation circuit 24 executes interpolation processing using the current read address Σa, the read address integer part K1, and the interpolation integer address K2 (step S29).

【0061】この際、現読出アドレスΣaが「LT≦Σ
a≦LT+1」の範囲にあれば、読出アドレス整数部K
1 として「LT+1」を、補間用整数アドレスK2 
として「LT」を用いて補間処理を行うことになる。
At this time, the current read address Σa is "LT≦Σ
a≦LT+1”, the read address integer part K
1, "LT+1" is used as the interpolation integer address K2.
Interpolation processing will be performed using "LT" as follows.

【0062】また、ダウン方向の補間処理においては、
楽音波形データの位相は反転されることになる。これに
よりループエンドLEを点対称とした複数周期波形を連
続して発音する場合と同じになる。
In addition, in the interpolation process in the down direction,
The phase of the musical waveform data will be inverted. This is the same as when a plurality of periodic waveforms with point symmetry about the loop end LE are continuously generated.

【0063】以上のように、この実施例によれば、波形
メモリ8に楽音波形データを記憶する際、楽音の立ち上
がり部分から任意の長さを抽出して1回だけ読み出す1
回読み出し区間、この1回読み出し区間に引き続く任意
の長さであって、読み出して楽音を発生しようとした場
合に出力が零となるような楽音波形データを記憶した繰
り返し読み出し区間とを波形メモリ8に記憶しておき、
波形メモリ8から楽音波形データを読み出す際は、先ず
、一回読み出し区間、繰り返し読み出し区間を続けて読
み出し、次いで、繰り返し読み出し区間の最後まで読み
出したら、以降は繰り返し読み出し区間を繰り返し読み
出す。
As described above, according to this embodiment, when musical waveform data is stored in the waveform memory 8, an arbitrary length is extracted from the rising part of a musical tone and read out only once.
The waveform memory 8 stores musical sound waveform data that has an arbitrary length following the one-time readout period and which produces a zero output when read out to generate a musical tone. Remember it in
When reading out musical waveform data from the waveform memory 8, first, a one-time readout section and a repeated readout section are successively read out, and then, when the end of the repeatable readout section is read out, the repeated readout section is thereafter read out repeatedly.

【0064】かかる動作は、通常の持続音を発生する場
合のループ波形データの読み出しの場合と同じであるが
、繰り返し読み出し区間を繰り返し読み出しても記憶内
容が零であるため発音されない。つまり、ワンショット
波形読み出しによる放音と同等の機能が発揮される。
This operation is the same as when reading loop waveform data when generating a normal sustained tone, but even if the repeated reading section is repeatedly read out, no sound is generated because the stored content is zero. In other words, the same function as sound emission by one-shot waveform reading is achieved.

【0065】したがって、ワンショット波形読み出しを
実現するための読み出し停止回路が不要になるとともに
、ループ波形データを読み出す回路とワンショット波形
読み出し回路とを共通の回路で構成することができ、ハ
ードウエアを節減できるものとなっている。
Therefore, a readout stop circuit for realizing one-shot waveform readout is not required, and the circuit for reading out loop waveform data and the one-shot waveform readout circuit can be configured with a common circuit, which reduces hardware. This allows for savings.

【0066】なお、上記実施例では、図1(a)に示し
た元データを直接切り出して楽音の立ち上がり部分のデ
ータとするように構成したが、取り込んだ元データを一
旦再サンプリングして新しい元データを生成してから上
述した楽音波形データを生成するようにした方が良い。 これは、取り込んだデータはピッチが揺らいでいる場合
があり、そのまま楽音波形データ生成に使用するとチュ
ーニングがずれた楽音を発生する可能性があるからであ
る。したがって、再サンプリングによりチューニングピ
ッチを調整してから元データとした方が、より良い楽音
が得られるものとなる。
Note that in the above embodiment, the original data shown in FIG. 1(a) is directly cut out and used as the data for the rising part of a musical tone, but the imported original data is once resampled and a new source data is created. It is better to generate the above-mentioned tone waveform data after generating the data. This is because the pitch of the captured data may fluctuate, and if used as is to generate musical waveform data, there is a possibility that an out-of-tune musical tone will be generated. Therefore, better musical tones can be obtained by adjusting the tuning pitch by resampling and then using the original data.

【0067】[0067]

【発明の効果】以上詳述したように、この発明によれば
持続音を発生するためのループ波形データの読み出しと
、ワンショット波形読み出しとを共通回路で行なうこと
により、装置を簡単且つ安価に構成することのできる楽
音発生装置を提供することができる。
[Effects of the Invention] As detailed above, according to the present invention, the reading of the loop waveform data for generating a sustained sound and the reading of the one-shot waveform are performed in a common circuit, thereby making the device simple and inexpensive. It is possible to provide a musical tone generating device that can be configured.

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

【図1】本発明の一実施例の楽音波形データを生成する
手順を説明するための図である。
FIG. 1 is a diagram for explaining a procedure for generating musical tone waveform data according to an embodiment of the present invention.

【図2】本発明を適用する電子楽器の全体構成を概略的
に示すブロック図である。
FIG. 2 is a block diagram schematically showing the overall configuration of an electronic musical instrument to which the present invention is applied.

【図3】本発明の一実施例の波形メモリ及び音源回路を
詳細に示すブロック図である。
FIG. 3 is a block diagram showing details of a waveform memory and tone generator circuit according to an embodiment of the present invention.

【図4】本発明の一実施例の動作を示すフローチャート
図である。
FIG. 4 is a flowchart showing the operation of an embodiment of the present invention.

【図5】本発明の一実施例の動作を示すフローチャート
図である。
FIG. 5 is a flowchart showing the operation of an embodiment of the present invention.

【図6】本発明の一実施例の動作を説明するための図で
ある。
FIG. 6 is a diagram for explaining the operation of an embodiment of the present invention.

【図7】従来のループ波形読み出し時のノーマル読み出
しとオルタネート読み出しとを説明するための図である
FIG. 7 is a diagram for explaining normal readout and alternate readout during conventional loop waveform readout.

【図8】従来のワンショット波形読み出しを説明するた
めの図である。
FIG. 8 is a diagram for explaining conventional one-shot waveform readout.

【図9】従来のワンショット波形読み出しを示すフロー
チャート図である。
FIG. 9 is a flowchart showing conventional one-shot waveform readout.

【符号の説明】 8…波形メモリ、 20…加算器(読出手段)、 21…アドレス計算回路(読出手段)、24…補間回路
(楽音発生手段)、 25…波形発生回路(楽音発生手段)、26…エンベロ
ープ発生回路(楽音発生手段)、27…乗算器(楽音発
生手段)。
[Description of symbols] 8...Waveform memory, 20...Adder (reading means), 21...Address calculation circuit (reading means), 24...Interpolation circuit (musical tone generation means), 25...Waveform generation circuit (musical tone generation means), 26... Envelope generation circuit (musical tone generation means), 27... Multiplier (musical tone generation means).

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  楽音の立ち上がり部分から任意の長さ
を抽出した楽音波形データが記憶される第1の区間と、
この第1の区間に引き続く任意の長さであって、出力が
零となる楽音波形データが記憶された第2の区間と、で
なる楽音波形データを記憶する波形メモリと、この波形
メモリに記憶された楽音波形データを第1の区間、第2
の区間の順序で読み出し、引き続いて第2の区間を繰り
返し読み出す読出手段と、この読出手段で読み出された
楽音波形データに基づき楽音を発生する楽音発生手段と
を具備したことを特徴とする楽音発生装置。
1. A first section in which musical waveform data extracted from an arbitrary length from a rising portion of a musical tone is stored;
a second section that is an arbitrary length following the first section and stores musical waveform data whose output is zero; a waveform memory that stores musical waveform data consisting of; The musical sound waveform data is divided into the first section and the second section.
A musical sound characterized by comprising: reading means for reading out the intervals in the order of and then repeatedly reading out the second interval; and musical sound generation means for generating the musical sound based on the musical waveform data read by the reading means. Generator.
【請求項2】  前記波形メモリの第1の区間に記憶さ
れた楽音波形データの前記第2の区間に隣接する任意区
間は、楽音波形データが減衰するように形成されること
を特徴とする請求項1記載の楽音発生装置。
2. An arbitrary section adjacent to the second section of the musical waveform data stored in the first section of the waveform memory is formed such that the musical waveform data is attenuated. Item 1. The musical tone generator according to item 1.
【請求項3】  前記読出手段は、前記第2の区間を昇
順又は降順で交互に読み出すことを特徴とする請求項1
記載の楽音発生装置。
3. The reading means reads out the second section alternately in ascending order or descending order.
The musical tone generator described above.
JP3042423A 1991-02-15 1991-02-15 Tone generator Expired - Fee Related JP2640991B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP3042423A JP2640991B2 (en) 1991-02-15 1991-02-15 Tone generator
US08/004,386 US5288940A (en) 1991-02-15 1993-01-14 Tone generating circuitry for reading out one-shot and sustaining waveforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3042423A JP2640991B2 (en) 1991-02-15 1991-02-15 Tone generator

Publications (2)

Publication Number Publication Date
JPH04260099A true JPH04260099A (en) 1992-09-16
JP2640991B2 JP2640991B2 (en) 1997-08-13

Family

ID=12635654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3042423A Expired - Fee Related JP2640991B2 (en) 1991-02-15 1991-02-15 Tone generator

Country Status (1)

Country Link
JP (1) JP2640991B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008107547A (en) * 2006-10-25 2008-05-08 Yamaha Corp Musical sound synthesizer and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008107547A (en) * 2006-10-25 2008-05-08 Yamaha Corp Musical sound synthesizer and program

Also Published As

Publication number Publication date
JP2640991B2 (en) 1997-08-13

Similar Documents

Publication Publication Date Title
JP2567717B2 (en) Musical sound generator
US5340938A (en) Tone generation apparatus with selective assignment of one of tone generation processing modes to tone generation channels
US5288940A (en) Tone generating circuitry for reading out one-shot and sustaining waveforms
JPS616689A (en) Electronic musical instrument
JP2628401B2 (en) Tone generator
JP2999806B2 (en) Music generator
JPH04260099A (en) Musical sound generating device
US5559298A (en) Waveform read-out system for an electronic musical instrument
JP2900082B2 (en) Music generator
JPH0667671A (en) Musical sound generating device
JP2707818B2 (en) Electronic musical instrument
JP2595999B2 (en) Envelope generator
JP2678970B2 (en) Tone generator
JP2625669B2 (en) Musical sound wave generator
JP3223282B2 (en) Sound signal generator
JP2797140B2 (en) Musical sound wave generator
JPH0727384B2 (en) Music signal generator
JP2915753B2 (en) Electronic musical instrument
JP3095323B2 (en) Electronic musical instrument
JPS6325697A (en) Electronic musical instrument
JPH02179688A (en) Musical sound signal generating device
JPH0643863A (en) Effector
JPH0644191B2 (en) Music signal generator
JPH08146961A (en) Waveform memory type musical sound generating device
JPH052999B2 (en)

Legal Events

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

Free format text: PAYMENT UNTIL: 20080502

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090502

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees