Signal strength adapter circuit

Abstract: The disclosed signal strength adapter circuit comprises a signal adapter (20) having a signal input (21) for receiving a signal whose strength is to be adapted, a digital set input (22) for receiving a strength value and a signal output (23) for producing an adapted signal whose strength corresponds to the strength value on the set input (23). At successive discrete instants a generator (24) generates a series of function values which determine an exponential time function (30) in coarse steps. The circuit comprises adapter means (26, 27) for adapting the signal strength in fine steps in the time intervals between the instants at which the function values are generated.

Description: The invention relates to a signal strength adapter circuit for smoothly changing a signal strength starting with an initial signal strength and ending with a final signal strength, the circuit comprising a signal adapter having a signal input for receiving the signal, a digital set input for receiving a strength value and a signal output for presenting an adapted signal that has a strength corresponding to the strength value on the set input, and the circuit further including function generator means for periodically generating a next function value of a series of successive function values which determine in coarse steps a function in essence exponentially changing with time and including adapter means for adapting the strength value in fine steps in accordance with a predetermined variation starting with a function value that has just been generated and ending with a function value that is generated next, and the circuit further including means for applying the generated strength values to the set input. A circuit of said type which is also denoted by the English term of fade-in and fade-out circuit is known from EP-A 0,261,954. Such fade-in and fade-out circuits are widely used for smoothly adapting the volume of audio signals. In the circuit described in said European patent application the signal strength of an audio signal is adapted in fine steps of 1,5 dB. For this adaptation a relatively complex adapter means is needed. Furthermore, the size of the fine steps is rather large which is experienced by most listeners as annoying. It is an object of the invention to provide a circuit in which a relatively simple adapter means can be used for adapting the signal strength in fine steps. This object is achieved by a circuit as defined in the opening paragraph, characterised in that the fine-step adaptation is linear and that the adapter means comprise means for determining that the strength value has reached the level of the generated function value, and that the adapter means further comprise means for interrupting the adaptation once the strength value has reached the level of the generated function value, and that the adapter means further comprise means for restarting the adaptation once a next function value is generated. By means of a linear fine-step adaptation of the signal strength a simple realisation of the adapter means can be achieved. An embodiment of the circuit according to the invention is characterised, in that the adapter means comprise a comparator for comparing the strength value with the generated function value. Such a comparator can be used efficiently for this purpose. On the one hand side, if the strength value compares equal to the generated function value, no adaptation of the strength value is necessary. Otherwise, if the strength value is not equal to the generated function value, the strength value needs to be adapted so that it will eventually become equal to the generated function value. An embodiment for the circuit in which a linear variation of the intermediate values is achieved in a simple manner is characterised, in that the fine steps correspond to the least significant bit in the strength value. In this embodiment the signal strength with a given word length for the strength value varies with the smallest possible steps. An embodiment of the circuit according to the invention in which a simple implementation of the signal adapter is realised is characterised in that the signal adapter comprises a digital multiplier for deriving the adapted-strength signal on the signal output by multiplying the signal on the signal input by the strength value on the set input. When such a digital multiplier is used, the number of bits effectively used for the signal values on the output is very small with a low signal strength. This may lead to undesired distortions in the event of very low signal strength. An embodiment for the circuit eliminating this drawback is characterised in that the digital multiplier is arranged for generating an m-bit signal value, the circuit comprising noise shaping means for achieving an accurate handling of the signal processed by the digital multiplier, which noise shaping means comprise quantizing means for presenting n most significant bits of the m-bit signal value on the signal output, and adder means for adding the m-n least significant bits of the m-bit signal value to a next m-bit signal value to be generated by the digital multiplier. In this embodiment the effect of truncating errors made during the multiplication and, consequently, the disturbance of the adapted signal is reduced considerably. The function values expressing the exponential variation of the strength may be stored in a memory, for example, a ROM. Due to the relatively large steps in the approximation of the exponential variation, the size of the memory may remain small. It is also possible to determine the function values by means of an iterative multiplication. An embodiment for the signal strength adapter circuit in which this is realised is characterised, in that the function generator means comprise a further digital multiplier and a control means for causing the further digital multiplier to perform an iterated multiplication for which the result of a previous multiplication is multiplied each time by a constant value and successive results obtained therefrom represent the successive function values. The invention will be further explained hereinafter with reference to a drawing in which: Fig. 1 represents a digitised signal, Fig. 2 shows an embodiment for the circuit according to the invention, Figs. 3 and 4 show by way of illustration the variation of the signal strength plotted against time, Fig. 5 shows an embodiment for a generator for generating function values of an exponential function, and Figs. 6 and 7 show modifications of the circuit according to the invention. With the reproduction of audio information there is often a need for changing the strength of the reproduced audio signal from an initial value to a final value in a manner smooth to the hearing system. Such a smooth change of signal strength is often denoted by the terms of fade-in and fade-out. Preferably, the signal strength varies as an exponential function of time, because such a variation is perceived as being very smooth by a listener. Fig. 3 shows such an exponential variation. The curve 30 shows a variation in which the function value A decreases exponentially as a function of time beginning with the initial value A1 and ending with a final value A2. The curve 31 shows an exponential increase of the function value plotted against time t. In discrete-time systems which the customary digital signal processors are, such a variation of the signal strength may only be approximated by setting the signal strength at discrete instants to strengths corresponding to the function values of the exponential function at these instants. The step size denoting the difference between two successive function values then has to be small to avoid the listener perceiving a clear step-like change of signal strength. A practical value for the step size lies, for example, in the order of 0.1 dB. With a customary change of signal strength of, for example, about 96 dB, this means that the number of function values to be generated is of the order of 960. If these function values were used directly for setting the signal strength, this would result in an audible distortion of the strength-modified audio signal as will be explained hereinafter. Let us assume that in a time interval of a customary length of two seconds the signal strength is controlled from initial value to final value, this means approximately 500 step-size adaptations of 0.1 dB per second. Such a change may be considered a completely smooth (non-stepped) change of signal strength with, superposed thereon, an amplitude modulation with a signal strength of 0.1 dB and a frequency of about 500 Hz. This results in a noise component lying in the audible frequency range. This noise may be reduced by changing the signal strength between two function values in smaller steps. This could be effected by selecting an even smaller step size in lieu of a 0.1 dB step size when the function values are generated. Smaller steps, however, are detrimental as will be further explained hereinafter with reference to an example. Let us assume that the desired variation (V) of the signal strength is given by A t , that the signal strength is adapted with each new sample value of the audio signal, that the maximum fade duration is about 23 seconds to reduce the signal strength by a factor of 2 16 . With a sample rate of 44.1 kHz this means that the number of steps in which the signal strength is changed is equal to 1,014,300. The associated value of A is equal to 0.999989 (≈ 1-2 -16 ). The fade rate may be set by adapting A. The next A value is equal to 1-2 -15 . With this value of A the signal strength is reduced to 2 -16 in 363,400 steps. This means that the next fade duration may be set at about one third of the maximum fade duration. In addition, for each newly desired fade duration a new value of A is to be calculated, based on the desired fade duration in the desired signal strength change, which is a complicated calculation and thus requires an advanced arithmetic circuit. Preferably, the exponential function is to be approximated in coarse steps of, for example, 0.1 dB, and the strength value between two successive function values is reduced in accordance with a specific variation with time as is shown, for example, in Fig. 4, which shows an enlarged form of an approximation of a small portion 40 of the variation shown in Fig. 3. The successive function values at the instants tp and tp+1 are equal to A p and A p+1 . From instant tp the strength value diminishes in small steps from A p to A p+1 . Though not of necessity, the size of these small steps preferably corresponds to the least significant bit of the strength value. For they are the smallest steps that can be made with a given word length (bits) for the strength value. The adjustments in the time interval between the instants t p and t p+1 show a linear variation. This is advantageous because such a variation is very easy to realise. It is essential that the step size is sufficiently small not to cause any audible distortion. In addition, it is advantageous for the strength value variation between successive function values smoothly changes from A p to A p+1 . The variation is preferably always the same so that this variation may be realised with simple technical means. The method described above is advantageous in that the fade duration (this is the total duration of the fade procedure) and the fade step can be set accurately and in a simple manner, as will be illustrated hereinafter with the aid of an example. Let us assume that the ratio between the minimum and maximum signal strengths is 2 16 (≈ 90 dB) and that the signal strength can be set in 2 10 steps. This means that the signal strength can be set with an accuracy of about 0.08 dB. The successive function values of the exponential variation desired for the fade-in and fade-out correspond to an accuracy (of 0.08 dB) with which the signal strength can be set. The fade duration may be set by setting the intervals at which the function values are generated. Preferably, the length of these intervals is an integer number of times the period of the frequency with which the sample values of the signal whose signal strength is to be adapted are produced (for audio signals a customary value of this frequency is equal to 44.1 kHz). A change of the length of the intervals by one period of this frequency corresponds to the 2 10 (44,100) -1 = 0.023 second. Based on the desired fade step the number of coarse steps in which the function value is to be adapted may be simply determined by dividing the fade step by the difference value of 0.08 dB between successive function values. Given this number of steps and a desired fade duration, the duration of the intervals between the generation of the successive function values can be determined by dividing the fade duration by said number of steps. The number of steps may be determined in a customary fashion by a program-controlled arithmetic circuit based on a fade duration and fade step fed by the user. In the following there will be described an embodiment for the signal strength adapter circuit to be used in combination with a digitized audio signal. Fig. 1 shows such a digitized signal. The signal shown comprises a number of signal samples B1, B2, B3, ..., Bk denoting the signal values of the audio signal at equidistant discrete instants t1, t2, t3, ..., tk. The signal values are represented by a digital word having a fixed word length of, for example, 16 bits. Fig. 2 shows a signal strength adapter circuit according to the invention. In this Fig. 2 a signal adapter is referenced 20. The signal adapter 20 has a signal input 21 for receiving a signal whose length is to be adapted, for example, the audio signal represented in Fig. 1. The signal adapter 20 further has a set input 22 for receiving a strength value denoting the desired signal strength. Finally, the signal adapter 20 has a signal output 23. The signal adapter 20 is an adapter of a customary type generating on the output 23 a signal that corresponds to the signal received on the input 21, whose signal strength corresponds to the strength value presented at the set input 22. The signal adapter 20 preferably comprises a digital multiplier of a known type. There should be observed that also different signal adapters are possible. For example, in the case where the signal on signal input 21 is an analog signal, the signal adapter may be formed by an amplifier whose gain factor can be set in that a suitable digital setting signal is fed, as has been described, for example, in said Patent US 4,306,114. The circuit shown in Fig. 2 further includes a generator 24 which generates a series of successive function values which denote the function values for the exponential function changing with time at discrete, preferably equidistant, instants. A new function value can, for example, be generated each time after a number of samples B that can be set (for example, fifteen) have been applied to the signal input 21. The generated function value is stored in a register 25. The signal strength adapter circuit further includes a register 26 of a type whose contents may each time be changed by a constant adapting value in response to a clock pulse received through a clock input 28. The clock pulse rate may be selected to be equal to the sample rate of the signal at the signal input 21. However, in principle a rate not related to the sampling rate may also be selected. The adapting value preferably corresponds to the value of the least significant bit of the digital value stored in the register 26. For such an adapting value the strength value with a given word length (bits) is adapted in steps which are finest possible. The contents of register 26 are compared with those of register 25 by a comparator circuit 27. A control signal denoting the result of this comparison is applied to a control input of the register 26. If this control signal denotes that the contents of the two registers are equal, the adaptation of the contents of the register 26 is interrupted in response to the supplied clock signals. The contents of the register 26 are continuously applied to the set input 22 of the signal adapter 20 as a strength value. The operation of the circuit shown in Fig. 2 is as follows: let us assume that the set signal strength determined by the contents of register 26 is equal to A1 and that the signal strength is to be smoothly reduced to the final value A2. In that case the generator 24 will be activated and will apply each time a new function value to the register 25 at equidistant instants. Once a new function value has been generated, which is lower than the strength value stored in the register 26, the comparator circuit 27 will generate a control signal as a result of which the contents of the register 25 will be adapted in response to a clock pulse. Consequently, the strength value variation obtains the downward shape shown in Fig. 4. At a specific instant referenced tp' in Fig. 4 the contents of the register 26 will again be equal to those of register 25 and, under the control of the control signal supplied by circuit 27, the clock pulse-driven adaptation of the strength value will be interrupted until the instant tp+1 at which a next function value is supplied by the generator 24. This process of adapting the function value in coarse steps and, subsequently, adapting the strength value in small steps is continued until the instant at which the strength value has reached the final value. In like manner to the one described hereinbefore the signal strength may also be smoothly increased. In that case the generator will generate function values of, for example, the curve 31 of Fig. 3 at equidistant instants. In response to the clock pulses received through input 28, the contents of the register 26 will constantly be increased with a small step until the contents of the register correspond to those of register 25. The adaptation in small steps is then interrupted again until the instant at which a next function value will be stored in the register 25 by the generator 24. The function generator 24 may comprise, for example, a ROM in which the series of function values are stored and a next function value is read from ROM at equidistant instants. The principle of another embodiment for the generator 24 is shown in Fig. 5. The generator shown 24 comprises a digital multiplier 50 having a first input 51 and a second input 52 and an output 53. The output 53 is coupled to an input of a buffer register 54. The output of the buffer register 54 is connected to the input 52 of the multiplier 50. Furthermore, the generator 24 includes a buffer register 55 whose output is connected to the input 51 of the multiplier 50. The buffer register 55 may contain a multiplication constant supplied over a bus 56. The buffer register 54 may contain an initial value supplied over a bus 57. The operation of the generator 24 shown in Fig. 5 is as follows: Let us assume that a user enters the value of the desired fade step and desired fade duration via customary setting circuits, an arithmetic circuit, for example, comprised of generator 24, calculates the number of function values to be generated and the intervals in which these function values are to be generated in a manner described hereinbefore. Then the multiplication constant At (which is the same for any desired setting of fade duration and fade step) is loaded into the register 54 over bus 57. In addition, the initial value A1 is loaded into the buffer register 55 over bus 56. Subsequently, the contents of the register 55 are multiplied by the multiplier 50 and the result of the multiplication is again loaded into the register 54. In this manner the function values of the desired function are generated for successive equidistant time instants, until the desired number of function values has been generated and the signal strength has been adapted with the step size determined by the fade step. In the case where a multiplier is used both for the generation of the function value and for the signal adaptation, it is to be preferred to use the same multiplier for both said functions. Fig. 6 shows an embodiment for the signal strength adapter circuit in which this is realised. Herein the elements corresponding to those of Figs. 2 and 5 are referenced by like reference characters. The signal adapter in the embodiment shown in Fig. 6 is formed by a multiplier referenced 20a. The signal whose strength is to be adapted is not directly applied to the input 21 of the multiplier 20a, but is applied to the input 21a of a buffer register 60, the output of which register is connected to the input 21. The signal whose strength has been adapted is not tapped from the output 23 but from the output 23a of a buffer register 61 whose input is coupled to the output 23 of the multiplier 20a. Besides register 26, also the buffer register 55 is connected to the input 22 of the multiplier 20a. The output of the buffer register 54 is coupled to the input 22 of the multiplier 20a. The input of the buffer register 54 is coupled to the output 23. The registers 60 and 54 may be controlled in a customary fashion by a controller 63, so that in first time intervals Ta the buffer 60 has access to the input 21 of the multiplier 20a and in second time intervals Tf the register 54 has access to the input 21. Similarly, the registers 26 and 55 may be controlled by the controller 63, so that in the first time intervals Ta the buffer 26 has access to the input 22 of the multiplier 20a and in second time intervals Tf the register 55 has access to the input 22. In this manner there is achieved that in the time intervals Ta always a sample of the adapted signal on output 23 of multiplier 20a becomes available. This adapted sample is loaded into the buffer register 61 under the control of the controller 63, so that the signal whose strength has been adapted can be tapped from the output 23a of the buffer 61. In time intervals Tf there is always a next strength value available on the output of the multiplier 20a. This strength value is loaded into the buffer register 54 under the control of the controller. Obviously, the multiplier 20a may also be substituted by a multiplier which was already available anyhow for performing multiplications for other signal processes. For example, a digital signal processor often comprises the necessary digital filters in which also a number of multiplications are to be performed. The multiplier used for performing the filter operation may also be used for adapting the signal strength and generating the function values. With signal strengths set to a low value only a relatively small number of the available bits of the samples having adapted signal strength on the output of the signal adapter are used for representing the sample value. This means that the influence of quantization noise becomes noticeable with a low value of the set signal strength. Fig. 7 shows an embodiment for the multiplier in which the influence of quantization noise is strongly reduced. The signal samples applied to input 21 have an n-bit word length. A customary value for n is twenty. The multiplier 20a is of a type representing the result of the multiplier in words m bits in length, with m greater than n. A practical value for m is, for example, thirty-eight. From these m-bits the n most significant bits are used for the signal value of the sample having adapted signal strength. These n most significant bits are fed to a bus 70. Between the output 23 of the multiplier and the bus 70 an adder 71 is inserted of which a first input 72 is coupled to the output 23 of the multiplier 20a. The n most significant bits on the output of the adder 71 are fed to the bus 70. The m-n least significant bits on the output of the adder 71 are applied to a second input 74 of the adder 71 via a buffer register 73. In this manner there is achieved that the value represented by the m-n least significant bits is always added to the result of the next multiplication. The quantization method (truncation) described hereinbefore, in which the residual error is added to a value to be quantized next, is known as first-order noise shaping. By implementing noise shaping, the desired signal is approximated in a simple but highly accurate manner. This is contrary to methods in which the result of the multiplication is rounded off or truncated. The first-order noise shaping used here is advantageous in that the signal contains few higher harmonics, so that a sinusoidal audio signal with a very low signal strength is still perceived as a sinusoidal signal by a listener. Due to the noise shaping the noise level at higher frequencies increases. Therefore, this noise shaping is preferably used in combination with an increase of the sample rate (upsampling) or in combination with large word sizes. In the latter case the quantization noise lies at a very low level. Finally, it is noted that it is alternatively possible, in principle, to use a higher order noise shaping in lieu of a first-order noise shaping. However, this produces only a minor improvement with respect to the suppression of the higher harmonics, whereas the type of circuit required is considerably more complex.

