Block switching based subband audio coder

Abstract: It is possible to provide the digital acoustic signal coding method and apparatus, in which, corresponding to the difference between the sampling frequencies of the input acoustic signal, the short blocks can be suitably classified into groups without deteriorating the sound quality and the difference between the long/short blocks can be judged. The coding apparatus is composed of a calculation medium for calculating the sensation entropy of a input acoustic signal calculated per each of the respective short sensation blocks; a sensation entropy sum total calculation medium for obtaining the total sum in the frame of the sensation entropy; a comparison medium for comparing the absolute value of the difference between the respective sum totals in the frame of the sensation entropy of the two frames being successive with a previously determined threshold value; and a long/short block judgment medium for judging whether the long blocks or the short block should convert the block of the input acoustic signal on the basis of the comparison result.

Description: The present invention relates to a digital acoustic signal encoding apparatus, a method of encoding a digital acoustic signal, and a computer program product for recording a program of encoding the digital acoustic signal, in particular, the compression encoding of a digital acoustic signal-utilized in, for instance, the DVD or the digital broadcast, etc. The background arts relating to the above-mentioned contents of the present invention are described hereinafter, mainly placing the focus on the compression of an acoustic signal. At present in the digital audio field, MP3 has been popularized far and wide with great strides. The MP3 is an abbreviation of the acoustic signal compression encoding method called "MPEG-1 Audio Layer III". By employing the MP3, the data of digital audio such as CD can be compressed to the extent of 1/11 without deteriorating the sound quality. Because of the convenience of compressing large (volume) acoustic data with compactness and transmitting the compressed data for a short time, the MP3 firstly starts to be popularized in the field of the internet. At present, the reproducing apparatuses for use in the MP3 start to be announced one after another by the respective manufacturing companies, and some music distributing businesses start to be operated. On the other hand, even in the field of the broadcasting, in accordance with the development of the digitalization, the adoption of the sound signal (acoustic signal) compressing technology has been highly advanced. At present, the method of MPEG-2 Audio BC is employed in the CS broadcasting. Furthermore, the method of MPEG-2 Audio AAC is scheduled to be employed in the BS or the digital broadcasting of the wave on the ground both to be started in 2000 or the subsequent years. The above-mentioned matters relates to the technology belonging to the international standard of the acoustic signal compression all called "MPEG Audio". In addition to the MPEG Audio, for instance, the acoustic signal compressing methods; Dolby Digital (AC-3) and ATRAC, are respectively employed for DVD and MD. As stated above, the compression/encoding technology of the digital audio has become familiar day by day. The fundamental technology of the acoustic signal compressing method and the recent trend thereof are described hereinafter. In the acoustic signal compressing method, the acoustic signal is largely classified into "voice sound" and "musical sound". Here, the voice sound signifies the human voice and the musical sound signifies not only the human voice but the general acoustic signal including the music, the life sound, the natural sound, etc. The reason why the sound has to be classified is that the object and utilized technology of the coding differs from each other. In the voice sound coding method, the human voice signal of low sampling rate of almost 8-16 KHz is compressed for use in the low bit rate such as the telephone circuit. On the other hand, in the musical sound encoding method, the acoustic signal of the high sampling rate of almost 32-96 KHz is compressed with the sound quality as high as possible. In the former method, the deterioration of the sound quality cannot be avoided compared with the original sound, while, in the latter method, the sound compression fundamentally not deteriorated can be accomplished. Both of the MP3 and the AAC are included in the latter coding (musical sound encoding). Here, the technology of the musical sound encoding is described. The method of compressing the digital information is classified into two methods; those are, reversible compression and non-reversible compression. In the former method, the original signal can be faithfully reproduced at the time of decoding. However, in the latter method, the distortion of the signal occurs generally. In the acoustic signal compression encoding method, both of those methods are suitably combined. At first, the reversible compression method is described. Here, Huffman code employed also in the MPEG Audio as the representative reversible compression method is described. The Huffman coding is the method in which short code and long code are respectively allocated to the large frequency value and the small frequency value in accordance with the appearance frequency of the original signal value, and the signal is compressed such that the entire code value is made as small as possible. The code of the not-constant length is called a variable-length code, while the code of the equal (constant) length for all values is called a fixed-length code. The original signal of the acoustic compression is the fixed-length code represented by the bit number of the respective constant digital sample values (16 bit in the case of CD). Fig. 21 shows the example of the fixed-length code and the Huffman code, and Fig. 28 shows the example of allocating the code to the actual numerical value row utilizing the above-mentioned two codes. As shown in Fig. 21, in order to discriminate six sorts of different original signal value with the fixed-length code, it is necessary to allocate at least 3 bit code to the respective values. On the other hand, as is apparent from the numerical value row as shown in Fig. 28, in case that the appearance frequency of "2" is largest (e.g., 7 times) and the appearance frequencies of "1" and "5" are smallest (e.g., once), here, regarding the Huffman code shown in Fig. 21, 2-bit code is allocated to "2" and 4-bit code is allocated to "1" and "5". Regarding the other remaining values, the code of the length corresponding to the respective appearance frequencies is allocated thereto. As the important property of the Huffman code, the original signal row can be decoded in one meaning. In the example of Fig. 21, if the Huffman code row is "00110", the original signal row is "20" apparently. Since the one-meaning property of decoding is secured, the Huffman coding is reversible. For reference, the example of the code not capable of decoding in one meaning is also shown in Fig. 21. In the example, when the code row "000001" is received, it is impossible to distinguish the meanings of the original signal; those are, "25", "13", or "223". Moreover, the method of constructing the code capable of decoding in one meaning has been already known. The description thereof is omitted here. Now, in the case of allocating the fixed-length code shown in Fig. 21 to the numerical value row shown in (a) OF Fig. 28, the code row becomes the one as shown in (b) of Fig. 28, and the entire code amount turns out to be 3 × 20 = 60 bit. On the other hand, in the case of allocating the Huffman code also shown in Fig. 21 to the numerical value row shown in (a) of Fig. 28, the code row becomes the one as shown in (c) of Fig. 28, and the entire code amount turns out to be further small (46 bit). In such way, the entire code amount is further reduced in the case of allocating the Huffman code, compared with the case of the fixed-length code. Namely, when the Huffman code is employed, the original signal value can be faithfully reproduced with further small code amount, compared with the fixed-length code. However, there is a limitation in the compression factor, e.g., almost 77% in the upper limit. So, it is impossible to expect a high compression factor, e.g., 1/11 in such situation as mentioned above. Therefore, the technology of non-reversible compression is required inevitably. The basic quantization technology therefor is described hereinafter. The quantization signifies the method of classifying the level of the original signal value into plural steps and causing the values representing the respective3 levels to correspond to the restoring value (decoded) value. The above-mentioned method is described, referring to the example of Fig. 22. Here, it is assumed that the original signal value is distributed as the integer of 0 - 59. When the value is converted to the fixed-length code as it is with the binary number, the respective value has to be expressed with 6bit. In this example, the original signal value is quantized to 6 levels and caused to correspond to the respective restoring (decoded) values as shown in Fig. 22. At the time of encoding, the original signal value is divided by "10" and the decimal fraction part is removed (cut down). The above "10" is called the scale factor. The integer part of the quotient is limited to the six sorts of the value 0 - 5. The above method is called the "quantization". As shown in Fig. 22, it is sufficient to express the value with 3-bit fixed-length code, and thereby the compression factor of 50% can be realized. Furthermore, if the quantized value is converted to the Huffman code corresponding to the respective appearance frequencies, the compression factor can be further improved. Fig. 22 shows the case of allocating the Huffman code in Fig. 21 as an example. At the side of the decoding, the quantized value is firstly restored (decoded) from the Huffman code. However, the method can be performed with one meaning as mentioned before. Thereafter, the quantized value is multiplied by the aforementioned scale factor "10" and added to "5=10/2". In such way, the value is restored (decoded). However, the original signal value does not coincide the restored value in general, and therefore the error occurs. Such error called "quantization error". The concrete example of the number is shown in Fig. 23. In such way, in the case of utilizing the quantization, the original signal value cannot be completely restored. In that sense, although the quantization is non-reversible, the compression factor thereof can be improved, owing to that non-reversible quantization. Moreover, the extent of the compression corresponds to the levels number of the quantization. The less the levels number is, the more largely the acoustic signal can be compressed. However, the average quantization error is increased. Now, heretofore, the compression of the digital information has been comparatively generally described. The Huffman code and the quantization both described heretofore are the most basic technology widely utilized for the compression of not only the acoustic signal but the static-picture and dynamic (moving)-picture signal. Next, the masking effect and the quantization error are described hereinafter. The aforementioned quantization error results in the deterioration of the sound quality in the acoustic signal compression. On the other hand, in the encoding of the musical sound, the acoustic signal data is required to be compressed to the extent of not sensing the deterioration of the sound quality. As to the method of determining the optimum levels number of the quantization, the property of the human hearing sense called "masking effect" is skillfully utilized. The masking effect is a phenomenon that the large sound erases (puts out or extinguishes) the surrounding small sound. The phenomenon has become widely familiar. To state a little more precisely, a strong sound of a certain frequency erases a weak sound of another frequency neighboring (in the neighborhood of) the above frequency. The detail of the above masking effect is further described hereinafter. The relationship between the frequency (KHz) represented by the horizontal coordinate (abscissa) and the sound intensity represented by the vertical coordinate (ordinate), and the sound intensity distribution of the input acoustic data on the both coordinates are described. Here, for instance, the input sounds (b) and (c) is erased by the further strong sound (a) and both of (b) and (c) cannot be heard. This is the masking effect. The masking threshold value signifies a boundary (border line) between the audible sound and the inaudible sound. Furthermore, the human ears has an inherent characteristic having an absolute threshold value (or minimum audible threshold value). That represents the minimum sound (intensity) which human can hear in the calm environment. The human ears have the sharpest (most sharp) sensitivity for the sound in the neighborhood of 2RHz - 5KHz. The human ears become gradually unable to hear the sound of the frequency lower than 2KHz or higher than 5KHz. Here, the masking threshold value changes in accordance with the input acoustic signal data. However, pay attention to the fact that the absolute threshold value does not change at all. In conclusion, among all of the sound, only the sound of the intensity stronger than the masking threshold value and the absolute threshold value is in the audible area. As the result, even though the information of the sound in the other area (in the inaudible area) is removed, the human ears can hear the sound in the same state as that of the initial input sound. In the acoustic signal compression, utilizing such property of the masking effect, only the input acoustic signal data in the area strouger than both of the masking threshold value, that is, the data in the gray area can be coded, and thereby the data amount can be largely reduced. To tell the truth, both of the above threshold values correspond to the tolerable upper limit of the aforementioned quantization error. Namely, when the input acoustic signal data is quantized, if the quantization error does not exceed the larger one of the both threshold value, the human ears do not sense the deterioration of the audible sound quality. In the area of the small threshold value, if the number of the quantization levels is not made large, the deterioration of the sound quality may become prominent. On the other hand, in the area of the large threshold value, it may be allowable to reduce the number of the quantization levels. Next, the method of converting the input acoustic signal data is described hereinafter. The input acoustic data are generally represented (expressed) as the row of the digital sample value in the time direction. However, the aforementioned masking effect cannot be suitably applied as it is. For this reason, it is necessary to convert the row of the above-mentioned digital sample value to that to be easily processed. There are several methods of converting the input acoustic signal data. One of them is a method of combining into a block the data row in the time area per constant samples number and converting the data row to the other data row in the frequency area per same constant samples number. Fig. 24 shows the waveforms of the acoustic signals before and after the above conversion. To state concretely, Fig. 24A shows the waveform of the acoustic signal data row of 1,024 samples in the time area, and Fig. 24B shows the data row converted to the waveform of the acoustic signal data row of 1,024 samples in the frequency area. Generally, when the acoustic signal is converted to that in the frequency area, a deviation of the sound amount (energy) occurs in a certain frequency area. For instance, as shown in Figs. 24A and 24B, although the signal value is uniformly distributed in the time area, the energy of the acoustic signal in the frequency area is deviated to the low frequency side. At the time of coding, the bit is distributed, putting emphasis, onto the part where the energy is concentrated. As the result, the compression efficiency can be further improved. Moreover, regarding the conversion of the time to the frequency, there exist some methods; e.g., DFT (Digital Fourier Transform), and DCT (Digital Cosine Transform), etc. However, for the purpose of compressing the image (picture) data and the acoustic data, DCT and its modification MDCT (Modified Digital Cosine Transform) are utilized very frequently. Regarding the conversion of the input acoustic signal data, in addition to the above-mentioned, there exist a method of the subband division. In the subband division method, (the band of) the input waveform is divided into plural frequency bands, and the respective divided waveform is kept to be that in the time area. This is a different point from the above method. Moreover, if the input data composed of the samples of the number m are divided into the sample bands of the number n, the samples number of the respective subbands becomes m/n. Fig. 25 shows a simple example of dividing the input waveform into two subbands. Next, the flow of the basic process of the acoustic signal compression coding is described. The most basic technology utilized for the acoustic signal coding has been thoroughly described heretofore. Here, the flow of the basic process of the acoustic signal compression coding obtained from the combination of the above-mentioned processes is summarized. Fig. 26 show the flow. At first, the conversion of the input acoustic signal data to the data in the frequency area or the subband division is practiced for the input acoustic signal data. Next, the respective sample values after conversion are quantized. At this time, the masking threshold value of the acoustic signal data are calculated in parallel, and the upper limit of the quantization error in the respective frequencies is previously obtained from the combination of the above calculated threshold value with the absolute threshold value. The above-mentioned step is performed by the audio psychology model part shown in Fig. 26. The quantization is performed such that the error does not exceed the upper limit thereof. Finally, the Huffman code is allocated in accordance with the appearance frequency of the respective quantization, and then the final coding data are created. Furthermore, the above step shows the outline of the most basic process of the acoustic signal compression encoding. In the practical encoding method such as MP3, AAC, etc., various processes in addition to the above can be devised, and thereby the improvement of the compression factor can be intended to further improve the compression factor. Here, the encoding process of MP3 is described, putting focus on the difference between MP3 and AAC. The flow of the basic process is: (1) conversion to the Frequency Area, (2) Quntization, and (3) Huffman Coding. Next, the subband division and MDCT are described. Fig. 27 shows the flow of the coding process of MP3 putting focus on the subband division and the MDCT process. The big difference between the MP3 and the AAC is that the exist the subband division process before the MDCT in the MP3. The subband division signifies the division of the input data into plural frequency bands. The data are arranged on the time axis in the respective division areas. In the MP3, the input data is divided into 32 bands, and the MDCT is practiced per each of the respective divided bands. As in the case of the AAC, two sorts of the window function of LONG/SHORT can be used properly. The length of LONG is 36 samples, while the length of SHORT is 12 samples. However, contrary to the AAC, the MP3 can cause the LONG/SHORT to exist mixingly. In Fig. 27, the high frequency is used for the SHORT and the low frequency is used for the LONG, Needless to mention, it may be allowable to use the all frequency for the SHORT or for the LONG. Moreover, in the AAC, the length of the LONG window is 2,048 samples. In the MP3, the conversion calculation of the above-mentioned 36 samples to the length before the subband division is done, the calculated value becomes equal to 36×32=1, 152 samples. Heretofore, the general concept of the acoustic signal compression in connection with the present invention has been mentioned. The discussion of the background arts is concretely described hereinafter, on the basis of the above-mentioned background matters. In the high-quality compression/coding of the digital acoustic signal, the psychological property of the human hearing sense has been utilized up to now. As mentioned above, according to such property, the small sound is masked by the large sound. As the result, the small sound cannot be heard. Namely, when the large sound of a frequency is emitted, the small sound of other frequency near the above frequency cannot be heard by the human ears. Here, the limited (critical) sound intensity which cannot be heard due to such masking is called "masking threshold value". On the other hand, the human ears have the property that the sensitivity for the sound of the frequency near 4KHz is highest, and the more distant the frequency is from 4KHz, the lower the sensitivity for the sound of the same frequency becomes gradually. Such property is expressed as the critical sensitivity capable of sensing the sound in the calm situation, and the sensitivity is called "absolute audible threshold value". The above-mentioned matters are further described hereinafter referring to Fig. 9 illustrating the intensity distribution of the acoustic signal. In Fig. 9, a stout solid line (A), a dotted line (B), and a fine solid line, respectively represent the intensity distribution of the acoustic signal, the masking threshold value for the acoustic signal, and the absolute audible threshold value. As shown in Fig. 9, the human eyes can sense only the sound of the intensity larger (stronger) than the masking threshold value and the absolute audible threshold value for the acoustic signal. Consequently, even though only the information of the portion larger than the masking threshold value and the absolute audible threshold value for the acoustic signal is taken out in the intensity distribution of the acoustic signal, the information is sensed by the human eyes to the same extent as the initial acoustic signal. In the encoding of the acoustic signal, the above matter is equivalent to allocating the coded bit only to the portions shown by the slanted lines in Fig. 9. However, the entire area of the acoustic signal is divided into plural small areas and the bit allocation is performed here in the unit of the frequency band (D). The transverse width of the respective areas shown by the slanted lines corresponds to the frequency band. In the respective frequency bands, the sound of the intensity not larger than that of the lower limit of the slanted area cannot be heard by the human ears. Therefore, if the intensity error of the original sound and the encoded/decoded sound does not exceed the lower limit thereof, the difference between both of them cannot be sensed. In that sense, the lower-limit intensity is called "tolerable error intensity". When the acoustic signal is quantized and compressed, if the quantization error intensity of the encoded/decoded sound for the original sound is quantized so as to make it not larger than the tolerable error intensity, the acoustic signal can be compressed without damaging the quality of the original sound. Therefore, the allocation of the encoded bit only to the slanted-line area shown in Fig. 9 is equivalent to performing the quantization such that the quantization error intensity in the respective frequency band is just equal to the tolerable error intensity. As to the method of encoding the acoustic signal, there exist MPEG (Moving Picture Experts Group) Audio and Dolby Digital, etc. All of them utilize the property as described here. Among those methods, the one having the highest encoding efficiency at present is the method of MPEG-2 Audio AAC (Advanced Audio Encoding) standardized in ISO/IEC13818-7. Fig. 10 is a block diagram illustrating the fundamental structure of the AAC coding. In Fig. 10, a psychoacoustic model section 101 calculates the tolerable error intensity per each of the respective frequency bands of the input acoustic signal separated into blocks along the time axis. On the other hand, the conversion to the frequency area with MDCT (Modified Discrete Cosine Transform) in a gain control 102 and a filter bank 103 for the input signal also separated into blocks. A TNS (Temporal Noise Shaping) 104 and a prediction unit 106 perform the estimation coding. An intensity/coupling 105 and an MS Stereo(Middle Side Stereo) (hereinafter, called abbreviated "M/S") 107 perform the stereo correlation coding process. Thereafter, a scale factor 108 is determined. The acoustic signal is quantized in a quantizing unit 109 on the basis of the scale factor 108. The scale factor corresponds to the tolerable error intensity shown in Fig. 9, and the coefficient is determined per each of the respective frequency bands. After the quantization, the Huffman code is respectively given to the scale factor and the quantizing value in a noise encoding (section) 110 on the basis of the predetermined Huffman code list. Finally, code bit stream is formed in a multiplexer 111. Now, the MDCT in the aforementioned filter bank 103 is the one for overlapping the conversion areas by 50% along the time axis as shown in Fig. 11 and at the same time practicing DCT (Discrete Cosine Transform). Owing to such function, the occurrence of the distortion on the bordering part (boundary) of the respective conversion areas can be suppressed. In the AAC (Advance Audio Encoding), either one of the long conversion area (long block) of 2048 samples or the eight short conversion areas (short blocks) of respective 256 samples is applied for the input acoustic signal frame. Consequently, the number of the MDCT coefficients is 1024 for the long block and 128 for the short blocks. In the case of employing the short blocks, eight blocks are always applied successively and thereby the number of the MDCT coefficients turns out to be same as the MDCT coefficients number at the time of employing the long block. Generally, the long block is employed in the regular part of small variation in the signal waveform as shown in Fig. 12, while the short blocks are employed in the attack part of violent (sharp) variation in the signal waveform. It is important to employ the long and short blocks in the different ways. If the long block is applied to the signal as shown in Fig. 13, a noise called "pre-echo" occurs before the essential attack. On the contrary, if the short blocks are applied to the signal as shown in Fig. 12, the adequate bit allocation cannot be performed due to the insufficient resolution in the frequency area. As the result, the encoding efficiency is lowered and the noise occurs. The matter is prominent, in particular, for the sound of low frequency. As to the short blocks, there further arises a problem of dividing (separating) into groups. The dividing into groups signifies that the above-mentioned eight short blocks are put together into groups per each of the successive blocks of the same scale factor. The effect of reducing the amount of the information can be raised by making common the scale factor in the group. To state concretely, when the Huffman code is allocated to the scale factor in the noiseless coding (section) 110 shown in Fig. 10, the code is allocated not per each of the respective short blocks unit but per the group unit. Fig. 14 illustrates an example of dividing it into groups. Here, the number of the groups is three. The number of the blocks in the top group (O-th group) is five, the number of the blocks in the next group (1st group) is 1, and the number of the blocks in the last group (2nd group) is two. If the dividing into groups is not performed suitably, that results in the increase of the code amount (number) and the lowering of the sound quality. If the dividing number of the groups is too large, the scale factor which should be able to be made common essentially turns out to be coded duplicately (doubly). As the result, the encoding efficiency is lowered. On the contrary, if the (dividing) number of the groups is too small, since the quantization is performed with the common scale factor in spite of the violent (sharp) variation of the acoustic signal, the sound quality is lowered. Moreover, in ISO/IEC13818-7, although there exists a prescription of the code syntax (syntactics) with regard to the division into groups, the concrete standard and method of the division into group have not been taken into consideration. As mentioned before, with respect to the coding, the long block and the short blocks have to be suitably applied for the input acoustic signal block with the distinction therebetween. The psychoacoustic model section 101 shown in Fig. 10 performs the long/short judgment. An example of the long/short judgment method for the respective blocks to be noticed in the auditory sense psychology model section 101 is shown in the ISO/IEC13818-7. The outline of the judging process is explained hereinafter. Step 1: Reconstruction of the Acoustic Signal 1024 samples for the long block are newly read (included) and the signal system (series) of 2048 samples in addition to 1024 samples previously included in the new block is reconstructed, while 128 samples for the short blocks are newly read (included) and the signal system (series) of 256 samples in addition to 128 samples previously included in the new block is reconstructed. Step 2: Multiplication of Hann Window and FFT The acoustic signal of 2048 samples (256 samples) constructed in Step 1 is multiplied by the Hann window (Hanning). Furthermore, FFT (Fast Fourier Transform) is practiced and thereby 1024 (128) FFT coefficients are calculated. Step 3: Calculation of the Estimation Value of the FFT Coefficient The real number part and the imaginary number part of the respective FFT coefficients in the block being noticed at present is estimated from the real number part and the imaginary number part of the FFT coefficients of (per) preceding two blocks, and then the estimated values of 1024 (128) are respectively calculated. Step 4: Calculation of the Unpredictability Value The respective unpredictability values are calculated from the estimation values of the real number and the imaginary number of the respective FFT coefficients calculated in Step 2 and those of the respective FFT coefficients calculated in Step 3. Here, the unpredictability value takes a value between 0 and 1. The nearer to 0 the value is, the higher is the tonality (pure-sound property) of the acoustic signal, while the nearer to 1 the value is , the higher is the noise property of the acoustic signal. In other words, the fact shows that the tonality is low. Step 5: Calculation of the Acoustic Signal Intensity and the Unpredictability Value in the Respective Frequency band Here, the frequency band corresponds to the one as shown in Fig. 9. The intensity of the acoustic signal is calculated on the basis of the respective FFT coefficients calculated in Step 2 per each of the respective divided band width. Furthermore, the unpredictability value calculated in Step 4 is weighted with the intensity, and the unpredictability value is calculated per each of the respective frequency band. Step 6: Folding-in (Convoiying) of the Intensity multiplied by the Expanse (Spreading) Function and the Unpredictability Value The effects due to the acoustic signal intensity and the unpredictability value of the other frequency band in the respective frequency bands is obtained by use of the expanse (spreading) function. The effects thus obtained are respectively folded in (convolved) and thereby normalized. Step 7: Calculation of the Tonality Index In the respective divided band width b, the tonality index tb(b) C = -0.299 - 0.43 log.(cb(b)) is calculated on the basis of the folded-in (convolved) unpredictability value (cb(b)) calculated in Step 6. Furthermore, the tonality index is limited within the area between 0 and 1. Here, the above matter shows that the nearer to 1 the index is, the higher is the tonality of the acoustic signal, while the nearer to 0 the index is, the higher is the noise property of the acoustic signal. Step 8: Calculation of the S/N Ratio (Signal-to-Noise Ratio) The S/N ratio (signal-to-noise ratio) is calculated on the basis of the tonality index calculated in Step 7, in the respective frequency bands. Here, the property that the masking effect of the noise component is larger than that of the pure sound component is utilized generally. Step 9: Calculation of the Intensity Ratio The ratio of the folded-in (convolved) acoustic signal intensity and the masking threshold value is calculated on the basis of the S/N ratio calculated in Step 8, in the respective divided band widths. Step 10: Calculation of the Tolerable Error Intensity (Masking Threshold Value) The masking threshold value is calculated on the basis of the folded-in acoustic signal intensity calculated in Step 6 and the ratio of the acoustic signal intensity calculated in Step 9 and the masking threshold value, in the respective divided band widths. Step 11: Adjustment of the Pre-Echo and Consideration of the Absolute Audible (-Frequency) Threshold Value The pre-echo adjustment is performed for the masking threshold value calculated in Step 10 by use of the tolerable error intensity of the preceding block, in the respective divided band widths. Furthermore, larger value of the adjusted value and the absolute audio (-frequency) threshold value is employed as the tolerable error intensity of the present block. Step 12: Calculation of the Perceptual Entropy The sensation entropy PE (perceptual Entropy) as defined in the equation (1) is respectively calculated for the long block and for the short blocks. In the equation (1), w(b) represents the width of the divided bandwidth b, nb(b) represents the tolerable error intensity in the frequency band b calculated in Step 11, and e(b) represents the intensity of the acoustic signal in the frequency band b calculated in Step 5. Here, the PE is thought to correspond to the total of the square measures of the bit allocating areas (slanted-lines areas) as shown in Fig. 9. Step 13: Judgment of the Long/Short blocks Regarding the judgment of the long/short blocks, refer to the long/short blocks judging operation flow as shown in Fig. 15. When the value of the PE (Step S10) for the long block calculated in Step 12 is larger than the predetermined constant (switch_pe), the noticed block is judged to be the short blocks (Steps S11 and S12). When the same value of the PE is smaller than the predetermined constant, the noticed block is judged to be the long block (Steps S11 and S13). Here, the constant (switch_pe) is a value determined in dependence to the application. The method mentioned heretofore is the long/short judgment method described in ISO/IEC 13818-7. However, in the above long/short block judgment method, a suitable judgment is not always performed. Namely, the part to be essentially judged to be short is judged to be long (or vice versa) and thereby the sound quality is deteriorated on some occasions. On the other hand, in the published specification of Japanese Laid-open Patent Publication No. 9-232964, a transient state detecting circuit 2 is constructed such that the input signal is taken in per each of the respective predetermined sections and the square sums thereof are respectively obtained, and the transient state of the above-mentioned signal in accordance with the variation rate (degree) over the at least two or more sections of the signal squarely summed per each of the respective sections. In such structure, it is possible to detect the transient state, that is, the part in which the long/short varies only by performing the calculation of the square sum of the input signal on the time axis without performing any perpendicular (rectangular) conversion processing and filter processing. According to such method, since the perceptual entropy is not considered by use of only the square sum of the input signal, the judgment coinciding with the audio property cannot be always judged. Consequently, there is a fear that the sound quality deteriorates. In such situation, the input acoustic signal block is divided (classified) into several groups such that the difference between the maximum value and the minimum value of the perceptual entropy regarding the respective short blocks in the same group. As the result, there exists a method that, when the groups number is 1, or when the groups number is 1 and the other condition is satisfied, the input acoustic signal block is converted to the frequency area with one long block, and in the other case, the signal block is converted to the frequency area with plural short blocks. The above-mentioned block is further concretely described hereinafter, referring to Fig. 16 illustrating the operation flow thereof. Furthermore, as an example of the input acoustic signal, the acoustic data shown in Fig. 17 are employed and the through-out numbers are attached corresponding to the respective successive eight short blocks in Fig. 17. At first, the inputted acoustic signal is divided into the successive eight short blocks. And then, the perceptual entropies of the eight short blocks are respectively calculated. The calculated values are assumed to be PE(i) (0 ≦ i ≦ 7) in order (Step S20). The calculation can be realized by performing, for the respective short blocks, the method explained in the Steps 1 through 12 of the long/short judgment method for the respective noticed blocks in the above-mentioned ISO/IEC 13818-7. Next, the initializing operation is performed on the condition of group_len [0] = 1, group_len [gnum] = 0 (0 ≦ gnum ≦ 7) (Step S21). Here, gnum represents the through-out number of a certain group in the overall groups, and group_len [gnum] represents the number of the short blocks included in the gnum-th group, and then, the initializing operation is respectively performed on the condition of gnum = 0, min = PE(0) , and max = PE(0) (Step S20). In the above condition, min and max respectively represent the minimum value and the maximum value of PE(i). In Fig. 18, min and max are respectively equal to 110 and 110. (min = 110, max = 110). Furthermore, the index i is initialized with i = 1 (Step S23). The index corresponds to the through-out number of the short blocks. Next, min or max is renewed in accordance with PE(i). Namely, if PE(i) is smaller than min, min is equal to PE(i), or if PE(i) is larger than max, max is equal to PE(i). (step S24) PE(i) < min ····· min = PE(i) PE(i) > max ····· max = PE(i) In the example shown in Fig. 18, if PE(i) > max, max = PE(i). And the classification of the group is judged. (step S25) Namely, the obtained value (max-min) is compared with the predetermined threshold value th. When the obtained value (max-min) is equal to or larger than the value th, the step advances to the Step S26 in order to perform the group classification between the short blocks (i-1) and i. When the value (max-min) is smaller than the value th, the short blocks (i-1) and i are judged to be included in the same group, and the step advances to the Step S27. In this example, the value th is equal to 50 (th=50). Namely, the group classification is performed such that the difference between the maximum value and the minimum value of the respective short blocks PE(i) included in the same group becomes smaller than 50. When i=1, since max-min = 110-96 = 14 < 50 = th, the short blocks 0 and 1 are judged to be included in the same group, and the step advances to the Step S27. Here, since gnum = 0, the short blocks 0 and 1 advance to the step S27. Moreover, since gnum = 0 here, the short blocks 0 and 1 are included in the 0-th group, and increments, by one, the value of group_len [gnum] (Step S28). That signifies to decrease by one, the number of the short blocks included in the gnum-th group. In the example, since the initialization is performed in the state of gnum = 0 and group_len [0] = 1, the state becomes group_len [0] = 2 in the step S27. That corresponds to the fact that the two blocks in the blocks 0 and 1 as the short blocks included in the 0-th group have been already fixed (settled). Next, the index i is incremented by 1 (Step S28). When i is smaller than 7, the step returns to the Step S24 (Step S29). In this example, since i is equal to 2 (<7), i = 2 < 7, the step returns to the Step S24. Thereafter, the same operation same as the described heretofore follows until i = 4. When i is equal to 4, since the values of min and max are respectively equal to 96 and 137 in the Step S24 of Fig. 16, as shown in Fig. 18, the judgment; max - min = 41 < 50 = th, is performed in the Step S25, and the step directly advances from the Step S25 to the Step S27. In the Step 27, group_len [0] becomes equal to 5. group_len [0] = 5 Namely, that corresponds to the fact that the five blocks; 0, 1, 2, 3, and 4 are set as the short blocks included in the O-th group are already fixed. And then, when the step returns again to the Step S24 via the Step S29 after i becomes equal to 5 in the Step S28, PE(5) becomes equal to 152 at this time and therefore the values of min and max respectively become equal to 96 and 152. And then, since the judgment; max - min = 56 > 50 = th is performed in the Step S25, the step advances to the Step S26. That signifies that the group classification is performed between the short blocks 4 and 5. The value of gnum is incremented by 1 in the Step S26, and the values of min and max are respectively replaced by the newest PE(i). Here, the respective values of gnum, min, and max are 1, 152, and 152. The equation gnum = 1 corresponds to the fact that the group of the short blocks 5 included therein is the first group. Next, the value of group_len [1] is incremented by 1 in the Step S27. Since the value of group_len [1] has been initialized to 0 (zero) at the Step S21, the value of group_len [1] becomes equal to 1 again in such state. That corresponds to the fact that one block in the block 5 as the short blocks included in the first group. In the similar way hereinafter, i becomes equal to 6 in the Step S28 of Fig. 16. When the step returns from the Step S29 to the Step S24, since the value of PE(6) becomes equal to 269, next time, as shown in Fig. 18, the values of min and max respectively become equal to 152 and 269. At this time, the judgment of max - min = 117 > 50 is performed at the Step S25, and the step advances to the Step S26. Namely, the group classification is performed even between the short blocks 5 and 6. And then, gnum = 2, min = 269, and max = 269 in the Step S26, and group_len [2] = 1 in the Step S27. And i = 7 in the Step S28. Thereafter, since PE(7) = 231 in the Step S24 in the same way as in the past, min = 231 and max = 269, and the judgment of max - min = 38 < 50 is performed in the Step S25, and the step advance to the Step S27. Namely, both of the short blocks 6 and 7 are included in the second group. In correspondence with the above-mentioned, the value of group_len [2] = 2 in the Step S27. Now, when i becomes equal to 8 (i = 8) in the next Step S28, the step advances to the Step S30 in accordance with the judgment of the Step S29. At this time point, the group classification has been completed for all of the eight short blocks. In this example, the following relationship is finally brought into existence: Gnum = 2; Group_len [0] = 5; Group_len [1] = 1; and Group_len [2] = 2. Namely, as the result, the number of the groups is 5, and the numbers of the short blocks included in the respective groups are respectively 5, 1, and 2, for the O-th group, the first group, and the second group. The above result is same as the example of the group classification as shown in Fig. 14. However, there exists a case of not being able to perform the suitable judgment of long/short even in this method mentioned above. For instance, it is the case of coding the acoustic data including the component of the high pure sound property in the low frequency component (area). The conversion performed by use of the short blocks results in the increase of the resolution in the time area, while the resolution in the frequency area is lowered (decreased). On the other hand, the human ears have the masking property of the high resolution in the low frequency area. In particular, only the very narrow frequency band width is masked for the acoustic data of the high pure sound property. On the contrary, if the acoustic data including the component of the tonal property in the low frequency component (area) is converted with the short blocks, the energy of the original (initial) acoustic data is dispersed into the circumferential (peripheral) frequency band width due to the insufficient resolution in the frequency band width caused by the short blocks, and the energy further spreads out over the width of the masking in the low audio frequency which can be heard by the human ears. As the result, the human ears sense the deterioration of the sound quality. The above-mentioned matter signifies that it is insufficient to simply perform the judgment of long/short only on the basis of the perceptual entropy with respect to the short blocks and further it is necessary to take-into consideration of the combination of the tonality of the acoustic data and the frequency dependability of the masking property. In such situation, next, the input acoustic signal frame is divided into plural short blocks, and it is judged whether the tonality index of the acoustic component included in the predetermined one or plural frequency bands (areas) is larger than the threshold value. In case that there exists at least one short block larger than the aforementioned predetermined threshold value in all of the predetermined one or plural divided frequency bands (areas), it is judged that the input acoustic signal frame is converted to the frequency area with one long block. In the past, we have already filed the application relating to such method as mentioned above. Fig. 19 illustrates the concrete example of realizing such method. Fig. 19 is a flow chart illustrating the operation of a digital acoustic signal coding apparatus. The operation of the present embodiment is concretely described hereinafter, referring to Fig. 19. On this occasion, the acoustic data of Fig. 17 are employed as an example of the input acoustic signal. In Fig. 17, the through-out numbers are attached in correspondence with the respective eight successive short blocks. At first, in connection with the successive eight short blocks i (0 ≦ i ≦ 7), the inputted acoustic signal respectively calculates the values of the tonality index in the respective frequency bands sfb. Those calculated values are assumed to be tb[i][sfb] (Step S40). Here, as shown in Fig. 17, sfb is the through-out number for recognizing the respective frequency band. The calculation of the tonality index is performed by the method explained in the Step 7 in the long/short judgment step for the respective noticed blocks in the aforementioned ISO/IEC 13818-7. Next, the initializing operation of tonal-flag = 0 is done (Step S41). Furthermore, the through-out number i of the short blocks is initialized as i = 0 (Step S42). And then, with respect to the short blocks i, whether the respective tonality indices are larger than the predetermined threshold value for the respective frequency bands is searched in the predetermined one or plural divided areas (Step S43). In the example shown in Fig. 19, the search is done with respect to the bands; sfb = 7, 8, and 9, and the respective tonality indices; th7, th8, and th9. Now, in this example, assume that the values of the tonality indices at sfb = 7, 8, and 9 are the ones as shown in Fig. 20 with respect to the respective short blocks i, and further assume that the respective threshold values are fixed as follows: th7 = 0.6, th8 = 0.9, and th9 = 0.8. At the first i = 0, the following relationships are brought into existence: tb[0][7] = 0.12 < 0.6 = th7, tb[0][8] = 0.08 < 0.9 = th8, and tb[0][9] = 0.15 < 0.8 = th9. Consequently, the judgment at the Step S43 becomes "no", and the step advances to the next Step S45. And then, the value i is incremented by 1 and the value i becomes equal to 1 (i = 1), and the step returns again to the Step S43 via the judgment of the Step S46. Thereafter, the same operation as the aforementioned operation continues until i = 5. After i becomes equal to 6 (i = 6) (Step S45), the step returns again to the Step S43 via the Step S46. And then, since the following relationships are brought into existence: tb[6][7] = 0.67 > 0.6 = th7; tb[6][8] = 0.95 > 0.9 = th8; and tb[6][9] = 0.89 > 0.8 = th9, The judgment in the Step S43 becomes "Yes", and the step advances to the Step S44. At this time, the value of tonal_flag becomes equal to 1 (Step S44). Tonal_flag = 1 Next, i becomes equal to 7 (i = 7) (Step S45), and the step returns again to the Step S43 via the Step S43. At the time of i = 7, since the following relationships are brought into existence: tb[7][7] = 0.42 < 0.6 = th7; tb[7][8] = 0.84 < 0.9 = th8; and tb[7][9] = 0.81 > 0.8 = th9, The judgment in the Step S43 becomes "No", and the step advances to the Step S45. On the other hand, the value of tonal_flag is kept to 1 and does not change at all. And then, after i becomes equal to 8 (i = 8) (Step S45), the step advances, at this time, to the Step S47 via the judgment of the Step S46, and then, the value of tonal_flag (Step S47). In this example, since tonal_flag = 1, the judgment becomes "Yes" and the step advances to the Step S48. Consequently, it is judged that the inputted acoustic block is MDCT-converted by one long block. SUMMARY OF THE INVENTION Heretofore, the background arts regarding the digital acoustic signal encoding apparatus, the method of encoding the digital acoustic signal, and the recording medium for recording the program of encoding the digital acoustic signal have been described. However, according to such background arts, for instance, disclosed in the background-art documents, e.g., the published specification of Japanese Laid-open Patent Publication No. 9-232964 and the other documents relating to the MPEG-2 Audio AAC (Advanced Audio Encoding) standardized in ISO/IEC 13818-7, the MDCT (Modified Discrete Cosine Transform), and the M/S (MS stereo-Middle Side Stereo), etc., there exists no advantageous functional effect for improving the above-mentioned apparatus, method, and recording medium. The present invention has been made in view of the above-mentioned problems and other problems in order to solve the above defects and troublesome matters of the background arts. The present invention improves the various problems of the background arts mentioned heretofore. The present invention provides a digital acoustic signal encoding apparatus according to claim 4 and method according to claim 1 and a recording medium according to claim 8 for recording a program according to claim 7 of encoding the digital acoustic signal. In the background-art method mentioned above, the judgment of long/short is not performed suitably on some occasions. That signifies that, in spite that the conversion by use of the short blocks(s) is essentially the usual method, since the result of the above-mentioned background-art group classification becomes 1 group, that is judged to be the long block on some occasions. Furthermore, in Fig. 9, since the smaller (lower) the sampling frequency of the input acoustic signal becomes in the area of the frequency equal to or higher than 4k Hz, the lower becomes the extent of the contribution owing to the absolute audible threshold value, the (total) square measure of the bit allocating areas (slanted-line area in Fig. 9) relatively increases. As the result, the value of the sensation entropy (PE) calculated in the Step S12 in the long/short blocks judgment method described in the above-mentioned ISO/IEC 13818-7 also becomes gradually large. On the other hand, when the threshold value with respect to the difference between the sums (sum values) of the perceptual entropies of the respective short blocks takes a common value regardless of the sampling frequency, there arises a problem to be solved that, even though the long/short judgment can be suitably performed at a (certain) sampling frequency, the same judgment cannot be suitably performed cannot be suitably performed at other sampling frequency. EP 0 986 047 A2, which is prior art in the sense of Art. 54(3) EPC, discloses a method of switching between long and short block encoding of frames of audio data, wherein a difference is calculated in the long block perceptual entropy of a present frame and the preceding frame and wherein decisions are made based on the calculation of the difference of the perceptual entropies. US 5,627,938 discloses a method and apparatus for quantizing audio signals using a scale factor, which is interpolated between a threshold based on the calculated threshold of hearing at a given frequency and the absolute threshold of hearing at the same frequency. According to the invention, the short blocks can be suitably classified into groups without deteriorating the sound quality, taking a countermeasure for the difference between the sampling frequencies of the input acoustic signal, and furthermore, the difference of long/short can be clearly judged (discriminated). The other object of the present invention is to provide a digital acoustic signal apparatus according to claim 4, a method of encoding the digital acoustic signal according to claim 1, and a recording medium according to claim 8 for recording thereon the digital acoustic signal encoding program according to claim 7. BRIEF DESCRIPTION OF THE DRAWINGS A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein: Fig. 1 is a block diagram illustrating the structure of a digital acoustic signal coding apparatus according to the present invention; Fig. 2 is a flow chart illustrating the operation of the digital acoustic signal encoding method of the first embodiment according to the present invention; Fig. 3 is an explanatory waveform diagram for explaining, as an example, the signal waveform of the acoustic signal in the first embodiment according to the present invention; Fig. 4 is a diagram (list) for explaining the relationship between the perceptual entropies in the two frames which are successive in the elapsing time for the respective short blocks; Fig. 5 is a flow chart illustrating the operation of the digital acoustic signal encoding method of the second embodiment according to the present invention; Fig. 6 is an explanatory waveform diagram for explaining the group classification in the second embodiment according to the present invention. Fig. 7 is a diagram (list) for explaining an example of the threshold value per each of the sampling frequencies; Fig. 8 is a system block diagram illustrating the structure of the system of the present invention; Fig. 9 is an explanatory waveform diagram for explaining the intensity distributions of the acoustic signal, the masking threshold value, and the absolute audio threshold value; Fig. 10 is a block diagram illustrating the basic structure of the AAC coding; Fig. 11 is a diagram showing the conversion area of MDCT; Fig. 12 is a diagram showing the conversion area of MDCT for the waveform of the signal changing a little bit; Fig. 13 is a diagram showing the waveform of the signal changing violently (sharply); Fig. 14 is an explanatory diagram for explaining an example of the group classification; Fig. 15 is a flow chart illustrating the long/short blocks judgment operation at ISO/IEC 13818-7; Figs. 16A and 16B are a flow chart illustrating the operation of the background-art digital acoustic signal coding method; Fig. 17 is an explanatory waveform diagram, as an example, of the acoustic signal; Fig. 18 is a diagram (list) relationship between the short blocks and the perceptual entropy; Figs. 19A and 19B are a flow chart illustrating the operation of the other digital acoustic signal encoding method. Fig. 20 is an explanatory diagram for explaining the relationship between the short block and the tonality index; Fig. 21 is an explanatory diagram for explaining the relationship between the original signal value, the fixed length code, the Huffman code, and the code not capable of decoding; Fig. 22 is an explanatory diagram for explaining the quantization; Fig. 23 is an explanatory diagram for explaining the concrete numerical example of the quantization error; Figs. 24A and 24B are explanatory waveform diagrams for explaining the conversion of the waveform in the time area to the waveform in the frequency are, wherein Fig. 24A shows the relationship between the sound amplitude and the time and Fig. 24B shows the relationship between the sound volume and the frequency; Fig. 25 is an explanatory diagram for explaining the example of dividing the signal in the frequency area into two band widths; Fig. 26 is a signal flow diagram for showing the basic flow of the acoustic signal coding; Fig. 27 is a signal flow diagram for showing the flow of the acoustic signal coding of MP3; and Fig. 28 shows an example of a numerical value row and two cases of respectively allocating fixed-length code and Huffman code to the numerical value row. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In describing the preferred embodiment of the present invention illustrated in the drawings, specific terminology is employed for the sake of clarity. However, the present invention is not intended to be limited to the specific terminology so selected and it is to be understood that each specific element includes all technical equivalents which operate in a similar manner. Referring now to the drawings; wherein like reference numerals designate identical or corresponding parts throughout the several views (diagrams), and more particularly to Figs, 1 through 8 thereof, there are illustrated the improved digital acoustic signal encoding apparatus, the improved method of encoding the digital acoustic signal, and the improved medium for recording the program of encoding the digital acoustic signal. To state in more detail, in order to solve the aforementioned subject matter, the digital acoustic signal encoding apparatus of the present invention is composed of a perceptual entropy calculation means for calculating the perceptual entropy of an input acoustic signal calculated per each of the respective short conversion blocks; a perceptual entropy sum total calculating means for obtaining the sum total in the frame of the perceptual entropy calculated by the perceptual entropy calculation medium; a comparison means for comparing the absolute value of the difference between the respective sum totals in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and a long/short blocks judgment means for judging whether the long block or the short block should convert the block of the input acoustic signal on the basis of the comparison result obtained by the comparison means. Furthermore, in the digital acoustic signal coding apparatus of the present invention, when the absolute value is larger than the threshold value as the comparison result obtained by the comparison means, the long/short blocks judgment means judges that the later frame among the two frames successive in the elapsing time is converted by the short blocks; and, when the absolute value is smaller than the threshold value, the long/short blocks judgment means judges that the later frame among the two frames is converted by the long block. Consequently, it is possible to provide the digital acoustic signal encoding apparatus capable of performing the block conversion further reflecting (effectively utilizing) the property of the input acoustic signal. Furthermore, the other digital acoustic signal encoding apparatus of the present invention is composed of a perceptual entropy calculation means for calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; a perceptual entropy sum total calculating means for obtaining the sum total in the frame of the perceptual entropy calculated by the perceptual entropy calculation means; a comparison medium for comparing the absolute value of the difference between the respective sum totals in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and a judgment means judging that the later frame among the two frames successive in the elapsing time is converted by the short blocks when the absolute value is larger than the threshold value as the comparison result obtained by said comparison means, and that the judgment cannot be performed when the absolute value is smaller than the threshold value. Moreover, in the digital acoustic signal encoding apparatus of the present invention, the threshold value is equal to a value determined per the sampling frequency of the input acoustic signal. The method of encoding digital acoustic signal as the other embodiment aspect of the present invention includes the steps of: calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; obtaining the sum total in the frame of the calculated perceptual entropy; comparing the absolute value of the difference between the respective sum totals in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and judging whether the long block or the short blockshould convert the block of the input acoustic signal on the basis of the comparison result. In the other method of encoding digital acoustic signal of the present invention, when the absolute value is larger than the threshold value, the later frame among the two frames successive in the elapsing time is judged to be converted by the short blocks; and, when the absolute value is smaller than the threshold value, the later frame among the two frames is judged to be converted by the long block. The other method of encoding digital acoustic signal of the present invention includes the steps of: calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; obtaining the total sum in the frame of the calculated perceptual entropy; comparing the absolute value of the difference between the respective sum totals in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and judging the later frame among the two frames successive in the elapsing time to be converted by the short blocks when the absolute value is larger than the threshold value, and judging the later frame among the two frames successive in the elapsing time to be converted by the long block when the absolute value is smaller than the threshold value. In the other method of encoding digital acoustic signal of the present invention, the threshold value is equal to a value determined per the sampling frequency of the input acoustic signal. Moreover, by utilizing a computer program product, which may be stored on a recording medium, for practicing the method of encoding the digital acoustic signal according to the present invention, the apparatus for constructing the encoding system can be widely used for various purposes, without changing the existing system. The above-mentioned computer program product or recording medium is further described later in more detail. ASPECT OF THE EMBODIMENTS OF THE PRESENT INVENTION The digital acoustic signal coding apparatus of the present invention in which a digital acoustic signal is inputted along time axis and divided into blocks therealong, processings such as sub-band division, conversion to frequency area, etc. are practiced per each of the respective blocks. The acoustic signal is divided into plural frequency bands. Coded bits are allocated to each of the respective frequency bands. Scale factor is obtained corresponding to the encoded bit number of the allocated bits. The digital acoustic signal is compressed and encoded by quantizing the acoustic signal with the scale factor. When the conversion to the frequency area is performed, the acoustic signal divided the blocks is converted to either one of a long conversion block or plural short conversion blocks. When the short conversion blocks are employed, the plural short conversion blocks are divided into the groups of plural blocks respectively including one or plural short conversion blocks. The acoustic signal is quantized causing one or plural short conversion block included in the same group to correspond to a common scale factor. The digital acoustic signal coding apparatus is composed of a perceptual entropy calculation medium for calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; a perceptual entropy total sum calculating means for obtaining the total sum in the frame of the perceptual entropy calculated by the perceptual entropy calculation means; a comparison means for comparing the absolute value of the difference between the respective sum totals in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and a long/short block judgment means for judging whether the long block or the short blockshould convert the block of the input acoustic signal on the basis of the comparison result obtained by the comparison means. FIRST EMBODIMENT The first embodiment of the present invention is described hereinafter, referring to the accompanying drawings. Fig. 1 is a block diagram illustrating the structure of a digital acoustic signal encoding apparatus relating to the first embodiment of the invention. The digital acoustic signal encoding apparatus of the embodiment as shown in Fig. 1 is constructed with a block dividing medium 11 for dividing the inputted acoustic signal into the predetermined number of blocks, e.g., the eight successive blocks in the following explanation; a perceptual entropy calculating medium 12 for calculating the perceptual entropy PE of the respective divided blocks in accordance with the above-mentioned calculation formula; a perceptual entropy total sum calculating medium 13 for obtaining the total sum in the frame of the calculated perceptual entropy; a comparison medium 14 for comparing the absolute value of the difference between the respective total sums, in the frame, of the perceptual entropy of the two frames which are successive in the elapsing time with the predetermined threshold value, and a long/short blocks judgment medium 15 for judging either one of the long block or short blocks in accordance with the comparison result. Here, Fig. 2 is a flow chart illustrating the operation of the digital acoustic signal encoding apparatus relating to the first embodiment of the invention. The operation of the embodiment is concretely described hereinafter, referring to Fig. 1 and Fig. 2. On that occasion, the acoustic data shown in Fig. 3 are employed as an example of the input acoustic signal. Here, Fig. 3 shows 16 short blocks in total contained in the two frames which are successive in the elapsing time. As to the frame, the frame f-1 and the frame f are arranged in this time order. The noticed frame is the later frame f. The through-out numbers corresponding to the respective short blocks are attached to the respective frames. At first, the acoustic signal is divided into blocks by the block dividing means 11 and the perceptual entropy calculating means 12 respectively calculates the perceptual entropy PE[f][I] for the successive eight short blocks I (0≦ i≦7) in the frame f (Step S101). The calculation of the perceptual entropy is performed by the method explained in the step 12 of the judgment method of the long/short blocks described in the aforementioned ISO/IEC 13818-7. Next, the summing-up value SPE[f] with respect to 0≦i≦7 of PE[f][I] is obtained as defined in the below equation (2) by use of the perceptual entropy total sum calculating means 13 (Step S102). The absolute value of the difference between the value of SPE [f-1] previously obtained in the similar way at the preceding frame f-1 by use of the comparing means 14 and the value of SPE[f]. The absolute value thus obtained is compared with the previously determined threshold value switch_pe_s, namely, the comparison which value is larger is done (Step S103). It is judged that, in the long/short blocks judgment means 15, when the obtained absolute value is larger than the value switch_pe_s, the step advances to the Step S104 and the frame f is converted with the plural short blocks. On the other hand, it is judged that, in the long/short blocks judgment means 15, when the obtained absolute value is smaller than the value switch_pe_s, the step advances to the Step S105 and the frame f is converted with the one (single) long block. Fig. 4 is a diagram (list) showing the values PE[f][I] corresponding to the respective short blocks shown in Fig. 3. In the example shown in Fig. 4; SPE[f-1]=1390, and SPE[f]=1030. Therefore, when switch_pe_s=500, |SPE[f-1]-SPE[f]| = 360 < switch_pe_s = 500. Consequently, it is judged that, as to the frame f, the conversion is done with the one (single) long block. SECOND EMBODIMENT Next, the operation of the digital acoustic signal encoding apparatus relating to the second embodiment according to the present invention is explained in accordance with the blow chart shown in Fig. 5. Same processings of the steps from step S101 till step S104 shown in Fig. 2 are respectively performed in the step from step S201 till step S204 shown in Fig. 5. Only different operations are described here, and the description of the same operations is omitted here. In the step S203, the absolute value of the difference between the value SPE[f-1] which is already obtained at the previous frame f-1 in the same way as mentioned above and the value SPE[f] and the absolute value thus obtained is compared with the predetermined threshold value switch_pe_s. When the obtained absolute value is larger than switch_pe_s, the step advances to the step S204 and the frame f is judged to be converted with the plural short blocks. On the other hand, when the obtained absolute value is smaller than switch_pe_s, the judgment cannot be done only from the information regarding the difference between the total sum values of the perceptual entropy of the respective short blocks in the frame and the long/short judgment is done with the other means. As an example thereof, the frame f is divided (classified) into the groups such that the difference between the maximum value and the minimum value of the perceptual entropy regarding the respective short blocks in the same group becomes smaller than the predetermined threshold value. As the result, when the number of the groups is 1, the step advances to the Step S206 and the frame f is converted to the frequency area with the one (single) long block. When the number of the groups is 2 or more, the step advances to the Step S204 and the conversion is judged to be done with the plural short blocks. The detail of the group classification is as shown in the flow chart of Fig. 16. As the concrete example, an example as shown in the drawings including Fig. 6 showing the group classification result of the frame f in addition to Fig. 3 and Fig. 4 is considered. Here, switch-pe-s is equal to 500. As mentioned above, since |SPE[f-1]-SPE[f]| = 360 < switch_pe_s = 500, finally, it depends on the judgment due to the result of the group classification. Since the frame f is classified into three groups in Fig. 6 (O-th group is the short blocks i = 0, 1, 2, 3, and 4; First group is the short block i = 5; and second groups are the short blocks i = 6 and 7), the conversion is judged to be done with the plural short blocks. Here, the long/short judgment method employed in the Step S205 is not limited to the method based on the result of the group classification employed here. It is allowable to employ the other judgment method. THIRD EMBODIMENT Furthermore, although one of switch_pe_s is determined in Fig. 2 and Fig. 5, it is also allowable to previously determine the value per each of the sampling frequencies of the input acoustic signal as in the case of Fig. 7 showing the example of the value of switch_pe_s per each of the sampling frequencies, and set the value of switch_pe_s referring to Fig. 7 in accordance with the sampling frequency of the acoustic signal inputted practically. Next, the system structure of the present invention is illustrated in the block diagram of Fig. 8. Namely, Fig. 8 shows the hardware constructed with the microprocessor practicing the software by use of the digital acoustic signal encoding method in the above-mentioned embodiment. In Fig. 8, the digital acoustic signal encoding system is constructed with an interface (hereinafter, abbreviated as I/F) 81, a CPU 82, a ROM 83, a RAM 84, A displaying apparatus 85, a hard disc 86, a keyboard 87, and a CD-ROM drive 88. Furthermore, the commonly-used processing apparatus is prepared, and the program for practicing the method of encoding the digital acoustic signal according to the present invention is recorded in the recording medium capable of reading out the CD-ROM 89, etc. The control signal is inputted from the external apparatus via the I/F 81, and the operator issues the command (instruction) by operating the keyboard 87 or the program of the present invention is automatically initialized. The CPU 82 practices the encoding control process accompanying the above-mentioned digital acoustic signal encoding method in accordance with the above program. The result of the process is stored in the memorizing apparatus (memory) such as the RAM 84, the hard disc 86, etc. The information thus stored is outputted to the display apparatus as occasion demands. As mentioned heretofore, by utilizing the computer program product or recording medium for practicing the method of encoding the digital acoustic signal according to the present invention, the apparatus for constructing the encoding system can be commonly employed, without changing the system used at present. The detail of the computer program product, which may be stored on a recording medium, is further described, hereinafter. A recording medium of the present invention is employed for recording a computer program product or a program of coding the digital acoustic signal coding apparatus. In the recording medium, the digital acoustic signal is inputted along time axis and divided into blocks therealong by use of a computer. Processings such as sub-band division or conversion to frequency area, etc. are practiced per each of the respective blocks. The acoustic signal is divided into plural frequency bands. Coded bits are allocated to each of the respective band widths. Scale factor is obtained corresponding to the coded bit number of the allocated bits. The digital acoustic signal is compressed and coded by quantizing the acoustic signal with the scale factor. When the conversion to the frequency area is performed, the acoustic signal divided into the blocks is converted to either one of a long conversion block or plural short conversion blocks. When the short conversion blocks are employed, the plural short conversion blocks are divided into the groups of plural blocks respectively including one or plural short conversion blocks. The acoustic signal is practiced to quantize causing one or plural short conversion block included in the same group to correspond to a common scale factor. The medium has functions of: calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; obtaining the total sum in the frame of said calculated perceptual entropy; comparing the absolute value of the difference between the respective total sums in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and judging whether the long block or the short blocks, should convert the block of said input acoustic signal on the basis of the comparison result. Another recording medium of the present invention is also employed for recording a program of coding the digital acoustic signal coding apparatus. In the recording medium, the digital acoustic signal is inputted along time axis and divided into blocks therealong by use of a computer. Processings such as sub-band division or conversion to frequency area, are practiced per each of the respective blocks. The acoustic signal is divided into plural band widths. Coded bits are allocated to each of the respective band widths. Scale factor is obtained corresponding to the encoded bit number of the allocated bits. The digital acoustic signal is compressed and encoded by quantizing the acoustic signal with the scale factor. When the conversion to the frequency area is performed, the acoustic signal divided into the blocks is converted to either one of a long conversion block or plural short conversion blocks. When the short conversion blocks are employed, said plural short conversion blocks are divided into the groups of plural blocks respectively including one or plural short conversion blocks. The acoustic signal is practiced to quantize causing one or plural short conversion block included in the same group to correspond to a common scale factor. The medium has functions of: calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; obtaining the total sum in the frame of said calculated perceptual entropy; comparing the absolute value of the difference between the respective total sums in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and judging the later frame among the two frames successive in the elapsing time to be converted by the short blocks when the absolute value is larger than the threshold value, and judging the later frame among the two frames successive in the elapsing time to be converted by the long block when the absolute value is smaller than the threshold value. Heretofore, the digital acoustic signal encoding apparatus, the method of encoding the digital acoustic signal, and the recording medium for recording the program of encoding the digital acoustic signal, have been described. However, the present invention is not limited to the above-mentioned embodiment. Namely, it is needless-to-mention that various sorts of the modification, variation, or replacement can be used, without departing from the scope of the invention as described in the appended claims. As is apparent from the foregoing description, the embodiment of the present invention is featured in that the digital acoustic signal encoding apparatus is constructed with the calculating medium for calculating the perceptual entropy of the input acoustic signal, the perceptual entropy total sum calculating medium for calculating the perceptual entropy total sum in the frame of the perceptual entropy calculated by the perceptual entropy calculating medium, the comparing medium for comparing the absolute value of the difference between the respective total sums in the frame of the timingly-successive two frames of the perceptual entropy with the predetermined threshold value, and the long/short block judging means for judging whether the long block or the short blocks convert the block of the input acoustic signal on the basis of the comparison result. Furthermore, the embodiment is featured in that the long/short block judgment means judges that the later frame among the two frames successive in the elapsing time is converted by the short block when the absolute value is larger than the threshold value as the comparison result obtained by the comparison means, while the long/short block judgment means judges that the later frame among said two frames is converted by the long block when the absolute value is smaller than the threshold value. Consequently, it is possible to provide the digital acoustic signal encoding apparatus capable of performing the long/short judgment corresponding to the input acoustic signal property. The other embodiment of the present invention is featured in that the digital acoustic signal encoding apparatus is constructed with the perceptual entropy calculating means for calculating the perceptual entropy of the input acoustic signal, the perceptual entropy total sum calculating means for calculating the perceptual entropy total sum in the frame of the perceptual entropy calculated by the perceptual antropy calculating medium, the comparing means for comparing the absolute value of the difference between the respective total sums in the frame of the timingly-successive two Frames of the perceptual entropy with the predetermined threshold value, and the judgment means judging that the later frame among the two frames successive in the elapsing time is converted by the short block when the absolute value is larger than the threshold value as the comparison result obtained by the comparison means, and the judgment cannot be performed when the absolute value is smaller than the threshold value. Consequently, it is possible to provide the digital acoustic signal encoding apparatus capable of performing the judgment of the block conversion further reflecting the property of the input acoustic signal. Furthermore, the threshold value is determined per each of the sampling frequencies of the input acoustic signal, and thereby the suitable long/short judgment can be performed corresponding to the difference between the sampling frequencies of the input acoustic signal. The still other embodiment of the present invention is featured in that the method of encoding digital acoustic signal comprises the steps of: calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; obtaining the total sum in the frame of the calculated perceptual entropy; comparing the absolute value of the difference between the respective total sums in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and judging whether the long block or the short block should convert the block of the input acoustic signal on the basis of the comparison result. Consequently, it is possible to provide the method of coding the digital acoustic signal capable of performing the long/short judgment corresponding to the property of the input acoustic signal. Furthermore, the method of coding digital acoustic signal comprises the steps of: calculating the perceptual entropy of a input acoustic signal calculated per each of the respective short conversion blocks; obtaining the sum total in the frame of the calculated perceptual entropy; comparing the absolute value of the difference between the respective sum totals in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and judging the later frame among the two frames successive in the elapsing time to be converted by the short block when the absolute value is larger than the threshold value, and judging the later frame among the two frames successive in the elapsing time to be converted by the long block when the absolute value is smaller than the threshold value. Consequently, it is possible to provide the digital acoustic signal encoding method capable of performing the judgment of the block conversion further reflecting the property of the input acoustic signal. Furthermore, by employing the medium in which the program for practicing the digital acoustic signal encoding method according to the present invention, the apparatus for constructing the encoding system can be commonly used, without changing the system used heretofore. The preferred embodiments of the present invention have been described heretofore. However, numerous additional modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that, within the scope of the appended claims, the present invention may be practiced otherwise than as specifically described herein. This application claims benefit of priority from Japanese Patent Application No. 11-222054 filed in the Japanese Patent Office on August 5, 1999.

Claims: A method for encoding a digital acoustic signal comprising the steps of: providing a digital acoustic signal frame along a time axis; dividing said digital acoustic signal frame into blocks by use of a computer; practising processings including a sub-band division or conversion to frequency area per each of the respective blocks; dividing said acoustic signal into a plurality of frequency bands, allocating encoded bits to each of said respective frequency bands, obtaining a scale factor corresponding to the coded bit number of the allocated bits; and compressing and encoding said digital acoustic signal by quantizing said acoustic signal with said scale factor, wherein, when the conversion to said frequency area is performed, said acoustic signal frame divided into blocks is converted using either one of a long conversion block or a plurality of short conversion blocks; wherein, when said short conversion blocks are employed, said plurality of short conversion blocks are divided into groups of a plurality of blocks respectively including one or a plurality of short conversion blocks; and wherein said acoustic signal is quantized causing one or a plurality of short conversion block included in the same group to correspond to a common scale factor; characterized by said method further comprising the steps of: calculating the perceptual entropy of an input acoustic signal frame calculated per each of said respective short conversion blocks (S101; S201); obtaining said sum total in the frame of said calculated perceptual entropy (S102; S202); comparing the absolute value of the difference between the respective sum totals in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value (S103; S203); and judging whether said long block or said short blocks should convert the block of said input acoustic signal on the basis of the comparison result. Method according to claim 1, wherein, when said absolute value is larger than said threshold value, the later frame among said two frames successive in the elapsing time is judged to be converted by said long block. wherein, when said absolute value is smaller than said threshold value, the later frame among said two frames is judged to be converted by said long block. Method according to any of claims 1 to 2, wherein said threshold value is equal to a value determined per the sampling frequency of said input acoustic signal. Digital acoustic signal encoding apparatus comprising means in which a digital acoustic signal frame is provided along a time axis and divided into blocks, processing means including a sub-band division or conversion to frequency area are applied per each of the respective block, division means in which said acoustic signal is divided into a plurality of frequency bands, quantization means where coded bits are allocated to each of said respective frequency bands, a scale factor is obtained corresponding to the coded bit number of the allocated bits, and said digital acoustic signal is compressed and encoded by quantizing said acoustic signal with said scale factor, means for converting said acoustic signal frame divided into blocks to either one of a long conversion block or plural short conversion blocks, when the conversion to said frequency area is performed; means for dividing said plurality of short conversion blocks into groups of a plurality of blocks respectively including one or a plurality short conversion blocks, when said short conversion blocks are employed ; and means for quantizing said acoustic signal, causing one or a plurality of short conversion block included in the same group to correspond to a common scale factor; characterized by said digital acoustic signal coding apparatus further comprising: perceptual entropy calculation means (12) for calculating the perceptual entropy of an input acoustic signal frame calculated per each of said respective short conversion blocks; perceptual entropy total sum calculation means (13) for obtaining said total sum in the frame of said perceptual entropy calculated by said perceptual entropy calculation means (12); comparison means (14) for comparing the absolute value of the difference between the respective total sums in the frame of the perceptual entropy of the two frames being successive in relation to the elapsing time with a previously determined threshold value; and long/short blocks judgement means (15) for judging whether said long block or said short blocks should convert the block of said input acoustic signal on the basis of the comparison result obtained by said comparison means. Apparatus according to claim 4, wherein said long/short blocks judgement means (15) is adapted such that it judges that the later frame among said two frames successive in the elapsing time is converted by said short blocks, when said absolute value is larger than said threshold value as the comparison result obtained by said comparison means; and that it judges that the later frame among said two frames is converted by said long block, when said absolute value is smaller than said threshold value. Apparatus according to any of claims 4 to 5, comprising threshold determination means wherein said threshold value is equal to a value determined per the sampling frequency of said input acoustic signal. A computer program product directly loadable into the internal memory of a digital computer (82), comprising software code portions for performing the steps of any of claims 1 to 3, when said product is run on a computer. A computer program product stored on a recording medium usable by a digital acoustic signal encoding apparatus, said program product comprising instructions for performing the steps of any claims 1 to 3 to control said encoding apparatus.

Inventors: ARAKI TADASHI, ARAKI, TADASHI, Araki, Tadashi Maison de Wings D-gou, 449-16
Applicants: RICOH KK, RICOH COMPANY, LTD.
Application year: 2000
Main classification: G10L19
IPC codes: G10L19, H03M7