JP4503275B2 - Waveform playback device - Google Patents

Waveform playback device Download PDF

Info

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
Application number
JP2003408393A
Other languages
Japanese (ja)
Other versions
JP2005172875A (en
Inventor
哲也 平野
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 JP2003408393A priority Critical patent/JP4503275B2/en
Priority to PCT/JP2004/017685 priority patent/WO2005057547A1/en
Priority to US10/581,971 priority patent/US7329811B2/en
Publication of JP2005172875A publication Critical patent/JP2005172875A/en
Application granted granted Critical
Publication of JP4503275B2 publication Critical patent/JP4503275B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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 CPU 111, a ROM 112, a RAM 113, a panel scan circuit 114a, a keyboard scan circuit 115a, a master sound source 100, and a slave sound source 101 via a system bus 110. ing. The system bus 110 is used for sending and receiving address signals, data signals, control signals, and the like.

CPU111は、ROM112に記憶されている制御プログラムに従って動作することにより本電子楽器の全体を制御する。   The CPU 111 controls the entire electronic musical instrument by operating according to a control program stored in the ROM 112.

上記ROM112は、上述した制御プログラムの他に、CPU111が参照する種々のデータを記憶する。   The ROM 112 stores various data referred to by the CPU 111 in addition to the control program described above.

上記RAM113は、CPU111が各種処理を実行する際に、種々のデータを一時記憶するために使用される。このRAM113には、レジスタ、カウンタ、フラグ等が定義されている。このうちの主なものについて説明する。なお、下記以外については、必要の都度説明する。   The RAM 113 is used for temporarily storing various data when the CPU 111 executes various processes. In the RAM 113, registers, counters, flags, and the like are defined. The main ones will be described. Except for the following, explanation will be made as necessary.

(a)音色設定フラグ:後述する操作パネル114の設定により、マスタ音源100やスレーブ音源101から発生させる音色をどのチャンネルから発生させるかを示すためのデータを記憶する。   (A) Tone setting flag: Stores data for indicating from which channel the tone color generated from the master tone generator 100 or the slave tone generator 101 is generated according to the setting of the operation panel 114 described later.

(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 master tone generator 100 and a slave tone generator 101, and a waveform memory 102 used in common for them as described later with respect to the generation of musical sounds. Depending on the setting, the tone may be generated only by the master sound source, or the tone color setting flag may be changed by the player's operation on the operation panel 114 to generate the tone only by the master sound source. In this case, this flag is set (= 1). At this time, the mode switching means 1 to be described later refers to the 1-chip mode flag and outputs a mode switching signal (SNGF4) (0: 2 chip mode, 1: 1 chip mode).

パネルスキャン回路114aには、操作パネル114が接続されている。操作パネル114には、例えば同時発音数を増やさず、例えば64チャンネルから逆に32チャンネルにするなど、音源を単体(マスタ音源100だけ)で使用する場合があり(使用する音色数が少ない場合など)、その場合は、該操作パネル114の音色選択により音色設定フラグの設定がなされ、32チャンネルなどのチャンネル設定を行うことがある。また、上述のように、演奏者の操作パネル114の操作により、音色設定フラグが変更され、マスタ音源だけで楽音を発生させる場合もある。ピッチ変化の範囲が広い音色もあり、その場合マスタ音源だけで楽音を発生させる場合がある。尚、図示は省略するが、各スイッチの設定状態を表示するLED表示器、種々のメッセージを表示するLCD等が設けられている。   An operation panel 114 is connected to the panel scan circuit 114a. For example, the operation panel 114 may be used as a single sound source (only the master sound source 100), for example, without increasing the number of simultaneous sounds, instead of changing from 64 channels to 32 channels (for example, when the number of tones used is small). In that case, a timbre setting flag is set by selecting a timbre on the operation panel 114, and channel settings such as 32 channels may be performed. Further, as described above, the tone color setting flag may be changed by the player's operation on the operation panel 114, and a musical tone may be generated only by the master sound source. Some timbres have a wide range of pitch changes, and in that case, a musical tone may be generated only by the master sound source. Although not shown, an LED display that displays the setting state of each switch, an LCD that displays various messages, and the like are provided.

上記チャンネル設定や演奏者の操作パネル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 master sound source 100 is used. When the one-chip mode flag is canceled by changing the channel setting or operating the operation panel 114, the master sound source 100 and the slave sound source 101 can set channels exceeding 32 channels.

上記パネルスキャン回路114aは、CPU111からの指令に応答して操作パネル114上の各スイッチをスキャンし、このスキャンにより得られた各スイッチの開閉状態を示す信号に基づいて、各スイッチを1ビットに対応させたパネルデータを作成する。各ビットは、例えば「1」でスイッチオン状態、「0」でスイッチオフ状態を表す。このパネルデータは、システムバス110を介してCPU111に送られる。このパネルデータは、操作パネル114上のスイッチのオンイベント又はオフイベントが発生したかどうかを判断するために使用される。   The panel scan circuit 114a scans each switch on the operation panel 114 in response to a command from the CPU 111, and sets each switch to 1 bit based on a signal indicating the open / closed state of each switch obtained by the scan. Create the corresponding panel data. Each bit represents, for example, “1” indicating a switch-on state, and “0” indicating a switch-off state. This panel data is sent to the CPU 111 via the system bus 110. This panel data is used to determine whether an on event or an off event of a switch on the operation panel 114 has occurred.

また、パネルスキャン回路114aは、CPU111から送られてきた表示データを操作パネル114上のLED表示器及びLCDに送る。これにより、CPU111から送られてきたデータに従って、LED表示器が点灯/消灯され、またLCDにメッセージが表示される。   Further, the panel scan circuit 114a sends the display data sent from the CPU 111 to the LED display and the LCD on the operation panel 114. Thereby, the LED display is turned on / off according to the data sent from the CPU 111, and a message is displayed on the LCD.

上記鍵盤スキャン回路115aには、鍵盤115で生成される押鍵データを検出する。すなわち、これらの鍵盤115には、夫々2点スイッチが設けられており、任意の鍵盤115が所定以上の深さまで押し下げられたことを検出すると、その鍵盤の音高データ(キーナンバ)の押鍵信号を生成すると共に、2点スイッチ間を通過する速度からベロシティを生成し、それらを押鍵データとして、鍵盤スキャン回路115aに送る。2点スイッチとしては、鍵が所定以上の深さまで押し下げられたことを検出できる光センサ、圧力センサ、その他のセンサを使用できる。鍵盤スキャン回路115aは、2点スイッチからの押鍵データを受け取ると、それをCPU111に送る。   The keyboard scan circuit 115a detects key press data generated by the keyboard 115. That is, each of these keyboards 115 is provided with a two-point switch. When it is detected that an arbitrary keyboard 115 is pressed down to a predetermined depth or more, a key pressing signal of pitch data (key number) of the keyboard is detected. Are generated from the speed passing between the two-point switches, and are sent as key press data to the keyboard scan circuit 115a. As the two-point switch, an optical sensor, a pressure sensor, or other sensors that can detect that the key has been pressed down to a predetermined depth or more can be used. When the keyboard scan circuit 115 a receives key depression data from the two-point switch, it sends it to the CPU 111.

鍵盤スキャン回路115aからの押鍵データは、CPU111により、RAM113上の音色設定フラグ及び1チップモードフラグが参照され、夫々のチャンネルに対応するマスタ音源100、乃至マスタ音源100及びスレーブ音源101に送られることになる。   The key depression data from the keyboard scan circuit 115a is sent by the CPU 111 to the master tone generator 100, the master tone generator 100, and the slave tone generator 101 corresponding to each channel with reference to the tone color setting flag and the one-chip mode flag on the RAM 113. It will be.

マスタ音源100及びスレーブ音源101は、1つの波形メモリ102を共用し、該波形メモリ102に対して、読み出しアドレスを発生し、原データを読み出す。読み出された原データの補間処理を行った後、同じく同回路で生成された音色毎のエンベロープを乗算し、夫々の音色の波形データを設定されたチャンネル分累算して、外部に波形データとして出力する。ただし、上記スレーブ音源101は、通常の音源構成を有しているが、そこから発せられる波形メモリ102の読み出しアドレスは、マスタ音源100に入力され、後述するように、他音源アドレス記憶手段4に一時的に記憶される。また波形メモリ102から読み出された原データは夫々の音源100及び102に入力される。さらに、これらの音源から出力された波形データは、D/A変換回路116に入力され、デジタル−アナログ変換され、アンプ117で増幅され、スピーカ118から外部に楽音として放出される。   The master sound source 100 and the slave sound source 101 share one waveform memory 102, generate a read address for the waveform memory 102, and read the original data. After interpolating the read original data, multiply the envelope for each timbre generated by the same circuit, accumulate the waveform data of each timbre for the set channel, and output the waveform data to the outside. Output as. However, although the slave sound source 101 has a normal sound source configuration, the read address of the waveform memory 102 emitted from the slave sound source 101 is input to the master sound source 100 and stored in the other sound source address storage means 4 as will be described later. Temporarily stored. The original data read from the waveform memory 102 is input to the sound sources 100 and 102, respectively. Further, the waveform data output from these sound sources is input to the D / A conversion circuit 116, converted from digital to analog, amplified by the amplifier 117, and emitted from the speaker 118 to the outside as a musical sound.

上記マスタ音源100は、図2に示すように、モード切替手段1と、累算器2と、上位アドレス加工手段3と、他音源アドレス記憶手段4と、アドレス切替出力手段5と、波形データレジスタ6と、サンプルバッファ7と、補間係数記憶手段8と、補間係数抽出手段9と、サンプル補間手段10と、選択手段11とを備えている。   As shown in FIG. 2, the master sound source 100 includes a mode switching means 1, an accumulator 2, a higher address processing means 3, another sound source address storage means 4, an address switching output means 5, a waveform data register. 6, a sample buffer 7, an interpolation coefficient storage unit 8, an interpolation coefficient extraction unit 9, a sample interpolation unit 10, and a selection unit 11.

該マスタ音源100は、専用のLSIで設計されており、図示しないが、内部に、バッファやレジスタと、補間時の所定の係数を記憶する固定記憶部などから構成されている。それによって、上記各手段が構成されることになる。   The master tone generator 100 is designed by a dedicated LSI, and includes a buffer, a register, a fixed storage unit that stores predetermined coefficients at the time of interpolation, and the like, although not shown. As a result, each of the above means is configured.

そのうちモード切替手段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 CPU 111, and sends the mode switching signal (SNGF4) to the address switching output means 5, the selector 23 of the accumulator 2, and the selection means described later. 11: [0: 2 chip mode (= sound source multiple use mode), which means that the master sound source 100 and the slave sound source 101 are used; = Sound source unit use mode), meaning that only the master sound source 100 is used].

累算器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 accumulator 2 has a configuration as shown in FIG. 3 to be described later, and a designated pitch is output, and an accumulator 20 and an adder 21 for accumulating the value with the previous value are mainly configured. That is, as shown in the figure, that is, a pitch parameter (omg) in a floating point format is stored in the fixed storage unit, and when it is read, the exponent part is input to a barrel shifter 24 described later. The mantissa part is directly input to the multiplier 22 and the selector 23. The multiplier 22 doubles the value of the mantissa part, and the selector 23 uses the mode switching signal (SNGF4) from the mode switching means 1 to change the value of the mantissa part as it is in the 2-chip mode. In the 1-chip mode, a value obtained by doubling the mantissa is input to the barrel shifter 24. Then, after being converted into a fixed-point format by the barrel shifter 24, it is input to the adder 21 as a designated pitch. Thereafter, as described above, the pitch value is accumulated with the previous value. In the 1-chip mode, the value obtained by doubling the mantissa is input to the barrel shifter 24 because the pitch parameter is normalized by the maximum value that can be set, and the 1-chip mode is an absolute value compared to the 2-chip mode. This is because a double pitch can be set.

上位アドレス加工手段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 accumulator 2 into continuous addresses. That is, as shown in FIG. 4, the higher-order address processing means 3 is composed of a register (WAMtr) 30 and an LSB control unit 31, and the higher-order data (integer part) output from the accumulator 2 is an even address. Rounded to a value (LSB control unit 31 performs processing to mask the value of the least significant bit of the integer part to 0) and generates a subsequent address (LSB control unit 31 converts the value of the least significant bit of the integer part to 1 is masked). That is, the first address output from the higher-order address processing means 3 in the first half of the same channel (timing control signal 0) is input to the address switching output means 5 according to the waveform memory access timing. After (SNGF4MA), in the second half of the same channel (timing control signal 1), it is also input to the address switching output means 5 (SNGF4MA).

他音源アドレス記憶手段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 slave sound source 101. This address value is obtained from the address switching output means 5 described later when the timing signal for accessing the waveform memory 102 changes to the second half of the same channel in the 2-chip mode where the mode setting signal of the mode switching means 1 is 0. This is output as the waveform readout address of the slave sound source 101.

アドレス切替出力手段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 accumulator 2 according to the mode switching signal (SNGF4) from the mode switching means 1 and the waveform memory 102 access timing. The address stored in the other sound source address storage means 4 (read address of the slave sound source 101) is switched and output (SNGF2MA: address in the 2-chip mode, that is, SNGF4 = 0). When the mode switching signal (SNGF4) by the mode switching means 1 indicates the one-chip mode (sound source single use mode) (that is, when SNGF4 = 1), the address indicated by the upper data of the accumulator 2 is the upper address. The address processed by the processing means 3 (the value of the integer part with the least significant bit masked to 0 by the LSB control unit 31) and the address processed by the upper address processing means 3 following the address (first address) (Address of the integer part with the least significant bit masked to 1) by the LSB control unit 31 (SNGF4MA).

波形データレジスタ6は、図2及び図4に示すようにして出力されたアドレスに基づいて、波形メモリ102から読み出された波形データを記憶する。後述する図5及び図6では、DWa及びDWbで示される。   The waveform data register 6 stores the waveform data read from the waveform memory 102 based on the address output as shown in FIGS. In FIG. 5 and FIG. 6 to be described later, it is indicated by DWa and DWb.

サンプルバッファ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 sample interpolation unit 10 is a four-point interpolation process, three waveform data before being newly input are stored. In FIGS. 5 and 6 to be described later, it is indicated by Z1, Z2 and Z3. In the case of 2-point interpolation processing, one waveform data before being newly input is stored. The 4-point interpolation process in waveform data is a process in which values of two points before and after are obtained, and the value of one point between them is used as an interpolation value. The two-point interpolation process is a process in which a value between points is obtained as a value to be interpolated.

補間係数記憶手段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 accumulator 2. That is, in the example of FIG. 5A, the interpolation coefficient curve is stored in the interpolation coefficient storage means 8 in 512 words (9 bits), and the memory address of the interpolation coefficient curve is 0 to 127, 128 to 255, 256 to If it is classified into four groups of 383 and 384 to 511, if the decimal part output from the accumulator 2 has the lower 7 bits, four interpolation coefficients can be extracted simultaneously. That is, the first interpolation coefficient C0 has a coefficient value of an address value of 0+ (0 to 127), and the second C1 has a coefficient value of an address value of 128+ (0 to 127). The coefficient value of the address value of 256+ (0 to 127) is extracted from C2, and the coefficient value of the address value of 384+ (0 to 127) is extracted from the fourth C3.

通常の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 waveform memory 102 and stored in the waveform data register DWa via the register MWpD. Is multiplied by the values of the waveform data previously read into the sample buffers Z1, Z2, and Z3 by the values of the interpolation coefficients C1, C2, and C3, respectively, and finally these values are accumulated. (Here, the data stored in the waveform data register DWa for each sample progress is stored in the sample buffer Z1, and the data stored in the sample buffer Z1 is stored in the sample buffer Z2. The data stored in the sample buffer Z2 is shifted and updated in the sample buffer Z3). The configuration of the present invention will be described later with reference to FIG.

サンプル補間手段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 coefficient extracting means 9. Interpolate. A more specific configuration includes multipliers 10a to 10d and an accumulator 10e, as shown in FIG. This interpolation method will be described later.

選択手段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 accumulator 2. This state will be described with reference to FIGS.

本実施例のサンプル補間手段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 sample interpolation unit 10 shown in FIG. 6 are all interpolation coefficients extracted from the interpolation coefficient extraction unit 9. Further, the waveform data read from the waveform memory 102 is taken into the register MWpD. In the figure, DWa and DWb are the waveform data register 6, and Z 1, Z 2 and Z 3 are the sample buffer 7.

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 accumulator 2 of the master sound source 100 in the first half of the same one channel time by the address switching output means 5. The waveform data specified and read by the integer part: SNGF2MA) and the address (SNGF2MA) stored in the other sound source address storage means 4 in the second half of the same one channel time by the address switching output means 5 The waveform data specified and read in step S1 are sequentially acquired, and the other waveform data register DWb is not used.

また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 accumulator 2 of the master tone generator 100 is input to one of the input sides of the AND circuit constituting the selection means 11 again. On the other side, the mode switching signal (SNGF4; 0: 2 chip mode, 1: 1 chip mode) of the mode switching means 1 is input as an input signal.

上述のように、モード切替信号(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 accumulator 2 of the master tone generator 100 in the first half of the same channel time by the address switching output means 5. And the waveform data designated and read by the address switching output means 5 at the address stored in the other sound source address storage means 4 in the latter half of the same channel time. Together with the previous waveform data acquired sequentially and stored in the sampling buffers Z1, Z2 and Z3, and interpolation coefficients Ca and Cb, respectively. Cc and Cd are output after being multiplied.

他方モード切替信号(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 (accumulator 2 address) have progressed out of the three sample buffers. This is because if the data is not always read in the order of even / odd, continuous samples cannot be obtained. Therefore, the LSB control unit 31 always controls the order of even and odd numbers.

次に上位アドレスの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 mode switching unit 1 refers to the one-chip mode flag on the RAM 113 and is in the one-chip mode (= 0) in which only the master sound source 100 is used, the address switching output unit 5 The first address output from the higher-order address processing means 3 is output as an address for accessing the waveform memory 102 in the first half of the same channel, and the address continuous to the first-half address by the higher-order address processing means 3 is set to the same channel. In the latter half, it is output as an address for accessing the waveform memory 102. Based on these addresses, the waveform data is read from the waveform memory 102 to the waveform data register 6 side.

他方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 waveform memory 102 address) is 0. For each sample, the waveform data in the waveform data register 6 and the sample buffer 7 is selected and output to the multipliers 10 a to 10 d of the sample interpolation means 10.

また累算器2の小数部(7bit)に基づき、補間係数抽出手段9によって、補間係数記憶手段8に記憶されている補間係数カーブ(512ワード)から、4点の補間係数が抽出され、同じくサンプル補間手段10の乗算器10a〜10dに出力することになる。   Further, based on the decimal part (7 bits) of the accumulator 2, the interpolation coefficient extraction means 9 extracts four interpolation coefficients from the interpolation coefficient curve (512 words) stored in the interpolation coefficient storage means 8, and similarly. This is output to the multipliers 10a to 10d of the sample interpolation means 10.

従って、該サンプル補間手段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 slave sound source 101 that is not used can be assigned as the access timing of the master sound source 100. Therefore, the upper limit of the reproduction pitch range can be expanded by one octave.

これに対し、従来構成では、同図の従来として表されたタイミングチャートに示されるように、使用していないスレーブ音源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 slave sound source 101 that is not used is left as it is (left side in the middle of FIG. 9) or the master sound source. The access timing of 100 is extended (right side in the middle of FIG. 9).

(実施例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 accumulator 2 indicated by the value in the Y-axis direction increases, the interpolation coefficient A gradually increases and the interpolation coefficient A The coefficient B decreases. Crossing in the middle, the interpolation coefficient A becomes 1 and the interpolation coefficient B becomes 0. After that, both are reversed again and the same state is repeated. The extracted interpolation coefficient is output to the sample interpolation means 10 as a coefficient for performing two-point interpolation.

以上の第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 slave sound source 101 that is not used can be assigned as the access timing of the master sound source 100. In addition, the upper limit of the reproduction pitch range can be extended by one octave.

(実施例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 waveform memory 102 is in a state where 16-bit data is stored in a 16-bit bus. On the other hand, in this embodiment, the waveform memory 102 is similarly configured to store data of 8 bits per sample using a 16-bit bus. Therefore, in the configuration of this embodiment, two waveform data are read for each sound source in the two-chip mode. In the 1-chip mode, two waveform data can be read at one access timing, and a total of four waveform data can be acquired in the waveform data register 6 at the first and second half access timings of the same channel. become. Therefore, four registers DWa to DWd are required as registers DWa and DWb in FIG. Further, the data in the waveform data register 6 and the sample buffer 7 output to the multiplier of the selection means 11 are four continuous data among the values of DWd, DWc, DWb, DWa, Z1, Z2, and Z3.

以上の第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 master sound source 100, the upper limit of the range of the reproduction pitch can be extended by one octave similarly in such a configuration.

尚、本発明の波形再生装置は、上述の図示例にのみ限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   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 is a circuit schematic diagram of an electronic musical instrument in which a configuration of a waveform reproduction device according to the present invention is used. マスタ音源100の機能ブロック構成を示す説明図である。3 is an explanatory diagram showing a functional block configuration of a master sound source 100. FIG. 累算器2の構成を示す説明図である。3 is an explanatory diagram showing a configuration of an accumulator 2. FIG. 上位アドレス加工手段3とアドレス切替出力手段5の構成を示す説明図である。It is explanatory drawing which shows the structure of the high-order address processing means 3 and the address switching output means 5. 補間係数カーブの記憶される補間係数記憶手段8の構成と、従来の構成における該補間係数カーブを用いた4ポイント補間処理の構成の一例を示す説明図である。It is explanatory drawing which shows an example of the structure of the interpolation coefficient memory | storage means 8 in which an interpolation coefficient curve is memorize | stored, and the structure of the 4-point interpolation process using this interpolation coefficient curve in the conventional structure. 本発明の第1実施例構成における上記補間係数カーブを用いた4ポイント補間処理の構成を示す説明図である。It is explanatory drawing which shows the structure of the 4-point interpolation process using the said interpolation coefficient curve in 1st Example structure of this invention. 選択手段11の構成とその入出力信号の状態を示す説明図である。It is explanatory drawing which shows the structure of the selection means 11, and the state of the input-output signal. 本実施例構成の2チップモードにおけるマスタ音源100及びスレーブ音源101から波形メモリ102へのアクセスタイミング状態を示すタイミングチャートである。It is a timing chart which shows the access timing state to the waveform memory 102 from the master sound source 100 and the slave sound source 101 in the 2-chip mode of the configuration of the present embodiment. 本実施例構成及び従来構成の1チップモードにおけるマスタ音源100から波形メモリ102へのアクセスタイミング状態を示すタイミングチャートである。It is a timing chart which shows the access timing state from the master sound source 100 to the waveform memory 102 in the 1-chip mode of the configuration of this embodiment and the conventional configuration. 本発明の第2実施例構成における読み出し波形データの補間処理部分だけを取り出して示す概略説明図である。It is a schematic explanatory drawing which takes out and shows only the interpolation process part of the read waveform data in 2nd Example structure of this invention. 2点補間の場合の補間係数データの記憶状態を示す説明図である。It is explanatory drawing which shows the memory | storage state of the interpolation coefficient data in the case of two-point interpolation. 本発明の第3実施例構成における、同じく読み出し波形データの補間処理部分だけを取り出して示す概略説明図である。It is a schematic explanatory drawing which takes out only the interpolation process part of the read waveform data similarly in the structure of 3rd Example of this invention.

符号の説明Explanation of symbols

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 SYMBOLS 1 Mode switching means 2 Accumulator 3 Upper address processing means 4 Other sound source address storage means 5 Address switching output means 6 Waveform data register 7 Sample buffer 8 Interpolation coefficient storage means 9 Interpolation coefficient extraction means 10 Sample interpolation means 10a to 10d Multiplier 10e Accumulator 11 Selection means 20 Accumulator 21 Adder 22 Multiplier 23 Selector 24 Barrel shifter 30 WAMtr register 31 LSB control unit 100 Master sound source 101 Slave sound source 102 Waveform memory 110 System bus 111 CPU
112 ROM
113 RAM
114 Operation Panel 114a Panel Scan Circuit 115 Keyboard 115a Keyboard Scan Circuit 116 D / A Conversion Circuit 117 Amplifier 118 Speaker

Claims (2)

音源単体使用モードと複数使用モードの切り替え手段を持ち、複数使用モードの時複数の音源の波形メモリアクセスを一手に引き受けるマスタ音源が、自身の1チャンネル演算タイムスロット中にそれら複数の音源の波形メモリアクセスを時分割で行う音源を備えた波形再生装置であって、
音源単体使用モードと複数使用モードの切り替えを行うモード切替手段と、
指定したピッチを累算する累算器と、
累算器の上位データを連続したアドレスに加工する上位アドレス加工手段と、
他の音源からの波形メモリへのアドレスを受信し記憶する他音源アドレス記憶手段と、
上記モード切替手段によるモード切り替えとアクセスタイミングに応じて、上記累算器の上位データが示すアドレスと他音源アドレス記憶手段に記憶されたアドレスとを切り替えて出力すると共に、音源単体使用モードの時は、上記累算器の上位データが示すアドレス及びそのアドレスに連続する上位アドレス加工手段で加工されたアドレスを出力するアドレス切替出力手段と、
出力されたアドレスに基づいて、波形メモリから読み出された波形データを記憶する波形データレジスタと、
前のアクセスタイミングで読み出され該波形データレジスタに記憶されている波形データを、補間ポイント数−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 .
上記サンプル補間手段によるサンプル補間が、4ポイント補間で行われることを特徴とする請求項1記載の波形再生装置。   2. A waveform reproducing apparatus according to claim 1, wherein the sample interpolation by the sample interpolation means is performed by four-point interpolation.
JP2003408393A 2003-12-08 2003-12-08 Waveform playback device Expired - Fee Related JP4503275B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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