Claims: Signal strength adapter circuit for smoothly changing a signal strength starting with an initial signal strength and ending with a final signal strength, the circuit comprising a signal adapter (20) having a signal input (21) for receiving the signal, a digital set input (22) for receiving a strength value and a signal output (23) for presenting an adapted signal that has a strength corresponding to the strength value on the set input (22), and the circuit further including function generator means (24) for periodically generating a next function value of a series of successive function values which determine in coarse steps a function in essence exponentially changing with time and including adapter means (26,27) for adapting the strength value in fine steps in accordance with a predetermined variation starting with a function value that has just been generated and ending with a function value that is generated next, and the circuit further including means (26) for applying the generated strength values to the set input (22), characterised in that the fine-step adaptation is linear and that the adapter means (26,27) comprise means (27) for determining that the strength value has reached the level of the generated function value, and that the adapter means (26,27) further comprise means (26,27) for interrupting the adaptation once the strength value has reached the level of the generated function value, and that the adapter means (26,27) further comprise means (27) for restarting the adaptation once a next function value is generated. Circuit as claimed in Claim 1, characterised in that the adapter means (26,27) comprise a comparator (27) for comparing the strength value with the generated function value. Circuit as claimed in Claim 1 or 2, characterised in that the fine steps correspond to the least significant bit in the strength value. Circuit as claimed in one of the preceding Claims, characterised in that the signal adapter (20) comprises a digital multiplier (20a) for deriving the adapted-strength signal on the signal output (23) by multiplying the signal on the signal input (21) by the strength value on the set input (22). Circuit as claimed in Claim 4, characterised in that the digital multiplier (20a) is arranged for generating an m-bit signal value, the circuit comprising noise shaping means for achieving an accurate handling of the signal processed by the digital multiplier (20a), which noise shaping means comprise quantizing means (70) for presenting n most significant bits of the m-bit signal value on the signal output, and adder means (71) for adding the m-n least significant bits of the m-bit signal value to a next m-bit signal value to be generated by the digital multiplier (20a). Circuit as claimed in Claim 4 or 5, characterised in that the function generator means (24) comprise a further digital multiplier (50) and a control means for causing the further digital multiplier (50) to perform an iterated multiplication for which the result of a previous multiplication is multiplied each time by a constant value and successive results obtained therefrom represent the successive function values.

Inventors: DE LOORE BART JOZEF SUZANNE, LAMMERS FRANCISCUS WILHELMUS M, DE LOORE, BART JOZEF SUZANNE, LAMMERS, FRANCISCUS WILHELMUS MARIA
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 1993
Main classification: H03G3
IPC codes: H03H17, H03G3