JPH03216871A - Read data correction method - Google Patents
Read data correction methodInfo
- Publication number
- JPH03216871A JPH03216871A JP2013281A JP1328190A JPH03216871A JP H03216871 A JPH03216871 A JP H03216871A JP 2013281 A JP2013281 A JP 2013281A JP 1328190 A JP1328190 A JP 1328190A JP H03216871 A JPH03216871 A JP H03216871A
- Authority
- JP
- Japan
- Prior art keywords
- read
- data
- waveform
- sampling
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は読出しデータ補正方式に関し、特にPCM音源
における読出しデータの歪を小さくするのに好適な読出
しデータ補正方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a read data correction method, and particularly to a read data correction method suitable for reducing distortion of read data in a PCM sound source.
〔従来の技術)
従来、電子楽器等のPCM音源において、波形メモリか
らデータを読出す場合には、二つの整数部アドレスによ
って読出された二つの波形データを、小数部アドレスに
よって比例計算または三角関数を用いた演算等により補
正する方式が行われていた。[Prior Art] Conventionally, when reading data from a waveform memory in a PCM sound source such as an electronic musical instrument, two waveform data read out using two integer part addresses are subjected to proportional calculation or trigonometric function using a decimal part address. A method of correcting by calculation using , etc. was used.
第3図はその一例を示すものであり、アドレスの整数部
と小数部とを制御する手段を有し、内挿補間を行う方式
の説明図である。図中の●印を結ぶ実線の曲線は、原音
のアナログ波形を示しており、▲印はサンプリング点を
示している。この例では、1回のサンプリング周期で、
図の整数アドレスRおよびR+1に対応する波形データ
W(R)およびW(R+1)の二つを読出して、これと
アドレスの小数部Sとから、
W(R)’=W(R)+s{W(R+1)−W(R)}
但しW(R)’ :補正後波形データ(アドレスR+s
)W(R):読出した波形データ(アドレスR)W(R
+1):続出した波形データ(アドレスR+1)R:読
出しアドレスの整数部
S:続出しアドレスの小数部
なる補間演算により、アドレス(R+s)に対応する波
形データを得ている。なお、第3図中で、Sは再生時の
サンプリング魚、fsはサンプリング周期を示している
。FIG. 3 shows an example of this, and is an explanatory diagram of a method that has means for controlling the integer part and the decimal part of an address and performs interpolation. The solid curve connecting the ● marks in the figure shows the analog waveform of the original sound, and the ▲ marks show sampling points. In this example, in one sampling period,
Read out two waveform data W(R) and W(R+1) corresponding to integer addresses R and R+1 in the figure, and from this and the decimal part S of the address, W(R)'=W(R)+s{ W(R+1)−W(R)}
However, W(R)': Corrected waveform data (address R+s
)W(R): Read waveform data (address R)W(R
+1): Successive waveform data (address R+1) R: Integer part of read address S: Decimal part of successive address Waveform data corresponding to address (R+s) is obtained by interpolation calculation. In addition, in FIG. 3, S indicates the sampled fish during reproduction, and fs indicates the sampling period.
また、図中のOut(S−2 ), Out( S−
2 >+ ・・・は、サンプリングNIS−2,S−1
,・・・に対応するD/A変換出力を示している。In addition, Out(S-2) and Out(S-
2 >+ ... is sampling NIS-2, S-1
, . . . shows D/A conversion outputs corresponding to .
なお、上述の如き補正方式の例としては、例えば、特公
昭54−19291号公報,同60−38716号公報
に開示された方式等を挙げることができる。Incidentally, examples of the above-mentioned correction method include the methods disclosed in Japanese Patent Publication No. 54-19291 and Japanese Patent Publication No. 60-38716.
しかしながら、上記従来技術においては、補間を行って
も、必ず読出し誤差(図中のE,E’)が発生するとい
う基本的な問題がある。すなわち、第3図の場合、▲印
で示されるサンプリング点を結んだ曲線は破線のように
なり、●印を結ぶ実線の曲線(原音のアナログ波形)と
比較して、明らかに歪んだものとなる。これは、再生さ
れる楽音の音色に微妙な変化を生ずることになる。However, the above-mentioned conventional technology has a fundamental problem in that even if interpolation is performed, a readout error (E, E' in the figure) always occurs. In other words, in the case of Figure 3, the curve connecting the sampling points indicated by ▲ looks like a broken line, and compared to the solid curve connecting the ● marks (the analog waveform of the original sound), it is clearly distorted. Become. This results in subtle changes in the timbre of the reproduced musical sound.
本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の技術における上述の如き問題を解
消し、発生する読出し誤差を小さくすることが可能な読
出しデータ補正方式を提供することにある。The present invention has been made in view of the above circumstances, and its purpose is to provide a read data correction method capable of solving the above-mentioned problems in the conventional technology and reducing the read errors that occur. There is a particular thing.
(II題を解決するための手段〕
本発明の上記目的は、PCM音源における読出しデータ
の補正方式において、再生時サンプリング周波数を決定
する波形メモリ読出しアドレスのインクリメントデータ
の17N(N:自然数)を1サンプリング周期でN回加
算する手段と、N回加算する毎に波形メモリ読出しアド
レスの小数部が任意に指定される基準値よりもOまたは
1に近いか否かを判定する手段とを備え、該判定手段に
よる判定結果が真となったときにはそのN−M回目(M
4N以下の自然数)で波形メモリから波形データを読出
し、途中で真と判定されなかったときにはN回目で波形
メモリから波形データを読出すとともに、前記N−M回
目で読出した波形データを演算した結果を、前記N回目
に読出したデータを演算した結果を出力する時刻よりも
、再生時サンプリン周期のM/Nだけ早く出力すること
を特徴とする読出しデータ補正方式によって達成される
。(Means for Solving Problem II) The above object of the present invention is to reduce the increment data of 17N (N: natural number) of the waveform memory read address that determines the sampling frequency during playback to 1 in a read data correction method in a PCM sound source. The method includes means for adding N times in a sampling period, and means for determining whether the decimal part of the waveform memory read address is closer to O or 1 than an arbitrarily specified reference value every time the addition is performed N times. When the judgment result by the judgment means is true, the N-Mth (M
4N or less) is read from the waveform memory, and if it is not determined to be true in the middle, the waveform data is read from the waveform memory at the Nth time, and the result of calculating the waveform data read at the N-Mth time. This is achieved by a read data correction method characterized in that the read data correction method is characterized in that the read data is outputted earlier than the time at which the result of calculating the N-th read data is output by M/N of the sampling period during reproduction.
本発明に係る読出しデータ補正方式では、常に一定のサ
ンプリング周期で波形メモリの読出しアドレスを指定す
るのではなく、上記サンプリング周期をN等分した周期
でN回サンプリングする機会を作り、各サンプリング機
会において指定される波形メモリの読出しアドレスが整
数部から離れていない点を選択し、このような整数部か
ら離れていない点を波形メモリの読出しアドレスとじて
指定するようにすることにより、再生時のサンプリング
データが原音のアナログ波形から離れない(つまり誤差
が小さい)ようにするものである。In the read data correction method according to the present invention, instead of always specifying the read address of the waveform memory at a constant sampling period, the sampling period is divided into N equal periods, and opportunities are created for sampling N times, and each sampling period is By selecting a point where the specified read address of the waveform memory is not far from the integer part, and by specifying such a point not far from the integer part as the read address of the waveform memory, sampling during playback can be improved. This ensures that the data does not deviate from the original analog waveform (that is, the error is small).
これにより、目的とする再生される楽音の音色に微妙な
変化を生ずることを防止可能な読出しデータ補正方式を
実現することができる。Thereby, it is possible to realize a read data correction method that can prevent subtle changes in the timbre of the intended reproduced musical tone.
[実施例〕
以下、本発明の実施例を図面に基づいて詳細に説明する
。なお、以下に説明する実施例においては、前述のN=
2の場合を例として説明する。[Example] Hereinafter, an example of the present invention will be described in detail based on the drawings. In addition, in the embodiment described below, the above-mentioned N=
Case 2 will be explained as an example.
第1[Jは、本発明の一実施例を示す読出しデータ補正
方式の説明図である。第1図において、記号R,S,f
sは第3図に示したと同じ意味に用いられている。1. [J] is an explanatory diagram of a read data correction method showing an embodiment of the present invention. In Figure 1, symbols R, S, f
s is used in the same meaning as shown in FIG.
本実施例においては、再生時サンプリングNaS−2の
処理が終了した後、次のサンプリングにおいて、1 /
2 fs(fs:前述のサンプリング周期)に相当す
る波形メモリの読出しアドレスのインクリメント値(F
D/2)を前回の読出しアドレスに加算した結果、その
小数部が基準値(N=2では0.25)よりもOまたは
lに近い場合、つまり、0.25に満たないか、または
、0.75を越えている場合には、加算結果の読出しア
ドレスの整数部を用いて波形データを読出すというもの
である。In this embodiment, after the processing of sampling NaS-2 during playback is completed, in the next sampling, 1/
The increment value (F
D/2) to the previous read address, and if the decimal part is closer to O or l than the reference value (0.25 for N=2), that is, less than 0.25, or If it exceeds 0.75, the waveform data is read using the integer part of the read address resulting from the addition.
第2図に、上述の動作のフローチャートを示した。以下
、第2図に基づいて、動作の詳細を説明する。FIG. 2 shows a flowchart of the above-mentioned operation. The details of the operation will be explained below based on FIG. 2.
まず、前回再生したときの周期、つまり、前回実際に読
出したアドレス値ではなく、上記波形メモリの読出しア
ドレスのインクリメント値(F D/2)を 2回加算
した後の最終のアドレス値と、FD/2とを加算(ステ
ップ21)シた後、その加算結果の小数部が任意に指定
される基準値(ここでは、0.25)よりもOまたはl
に近いか否かをステップ22で判定する。First, the cycle of the last playback, that is, not the address value actually read last time, but the final address value after adding the increment value (F D / 2) of the read address of the waveform memory twice, and the FD /2 (step 21), the decimal part of the addition result is O or l lower than the arbitrarily specified reference value (0.25 in this case).
It is determined in step 22 whether or not it is close to .
この判定の結果が真であれば、この時点の波形メモリ読
出しアドレスで波形データを読出して演算部に送る(ス
テップ24)と同時に、ステップ25でもう一度上述の
FD/2をこの読出しアドレスに加算し、これを、この
再生周期の最終の波形メモリ読出しアドレスとしてラッ
チしておく。If the result of this judgment is true, the waveform data is read out at the current waveform memory read address and sent to the calculation section (step 24), and at the same time, the above-mentioned FD/2 is added to this read address again in step 25. , this is latched as the final waveform memory read address of this reproduction cycle.
また、前記ステップ22における判定の結果が偽であれ
ば、もう一度上述のFD/2を加算した後の波形メモリ
読出しアドレスで波形データの読出しを行い(ステップ
23と24)、演算部に送ると同時に、これを、この再
生周期の最終の波形メモリ読出しアドレスとしてラッチ
する。If the result of the determination in step 22 is false, the waveform data is read out at the waveform memory read address after adding the above-mentioned FD/2 (steps 23 and 24), and is sent to the calculation section at the same time. , this is latched as the final waveform memory read address of this reproduction cycle.
第1図に示した例では、再生時サンプリング患S−2の
処理が終了した後、まず、前述の波形メモリの読出しア
ドレスのインクリメント値(FD/2)を1回加算し、
再生時サンプリングNaS−1.5の処理において、こ
の点における読出しアドレスの小数部を前述の基準値0
.25と比較している。この場合には、再生時サンプリ
ングffis−1.5の点における読出しアドレスの小
数部は、前述の基準値0.25より小さいので、この点
での読出しアドレスに対応する波形メモリデータを読出
す。In the example shown in FIG. 1, after the processing of sample S-2 during playback is completed, first, the increment value (FD/2) of the read address of the waveform memory mentioned above is added once,
In the process of sampling NaS-1.5 during playback, the decimal part of the read address at this point is set to the above-mentioned reference value 0.
.. It is compared with 25. In this case, since the fractional part of the read address at the point of sampling ffis-1.5 during reproduction is smaller than the above-mentioned reference value 0.25, the waveform memory data corresponding to the read address at this point is read.
次に、上記アドレスの値に、前述の波形メモリの読出し
アドレスのインクリメント値(FD/2)をもう1回加
算し、これを基準として、上と同様の動作を繰り返す。Next, the increment value (FD/2) of the read address of the waveform memory described above is added once again to the value of the above address, and the same operation as above is repeated using this as a reference.
この場合にも、また、波形メモリの読出しアドレスのイ
ンクリメント値(FD/2)を1回加算した点における
読出しアドレスの小数部が、前述の基準値0.25より
小さいので、この点での読出しアドレスに対応する波形
メモリデータを読出す。In this case as well, since the decimal part of the read address at the point where the increment value (FD/2) of the read address of the waveform memory is added once is smaller than the reference value 0.25, the read at this point is Read the waveform memory data corresponding to the address.
同様に、上記アドレスの値に、波形メモリの読出しアド
レスのインクリメント値(F.D/2)をもう1回加算
し、これを基準として、上と同様の動作を繰り返す。今
度は、波形メモリの読出しアドレスのインクリメント値
(FD/2)を1回加算した点における読出しアドレス
の小数部は、前述の基準値0.25より大きいので、波
形メモリの読出しアドレスのインクリメント値(FD/
2)をもう1回加算する。今度は、波形メモリの読出し
アドレスのインクリメント値(FD/2)を2回加算し
た点における読出しアドレスの小数部が、0.75より
大きいので、この点における読出しアドレスに対応する
波形メモリデータを読出す。Similarly, the increment value (F.D/2) of the read address of the waveform memory is added once again to the value of the above address, and the same operation as above is repeated using this as a reference. This time, since the decimal part of the read address at the point where the increment value (FD/2) of the waveform memory read address is added once is larger than the reference value 0.25, the increment value (FD/2) of the waveform memory read address is FD/
Add 2) once more. This time, the decimal part of the read address at the point where the increment value (FD/2) of the read address of the waveform memory is added twice is greater than 0.75, so the waveform memory data corresponding to the read address at this point is read. put out.
以下、同様の動作を繰り返すことにより、従来より相対
的に誤差の小さな再生特サンプリングデータを得ること
ができる。D/A変換出力の出力タイミングは、図に示
す如く、再生時のサンプリングタイミングに応じて調整
することが必要であることには、注意を要する。Thereafter, by repeating the same operation, it is possible to obtain reproduction characteristic sampling data with relatively smaller errors than in the past. It should be noted that the output timing of the D/A conversion output needs to be adjusted according to the sampling timing during reproduction, as shown in the figure.
上記実施例においては、N=2とした例を示したが、こ
れは一例であり、本発明はこれに限定されるべきもので
はない。Nの値として,2〜5程度が好ましいものであ
る。In the above embodiment, an example was shown in which N=2, but this is just an example, and the present invention should not be limited to this. The value of N is preferably about 2 to 5.
〔発明の効果1
以上、詳細に説明した如く、本発明によれば、PCM音
源における読出しデータの補正方式において、再生時サ
ンプリング周波数を決定する波形メモリ読出しアドレス
のインクリメントデータの1/N(N:自然数)を1サ
ンプリング周期でN回加算する手段と、N回加算する毎
に波形メモリ読出しアドレスの小数部が任意に指定され
る基準値よりも0またはlに近いか否かを判定する手段
とを備え、該判定手段による判定結果が真となったとき
にはそのN−M回目(M:N以下の自然数)で波形メモ
リから波形データを読出し、途中で真と判定されなかっ
たときにはN回目で波形メモリから波形データを読出す
とともに、前記N−M回目で読出した波形データを演算
した結果を、前記N回目に読出したデータを演算した結
果を出力する時刻よりも、再生時サンプリン周期のM/
Nだけ早く出力するようにしたので、発生する読出し誤
差を小さくすることが可能な読出しデータ補正方式を実
現できるという顕著な効果を奏する。[Effect of the Invention 1] As explained in detail above, according to the present invention, in the correction method of read data in a PCM sound source, 1/N (N: (a natural number) N times in one sampling period; and means for determining whether the decimal part of the waveform memory read address is closer to 0 or l than an arbitrarily specified reference value each time the addition is performed N times. When the determination result by the determination means is true, the waveform data is read from the waveform memory at the N-Mth time (M: a natural number less than or equal to N), and when the determination result is not determined to be true on the way, the waveform data is read out at the Nth time. At the same time as reading the waveform data from the memory, the result of calculating the waveform data read out the N-Mth time is set to M/M of the sampling period during playback than the time when the result of calculating the data read out the Nth time is output.
Since the output is made earlier by N, it is possible to realize a read data correction method that can reduce the read error that occurs, which is a remarkable effect.
第1図は本発明の一実施例である読出しデータ補正方式
の説明図、第2図は実施例の動作フローチャート、第3
図は従来の内挿補間を行う方式の説明図である。
R−α,R,R十α:波形メモリアドレス整数部、S−
α,S,S+α:再生時サンプリング胤、OutD/A
変換出力魚、21〜25:処理ステップ。
第
2
図
波形デ
夕演算部へFIG. 1 is an explanatory diagram of a read data correction method which is an embodiment of the present invention, FIG. 2 is an operation flowchart of the embodiment, and FIG.
The figure is an explanatory diagram of a conventional interpolation method. R-α, R, R10α: waveform memory address integer part, S-
α, S, S+α: Sampling seed during playback, OutD/A
Conversion output fish, 21-25: Processing steps. Figure 2 To the waveform data calculation section
Claims (1)
いて、再生時サンプリング周波数を決定する波形メモリ
読出しアドレスのインクリメントデータの1/N(N:
自然数)を1サンプリング周期でN回加算する手段と、
N回加算する毎に波形メモリ読出しアドレスの小数部が
任意に指定される基準値よりも0または1に近いか否か
を判定する手段とを備え、該判定手段による判定結果が
真となったときにはそのN−M回目(M:N以下の自然
数)で波形メモリから波形データを読出し、途中で真と
判定されなかったときにはN回目で波形メモリから波形
データを読出すとともに、前記N−M回目で読出した波
形データを演算した結果を、前記N回目に読出したデー
タを演算した結果を出力する時刻よりも、再生時サンプ
リン周期のM/Nだけ早く出力することを特徴とする読
出しデータ補正方式。(1) In the correction method of read data in a PCM sound source, 1/N (N:
a natural number) N times in one sampling period;
and means for determining whether the decimal part of the waveform memory read address is closer to 0 or 1 than an arbitrarily specified reference value every time the addition is performed N times, and the determination result by the determination means is true. Sometimes, the waveform data is read from the waveform memory at the NMth time (M: a natural number less than or equal to N), and if it is not determined to be true on the way, the waveform data is read from the waveform memory at the Nth time, and at the same time, the waveform data is read out from the waveform memory at the N-Mth time. A read data correction method characterized in that the result of calculating the waveform data read out is outputted earlier by M/N of the sampling period during reproduction than the time at which the result of calculating the data read out the Nth time is outputted. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013281A JPH03216871A (en) | 1990-01-23 | 1990-01-23 | Read data correction method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013281A JPH03216871A (en) | 1990-01-23 | 1990-01-23 | Read data correction method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03216871A true JPH03216871A (en) | 1991-09-24 |
Family
ID=11828817
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2013281A Pending JPH03216871A (en) | 1990-01-23 | 1990-01-23 | Read data correction method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03216871A (en) |
-
1990
- 1990-01-23 JP JP2013281A patent/JPH03216871A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR970002843A (en) | Sound generation method and device | |
| JP2655650B2 (en) | Time axis correction device | |
| JP3974408B2 (en) | SAMPLING SIGNAL GENERATION DEVICE, SAMPLING SIGNAL REPRODUCTION DEVICE, AND METHOD THEREOF | |
| JPH07248797A (en) | Method and device for reproducing digital data | |
| JPS5898793A (en) | Voice synthesizer | |
| JP3252296B2 (en) | Waveform data output device | |
| JP2684820B2 (en) | Surround circuit | |
| JP2769690B2 (en) | Delay device | |
| JP2900076B2 (en) | Waveform generator | |
| JP2669073B2 (en) | PCM sound source device | |
| KR950007152Y1 (en) | Variable otave address generating apparatus of electronic musical instrument | |
| US20030182107A1 (en) | Voice signal synthesizing method and device | |
| JP2000206972A (en) | Performance controller for waveform data | |
| JP3308646B2 (en) | Delay device | |
| JPH0664477B2 (en) | Speech synthesizer | |
| JP3223555B2 (en) | Waveform reading device | |
| JP2900077B2 (en) | Waveform recording / playback method and waveform playback device | |
| JPS59162595A (en) | Musical tone sythesizer | |
| JP2008112056A (en) | Audio sigmal processor | |
| JPS60117922A (en) | Digital/analog converting circuit | |
| JPH02108099A (en) | Waveform interpolation device | |
| JPH09212193A (en) | Pitch converter | |
| JP2547532B2 (en) | Speech synthesizer | |
| JPH0631988B2 (en) | Musical sound generator | |
| JPH0560118B2 (en) |