JP4503275B2 - Waveform playback device - Google Patents
Waveform playback device Download PDFInfo
- Publication number
- JP4503275B2 JP4503275B2 JP2003408393A JP2003408393A JP4503275B2 JP 4503275 B2 JP4503275 B2 JP 4503275B2 JP 2003408393 A JP2003408393 A JP 2003408393A JP 2003408393 A JP2003408393 A JP 2003408393A JP 4503275 B2 JP4503275 B2 JP 4503275B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- waveform
- sound source
- interpolation
- waveform data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
本発明は、波形メモリを複数で共有する機能を持った音源チップを備えている波形再生装置に関する。 The present invention relates to a waveform reproducing device including a sound source chip having a function of sharing a plurality of waveform memories.
同時発音数を増やすための手段として、音源LSIを複数使用するシステムがある。またこれらの構成では、波形メモリをその複数の音源LSIが共有し、波形メモリのコストを抑える方法がとられることがある。 As a means for increasing the number of simultaneous sounds, there is a system that uses a plurality of sound source LSIs. In these configurations, a method may be used in which the waveform memory is shared by the plurality of tone generator LSIs to reduce the cost of the waveform memory.
このような複数の音源LSIを備えている上記システムにおいて、同時発音数を増やさずに、上記音源を単体で使用する場合もある。この時、主たる音源(マスタ音源)以外の音源(スレーブ音源)用に割り当てられたアクセスタイミングが空いてしまうことになる。 In the system including such a plurality of sound source LSIs, the sound source may be used alone without increasing the number of simultaneous sounds. At this time, the access timing assigned to a sound source (slave sound source) other than the main sound source (master sound source) is vacated.
この場合、使用していないアクセスタイミングをそのままにする(後述する図9中段左側)か、或いはマスタ音源のアクセスタイミングを延長して(後述する図9中段右側)、遅いメモリの使用を可能にするなどの方法がとられることもある。 In this case, the access timing that is not used is left as it is (left side in the middle of FIG. 9 to be described later), or the access timing of the master sound source is extended (right side in the middle of FIG. 9 to be described later). Such a method may be taken.
しかし、マスタ音源のアクセスタイミングだけでアクセス時間が十分満たされている場合には、アドレスタイミングの延長は意味がない。またスレーブ音源のアクセスタイミングを活用したとしても、再生される楽音への制御のし易さや音質などの向上はない。 However, if the access time is sufficiently satisfied only by the access timing of the master sound source, it is meaningless to extend the address timing. Even if the access timing of the slave sound source is used, there is no improvement in the controllability or sound quality of the reproduced music.
本発明は、以上のような問題に鑑み創案されたもので、使用していないスレーブ音源のアクセスタイミングを有効に利用できる波形再生装置を提供せんとするものである。 The present invention has been devised in view of the above problems, and an object of the present invention is to provide a waveform reproducing apparatus that can effectively use the access timing of unused slave sound sources.
そのため本発明の構成は、
音源単体使用モードと複数使用モードの切り替え手段を持ち、複数使用モードの時複数の音源の波形メモリアクセスを一手に引き受けるマスタ音源が、自身の1チャンネル演算タイムスロット中にそれら複数の音源の波形メモリアクセスを時分割で行う音源を備えた波形再生装置であって、
音源単体使用モードと複数使用モードの切り替えを行うモード切替手段と、
指定したピッチを累算する累算器と、
累算器の上位データ(整数部)を連続したアドレスに加工する上位アドレス加工手段と、
他の音源からの波形メモリへのアドレスを受信し記憶する他音源アドレス記憶手段と、
上記モード切替手段によるモード切り替えとアクセスタイミングに応じて、上記累算器の上位データが示すアドレスと他音源アドレス記憶手段に記憶されたアドレスとを切り替えて出力すると共に、音源単体使用モードの時は、上記累算器の上位データが示すアドレス及びそのアドレスに連続する上位アドレス加工手段で加工されたアドレスを出力するアドレス切替出力手段と、
出力されたアドレスに基づいて、波形メモリから読み出された波形データを記憶する波形データレジスタと、
前のアクセスタイミングで読み出され該波形データレジスタに記憶されている波形データを、補間ポイント数−1だけ記憶するサンプルバッファと、
補間係数データを記憶する補間係数記憶手段と、
上記累算器の下位データ(小数部)に基づいて補間係数記憶手段から対応する補間係数を抽出する補間係数抽出手段と、
上記波形データレジスタ及びサンプルバッファに夫々記憶された波形データに対し、補間係数抽出手段により抽出された補間係数に基づいて該データの補間を行うサンプル補間手段と、
サンプル補間手段に入力するサンプルバッファ及び波形データレジスタに記憶された波形データを、上記モード切替手段のモード切替信号及び累算器の上位データが示すアドレス値に応じて、少なくとも1つはサンプルバッファの中の1つと波形データレジスタの中の1つとを切替えて選択する選択手段と
を有することを基本的特徴としている。
Therefore, the configuration of the present invention is as follows.
A master sound source that has a means for switching between a single sound source use mode and a multi-use mode and takes over the waveform memory access of a plurality of sound sources at the same time in the multi-use mode is stored in the waveform memory of the plurality of sound sources in its own one-channel computation time slot. A waveform playback device with a sound source that performs access in a time-sharing manner,
Mode switching means for switching between the sound source single use mode and the multiple use mode;
An accumulator that accumulates the specified pitch;
High-order address processing means for processing high-order data (integer part) of the accumulator into continuous addresses;
Other sound source address storage means for receiving and storing the address to the waveform memory from another sound source,
According to the mode switching by the mode switching means and the access timing, the address indicated by the high-order data of the accumulator and the address stored in the other sound source address storage means are switched and output. Address switching output means for outputting the address indicated by the upper data of the accumulator and the address processed by the upper address processing means continuous with the address;
A waveform data register for storing waveform data read from the waveform memory based on the output address;
A sample buffer that stores waveform data read at the previous access timing and stored in the waveform data register by the number of interpolation points minus one;
Interpolation coefficient storage means for storing interpolation coefficient data;
Interpolation coefficient extraction means for extracting a corresponding interpolation coefficient from the interpolation coefficient storage means based on the lower data (decimal part) of the accumulator;
Sample interpolation means for interpolating the waveform data stored in the waveform data register and the sample buffer, respectively, based on the interpolation coefficient extracted by the interpolation coefficient extraction means;
The waveform data stored in the sample buffer and waveform data register input to the sample interpolating means is at least one of the sample buffer in accordance with the address value indicated by the mode switching signal of the mode switching means and the upper data of the accumulator. It has a basic feature of having selection means for switching and selecting one of them and one of the waveform data registers .
上記構成によれば、モード切替手段で、音源単体使用モードに設定されている場合に、使用されていない他の音源のアクセスタイミングを使用している音源のアクセスタイミングとして割り当てることで、再生ピッチの範囲の上限を1オクターブ拡張できるようになる。 According to the above configuration, when the mode switching means is set to the single sound source use mode, the access timing of the sound source that is not used is assigned as the access timing of the sound source that is not used, so that the playback pitch can be adjusted. The upper limit of the range can be extended by one octave.
本発明の請求項1乃至請求項2記載の波形再生装置によれば、使用されていない他の音源のアクセスタイミングの有効利用を図り、再生ピッチの範囲の上限を1オクターブ拡張できるようになるという優れた効果を奏し得る。 According to the waveform reproducing apparatus of the first or second aspect of the present invention, the access timing of other unused sound sources can be effectively used, and the upper limit of the reproduction pitch range can be extended by one octave. An excellent effect can be achieved.
以下、本発明の実施の形態を図示例と共に説明する。 Hereinafter, embodiments of the present invention will be described together with illustrated examples.
(実施例1)
図1は、本発明に係る波形再生装置の構成が用いられた電子楽器(例えば電子オルガン)の回路概略図である。
Example 1
FIG. 1 is a circuit schematic diagram of an electronic musical instrument (for example, an electronic organ) in which the configuration of the waveform reproducing device according to the present invention is used.
本電子楽器は、上中下段の鍵盤及びフットペダルなどに夫々異なる音色が割り当てることができるようになっており、しかも鍵盤は、左右でスプリットされ、夫々の位置で同じく違う音色が設定できるようになっている。従って、これらの鍵盤などを押鍵すると、夫々の楽音が同時に発生するのに必要なチャンネル数は、32音色分のチャンネル数を超えることも多い。 This electronic musical instrument can be assigned different tones to the upper, middle, and lower keyboards and foot pedals, and the keyboard is split left and right so that different tones can be set at each position. It has become. Therefore, when these keys are pressed, the number of channels necessary for the simultaneous generation of each musical tone often exceeds the number of channels for 32 timbres.
本電子楽器は、図1に示すように、システムバス110を介して、CPU111、ROM112、RAM113、パネルスキャン回路114a、鍵盤スキャン回路115a、マスタ音源100及びスレーブ音源101が相互に接続されて構成されている。システムバス110は、アドレス信号、データ信号又は制御信号等を送受するために使用される。
As shown in FIG. 1, the electronic musical instrument is configured by connecting a
CPU111は、ROM112に記憶されている制御プログラムに従って動作することにより本電子楽器の全体を制御する。
The
上記ROM112は、上述した制御プログラムの他に、CPU111が参照する種々のデータを記憶する。
The ROM 112 stores various data referred to by the
上記RAM113は、CPU111が各種処理を実行する際に、種々のデータを一時記憶するために使用される。このRAM113には、レジスタ、カウンタ、フラグ等が定義されている。このうちの主なものについて説明する。なお、下記以外については、必要の都度説明する。
The RAM 113 is used for temporarily storing various data when the
(a)音色設定フラグ:後述する操作パネル114の設定により、マスタ音源100やスレーブ音源101から発生させる音色をどのチャンネルから発生させるかを示すためのデータを記憶する。
(A) Tone setting flag: Stores data for indicating from which channel the tone color generated from the
(b)1チップモードフラグ:本電子楽器は、楽音の発生に関し後述するようにマスタ音源100及びスレーブ音源101と、それらが共用して使う波形メモリ102が備えられているが、上記音色設定フラグの設定によって、マスタ音源だけで楽音を発生させる場合や、演奏者の操作パネル114の操作により、音色設定フラグが変更され、マスタ音源だけで楽音を発生させる場合がある。その場合このフラグが立つことになる(=1)。この時後述するモード切替手段1は、該1チップモードフラグを参照し、モード切替信号(SNGF4)を出力する(0:2チップモード、1:1チップモード)。
(B) One-chip mode flag: This electronic musical instrument is provided with a
パネルスキャン回路114aには、操作パネル114が接続されている。操作パネル114には、例えば同時発音数を増やさず、例えば64チャンネルから逆に32チャンネルにするなど、音源を単体(マスタ音源100だけ)で使用する場合があり(使用する音色数が少ない場合など)、その場合は、該操作パネル114の音色選択により音色設定フラグの設定がなされ、32チャンネルなどのチャンネル設定を行うことがある。また、上述のように、演奏者の操作パネル114の操作により、音色設定フラグが変更され、マスタ音源だけで楽音を発生させる場合もある。ピッチ変化の範囲が広い音色もあり、その場合マスタ音源だけで楽音を発生させる場合がある。尚、図示は省略するが、各スイッチの設定状態を表示するLED表示器、種々のメッセージを表示するLCD等が設けられている。
An operation panel 114 is connected to the
上記チャンネル設定や演奏者の操作パネル114の操作により、上記1チップモードフラグが立つと、マスタ音源100だけが使用される状態となる。またそのチャンネル設定変更や操作パネル114の操作により、1チップモードフラグが解除されると、マスタ音源100及びスレーブ音源101により、32チャンネルを超えるチャンネル設定ができるようになる。
When the one-chip mode flag is set by the channel setting or the player's operation on the operation panel 114, only the
上記パネルスキャン回路114aは、CPU111からの指令に応答して操作パネル114上の各スイッチをスキャンし、このスキャンにより得られた各スイッチの開閉状態を示す信号に基づいて、各スイッチを1ビットに対応させたパネルデータを作成する。各ビットは、例えば「1」でスイッチオン状態、「0」でスイッチオフ状態を表す。このパネルデータは、システムバス110を介してCPU111に送られる。このパネルデータは、操作パネル114上のスイッチのオンイベント又はオフイベントが発生したかどうかを判断するために使用される。
The
また、パネルスキャン回路114aは、CPU111から送られてきた表示データを操作パネル114上のLED表示器及びLCDに送る。これにより、CPU111から送られてきたデータに従って、LED表示器が点灯/消灯され、またLCDにメッセージが表示される。
Further, the
上記鍵盤スキャン回路115aには、鍵盤115で生成される押鍵データを検出する。すなわち、これらの鍵盤115には、夫々2点スイッチが設けられており、任意の鍵盤115が所定以上の深さまで押し下げられたことを検出すると、その鍵盤の音高データ(キーナンバ)の押鍵信号を生成すると共に、2点スイッチ間を通過する速度からベロシティを生成し、それらを押鍵データとして、鍵盤スキャン回路115aに送る。2点スイッチとしては、鍵が所定以上の深さまで押し下げられたことを検出できる光センサ、圧力センサ、その他のセンサを使用できる。鍵盤スキャン回路115aは、2点スイッチからの押鍵データを受け取ると、それをCPU111に送る。
The keyboard scan circuit 115a detects key press data generated by the
鍵盤スキャン回路115aからの押鍵データは、CPU111により、RAM113上の音色設定フラグ及び1チップモードフラグが参照され、夫々のチャンネルに対応するマスタ音源100、乃至マスタ音源100及びスレーブ音源101に送られることになる。
The key depression data from the keyboard scan circuit 115a is sent by the
マスタ音源100及びスレーブ音源101は、1つの波形メモリ102を共用し、該波形メモリ102に対して、読み出しアドレスを発生し、原データを読み出す。読み出された原データの補間処理を行った後、同じく同回路で生成された音色毎のエンベロープを乗算し、夫々の音色の波形データを設定されたチャンネル分累算して、外部に波形データとして出力する。ただし、上記スレーブ音源101は、通常の音源構成を有しているが、そこから発せられる波形メモリ102の読み出しアドレスは、マスタ音源100に入力され、後述するように、他音源アドレス記憶手段4に一時的に記憶される。また波形メモリ102から読み出された原データは夫々の音源100及び102に入力される。さらに、これらの音源から出力された波形データは、D/A変換回路116に入力され、デジタル−アナログ変換され、アンプ117で増幅され、スピーカ118から外部に楽音として放出される。
The
上記マスタ音源100は、図2に示すように、モード切替手段1と、累算器2と、上位アドレス加工手段3と、他音源アドレス記憶手段4と、アドレス切替出力手段5と、波形データレジスタ6と、サンプルバッファ7と、補間係数記憶手段8と、補間係数抽出手段9と、サンプル補間手段10と、選択手段11とを備えている。
As shown in FIG. 2, the
該マスタ音源100は、専用のLSIで設計されており、図示しないが、内部に、バッファやレジスタと、補間時の所定の係数を記憶する固定記憶部などから構成されている。それによって、上記各手段が構成されることになる。
The
そのうちモード切替手段1は、上記CPU111によりRAM113上に設定された1チップモードフラグを参照し、モード切替信号(SNGF4)を、後述するアドレス切替出力手段5、累算器2のセレクタ23及び選択手段11を構成するAND回路の入力側へ出力する[0:2チップモード(=音源複数使用モード)であって、マスタ音源100及びスレーブ音源101を使用することを意味する、1:1チップモード(=音源単体使用モード)であって、マスタ音源100のみを使用することを意味する]。
Among them, the mode switching means 1 refers to the 1-chip mode flag set on the RAM 113 by the
累算器2は、後述する図3に示すような構成により、指定したピッチが出力され、その値を従前の値と累算するアキュムレータ20及び加算器21を主な構成としている。すなわち、同図に示すように、すなわち、上記固定記憶部に浮動小数点形式のピッチパラメータ(omg)が記憶されており、それが読み出された際、その指数部は、後述するバレルシフタ24に入力され、その仮数部は、乗算器22及びセレクタ23に直接入力される。乗算器22では、仮数部の値を2倍にしており、セレクタ23は、上記モード切替手段1によるモード切替信号(SNGF4)によって、2チップモードの時は、仮数部のそのままの値を、また1チップモードの時は、仮数部を2倍した値をバレルシフタ24に入力している。そして該バレルシフタ24により、固定小数点形式へ変換された後、指定したピッチとして上記加算器21に入力される。それから後は、上述のように、該ピッチの値が従前の値と累算される。1チップモードの時に、仮数部を2倍した値をバレルシフタ24に入力しているのは、ピッチパラメータは設定可能な最大値で正規化されており、2チップモードに比べ1チップモードは絶対値で倍のピッチが設定可能になるためである。
The
上位アドレス加工手段3は、累算器2の上位データ(整数部)を連続したアドレスに加工する。すなわち、図4に示すように、該上位アドレス加工手段3は、レジスタ(WAMtr)30及びLSB制御部31から構成されており、累算器2から出力された上位データ(整数部)を偶数アドレス値に丸め(LSB制御部31は整数部最下位ビットの値を0にマスクする加工を行う)最初のアドレスとし、それに続くアドレスを生成する(LSB制御部31は整数部最下位ビットの値を1にマスクする加工を行う)。すなわち、ここで生成されたアドレスは、波形メモリアクセスのタイミングにより、同一チャンネル前半時(タイミング制御信号0)に上位アドレス加工手段3から出力された最初のアドレスがアドレス切替出力手段5に入力された(SNGF4MA)後、同一チャンネル後半時(タイミング制御信号1)に、同じくアドレス切替出力手段5に入力される(SNGF4MA)。
The upper address processing means 3 processes the upper data (integer part) of the
他音源アドレス記憶手段4は、スレーブ音源101から出力される波形読み出しアドレス値を受信し記憶する。このアドレス値は、モード切替手段1のモード設定信号が0である2チップモードの際、波形メモリ102アクセスのタイミング信号が1の同一チャンネル後半に変わった場合に、後述するアドレス切替出力手段5からスレーブ音源101の波形読み出しのアドレスとして出力されることになる。
The other sound source address storage means 4 receives and stores the waveform read address value output from the
アドレス切替出力手段5は、上記モード切替手段1によるモード切替信号(SNGF4)と波形メモリ102アクセスのタイミングに応じて、上記累算器2の上位データが示すアドレス(マスタ音源100の読み出しアドレス)と他音源アドレス記憶手段4に記憶されたアドレス(スレーブ音源101の読み出しアドレス)とを切り替えて出力する(SNGF2MA:2チップモード、すなわちSNGF4=0の時のアドレス)。また上記モード切替手段1によるモード切替信号(SNGF4)が1チップモード(音源単体使用モード)を示す時(すなわちSNGF4=1の時)は、上記累算器2の上位データが示すアドレスを上位アドレス加工手段3で加工されたアドレス(LSB制御部31により最下位ビットが0にマスク加工された整数部の値)、及びそのアドレスに連続する上位アドレス加工手段3で加工されたアドレス(最初のアドレスに続くアドレス;LSB制御部31により最下位ビットが1にマスク加工された整数部の値)を出力する(SNGF4MA)。
The address switching output means 5 receives the address (read address of the master sound source 100) indicated by the higher-order data of the
波形データレジスタ6は、図2及び図4に示すようにして出力されたアドレスに基づいて、波形メモリ102から読み出された波形データを記憶する。後述する図5及び図6では、DWa及びDWbで示される。
The waveform data register 6 stores the waveform data read from the
サンプルバッファ7は、前のアクセスタイミングで読み出され該波形データレジスタ6に記憶されている波形データを、(補間ポイント数−1)だけ記憶するバッファである。例えば、後にサンプル補間手段10によって行われる補間処理が4ポイント補間処理の場合は、新しく入力されてくる前の3つの波形データを記憶しておく。後述する図5及び図6では、Z1、Z2及びZ3で示される。また2ポイント補間処理の場合は、新しく入力されてくる前の1つの波形データを記憶しておくことになる。尚、波形データにおける4ポイント補間処理とは、前後の2ポイントの値が求められることで、その間の1ポイントの値を補間値とするという処理である。また同2ポイント補間処理とは、ポイントとポイントの間の値が、補間しようとする値として求められる処理である。
The sample buffer 7 is a buffer for storing the waveform data read at the previous access timing and stored in the waveform data register 6 by (the number of interpolation points-1). For example, when the interpolation process performed later by the
補間係数記憶手段8は、図5(a)に示すような補間係数カーブを記憶してある。 The interpolation coefficient storage means 8 stores an interpolation coefficient curve as shown in FIG.
補間係数抽出手段9は、上記累算器2の下位データ(少数部)に基づいて、上記補間係数記憶手段8から、対応する補間係数を抽出する。すなわち、図5(a)の例では、補間係数記憶手段8に512ワード(9bit)で上記補間係数カーブが記憶されており、補間係数カーブのメモリアドレスが0〜127、128〜255、256〜383、384〜511の4つのグループに分類されていれば、累算器2から出力される小数部は、下位7bitあれば、同時に4つの補間係数を抽出することができる。すなわち、1つ目の補間係数C0は、0+(0〜127)のアドレスの値の係数値が、2つ目C1は、128+(0〜127)のアドレスの値の係数値が、3つ目C2は、256+(0〜127)のアドレスの値の係数値が、4つ目C3は、384+(0〜127)のアドレスの値の係数値が、抽出される。
The interpolation coefficient extraction means 9 extracts the corresponding interpolation coefficient from the interpolation coefficient storage means 8 based on the lower data (the decimal part) of the
通常の4ポイント補間を行う従来の構成では、図5(b)に示すように、波形メモリ102から読み出されてレジスタMWpDを介して、波形データレジスタDWaに記憶された波形データに補間係数C0が乗算され、それ以前にサンプルバッファZ1、Z2及びZ3に読み出された波形データの値に、夫々補間係数C1、C2及びC3の値が乗算され、最後にこれらの値が累算されて波形データとして出力されることになる(ここでは、1サンプル進行毎に波形データレジスタDWaに記憶されていたデータは、サンプルバッファZ1に、サンプルバッファZ1に記憶されていたデータは、サンプルバッファZ2に、サンプルバッファZ2に記憶されていたデータは、サンプルバッファZ3に、シフトし更新される)。本発明の構成の場合は後述する図6で説明する。
In the conventional configuration that performs normal four-point interpolation, as shown in FIG. 5B, the interpolation coefficient C0 is added to the waveform data read from the
サンプル補間手段10は、図2に示すように、上記波形データレジスタ6及びサンプルバッファ7に夫々記憶された波形データに対し、補間係数抽出手段9により抽出された補間係数に基づいて、該データの補間を行う。より具体的な構成は、後述する図6に示されるように、乗算器10a〜10dと、累算器10eとにより構成される。この補間方法については後述する。
As shown in FIG. 2, the sample interpolating means 10 applies the data of the waveform data stored in the waveform data register 6 and the sample buffer 7 based on the interpolation coefficient extracted by the interpolation
選択手段11は、後述する図7のCsel信号を出力するAND回路で構成され、サンプル補間手段10の乗算器10a〜10dに入力するサンプルバッファ7及び波形データレジスタ6に記憶された波形データを、上記モード切替手段1のモード切替信号及び累算器2の上位データが示すアドレス値のLSBに応じて、サンプルバッファ7及び波形データレジスタ6の中から選択する。その状態を、図6及び図7を用いて説明する。
The selection means 11 is composed of an AND circuit that outputs a Csel signal of FIG. 7 to be described later, and the waveform data stored in the sample buffer 7 and the waveform data register 6 input to the multipliers 10a to 10d of the sample interpolation means 10 Selection is made from the sample buffer 7 and the waveform data register 6 in accordance with the mode switching signal of the mode switching means 1 and the LSB of the address value indicated by the upper data of the
本実施例のサンプル補間手段10で行われる補間も、基本的には4ポイント補間である。図6に示すサンプル補間手段10の乗算器10a〜10dに保持されるCa、Cb、Cc、Cdはいずれも、補間係数抽出手段9から抽出された補間係数である。またレジスタMWpDには、波形メモリ102から読み出された波形データが取り込まれる。尚、図中DWa及びDWbは、上記波形データレジスタ6であり、またZ1、Z2及びZ3は、サンプルバッファ7である。
Interpolation performed by the sample interpolation means 10 of this embodiment is also basically 4-point interpolation. Ca, Cb, Cc, and Cd held in the multipliers 10 a to 10 d of the
2チップモードの時であれば、図8に示すように、波形データレジスタDWaには、上記アドレス切替出力手段5により、同一1チャンネル時間の前半にマスタ音源100の累算器2の上位アドレス(整数部:SNGF2MA)で指定され読み出された波形データと、上記アドレス切替出力手段5により、同一1チャンネル時間の後半にマスタ音源100の他音源アドレス記憶手段4に記憶されているアドレス(SNGF2MA)で指定され読み出された波形データとが、順次取得され、もう一方の波形データレジスタDWbは使用されない。
In the case of the two-chip mode, as shown in FIG. 8, the waveform data register DWa is stored in the upper address of the
また1チップモードの時であれば、波形データレジスタDWaには、上記アドレス切替出力手段5により、上位アドレス加工手段3から出力される最初のアドレス(LSB制御部31により最下位ビットが0にマスク加工された整数部の値:SNGF4MA)で指定され、同一1チャンネル時間の前半に読み出された波形データが取得され、また波形データレジスタDWbには、同じくアドレス切替出力手段5により、上位アドレス加工手段3により加工された最初のアドレスに連続するアドレス(最初のアドレスに続くアドレス;LSB制御部31により最下位ビットが1にマスク加工された整数部の値:SNGF4MA)で指定され、同一1チャンネル時間の後半に読み出された波形データが取得される。 In the case of the 1-chip mode, the waveform data register DWa stores the first address output from the high-order address processing means 3 by the address switching output means 5 (the least significant bit is masked to 0 by the LSB control section 31). Waveform data specified by the processed integer part value: SNGF4MA) and read in the first half of the same one channel time is acquired, and the upper address processing is also performed in the waveform data register DWb by the address switching output means 5. The same one channel specified by an address continuous with the first address processed by means 3 (address following the first address; the value of the integer part with the least significant bit masked to 1 by the LSB control unit 31: SNGF4MA) The waveform data read out in the second half of the time is acquired.
このような波形データの取得の選択は、上述のように、選択手段11によってなされるが、そのCsel信号の切替を、図7を使用して説明する。すなわち、選択手段11を構成するAND回路の入力側の一方には、マスタ音源100の累算器2から出力された上位アドレス(整数部)のLSB(最下位ビット;It0)が、またその入力側の他方には、上記モード切替手段1のモード切替信号(SNGF4;0:2チップモード、1:1チップモード)が、夫々入力信号として取り込まれる。
Such selection of waveform data acquisition is performed by the selection unit 11 as described above, and switching of the Csel signal will be described with reference to FIG. That is, the LSB (the least significant bit; It0) of the upper address (integer part) output from the
上述のように、モード切替信号(SNGF4)が0の場合は、2チップモードであり、波形データレジスタDWaだけが使用され、上位アドレスのLSB(It0)が0及び1であっても、Csel信号出力は0であり、上述の図8に示すように、波形データレジスタDWaには、上記アドレス切替出力手段5により、同一チャンネル時間の前半にマスタ音源100の累算器2の上位アドレス(整数部)で指定され読み出された波形データと、上記アドレス切替出力手段5により、同一チャンネル時間の後半にマスタ音源100の他音源アドレス記憶手段4に記憶されているアドレスで指定され読み出された波形データとが、順次取得され、サンプリングバッファZ1、Z2及びZ3に記憶されている従前の波形データと共に、夫々補間係数Ca、Cb、Cc及びCdが乗算されて出力される。
As described above, when the mode switching signal (SNGF4) is 0, it is the 2-chip mode, only the waveform data register DWa is used, and even if the upper address LSB (It0) is 0 and 1, the Csel signal The output is 0, and as shown in FIG. 8 described above, the waveform data register DWa stores the upper address (integer part) of the
他方モード切替信号(SNGF4)が1の場合は、1チップモードであり、波形データレジスタDWa及びDWbが共に使用される。 On the other hand, when the mode switching signal (SNGF4) is 1, it is a 1-chip mode, and both the waveform data registers DWa and DWb are used.
上位アドレスのLSB(It0)が0の時Csel信号出力は0であり、波形データレジスタDWaに読み出された同一チャンネル時間の前半に読み出された波形データ、並びにサンプルバッファZ1、Z2及びZ3に記憶された波形データが夫々出力されて、上記乗算器10a〜10dにより、補間係数Ca、Cb、Cc及びCdと乗算され、これらの乗算値が出力される。 When the upper address LSB (It0) is 0, the Csel signal output is 0, the waveform data read in the first half of the same channel time read to the waveform data register DWa, and the sample buffers Z1, Z2, and Z3 The stored waveform data is output and multiplied by the interpolation coefficients Ca, Cb, Cc, and Cd by the multipliers 10a to 10d, and the multiplied values are output.
それが終了すると、図7の右下に記したように、波形データレジスタDWbに記憶されていたデータは、サンプルバッファZ1に、波形データレジスタDWaに記憶されていたデータは、サンプルバッファZ2に、サンプルバッファZ1に記憶されていたデータは、サンプルバッファZ3に、シフトし、更新される。本実施例構成では、3つのサンプルバッファの内、(累算器2のアドレスが)2サンプル進行した場合のみバッファが更新される。常に偶数・奇数の順でデータを読み込んでいないと、連続したサンプルにならないからである。よってLSB制御部31で常に偶数・奇数の順となるように制御している。
When that is finished, as described in the lower right of FIG. 7, the data stored in the waveform data register DWb is stored in the sample buffer Z1, and the data stored in the waveform data register DWa is stored in the sample buffer Z2. The data stored in the sample buffer Z1 is shifted to the sample buffer Z3 and updated. In this embodiment, the buffer is updated only when two samples (
次に上位アドレスのLSB(It0)が1の時Csel信号出力は1であり、波形データレジスタDWbに読み出された同一チャンネル時間の後半に読み出された波形データ、波形データレジスタDWaに読み出された同一チャンネル時間の前半に読み出された波形データ、並びにサンプルバッファZ1に記憶された波形データ、Z2に記憶された波形データが夫々出力されて、上記乗算器10a〜10dにより、補間係数Ca、Cb、Cc及びCdと乗算され、これらの乗算値が出力される。 Next, when the upper address LSB (It0) is 1, the Csel signal output is 1, and the waveform data read in the second half of the same channel time read to the waveform data register DWb is read to the waveform data register DWa. The waveform data read out in the first half of the same channel time, the waveform data stored in the sample buffer Z1, and the waveform data stored in Z2 are output, and the multipliers 10a to 10d output the interpolation coefficient Ca. , Cb, Cc and Cd, and these multiplication values are output.
それが終了すると、波形データレジスタDWbに記憶されていたデータは、サンプルバッファZ1に、波形データレジスタDWaに記憶されていたデータは、サンプルバッファZ2に、サンプルバッファZ1に記憶されていたデータは、サンプルバッファZ3に、シフトし、更新される。 When this is finished, the data stored in the waveform data register DWb is stored in the sample buffer Z1, the data stored in the waveform data register DWa is stored in the sample buffer Z2, and the data stored in the sample buffer Z1 is Shifted to the sample buffer Z3 and updated.
1チップモードでは、2回のアクセスタイミング(1チャンネル時間)毎に演算を行う。よって、1チャンネル時間毎に上述の処理が繰り返されることになる。 In the 1-chip mode, calculation is performed every two access timings (one channel time). Therefore, the above process is repeated for each channel time.
以上の本実施例構成によれば、モード切替手段1がRAM113上の1チップモードフラグを参照して、マスタ音源100だけを使用する1チップモード(=0)の時に、アドレス切替出力手段5が、上位アドレス加工手段3から出力される最初のアドレスを、同一チャンネルの前半に波形メモリ102にアクセスするアドレスとして出力し、また上位アドレス加工手段3によって該前半アドレスに連続するアドレスを、同一チャンネルの後半に波形メモリ102にアクセスするアドレスとして出力することになる。これらのアドレスに基づいて、波形メモリ102から波形データが波形データレジスタ6側に読み出される。
According to the above-described configuration of the present embodiment, when the
他方1チップモードであることを上記モード切替手段1から受けた選択手段11(図7のAND回路)は、累算器2の整数部(波形メモリ102アドレスの整数部のLSB)が、0か1かによって、サンプル毎に、波形データレジスタ6及びサンプルバッファ7の波形データを選択し、サンプル補間手段10の乗算器10a〜10dに出力することになる。
On the other hand, the selection means 11 (AND circuit in FIG. 7) that has received from the mode switching means 1 that the mode is the one-chip mode is that the integer part of the accumulator 2 (LSB of the integer part of the
また累算器2の小数部(7bit)に基づき、補間係数抽出手段9によって、補間係数記憶手段8に記憶されている補間係数カーブ(512ワード)から、4点の補間係数が抽出され、同じくサンプル補間手段10の乗算器10a〜10dに出力することになる。
Further, based on the decimal part (7 bits) of the
従って、該サンプル補間手段10の乗算器10a〜10dでは、選択手段11から選択されて出力されてくる波形データレジスタ6のDWa及びサンプルバッファ7のZ1、Z2及びZ3、または波形データレジスタ6のDWb、DWa及びサンプルバッファ7のZ1、Z2の波形データに対し、抽出された補間係数C0、C1、C2及びC3が掛けられた上で出力され累算されて、1つの波形データとして出力されることになる。 Therefore, in the multipliers 10a to 10d of the sample interpolation means 10, the DWa of the waveform data register 6 selected from the selection means 11 and the Z1, Z2 and Z3 of the sample buffer 7, or the DWb of the waveform data register 6 are output. , DWa and the Z1 and Z2 waveform data in the sample buffer 7 are multiplied by the extracted interpolation coefficients C0, C1, C2 and C3, output and accumulated, and output as one waveform data. become.
このように処理がなされると、図9の本発明に係るタイミングチャートに示すように、1チップモードの時には、あるtチャンネルの同一チャンネル時間中に、前半のメモリアクセス(TG1)による波形データと後半のメモリアクセス(TG2)による波形データが読み出され、使用されていないスレーブ音源101のアクセスタイミングを、マスタ音源100のアクセスタイミングとして割り当てることができるようになる。そのため、再生ピッチの範囲の上限を1オクターブ拡張可能となる。
When the processing is performed in this way, as shown in the timing chart according to the present invention in FIG. 9, in the 1-chip mode, the waveform data by the memory access (TG1) in the first half is received during the same channel time of a certain t channel. The waveform data by the memory access (TG2) in the latter half is read, and the access timing of the
これに対し、従来構成では、同図の従来として表されたタイミングチャートに示されるように、使用していないスレーブ音源101側のアクセスタイミングをそのままにする(図9中段左側)か、或いはマスタ音源100のアクセスタイミングを延長する(図9中段右側)ことになる。
On the other hand, in the conventional configuration, as shown in the timing chart shown in the figure of the prior art, the access timing on the side of the
(実施例2)
図10は、サンプル補間手段10による補間処理が2サンプル補間処理で行われる場合の本発明に係る別実施例構成における、読み出し波形データの補間処理部分だけを取り出して示す概略説明図である。また図11は補間係数記憶手段8に記憶される2点補間の場合の補間係数データである。最初の場合補間係数Aは0であり、補間係数Bは1であるが、Y軸方向の値で示される累算器2の小数部の値が大きくなると、次第に補間係数Aは上昇し、補間係数Bは下降する。途中でクロスして、補間係数Aは1となり、補間係数Bは0になる。その後は再び双方が反転して同じ状態を繰り返す。そうして抽出された補間係数が2点補間を行う係数として、サンプル補間手段10に出力される。
(Example 2)
FIG. 10 is a schematic explanatory diagram showing only the interpolation processing portion of the read waveform data in the configuration of another embodiment according to the present invention when the interpolation processing by the sample interpolation means 10 is performed by two-sample interpolation processing. FIG. 11 shows interpolation coefficient data in the case of two-point interpolation stored in the interpolation coefficient storage means 8. In the first case, the interpolation coefficient A is 0 and the interpolation coefficient B is 1, but when the value of the decimal part of the
以上の第2実施例構成においても、補間処理が2ポイント補間になるだけで、使用されていないスレーブ音源101のアクセスタイミングを、マスタ音源100のアクセスタイミングとして割り当てることができるようになるため、同様に、再生ピッチの範囲の上限を1オクターブ拡張可能となる。
Also in the configuration of the second embodiment described above, the interpolation timing becomes only two-point interpolation, and the access timing of the
(実施例3)
図12は、サンプル補間手段10による補間処理が最初の実施例と同じく4サンプル補間処理で行われる場合の本発明に係る他の実施例構成における、読み出し波形データの補間処理部分だけを取り出して示す概略説明図である。上記第1実施例構成では、波形メモリ102が16ビットバスで、1サンプル16ビットのデータが記憶されている状態である。それに対し本実施例では、同じく波形メモリ102が16ビットバスで、1サンプル8ビットのデータが記憶されている構成である。従って、本実施例構成では、2チップモードの際に、夫々の音源用に2つの波形データが読み出される。また1チップモードの際には、1度のアクセスタイミングで、2つの波形データの読み出しを行い、波形データレジスタ6に、同一チャンネルの前半と後半のアクセスタイミングで、計4つの波形データが取得できることになる。そこで図6のDWa及びDWbとして示したレジスタは、DWa〜DWdの4つが必要となる。また選択手段11の乗算器に出力される波形データレジスタ6及びサンプルバッファ7のデータは、DWd、DWc、DWb、DWa、Z1、Z2及びZ3の値のうち連続する4つのデータになる。
(Example 3)
FIG. 12 shows only the interpolation processing portion of the read waveform data in the configuration of another embodiment according to the present invention when the interpolation processing by the sample interpolation means 10 is performed by the 4-sample interpolation processing as in the first embodiment. It is a schematic explanatory drawing. In the configuration of the first embodiment, the
以上の第3実施例構成においても、波形データレジスタ6に、同一チャンネルの前半と後半のアクセスタイミングで、計4つの波形データが取得できるようになるだけで、使用されていないスレーブ音源101のアクセスタイミングを、マスタ音源100のアクセスタイミングとして割り当てることができるようになるため、このような構成においても同様に、再生ピッチの範囲の上限を1オクターブ拡張可能となる。
Even in the configuration of the third embodiment described above, a total of four waveform data can be acquired in the waveform data register 6 at the access timing of the first half and the latter half of the same channel. Since the timing can be assigned as the access timing of the
尚、本発明の波形再生装置は、上述の図示例にのみ限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。 The waveform reproducing apparatus of the present invention is not limited to the above-described illustrated examples, and various changes can be made without departing from the scope of the present invention.
1 モード切替手段
2 累算器
3 上位アドレス加工手段
4 他音源アドレス記憶手段
5 アドレス切替出力手段
6 波形データレジスタ
7 サンプルバッファ
8 補間係数記憶手段
9 補間係数抽出手段
10 サンプル補間手段
10a〜10d 乗算器
10e 累算器
11 選択手段
20 アキュムレータ
21 加算器
22 乗算器
23 セレクタ
24 バレルシフタ
30 WAMtrレジスタ
31 LSB制御部
100 マスタ音源
101 スレーブ音源
102 波形メモリ
110 システムバス
111 CPU
112 ROM
113 RAM
114 操作パネル
114a パネルスキャン回路
115 鍵盤
115a 鍵盤スキャン回路
116 D/A変換回路
117 アンプ
118 スピーカ
DESCRIPTION OF
112 ROM
113 RAM
114
Claims (2)
音源単体使用モードと複数使用モードの切り替えを行うモード切替手段と、
指定したピッチを累算する累算器と、
累算器の上位データを連続したアドレスに加工する上位アドレス加工手段と、
他の音源からの波形メモリへのアドレスを受信し記憶する他音源アドレス記憶手段と、
上記モード切替手段によるモード切り替えとアクセスタイミングに応じて、上記累算器の上位データが示すアドレスと他音源アドレス記憶手段に記憶されたアドレスとを切り替えて出力すると共に、音源単体使用モードの時は、上記累算器の上位データが示すアドレス及びそのアドレスに連続する上位アドレス加工手段で加工されたアドレスを出力するアドレス切替出力手段と、
出力されたアドレスに基づいて、波形メモリから読み出された波形データを記憶する波形データレジスタと、
前のアクセスタイミングで読み出され該波形データレジスタに記憶されている波形データを、補間ポイント数−1だけ記憶するサンプルバッファと、
補間係数データを記憶する補間係数記憶手段と、
上記累算器の下位データに基づいて補間係数記憶手段から対応する補間係数を抽出する補間係数抽出手段と、
上記波形データレジスタ及びサンプルバッファに夫々記憶された波形データに対し、補間係数抽出手段により抽出された補間係数に基づいて該データの補間を行うサンプル補間手段と、
サンプル補間手段に入力するサンプルバッファ及び波形データレジスタに記憶された波形データを、上記モード切替手段のモード切替信号及び累算器の上位データが示すアドレス値に応じて、少なくとも1つはサンプルバッファの中の1つと波形データレジスタの中の1つとを切替えて選択する選択手段と
を有することを特徴とする波形再生装置。 A master sound source that has a means for switching between a single sound source use mode and a multi-use mode and takes over the waveform memory access of a plurality of sound sources at the same time in the multi-use mode is stored in the waveform memory of the plurality of sound sources in its own one-channel computation time slot. A waveform playback device with a sound source that performs access in a time-sharing manner,
Mode switching means for switching between the sound source single use mode and the multiple use mode;
An accumulator that accumulates the specified pitch;
Upper address processing means for processing the upper data of the accumulator into continuous addresses;
Other sound source address storage means for receiving and storing the address to the waveform memory from another sound source,
According to the mode switching by the mode switching means and the access timing, the address indicated by the high-order data of the accumulator and the address stored in the other sound source address storage means are switched and output. Address switching output means for outputting the address indicated by the upper data of the accumulator and the address processed by the upper address processing means continuous with the address;
A waveform data register for storing waveform data read from the waveform memory based on the output address;
A sample buffer that stores waveform data read at the previous access timing and stored in the waveform data register by the number of interpolation points minus one;
Interpolation coefficient storage means for storing interpolation coefficient data;
Interpolation coefficient extraction means for extracting a corresponding interpolation coefficient from the interpolation coefficient storage means based on the lower data of the accumulator;
Sample interpolation means for interpolating the waveform data stored in the waveform data register and the sample buffer, respectively, based on the interpolation coefficient extracted by the interpolation coefficient extraction means;
The waveform data stored in the sample buffer and waveform data register input to the sample interpolating means is at least one of the sample buffer in accordance with the address value indicated by the mode switching signal of the mode switching means and the higher order data of the accumulator A waveform reproducing apparatus comprising selection means for switching and selecting one of them and one of the waveform data registers .
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003408393A JP4503275B2 (en) | 2003-12-08 | 2003-12-08 | Waveform playback device |
PCT/JP2004/017685 WO2005057547A1 (en) | 2003-12-08 | 2004-11-29 | Musical sound generation device |
US10/581,971 US7329811B2 (en) | 2003-12-08 | 2004-11-29 | Musical sound generation device capable of effectively utilizing the access timing for an unused slave sound source |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003408393A JP4503275B2 (en) | 2003-12-08 | 2003-12-08 | Waveform playback device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005172875A JP2005172875A (en) | 2005-06-30 |
JP4503275B2 true JP4503275B2 (en) | 2010-07-14 |
Family
ID=34730098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003408393A Expired - Fee Related JP4503275B2 (en) | 2003-12-08 | 2003-12-08 | Waveform playback device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4503275B2 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05289660A (en) * | 1992-04-07 | 1993-11-05 | Casio Comput Co Ltd | Sound source integrated circuit with built-in effect adding device and sound source device using the same |
JP3404794B2 (en) * | 1993-03-26 | 2003-05-12 | ヤマハ株式会社 | Waveform generator |
JP2933205B2 (en) * | 1995-11-16 | 1999-08-09 | ヤマハ株式会社 | Waveform memory sound generator |
JP3527396B2 (en) * | 1997-09-30 | 2004-05-17 | 株式会社河合楽器製作所 | Waveform recording device and waveform reproducing device |
JP3087744B2 (en) * | 1998-11-24 | 2000-09-11 | ヤマハ株式会社 | Music generator |
-
2003
- 2003-12-08 JP JP2003408393A patent/JP4503275B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005172875A (en) | 2005-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9040800B2 (en) | Musical tone signal generating apparatus | |
JP2785531B2 (en) | Electronic musical instrument | |
US6023017A (en) | Musical performance assisting system and storage medium storing musical performance assisting program | |
JP4503275B2 (en) | Waveform playback device | |
JPH03180896A (en) | Data generating device of electronic musical instrument | |
US7329811B2 (en) | Musical sound generation device capable of effectively utilizing the access timing for an unused slave sound source | |
JPH0535277A (en) | Electronic nusical instrument | |
JP3341777B2 (en) | Effect giving device | |
JP4191073B2 (en) | Waveform data output device | |
JP3928725B2 (en) | Music signal generator and legato processing program | |
JP4354268B2 (en) | Signal processing device | |
JP3180351B2 (en) | Effect device | |
JP3116447B2 (en) | Digital signal processor | |
JP3651675B2 (en) | Electronic musical instruments | |
JP2684820B2 (en) | Surround circuit | |
JP3178036B2 (en) | Signal processing device | |
JP3104873B2 (en) | Sound source device | |
JP3134840B2 (en) | Waveform sample interpolation device | |
JP2877012B2 (en) | Music synthesizer | |
JPH08234785A (en) | Sound source device | |
JP2000206972A (en) | Performance controller for waveform data | |
JP2814939B2 (en) | Waveform processing device | |
JP2915753B2 (en) | Electronic musical instrument | |
JPS6042797A (en) | Electronic musical instrument | |
JPH07248765A (en) | Electronic musical instrument |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061020 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100202 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100316 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100420 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100421 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130430 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |