JP2007241128A - Waveform data conversion apparatus - Google Patents

Waveform data conversion apparatus Download PDF

Info

Publication number
JP2007241128A
JP2007241128A JP2006066600A JP2006066600A JP2007241128A JP 2007241128 A JP2007241128 A JP 2007241128A JP 2006066600 A JP2006066600 A JP 2006066600A JP 2006066600 A JP2006066600 A JP 2006066600A JP 2007241128 A JP2007241128 A JP 2007241128A
Authority
JP
Japan
Prior art keywords
waveform data
word length
point
exponent part
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006066600A
Other languages
Japanese (ja)
Other versions
JP4505751B2 (en
Inventor
Goro Sakata
吾朗 坂田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2006066600A priority Critical patent/JP4505751B2/en
Publication of JP2007241128A publication Critical patent/JP2007241128A/en
Application granted granted Critical
Publication of JP4505751B2 publication Critical patent/JP4505751B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To attain a waveform data conversion apparatus in which sound quality degradation caused by truncation is avoided, while keeping required resolution. <P>SOLUTION: In the data format conversion apparatus 22, a 24-bit waveform data of a fixed point form are converted to the waveform data of a floating point form, which is composed of a 3-bit exponent part to which discontiguous exponential is allocated, and a 13-bit significant part, so that a processing word length of a signal processing device 20 may be efficiently stored in accordance with the word length of an external memory 30, while this 16-bit waveform data of the floating point form are converted to 24-bit waveform data of the fixed point form. Thereby, the sound quality degradation by truncation of the waveform data is avoided, while keeping the required resolution. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、固定小数点形式の波形データを浮動小数点形式に変換する波形データ変換装置に関する。   The present invention relates to a waveform data conversion apparatus that converts waveform data in a fixed-point format into a floating-point format.

データ量を縮減する為にデータ形式を固定小数点形式から浮動小数点形式に変換させる技術が知られている。この種の技術として、例えば特許文献1には、波形データを指数部データと仮数部データとに分けて1サンプル点当りのデータビット数(語長)を縮減させる技術が開示されている。   In order to reduce the amount of data, a technique for converting a data format from a fixed-point format to a floating-point format is known. As this type of technology, for example, Patent Document 1 discloses a technology in which waveform data is divided into exponent part data and mantissa part data to reduce the number of data bits (word length) per sample point.

特開平7−160267号公報JP-A-7-160267

ところで、電子楽器の音源には、デジタル・シグナル・プロセッサ(DSP)と呼ばれる信号処理装置が設けられる。信号処理装置では、外部メモリを用いて波形データに遅延を施すことが多い。上記特許文献1に開示の技術のように、固定小数点形式の波形データを浮動小数点形式に変換してデータ量を縮減する場合には、外部メモリの語長(格納幅)と、信号処理装置の内部で処理される固定小数点形式の処理語長とを調和させる必要がある。この点について図7を参照して説明する。   Incidentally, a signal processing device called a digital signal processor (DSP) is provided in a sound source of an electronic musical instrument. In signal processing apparatuses, waveform data is often delayed using an external memory. As in the technique disclosed in Patent Document 1, when the waveform data in the fixed-point format is converted to the floating-point format to reduce the data amount, the word length (storage width) of the external memory, the signal processing device It is necessary to harmonize the processing word length of the fixed-point format processed internally. This point will be described with reference to FIG.

図7は、固定小数点20ビットデータと、指数部3ビットおよび仮数部13ビットからなる浮動小数点16ビットデータとの変換関係を示す図である。一般に浮動小数点データにおける指数部の語長をEn、仮数部の語長(有効桁数)をKnとすると、固定小数点データの語長Xnは、Kn+2^En−1なる式で表現できる。なお、上記式中の「^」はベキ乗(累乗)を表す。   FIG. 7 is a diagram showing the conversion relationship between fixed-point 20-bit data and floating-point 16-bit data consisting of an exponent part 3 bits and a mantissa part 13 bits. In general, assuming that the word length of the exponent part in floating-point data is En and the word length (number of significant digits) of the mantissa part is Kn, the word length Xn of the fixed-point data can be expressed by an expression of Kn + 2 ^ En-1. Note that “^” in the above expression represents a power (power).

したがって、図7に図示した一例において、浮動小数点16ビットデータの指数部および仮数部の各語長の変化に対応する固定小数点データの語長Xnは、16−En+2^En−1なる式で表現できる。具体的には、En=0の時に語長Xnは「16」、En=1の時に語長Xnは「16」、En=2の時に語長Xnは「17」、En=3の時に語長Xnは「20」、En=4の時に語長Xnは「27」と変化する。   Therefore, in the example shown in FIG. 7, the word length Xn of the fixed-point data corresponding to the change in the word length of the exponent part and the mantissa part of the floating-point 16-bit data is expressed by the equation 16−En + 2 ^ En−1. it can. Specifically, when En = 0, the word length Xn is “16”, when En = 1, the word length Xn is “16”, when En = 2, the word length Xn is “17”, and when En = 3, the word length Xn is “16”. When the length Xn is “20” and En = 4, the word length Xn changes to “27”.

一方、信号処理装置の内部処理語長(固定小数点形式)は、一般に8の倍数、つまり16ビット、24ビットあるいは32ビットであり、この内で上記語長Xnに一致する語長は16ビット以外に無い。つまり換言すれば、固定小数点データを浮動小数点データに変換する場合、変換効率の良い固定小数点形式の語長は限られる。したがって、外部メモリの語長が信号処理装置の処理語長に調和しなければ、固定小数点形式から浮動小数点形式に変換した波形データを切り捨てることになり、これが音質劣化を招いてしまう。   On the other hand, the internal processing word length (fixed-point format) of the signal processing apparatus is generally a multiple of 8, that is, 16 bits, 24 bits, or 32 bits, and the word length that matches the word length Xn is other than 16 bits. There is not. In other words, when converting fixed-point data to floating-point data, the word length of the fixed-point format with good conversion efficiency is limited. Therefore, if the word length of the external memory does not match the processing word length of the signal processing apparatus, the waveform data converted from the fixed-point format to the floating-point format is discarded, which leads to sound quality degradation.

本発明は、このような事情に鑑みてなされたもので、必要な分解能を確保しながらも切り捨てによる音質劣化を回避することができる波形データ変換装置を提供することを目的としている。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide a waveform data converter capable of avoiding sound quality deterioration due to truncation while ensuring necessary resolution.

上記目的を達成するため、請求項1に記載の発明では、固定小数点波形データを仮数部の語長で表現するのに必要なベキ数の数を、指数部で指定可能な数まで間引き、間引かれた不連続なベキ数を指数部の値に割り当てる割当手段と、前記割当手段により割当てられた指数部の値に応じて、固定小数点波形データを指数部と仮数部とから構成される浮動小数点波形データに変換する変換手段とを具備することを特徴とする。   In order to achieve the above object, according to the first aspect of the present invention, the number of powers necessary for expressing the fixed-point waveform data with the word length of the mantissa part is thinned out to a number that can be specified by the exponent part. An assigning unit for assigning the subtracted powers to the exponent part value, and a floating-point waveform data composed of an exponent part and a mantissa part according to the exponent part value assigned by the assigning means. Conversion means for converting to decimal point waveform data.

請求項2に記載の発明では、固定小数点波形データを、記憶手段の格納幅に対応させた語長を形成する第1の語長の指数部と第2の語長の仮数部とから構成される浮動小数点波形データに変換する装置であって、固定小数点波形データを前記第2の語長の仮数部で表現するのに必要なベキ数の数を、前記第1の語長の指数部で指定可能な数になるまで1つ置きに間引き、間引かれた不連続なベキ数を、当該第1の語長の指数部が指定する値に割り当てる割当手段と、前記割当手段により割当てられた指数部の値の内、固定小数点波形データに対応する指数部の値を選択する選択手段と、前記選択手段により選択された指数部の値に応じて、固定小数点波形データを前記第2の語長の仮数部に変換する変換手段と、前記選択手段により選択された指数部の値を表す前記第1の語長の指数部と前記変換手段により変換された前記第2の語長の仮数部とから構成される浮動小数点波形データを出力する出力手段とを具備することを特徴とする。   In the invention according to claim 2, the fixed-point waveform data is composed of an exponent part having a first word length and a mantissa part having a second word length forming a word length corresponding to the storage width of the storage means. The floating-point waveform data is converted into floating-point waveform data, and the number of powers required to express the fixed-point waveform data by the mantissa part of the second word length is expressed by the exponent part of the first word length. Allocation means for decimating every other power until it becomes a specifiable number, and assigning the discontinuous number of powers thinned to the value specified by the exponent part of the first word length, and assigned by the allocation means Selection means for selecting an exponent value corresponding to fixed-point waveform data among exponent values, and fixed-point waveform data as the second word according to the exponent value selected by the selection means A conversion means for converting to a long mantissa part and selected by the selection means Output means for outputting floating-point waveform data composed of the exponent part of the first word length representing the value of the exponent part and the mantissa part of the second word length converted by the conversion means. It is characterized by that.

上記請求項2に従属する請求項3に記載の発明では、前記割当手段は、前記第1の語長の指数部で指定可能な数になるまで1つ置きに間引いた奇数列のベキ数を、当該第1の語長の指数部が指定する値に割り当てることを特徴とする。   In the invention according to claim 3, which is dependent on claim 2, the assigning means calculates the number of powers of odd columns thinned every other number until the number that can be specified by the exponent part of the first word length is reached. The first word length is assigned to a value designated by the exponent part.

上記請求項2に従属する請求項4に記載の発明では、前記割当手段は、前記第1の語長の指数部で指定可能な数になるまで1つ置きに間引いた偶数列のベキ数を、当該第1の語長の指数部が指定する値に割り当てることを特徴とする。   In the invention according to claim 4, which is dependent on claim 2, the assigning means calculates the number of powers of even-numbered columns obtained by thinning out every other number until the number that can be specified by the exponent part of the first word length is reached. The first word length is assigned to a value designated by the exponent part.

請求項1に記載の発明によれば、固定小数点波形データを仮数部の語長で表現するのに必要なベキ数の数を、指数部で指定可能な数まで間引き、間引かれた不連続なベキ数を指数部の値に割り当て、割当てられた指数部の値に応じて、固定小数点波形データを指数部と仮数部とから構成される浮動小数点波形データに変換する。これにより、固定小数点波形データを浮動小数点波形データに変換する場合に、必要な分解能を確保しながら波形データの切り捨てによる音質劣化を回避できる。   According to the first aspect of the present invention, the number of powers required to express the fixed-point waveform data with the word length of the mantissa part is thinned out to a number that can be specified by the exponent part, and the discontinuity is thinned out. A large power is assigned to the exponent part value, and the fixed-point waveform data is converted into floating-point waveform data composed of an exponent part and a mantissa part according to the assigned exponent part value. Thereby, when the fixed-point waveform data is converted into the floating-point waveform data, it is possible to avoid deterioration in sound quality due to the truncation of the waveform data while ensuring the necessary resolution.

請求項2に記載の発明によれば、固定小数点波形データを、記憶手段の格納幅に対応させた語長を形成する第1の語長の指数部と第2の語長の仮数部とから構成される浮動小数点波形データに変換する場合に、固定小数点波形データを第2の語長の仮数部で表現するのに必要なベキ数の数を、第1の語長の指数部で指定可能な数になるまで1つ置きに間引く。こうして間引かれた不連続なベキ数を、第1の語長の指数部が指定する値に割り当て、割当てられた指数部の値の内、固定小数点波形データに対応する指数部の値を選択する。そして、選択された指数部の値に応じて、固定小数点波形データを第2の語長の仮数部に変換すると、選択された指数部の値を表す第1の語長の指数部と、変換により得られた第2の語長の仮数部とから構成される浮動小数点波形データを出力するので、必要な分解能を確保しながら波形データの切り捨てによる音質劣化を回避できる。   According to the second aspect of the present invention, the fixed-point waveform data is obtained from the exponent part of the first word length and the mantissa part of the second word length forming the word length corresponding to the storage width of the storage means. When converting to floating-point waveform data, the number of powers required to represent fixed-point waveform data in the mantissa part of the second word length can be specified by the exponent part of the first word length. Thin out every other number until it reaches a certain number. The discontinuous powers thus thinned out are assigned to the value specified by the exponent part of the first word length, and the exponent part value corresponding to the fixed-point waveform data is selected from the assigned exponent part values. To do. Then, when the fixed-point waveform data is converted into the mantissa part of the second word length according to the value of the selected exponent part, the exponent part of the first word length representing the value of the selected exponent part and the conversion Since the floating point waveform data composed of the mantissa part of the second word length obtained by the above is output, it is possible to avoid deterioration in sound quality due to truncation of the waveform data while ensuring the necessary resolution.

(1)発明の概要
図1は、本発明の概要を説明するための図である。前述したように、固定小数点形式の波形データを浮動小数点形式の波形データに変換する場合、外部メモリの語長幅が信号処理装置の処理語長に調和することが好ましい。例えば外部メモリの語長(格納幅)が16ビットの場合を想定すると、指数部3ビットおよび仮数部13ビットの浮動小数点形式ならば、固定小数点20ビットまでしか表現できない。したがって、信号処理装置の処理語長が24ビットであると、その下位4ビットは切り捨てられてしまう。一方、指数部4ビットおよび仮数部12ビットの浮動小数点形式にすれば、固定小数点27ビットまで対応可能だが分解能は半減する。
(1) Outline of the Invention FIG. 1 is a diagram for explaining the outline of the present invention. As described above, when the waveform data in the fixed-point format is converted into the waveform data in the floating-point format, it is preferable that the word length width of the external memory matches the processing word length of the signal processing device. For example, assuming that the word length (storage width) of the external memory is 16 bits, a floating-point format with an exponent part of 3 bits and a mantissa part of 13 bits can express only up to 20 bits of fixed point. Therefore, if the processing word length of the signal processing device is 24 bits, the lower 4 bits are truncated. On the other hand, if the floating-point format has an exponent part of 4 bits and a mantissa part of 12 bits, it can support up to 27 bits of fixed point, but the resolution is halved.

その為、本発明による波形データ変換装置では、図1に図示する通り、例えば固定小数点24ビットの波形データを、語長16ビットの外部メモリに効率良く格納できるように、指数部3ビットおよび仮数部13ビットで構成される浮動小数点16ビットの波形データに変換する。すなわち、浮動小数点16ビットの波形データでは、その上位3ビット(15SB〜13SB)の指数部がベキ数を表す。3ビットの指数で表現し得るベキ数は「0」〜「7」である。これに対し、仮数部13ビットで24ビット長のデータを表現するには、「0」〜「11」のベキ数が必要になる。   Therefore, in the waveform data conversion apparatus according to the present invention, as shown in FIG. 1, for example, waveform data of a fixed point of 24 bits can be efficiently stored in an external memory having a word length of 16 bits and an exponent part of 3 bits and a mantissa. The data is converted into floating point 16-bit waveform data composed of 13 bits. That is, in the floating-point 16-bit waveform data, the exponent of the upper 3 bits (15SB to 13SB) represents the power number. The number of powers that can be expressed by a 3-bit exponent is “0” to “7”. On the other hand, in order to express 24-bit data with the mantissa part 13 bits, power numbers from “0” to “11” are required.

そこで、仮数部13ビットで24ビット長のデータを表現するのに必要なベキ数「0」〜「11」の内、「1」、「3」、「5」、「7」を間引いた不連続なベキ数「0」、「2」、「4」、「6」、「8」、「9」、「10」、「11」を、15SB〜13SBの指数部の値に置換する。こうすると、仮数部13ビットが有効桁となるのは、もともとのベキ数が「0」、「2」、「4」、「6」、「8」、「9」、「10」および「11」の場合である。一方、間引いたベキ数「1」、「3」、「5」、「7」は、仮数部13ビットで24ビット長のデータを表現するのに必要なベキ数の「2」、「4」、「6」、「8」に対応し、これらのベキ数を用いる際には、4ビットの指数部と12ビットの仮数部とからなる浮動小数点16ビットに変換する。   Therefore, it is not necessary to thin out “1”, “3”, “5”, and “7” from among the power numbers “0” to “11” necessary for expressing 24-bit data with the mantissa part 13 bits. The continuous power numbers “0”, “2”, “4”, “6”, “8”, “9”, “10”, “11” are replaced with values of exponent parts of 15SB to 13SB. In this way, the mantissa part 13 bits become significant digits because the original power numbers are “0”, “2”, “4”, “6”, “8”, “9”, “10” and “11”. Is the case. On the other hand, the thinned-out power numbers “1”, “3”, “5”, and “7” are the power numbers “2” and “4” that are necessary for expressing 24-bit data with a mantissa part of 13 bits. , “6”, “8”, and when these power numbers are used, they are converted to a floating point 16 bits consisting of a 4-bit exponent part and a 12-bit mantissa part.

(2)実施の形態
次に、図2〜図5を参照して本発明の実施の形態について説明する。図2は、実施の一形態による信号処理装置20の構成を示すブロック図である。この図に示す信号処理装置20は、電子楽器の音源に用いられるものであり、デジタル・シグナル・プロセッサ(以下、DSPと記す)21およびデータ形式変換器22から構成される。DSP21は、図示されていないCPUの制御の下に、例えば固定小数点24ビットの波形データについて積和演算処理する。データ形式変換器22は、DSP21の制御の下に、A/D変換器10から供給される固定小数点24ビットの波形データを、浮動小数点16ビットの波形データに変換して外部メモリ30にストアする。また、データ形式変換器22は、DSP21の制御の下に、外部メモリ30から読み出す浮動小数点16ビットの波形データを、固定小数点24ビットの波形データに変換してDSP21に出力する。
(2) Embodiment Next, an embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a block diagram illustrating a configuration of the signal processing device 20 according to the embodiment. A signal processing device 20 shown in this figure is used as a sound source of an electronic musical instrument, and includes a digital signal processor (hereinafter referred to as DSP) 21 and a data format converter 22. The DSP 21 performs a product-sum operation on, for example, fixed-point 24-bit waveform data under the control of a CPU (not shown). The data format converter 22 converts the fixed-point 24-bit waveform data supplied from the A / D converter 10 into floating-point 16-bit waveform data and stores it in the external memory 30 under the control of the DSP 21. . Further, under the control of the DSP 21, the data format converter 22 converts the floating point 16-bit waveform data read from the external memory 30 into the fixed-point 24-bit waveform data and outputs it to the DSP 21.

DSP21では、データ形式変換器22を介して外部メモリ30に記憶される波形データをサンプリング周期毎に読み出し、読み出した波形データについて、例えば遅延フィードバック演算を施し、これにて生成される楽音データをD/A変換器40に出力する。D/A変換器40は、DSP21が出力する楽音データをD/A変換してなる楽音信号を発生する。   The DSP 21 reads the waveform data stored in the external memory 30 via the data format converter 22 at every sampling period, performs, for example, a delay feedback operation on the read waveform data, and converts the musical sound data generated thereby to D / A output to the converter 40. The D / A converter 40 generates a tone signal obtained by D / A converting the tone data output from the DSP 21.

次に、図3〜図4を参照してデータ形式変換器22の構成を説明する。データ形式変換器22は、固定小数点24ビットの波形データを浮動小数点16ビットの波形データに変換する第1の変換部と、浮動小数点16ビットの波形データを固定小数点24ビットの波形データに変換する第2の変換部とに大別される。   Next, the configuration of the data format converter 22 will be described with reference to FIGS. The data format converter 22 converts a fixed-point 24-bit waveform data into floating-point 16-bit waveform data, and converts the floating-point 16-bit waveform data into fixed-point 24-bit waveform data. It is roughly divided into a second conversion unit.

図3は、第1の変換部の構成を示すブロック図である。第1の変換部は、図1に図示したように、仮数部13ビットで24ビット長のデータを表現するのに必要なベキ数「0」〜「11」の内、「1」、「3」、「5」、「7」を間引いた不連続なベキ数「0」、「2」、「4」、「6」、「8」、「9」、「10」、「11」を、15SB〜13SBの指数部の値に置換する一方、その置換された指数部の値に応じて、固定小数点24ビットの波形データを13ビットの仮数部で表現する。   FIG. 3 is a block diagram illustrating a configuration of the first conversion unit. As shown in FIG. 1, the first conversion unit includes “1”, “3” among the power numbers “0” to “11” necessary for expressing the data of 24 bits in the mantissa part 13 bits. ”,“ 5 ”,“ 7 ”, and discontinuous power numbers“ 0 ”,“ 2 ”,“ 4 ”,“ 6 ”,“ 8 ”,“ 9 ”,“ 10 ”,“ 11 ”, While replacing with the value of the exponent part of 15SB to 13SB, according to the value of the replaced exponent part, the fixed-point 24-bit waveform data is expressed by the 13-bit mantissa part.

なお、図3には図示していないが、上記置換により間引かれるベキ数(「1」、「3」、「5」、「7」)、すなわち元々のベキ数の「2」、「4」、「6」、「8」を用いる際には、固定小数点24ビットの波形データを、4ビットの指数部と12ビットの仮数部とからなる浮動小数点16ビットに変換する構成を設ければよい。   Although not shown in FIG. 3, the number of powers to be thinned out by the replacement (“1”, “3”, “5”, “7”), that is, the original power numbers “2”, “4” ”,“ 6 ”,“ 8 ”, a configuration for converting fixed-point 24-bit waveform data into a floating-point 16-bit consisting of a 4-bit exponent and a 12-bit mantissa is provided. Good.

第1の変換部は、エクスクルーシブOR回路231〜237、ANDゲート回路241〜246、反転回路251、8−3エンコーダ25および8−1セレクタ26を備える。エクスクルーシブOR回路231は、入力される固定小数点24ビットデータの23SB(最上位ビットMSB)から0SB(最下位ビットLSB)の内、23SBから12SBまでの12ビット全てが一致した場合に「H」レベル出力を発生する。同様に、エクスクルーシブOR回路232は、23SBから14SBまでの10ビット全てが一致した場合に「H」レベル出力を発生する。エクスクルーシブOR回路233は、23SBから16SBまでの8ビット全てが一致した場合に「H」レベル出力を発生する。   The first conversion unit includes exclusive OR circuits 231 to 237, AND gate circuits 241 to 246, an inverting circuit 251, an 8-3 encoder 25, and an 8-1 selector 26. The exclusive OR circuit 231 is “H” level when all 12 bits from 23SB to 12SB out of 23SB (the most significant bit MSB) to 0SB (the least significant bit LSB) of the input fixed-point 24-bit data match. Generate output. Similarly, the exclusive OR circuit 232 generates an “H” level output when all 10 bits from 23SB to 14SB match. The exclusive OR circuit 233 generates an “H” level output when all 8 bits from 23SB to 16SB match.

エクスクルーシブOR回路234は、23SBから18SBまでの6ビット全てが一致した場合に「H」レベル出力を発生する。エクスクルーシブOR回路235は、23SBから20SBまでの4ビット全てが一致した場合に「H」レベル出力を発生する。エクスクルーシブOR回路236は、23SBから21SBまでの3ビット全てが一致した場合に「H」レベル出力を発生する。エクスクルーシブOR回路237は、23SBから22SBまでの2ビットが一致した場合に「H」レベル出力を発生する。   The exclusive OR circuit 234 generates an “H” level output when all 6 bits from 23SB to 18SB match. The exclusive OR circuit 235 generates an “H” level output when all four bits from 23SB to 20SB match. The exclusive OR circuit 236 generates an “H” level output when all three bits from 23SB to 21SB match. Exclusive OR circuit 237 generates an “H” level output when two bits from 23SB to 22SB match.

ANDゲート回路241〜246および反転回路251は、上記エクスクルーシブOR回路231〜237が同時に複数の「H」レベル出力を8−3エンコーダ25に供給するのを防止しており、より多くの一致を優先する。8−3エンコーダ25は、入力端「0」〜「7」の内、前段からの「H」レベル出力が供給される入力端の番号を3ビットにエンコードしてなる指数部の値を発生する。8−1セレクタ26は、入力端「0」〜「7」の内、上記8−3エンコーダ25が発生する3ビットの指数部の値で指定される入力端に供給される13ビットデータを選択し、これを仮数部として出力する。   The AND gate circuits 241 to 246 and the inverting circuit 251 prevent the exclusive OR circuits 231 to 237 from supplying a plurality of “H” level outputs to the 8-3 encoder 25 at the same time, and give priority to more matches. To do. The 8-3 encoder 25 generates an exponent value obtained by encoding the number of the input terminal supplied with the “H” level output from the previous stage among the input terminals “0” to “7” into 3 bits. . The 8-1 selector 26 selects 13-bit data supplied to the input terminal designated by the value of the 3-bit exponent generated by the 8-3 encoder 25 from the input terminals “0” to “7”. This is output as a mantissa part.

なお、8−1セレクタ26において、入力端「0」には固定小数点24ビットデータの12SBから0SB(LSB)までの13ビットが供給される。同様に、入力端「1」には14SBから2SBまでの13ビットが供給される。入力端「21には16SBから4SBまでの13ビットが供給される。入力端「3」には18SBから6SBまでの13ビットが供給される。入力端「4」には20SBから8SBまでの13ビットが供給される。入力端「5」には21SBから9SBまでの13ビットが供給される。入力端「6」には22SBから10SBまでの13ビットが供給される。入力端「7」には23SBから11SBまでの13ビットが供給される。   In the 8-1 selector 26, 13 bits from 12SB to 0SB (LSB) of fixed-point 24-bit data are supplied to the input terminal “0”. Similarly, 13 bits from 14 SB to 2 SB are supplied to the input terminal “1”. The input terminal “21 is supplied with 13 bits from 16SB to 4SB. The input terminal“ 3 ”is supplied with 13 bits from 18SB to 6SB. 13 bits from 20SB to 8SB are supplied to the input terminal “4”. 13 bits from 21SB to 9SB are supplied to the input terminal “5”. The input terminal “6” is supplied with 13 bits from 22SB to 10SB. The input terminal “7” is supplied with 13 bits from 23SB to 11SB.

上記構成によれば、固定小数点24ビットデータが、8−3エンコーダ25から出力される3ビットの指数部と、8−1セレクタ26から出力される13ビットの仮数部とから構成される浮動小数点16ビットデータに変換される。この変換された浮動小数点16ビットデータと、固定小数点24ビットデータとの関係は、図1に図示した通りとなる。   According to the above configuration, the fixed-point 24-bit data is composed of a 3-bit exponent part output from the 8-3 encoder 25 and a 13-bit mantissa part output from the 8-1 selector 26. Converted to 16-bit data. The relationship between the converted floating-point 16-bit data and fixed-point 24-bit data is as shown in FIG.

次に、図4は第2の変換部の構成を示すブロック図である。第2の変換部は、8−1セレクタ27からなる。8−1セレクタ27は、入力端「0」〜「7」の内、浮動小数点16ビットデータ中の指数部の値(浮動小数点16ビットデータ中の15SB〜13SB)で指定される入力端に供給される24ビットデータを選択し、これを固定小数点24ビットデータとして出力する。   Next, FIG. 4 is a block diagram showing a configuration of the second conversion unit. The second conversion unit includes an 8-1 selector 27. The 8-1 selector 27 supplies to the input terminal designated by the value of the exponent part in the floating point 16-bit data (15SB to 13SB in the floating point 16-bit data) among the input terminals “0” to “7”. 24-bit data to be selected is output as fixed-point 24-bit data.

なお、8−1セレクタ27の入力端「0」には、次の24ビットデータが供給される。すなわち、15SB(最上位ビットMSB)から0SB(最下位ビットLSB)からなる浮動小数点16ビットデータの内、12SBを11ビット分と12SB〜0SBをバンドルした24ビットデータが供給される。入力端「1」には12SBを9ビット分と、12SB〜0SBと、2ビット分の「0」とをバンドルした24ビットデータが供給される。入力端「2」には12SBを7ビット分と、12SB〜0SBと、4ビット分の「0」とをバンドルした24ビットデータが供給される。入力端「3」には12SBを5ビット分と、12SB〜0SBと、6ビット分の「0」とをバンドルした24ビットデータが供給される。   The next 24-bit data is supplied to the input terminal “0” of the 8-1 selector 27. That is, 24-bit data obtained by bundling 12SB of 11 bits and 12SB to 0SB among floating-point 16-bit data consisting of 15SB (most significant bit MSB) to 0SB (least significant bit LSB) is supplied. The input terminal “1” is supplied with 24-bit data obtained by bundling 12SB for 9 bits, 12SB to 0SB, and 2 bits for “0”. The input terminal “2” is supplied with 24-bit data in which 12SB is bundled with 7 bits, 12SB to 0SB, and 4 bits “0” is bundled. The input terminal “3” is supplied with 24-bit data bundled with 5 bits of 12SB, 12SB to 0SB, and “0” of 6 bits.

入力端「4」には12SBを3ビット分と、12SB〜0SBと、9ビット分の「0」とをバンドルした24ビットデータが供給される。入力端「5」には12SBを2ビット分と、12SB〜0SBと、9ビット分の「0」とをバンドルした24ビットデータが供給される。入力端「6」には12SBを1ビット分と、12SB〜0SBと、10ビット分の「0」とをバンドルした24ビットデータが供給される。入力端「7」には12SB〜0SBと、11ビット分の「0」とをバンドルした24ビットデータが供給される。   The input terminal “4” is supplied with 24-bit data obtained by bundling 3 bits of 12SB, 12SB to 0SB, and “0” of 9 bits. The input terminal “5” is supplied with 24-bit data obtained by bundling 2 bits of 12SB, 12SB to 0SB, and “0” of 9 bits. The input terminal “6” is supplied with 24-bit data obtained by bundling 12SB for 1 bit, 12SB to 0SB, and 10-bit “0”. The input terminal “7” is supplied with 24-bit data in which 12SB to 0SB and 11 bits of “0” are bundled.

次に、図5を参照してデータ形式変換器22の変換精度について説明する。図5は、固定小数点24ビットフルレンジのダイナミックレンジ幅まで信号レベルをリニアに低減させた時のノイズレベルA〜Cの特性を図示したものである。ノイズレベルAは、3ビットの指数部と13ビットの仮数部とからなる浮動小数点16ビットデータのノイズレベルを表す。ノイズレベルBは、4ビットの指数部と12ビットの仮数部とからなる浮動小数点16ビットデータのノイズレベルを表す。ノイズレベルCは、データ形式変換器22により変換された、不連続なベキ数を割り当てる3ビットの指数部と13ビットの仮数部とからなる浮動小数点16ビットデータのノイズレベルを表す。   Next, the conversion accuracy of the data format converter 22 will be described with reference to FIG. FIG. 5 illustrates the characteristics of noise levels A to C when the signal level is linearly reduced to the dynamic range width of the fixed point 24-bit full range. The noise level A represents the noise level of floating point 16-bit data consisting of a 3-bit exponent and a 13-bit mantissa. Noise level B represents the noise level of floating point 16-bit data consisting of a 4-bit exponent and a 12-bit mantissa. The noise level C represents the noise level of floating point 16-bit data converted by the data format converter 22 and composed of a 3-bit exponent part and a 13-bit mantissa part to which discontinuous power numbers are assigned.

そして、図5に図示する通り、ノイズレベルCは、信号レベルが高い領域ではノイズレベルAに準じた分解能を有し、一方、信号レベルが固定小数点24ビットフルレンジに近い低い領域ではノイズレベルBに準じた分解能を有するので、必要な分解能を確保し得る。   As shown in FIG. 5, the noise level C has a resolution equivalent to that of the noise level A in a region where the signal level is high, while it is in the noise level B in a region where the signal level is close to the fixed point 24-bit full range. Since it has equivalent resolution, the necessary resolution can be ensured.

以上のように、データ形式変換器22は、信号処理装置20の処理語長を外部メモリ30の語長に調和させて効率良く格納できるように、固定小数点形式の24ビットの波形データを、不連続なベキ数を割り当てる3ビットの指数部と13ビットの仮数部とから構成される浮動小数点形式の波形データに変換する一方、この16ビットの浮動小数点形式の波形データを固定小数点形式の24ビットの波形データに変換するので、必要な分解能を確保しながら波形データの切り捨てによる音質劣化を回避することができる。   As described above, the data format converter 22 converts the 24-bit waveform data in the fixed-point format into an unreadable format so that the processing word length of the signal processing device 20 can be efficiently stored in harmony with the word length of the external memory 30. While converting to the floating-point waveform data composed of a 3-bit exponent and a 13-bit mantissa for assigning consecutive power numbers, this 16-bit floating-point waveform data is converted to a 24-bit fixed-point format. Therefore, deterioration in sound quality due to truncation of waveform data can be avoided while ensuring the necessary resolution.

なお、上述した実施の形態では、仮数部13ビットで24ビット長のデータを表現するのに必要なベキ数「0」〜「11」の内、「1」、「3」、「5」、「7」を間引いた不連続なベキ数「0」、「2」、「4」、「6」、「8」、「9」、「10」および「11」を指数部の値に置換するようにしたが、これに替えて、「2」、「4」、「6」、「8」を間引いた不連続なベキ数「0」、「1」、「3」、「5」、「7」、「9」、「10」および「11」を指数部の値に置換する態様としても構わない。   In the above-described embodiment, “1”, “3”, “5”, “5”, among the power numbers “0” to “11” necessary for expressing the 24-bit length data with the mantissa part 13 bits, Replace the discontinuous power numbers “0”, “2”, “4”, “6”, “8”, “9”, “10”, and “11” with “7” thinned out with the value of the exponent part. However, instead of this, discontinuous power numbers “0”, “1”, “3”, “5”, “5”, “2”, “4”, “6”, “8” are thinned out. It is also possible to replace the “7”, “9”, “10”, and “11” with the value of the exponent part.

さらに、本発明の要旨は、固定小数点24ビットデータを浮動小数点16ビットデータに変換するものに限定されず、例えば図6に図示する通り、仮数部21ビットで32ビット長のデータを表現するのに必要なベキ数「0」〜「11」の内、「1」、「3」、「5」、「7」を間引いた不連続なベキ数「0」、「2」、「4」、「6」、「8」、「9」、「10」および「11」を指数部の値に置換すれば、固定小数点32ビットデータを浮動小数点24ビットデータに変換する場合にも適用可能になる。   Furthermore, the gist of the present invention is not limited to the conversion of fixed-point 24-bit data to floating-point 16-bit data. For example, as shown in FIG. 6, the mantissa part 21 bits represents 32-bit data. Among the numbers of powers “0” to “11” necessary for the discontinuous powers “0”, “2”, “4”, which are thinned out by thinning out “1”, “3”, “5”, “7”, By replacing “6”, “8”, “9”, “10”, and “11” with the value of the exponent part, it is also possible to convert fixed-point 32-bit data to floating-point 24-bit data. .

本発明の概要を説明するための図である。It is a figure for demonstrating the outline | summary of this invention. 本発明の実施の一形態の構成を示すブロック図である。It is a block diagram which shows the structure of one Embodiment of this invention. 固定小数点24ビットデータを浮動小数点16ビットデータに変換するデータ形式変換器22の構成を示すブロック図である。It is a block diagram which shows the structure of the data format converter 22 which converts fixed point 24 bit data into floating point 16 bit data. 浮動小数点16ビットデータを固定小数点24ビットデータをに変換するデータ形式変換器22の構成を示すブロック図である。It is a block diagram which shows the structure of the data format converter 22 which converts floating point 16 bit data into fixed point 24 bit data. データ形式変換器22の変換精度を説明するための図である。It is a figure for demonstrating the conversion precision of the data format converter. 固定小数点32ビットデータを浮動小数点24ビットデータに変換する一例を説明するための図である。It is a figure for demonstrating an example which converts fixed point 32-bit data into floating point 24-bit data. 固定小数点20ビットデータを浮動小数点16ビットデータに変換する一例を説明するための図である。It is a figure for demonstrating an example which converts fixed point 20 bit data into floating point 16 bit data.

符号の説明Explanation of symbols

10 A/D変換器
20 信号処理装置
21 DSP
22 データ形式変換器
30 外部メモリ
40 D/A変換器
10 A / D converter 20 Signal processing device 21 DSP
22 Data format converter 30 External memory 40 D / A converter

Claims (4)

固定小数点波形データを仮数部の語長で表現するのに必要なベキ数の数を、指数部で指定可能な数まで間引き、間引かれた不連続なベキ数を指数部の値に割り当てる割当手段と、
前記割当手段により割当てられた指数部の値に応じて、固定小数点波形データを指数部と仮数部とから構成される浮動小数点波形データに変換する変換手段と
を具備することを特徴とする波形データ変換装置。
Allocate the number of powers required to represent fixed-point waveform data in the mantissa word length to the number that can be specified in the exponent part, and assign the discontinuous powers that are thinned out to the exponent part value Means,
Waveform data comprising: conversion means for converting fixed-point waveform data into floating-point waveform data composed of an exponent part and a mantissa part according to the value of the exponent part assigned by the assigning means Conversion device.
固定小数点波形データを、記憶手段の格納幅に対応させた語長を形成する第1の語長の指数部と第2の語長の仮数部とから構成される浮動小数点波形データに変換する装置であって、
固定小数点波形データを前記第2の語長の仮数部で表現するのに必要なベキ数の数を、前記第1の語長の指数部で指定可能な数になるまで1つ置きに間引き、間引かれた不連続なベキ数を、当該第1の語長の指数部が指定する値に割り当てる割当手段と、
前記割当手段により割当てられた指数部の値の内、固定小数点波形データに対応する指数部の値を選択する選択手段と、
前記選択手段により選択された指数部の値に応じて、固定小数点波形データを前記第2の語長の仮数部に変換する変換手段と、
前記選択手段により選択された指数部の値を表す前記第1の語長の指数部と前記変換手段により変換された前記第2の語長の仮数部とから構成される浮動小数点波形データを出力する出力手段と
を具備することを特徴とする波形データ変換装置。
Apparatus for converting fixed-point waveform data into floating-point waveform data composed of an exponent part having a first word length and a mantissa part having a second word length that form a word length corresponding to the storage width of the storage means Because
Thinning out the number of powers necessary to represent the fixed-point waveform data in the mantissa part of the second word length until it becomes a number that can be specified by the exponent part of the first word length, Allocating means for allocating the discontinuous powers that are thinned out to a value specified by the exponent part of the first word length;
Selecting means for selecting an exponent part value corresponding to fixed-point waveform data among the exponent part values assigned by the assigning means;
Conversion means for converting fixed-point waveform data into the mantissa part of the second word length in accordance with the value of the exponent part selected by the selection means;
Floating point waveform data composed of the exponent part of the first word length representing the value of the exponent part selected by the selection means and the mantissa part of the second word length converted by the conversion means is output. And a waveform data converter characterized by comprising:
前記割当手段は、前記第1の語長の指数部で指定可能な数になるまで1つ置きに間引いた奇数列のベキ数を、当該第1の語長の指数部が指定する値に割り当てることを特徴とする請求項2記載の波形データ変換装置。 The assigning means assigns the number of powers in the odd number sequence thinned out every other number until the number that can be designated by the exponent part of the first word length is assigned to the value designated by the exponent part of the first word length. 3. The waveform data conversion apparatus according to claim 2, wherein 前記割当手段は、前記第1の語長の指数部で指定可能な数になるまで1つ置きに間引いた偶数列のベキ数を、当該第1の語長の指数部が指定する値に割り当てることを特徴とする請求項2記載の波形データ変換装置。
The assigning means assigns even numbers of powers of even columns thinned every other number until a number that can be designated by the exponent part of the first word length is assigned to a value designated by the exponent part of the first word length. 3. The waveform data conversion apparatus according to claim 2, wherein
JP2006066600A 2006-03-10 2006-03-10 Waveform data converter Active JP4505751B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006066600A JP4505751B2 (en) 2006-03-10 2006-03-10 Waveform data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006066600A JP4505751B2 (en) 2006-03-10 2006-03-10 Waveform data converter

Publications (2)

Publication Number Publication Date
JP2007241128A true JP2007241128A (en) 2007-09-20
JP4505751B2 JP4505751B2 (en) 2010-07-21

Family

ID=38586704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006066600A Active JP4505751B2 (en) 2006-03-10 2006-03-10 Waveform data converter

Country Status (1)

Country Link
JP (1) JP4505751B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0145078B2 (en) * 1983-09-14 1989-10-02 Yamaha Corp
JPH07160267A (en) * 1993-12-10 1995-06-23 Casio Comput Co Ltd Device and method for coding waveform data, waveform data decoding device and waveform data coding/decoding device
JPH07199996A (en) * 1993-11-29 1995-08-04 Casio Comput Co Ltd Device and method for waveform data encoding, decoding device for waveform data, and encoding and decoding device for waveform data
JPH10336037A (en) * 1997-05-29 1998-12-18 Matsushita Electric Ind Co Ltd Audio signal encoder
JP2003288100A (en) * 2002-03-28 2003-10-10 Asahi Kasei Corp Inverse quantization circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0145078B2 (en) * 1983-09-14 1989-10-02 Yamaha Corp
JPH07199996A (en) * 1993-11-29 1995-08-04 Casio Comput Co Ltd Device and method for waveform data encoding, decoding device for waveform data, and encoding and decoding device for waveform data
JPH07160267A (en) * 1993-12-10 1995-06-23 Casio Comput Co Ltd Device and method for coding waveform data, waveform data decoding device and waveform data coding/decoding device
JPH10336037A (en) * 1997-05-29 1998-12-18 Matsushita Electric Ind Co Ltd Audio signal encoder
JP2003288100A (en) * 2002-03-28 2003-10-10 Asahi Kasei Corp Inverse quantization circuit

Also Published As

Publication number Publication date
JP4505751B2 (en) 2010-07-21

Similar Documents

Publication Publication Date Title
JP5366363B2 (en) Method and apparatus for transcoding N-bit words into M-bit words with M less than N
JP5903597B2 (en) Image compression apparatus, image expansion apparatus, and image processing apparatus
US20150270848A1 (en) D/a conversion apparatus, d/a conversion method and electric musical instrument
JP4505751B2 (en) Waveform data converter
JPS61159827A (en) Digital-to-analog converter
JP2013037111A (en) Method and device for coding audio signal
JP2008257407A (en) Logarithmic computing unit and logarithmic computing method
JP2012129849A (en) Digital-to-analog conversion device and method of controlling the same
US20180316938A1 (en) Method and apparatus for k-th order exp-golomb binarization
KR100864278B1 (en) Apparatus to processing data
JP2005086551A (en) Image processing device, level shift device, digital clamping device, methods, programs, and storing media for the devices
KR100359037B1 (en) Method and device for encoding digital data
JP2993344B2 (en) Waveform generation device, waveform storage device, waveform generation bubble, and waveform storage method
JP5104522B2 (en) Waveform generator and waveform generation processing program
JP2005012284A (en) Bit length extending apparatus, data processing apparatus, bit length extending method, control program and readable recording medium
JPH043556B2 (en)
JPS6352488B2 (en)
JP4710823B2 (en) Signal processing circuit
JP6548325B2 (en) Tone conversion device and program
JP2004088157A (en) Data conversion method, data converter circuit, and data conversion program
JPH07160267A (en) Device and method for coding waveform data, waveform data decoding device and waveform data coding/decoding device
JPS58199393A (en) Frequency controller
JPH05176221A (en) Gamma correction circuit
JP5252602B2 (en) Signal processing circuit and signal processing method
JP2006222682A (en) Random number adding device and its method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081002

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091001

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091030

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091119

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: 20100401

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: 20100414

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

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4505751

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3