BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates generally to the field of analog and digital sound processing and more particularly to processing monophonic analog signals.
BACKGROUND ART
This invention relates to effects processing of a monophonic analog signal (meaning a signal whose frequency components are all integer multiples of a first fundamental frequency). For example, the signal could come from almost any musical instrument, voice included. However, for generality, the invention is not restricted to cases where the signal source is musical.
The digital signal processing is simplified as a result of the DSP being clocked at a constant multiple of ffund. This means that the sine and cosine functions, as well as the low-pass filters which make up each harmonic selector, are trivial to implement because the frequencies of each sine/cosine, as well as the cutoff frequency of the low-pass filters, are each constant fractions of the DSP clock frequency.
SUMMARY OF THE INVENTION
An input analog signal is assumed to consist of a fundamental component and harmonic components which are concentrated at frequencies which are integer multiples of the fundamental frequency, for example, a musical note played by an instrument, sung by a human voice, etc. This input signal is low-pass filtered by an adaptive filter which allows the fundamental component to pass and attenuates the harmonic components. The resulting signal is passed through a limiter to generate a “reference” clock to a phase-locked loop (PLL). The PLL generates a clock whose frequency is a large multiple of the frequency of the original signal and this high-frequency clock is used to clock a digital signal processor (DSP).
In parallel with the process described above, the original input analog signal is digitized and then processed by the DSP whose clock frequency is generated, as described above, to be an integer multiple of the fundamental frequency of the analog signal. The signal is then decomposed into its individual harmonic components. Each harmonic is subjected to a selected gain or attenuation and optional frequency scaling, and then the modified harmonic components are summed to reconstitute an optionally frequency-scaled output signal with a different harmonic profile than that of the input. The final result is converted back to an analog signal with a D/A converter.
BRIEF DESCRIPTION OF THE DRAWINGS
The various embodiments, features and advances of the present invention will be understood more completely hereinafter as a result of a detailed description thereof in which reference will be made to the following drawings:
FIG. 1 is a block diagram of a system for deriving the fundamental frequency of the input analog signal and employing an integer multiple of that frequency to clock a DSP system;
FIG. 2 is a block diagram of a fundamental frequency detector used in the system of FIG. 1; and
FIG. 3 is a block diagram of a frequency multiplier used in the preferred embodiment of the invention and comprising a phase-locked loop (PLL) with a loss of signal input;
FIG. 4 is a block diagram of a DSP system for selective harmonic amplification and/or frequency scaling and re-synthesis in accordance with the present invention;
FIG. 5 is a schematic representation of a selectively amplified and optionally frequency-scaled n-th harmonic (A (n)) of FIG. 4; and
FIG. 6 is a schematic representation of the re-synthesis of a modified output signal of the invention.
DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT
FIG. 1 illustrates a preferred embodiment which in its broadest sense comprises a detector for determining the fundamental frequency of the analog signal and a frequency multiplier for generating a clock signal having a frequency which is a precise constant multiple of the fundamental frequency. In further detail, the fundamental frequency tracking circuit may be implemented by passing the input signal through a voltage-controlled low-pass filter in a servo loop which forces a fixed amount of attenuation, as shown in FIG. 2. This loop is designed to sufficiently eliminate the higher-order harmonics present in the input signal in order to yield substantially a “sine wave” at the fundamental frequency of the input signal.
Further, the frequency-multiplying circuit necessary for generating the clock for the ND converter and DSP may be an analog or digital Phase-Locked Loop (PLL), an analog version of which is shown in FIG. 3. PLLs can be designed according to a known art and are well understood. The fundamental frequency detector, shown in FIG. 2, operates as follows: An input analog signal is attenuated and this attenuated signal is passed through a peak detector. The output of this peak detector represents a “reference signal”. The analog signal is also passed through a voltage-controlled low-pass filter and the output of this filter is passed through a second peak detector. The difference between the output of this second peak detector and the reference signal is amplified by an error amplifier and fed back as the control voltage to the filter. In the steady state, both peak detectors are outputting the same level, thus the low-pass filter has sufficiently eliminated the higher-order harmonics in the input analog signal so that the output of the voltage-controlled low-pass filter represents a sine wave at the fundamental frequency of the input analog signal.
A “threshold monitor” circuit shown in FIG. 2 generates a control signal to be output to the PLL. This circuit monitors the reference signal by comparing it to a fixed reference threshold. If the reference signal drops below this threshold value, the comparator outputs a “Loss of Signal” output which will disable the feedback action of the PLL in an attempt to “hold” the current locked frequency.
The PLL, shown in FIG. 3, has only one additional feature compared to the typical PLL. When the analog input signal gets too small and the “Loss of Signal” bit is set, the charge pump is disabled and the loop filter attempts to “hold” the current control voltage until the analog input signal returns to a healthy amplitude, and the PLL reference clock becomes valid again. Alternatively, an all-digital approach to the PLL could be considered in which the “Loss of Signal” signal would cause the PLL to “hold” the current frequency by alternative means.
As shown in FIG. 4, the input analog signal is then digitized and processed by a DSP whose clock frequency is generated as described above to be an integer multiple of the fundamental frequency of the analog signal. The signal is then decomposed into its individual harmonic components. Each harmonic is subjected to a unique gain or attenuation, and then the modified harmonic components are summed to reconstitute an output signal with an optionally shifted frequency with respect to the original analog signal and a different harmonic profile than that of the input. The final result is converted back to an analog signal with a D/A converter. This converted result is the “output” of the effects processor.
The extraction of an individual harmonic component (the “n-th” component, in this case) is shown in FIG. 5. This is done as follows: The n-th harmonic is mixed to DC in two separate paths. In the first path, the signal is multiplied by sin(2πnffundt), where ffund is the fundamental frequency of the input signal. In the second path, the signal is multiplied by cos(2πffundt). These two “DC” signals are passed through low-pass filters to eliminate all other frequency content and to isolate the n-th harmonic. The only restriction on the cutoff frequency of these low-pass filters is that it must be less than ffund in order to ensure that no other harmonics are present at this point in the signal path. Alternatively, the filter could be a simple boxcar average of the multiplier outputs over a period corresponding to 1/f_fund. Such a filter, combined with the sine/cosine multipliers, can be recognized as a simple FFT. Embodiments of the harmonic selector which utilize an FFT should be considered within the scope of the present invention. Next, these two DC signals are amplified (or attenuated) by programmable amounts A(n) which can be a function of n. Next, the signal which was generated by multiplying by sin(2πnffundt) is multiplied by sin(2πnxffundt) where “x” is the frequency scaling factor; the signal which was generated by multiplying by cos(2πnffundt) is multiplied by cos(2πnxffundt), where “x” is the frequency scaling factor; and these two results are summed together. Simple trigonometry reveals that if A(n)=2 and x=1 (no frequency scaling), the original signal is reconstructed at the output with no alterations.
FIG. 6 illustrates the synthesis of the modified output signal. The outputs from all N harmonic “selectors” are summed together and the result is converted back into the analog domain using a D/A converter.
It cannot be sufficiently stressed how much the digital signal processing is simplified as a result of the DSP being clocked at a constant multiple of ffund. This means that the sine and cosine functions, as well as the low-pass filters which make up each harmonic selector, are trivial to implement because the frequencies of each sine/cosine, as well as the cutoff frequency of the low-pass filters, are each constant fractions of the DSP clock frequency.
It is expected that creative selection of a signal source, and of the values of the A(n)'s, will yield interesting results. For example, if the input source is a human voice, and the harmonics are modified to resemble those of a violin, the output signal will have the attack and decay, in other words, the dynamics and agility/versatility of the human voice, but the harmonic timbre of a violin. It is evident that this method can be applied to transform the sound of any instrument into any other, or even into the sound of fictitious instruments that don't actually exist in material form. Additionally, the frequency scaling feature can shift the pitch of an instrument or voice, which can obviously be exploited to achieve a much wider variety of effects on the output audio signal.
Having thus disclosed a preferred embodiment of the present invention, it will now be seen that there may be various alternative ways for carrying out the invention, as well as certain modifications that could be made to the described embodiment while still realizing the advantageous features and benefits thereof. Therefore, the scope of protection sought herein should not necessarily be deemed to be limited by the disclosed embodiment. The invention hereof should be deemed to be defined only by the appended claims and their equivalents.