The present application is based on and claims the benefit of priority from the prior Japanese Patent Application No. 2008-116875, filed Apr. 28, 2008, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to a resonance tone generating apparatus for generating resonance tones of musical signals and an electronic musical instrument provided with the resonance tone generating apparatus.
2. Description of the Related Art
An electronic musical instrument is well known, which is provided with a damper pedal and changes a musical tone in response to operation of pressing down the damper pedal. In particular, resonance tone adding apparatuses are proposed, which generate resonance tone data based on musical signal data and add the generated resonance tone data onto the musical signal data in response to operation of the damper pedal.
In general, the above resonance tone adding apparatus receives digital musical signal data and performs a filtering process on the received musical signal data using a digital filter, thereby generating resonance tone data. In the filtering process, FIR (Finite Impulse Response) filter and/or IIR (Infinite Impulse Response) filter are used.
When FIR filter is used, a convolution operation is performed on supplied musical signal data x(n−k), where “k”=0, 1, . . . , (n−1), and impulse response data a(k) acquired from reverberation characteristics of a concert hall, whereby resonance tone data Y(n)=Σ×(n−k)×a(k) can be obtained.
U.S. Pat. No. 5,569,870 discloses an electronic musical instrument that changes an envelop of musical signal data depending on a position of a pressed damper pedal, and generates a musical tone particularly when the damper pedal is pressed down half way.
Japanese Patent No. 2,692,672 discloses a technique, in which a resonance tone generating apparatus generates resonance tone data RWD based on waveform data SWD corresponding to a musical tone waveform, and a multiplier adjusts an amplitude level of the waveform data AWD to decrease during the course of pedal data increasing from the minimum value “0” to the maximum value “1”, wherein the pedal data indicates how much the damper pedal has been pressed down and is detected when said damper pedal is pressed down, and further the multiplier adjusts the resonance tone data RWD generated by the resonance tone generating apparatus to increase.
Particularly, resonance tones of a piano are complex and a technique for generating resonance tones of piano strings has been proposed.
In Japanese Patent Application No. 2007-193129 A is proposed a technique that is provided with groups of plural string resonance circuits (digital filters) each having resonance frequencies corresponding to harmonic tones of each letter notation and performs the convolution operation on data output from each string resonance circuit, thereby generating a resonance tone similar to a string resonance tone of the piano.
In electronic musical instruments, resonance tones including reverberation sounds generated when the damper pedal is pressed down cannot be reproduced simply by changing an envelop of musical signal data as disclosed in U.S. Pat. No. 5,569,870.
Further, in the technique disclosed in Japanese Patent No. 2,692,672, a mixing ratio of the musical tone to resonance tone is changed by a so-called cross-fade technique, but the technology has a disadvantage that, since the resonance tone itself does not change, change of the resonance tone due to pressing operation of the damper pedal is poor.
Further, in the technique disclosed in Japanese Patent Application No. 2007-193129 A, since plural string resonance tone generating circuits are provided for each keyboard zone, such disadvantage is invited that a large scale of circuit is required. Further, since the resonance tone is not produced in consideration of a piano structure, another disadvantage is invited that a sufficient resonance tone cannot be reproduced even though the large scale of circuit is employed.
It is an object of the present invention to provide a resonance tone generating apparatus for generating resonance tones of musical signals and an electronic musical instrument provided with the resonance tone generating apparatus.
According to one aspect of the invention, there is provided a resonance tone generating apparatus for generating resonance tone data to be applied to musical signal data, which apparatus comprises an impulse response data storing unit for storing impulse response data including impulse response coefficients, wherein the impulse response coefficient indicates an impulse response characteristic and is defined by a value on a time axis, a product-sum operation unit for performing a product-sum operation on a series of musical signal data on the time axis and the impulse response coefficients read from the impulse response data storing unit, wherein the product-sum operation unit comprises plural delay units for delaying the musical signal data, plural multiplying units for multiplying one of the musical signal data and delayed musical signal data output from the delay units by the impulse response coefficients; and plural adder units for summing up data output from the multiplying units, and a feed back unit for feeding back first delayed musical signal data output from the product-sum operation unit to the product-sum operation unit, wherein the feed back unit comprises a multiplying unit for multiplying the first delayed musical signal data output from the product sum operation unit by a multiplication coefficient to obtain multiplication data and an adder unit for summing up second delayed musical signal data output from the product-sum operation unit and the multiplication data obtained by the multiplying unit of the feed back unit.
According to another aspect of the invention, there is provided an electronic musical instrument, which comprises a key board having plural keys, a damper pedal for generating a signal indicating a state of pressed pedal when the damper pedal is pressed down, a tone producing unit for producing musical signal data of a pitch corresponding to a pressed key of the key board, when the key of the key board is pressed, an impulse response data storing unit for storing impulse response data including impulse response coefficients, wherein the impulse response coefficient indicates an impulse response characteristic and is defined by a value on a time axis, a product-sum operation unit for performing a product-sum operation on a series of musical signal data on the time axis and impulse response coefficients read from the impulse response data storing unit, thereby producing resonance tone data, wherein the product-sum operation unit comprises a delay unit for delaying the musical signal data produced by the tone producing unit, a multiplying unit for multiplying one of the musical signal data and delayed musical signal data output from the delay unit by the impulse response coefficients, and an adder unit for summing up data output from the multiplying unit, a feed back unit for feeding back first delayed musical signal data output from the delay unit of the product-sum operation unit to the product-sum operation unit, wherein the feed back unit comprises a multiplying unit for multiplying the first delayed musical signal data output from the delay unit of the product-sum operation unit by a multiplication coefficient to obtain multiplication data, and an adder unit for summing up second delayed musical signal data output from the delay unit of the product-sum operation unit and the multiplication data obtained by the multiplying unit of the feed back unit, and a combining unit for combining the musical signal data produced by the tone producing unit and the resonance tone data produced by the product-sum operation unit.
Now, the first embodiment of the present invention will be described in detail with reference to the accompanying drawings.
The electronic musical instrument 10 according to the first embodiment of the invention comprises a key board 12, CPU 14, ROM 16, RAM 18, musical tone producing unit 20 and operator group 22, thee elements being connected with each other through a bus 19, as shown in
The key board 12 transmits to CPU 14 information for specifying a pressed key and information indicating a velocity of the pressed key in response to a key pressing operation by a player.
CPU 14 controls operation of the whole electronic musical instrument 10 and generates various control signals to be supplied to the musical tone producing unit 20 to generate a musical tone of a pitch corresponding to the pressed key. ROM 16 stores a program, constants used for running the program, waveform data, which is used by the musical tone producing unit 20 to generate musical signal data, and impulse response data used in the resonance tone adding circuit 26. A waveform data storing unit 30 and impulse response data storing unit 31 are provided in ROM 16, as will be described later. RAM 18 serves to temporality store data generated in the course of running the program, variables, and parameters.
A damper pedal 24 is capable of outputting not only signals indicating ON and OFF positions of the damper pedal 24 but also a signal indicating an intermediate position of the damper pedal 24. In the present embodiment, for instance, in the vicinity of the damper pedal 24 there are provided two switches (first and second switches, not shown) are provided in a vertical direction (perpendicular to an axis of rotation of the damper pedal 24). When the damper pedal 24 is not pressed down, both the first and the second switches remain off. When the damper pedal 24 is pressed down half way, only the first switch is turned on and the second switch still remains off. When the damper pedal 24 is pressed down full way, both the first and the second switches are turned on. With the present arrangement of the damper pedal 24, there can be established three states of the damper pedal 24, that is, a full pedal state, in which the damper pedal 24 has been pressed down full way (both the switches are turned on), a half pedal state, in which the damper pedal 24 has been pressed down half way (only the first switch is turned on and the second switch remains off), and an off pedal state, in which the damper pedal 24 has not been pressed down (both the switches remain off).
In place of the above arrangement of the damper pedal and switches, a variable register may be used, which varies its resistance value in proportion to a pressing down level of the damper pedal 24 and outputs a signal corresponding to the resistance value.
In accordance with the pitch information included in the control signal 1, the waveform reproducing circuit 40 reads waveform data corresponding to the timbre information included in the control signal 1 from among plural pieces of waveform data stored in the waveform data storing unit 30. The envelope producing circuit 41 outputs envelope data corresponding to the velocity information included in the control signal 1. The multiplying circuit 42 multiplies the waveform data by the envelope data, thereby outputting musical signal data. The musical signal data output from the tone generating circuit 25 is data including not only a single sort of data produced when a single key is pressed, but also plural sorts of data produced when plural keys are pressed respectively, wherein composite data is output.
The pitch information and envelope information included in the control signal 1 are produced by CPU 14 based on the signal sent from the keyboard 12. The timbre information included in the control signal 1 is produced by CPU 14 based on information corresponding to the operator of the operator group 22 operated by the player.
As shown in
The acoustic system 27 comprises D/A converter 32, amplifier 33 and speaker 34. The composite data output from the adder circuit is converted into an analog signal, and then the analog signal is amplified by the amplifier 33, and output from the speaker 34.
In the resonance tone generating circuit 35 in the present embodiment, input musical signal data X(n) is successively delayed by the delay circuits 51, 52, , and 5(n−1). The multiplying circuits 60, 61, 62, . . . , 6p, 6(p+1), . . . , and 6(n−1) are given the impulse response coefficients a0, a1, a2, . . . , ap, ap+1, . . . , and an-1, respectively. In the multiplying circuits 60, 61, 62, . . . , 6p, 6(p+1), . . . , and 6(n−1), the musical signal data or delayed musical signal data is multiplied by appropriate impulse response coefficients, whereby plural pieces of multiplication data are obtained.
The multiplication results (the plural pieces of multiplication data) obtained by the multiplying circuits 60, 61, 62, . . . , and 6(n−1) are accumulated in the adder circuits 71-7(n−1). The accumulated data is output as resonance tone data Y(n). The delay circuits 51-5(n−1), multiplying circuits 60-6(n−1) and adder circuits 71-7(n−1) compose FIR filter of “In” taps.
Further, in the present embodiment, the multiplying circuit 80 multiplies the musical signal data delayed and output from the delay circuit 5(n−1) by the multiplication coefficient included in the control signal 2, thereby producing feed back waveform data whose level has been properly adjusted. The feed back waveform data, is supplied to the adder circuit 81 provided between the delay circuit 5p at the “p”th stage and delay circuit 5(p+1) at the (p+1)th stage. Therefore, in the adder circuit 81, the delayed musical signal data and feed back waveform data are added together and output to the delay circuit 5(p+1) at the (p+1)th stage. In the multiplying circuits 6(p+1), 6(p+2), . . . , and 6(n−1) at the (P+1)th and subsequent stages, the delayed musical signal data with feed back waveform added is multiplied by the appropriate impulse response coefficients respectively.
As shown in
In the combined data of the musical signal data and resonance tone data are included string sounds, chamber sounds and string resonance tones included in the original waveform data, and in the resonance tone data are included reproduced string tones and string resonance tones. However, in actual piano sounds, a string resonance tone keeps sounding though in an extremely low level for more than 10 seconds, sometimes for several 10 seconds. Therefore, sometimes, reproduction of resonance tone for about 1.8 seconds is not enough.
In
In the electronic musical instrument according to the present embodiment, in response to operation of a key of the key board 12, CPU 14 generates the control signal 1 to produce a musical tone of a pitch corresponding to the pressed key and sends the control signal 1 to the tone generating circuit 25, thereby instructing to generate a sound. In the tone generating circuit 25 (
As described above, there are established three states of the damper pedal 24, that is, the full pedal state, half pedal state, and the off pedal state. CPU 14 detects the state of the damper pedal 24, and generates the control signals 1 corresponding to the full pedal state, half pedal state, and off pedal state of the damper pedal 24, respectively. Further, in the present embodiment, CPU 14 calculates based on the state of the damper pedal 24 the multiplication coefficient to be included in the control signal 2, and supplies the control signal 2 to the multiplying circuit 80 of the resonance tone generating circuit 35.
Meanwhile, when it is determined at step 601 that the damper pedal 24 has not been pressed down (NO at step 601), CPU 14 calculates at step 605 FB (%)=(the number of pressed keys)×a (coefficient)+C (constant), where, for instance, “a”=8 and “C”=30. Then, CPU 14 judges at step 606 whether the calculated FB is not less than 83% or not. When it is determined that the calculated FE is not less than 83% (YES at step 606), CPU 14 sets the multiplication coefficient FB to 83% (FB=83%) at step 604. When the damper pedal 24 has not been pressed down, only a string resonance tone is generated in principle. Therefore, a reverberation sound is reproduced, which has substantially the same level and reverberation time as the resonance tone generated when the damper pedal 24 has been pressed down half way.
In the present embodiment, in the case the damper pedal 24 is not pressed down, a level of the feed back waveform data, that is, the multiplication coefficient for specifying a mount to be fed back is changed based on the number of pressed keys, and the multiplication coefficient increases as the number of pressed keys increases before the feed back waveform data reaches a certain level, whereby such a state is realized that the more keys are pressed, the larger or longer become the level and reverberation time of reverberation sound.
When the damper pedal 24 has been pressed down, a multiplication coefficient of a certain level is acquired depending on the state of the damper pedal 24, because not only string resonance tones of pressed keys but also string resonance tones of other keys are generated when the damper pedal 24 is pressed down. Further, the multiplication coefficient in the full pedal state is set larger than in the half pedal state, whereby the level and reverberation time of reverberation sound corresponding to the state of damper pedal 24 can be reproduced.
The multiplication coefficient calculated as described above is supplied to the multiplying circuit 80 of the resonance tone generating circuit 35. Then, in the multiplying circuit 80, the waveform data output from the delay circuit 5(n−1) at the final stage (the (n−1)th stage) of the FIR filter with “n” taps is multiplied by the calculated multiplication coefficient, and fed back to the adder circuit 81 as feed back waveform data not more than a value of “1”. Then, the musical signal data output from the adder circuit 81 is successively delayed by the delay circuits 5(p+1) . . . at the (p+1)th stage and successive stages, and subjected to the convolution operation with the impulse response coefficients in the multiplying circuits 6p, 6(p+1), . . . at the “p”th and subsequent stages, and the data output from the multiplying circuits is accumulated by the adder circuits 71, 72, 7p, . . . , and output as resonance tone data Y(n).
The level of the resonance tone data Y(n) is adjusted based on a control signal 3 in the resonance tone generating circuit 35 and supplied to the adder circuit 37 (
Since the level of the feed back waveform decreases gradually, the level of the resonance tone data Y(n) gradually decreases finally to approximately “0”. During a time duration before the level of the resonance tone data Y(n) decreases to approximately “0”, the level of the feed back waveform changes in accordance with the multiplication coefficient FB. In the present embodiment, the waveform data is repeatedly multiplied by the impulse response coefficients corresponding to the final time duration T2 (
In the present embodiment, first delayed data output from a product-sum operation circuit (delayed data output from the final stage) is multiplied by a certain multiplication coefficient, whereby multiplication data is obtained, and the multiplication data and second delayed data output from the product-sum operation circuit (delayed data output from the “p”th stage) are summed up and output. In this way, musical signal data of a certain level is fed back, and the fed back musical signal data and the delayed musical signal data are summed up and a product-sum operation is executed on the summed up musical signal data (waveform data), whereby a natural resonance tone can be reproduced over a time period longer than a reproducing time of the musical signal data.
More specifically, in the present embodiment, the musical signal data is successively delayed by the delay circuits 51, 52, . . . , 5(n−1) respectively at the first to the (n−1)th stage in the product-sum circuit. The multiplying circuit 80 in the feed back circuit receives the delayed musical signal data from the delay circuit 5(n−1) at the (n−1)th stage and multiplies the received data by the multiplication coefficient, thereby obtaining multiplication data. The adder circuit 81 in the feedback circuit sums up the delayed musical signal data and the multiplication data, wherein said delayed musical signal data is output from the delay circuit 5p at the “p”th stage in the product-sum operation circuit and said multiplication data is supplied from the multiplying circuit 80. Then, the summed up data is supplied to the multiplying circuit 6p at the “p”th stage and to the delay circuit 5(p+1) at the (p+1) th stage. By setting a value of “p” to a desired value, a time duration of the musical signal data to be fed back can be adjusted.
In the present embodiment, when the damper pedal 24 is pressed down, there are established two pedal states, that is, the full pedal state and the half pedal state. The multiplication coefficient to be supplied to the multiplying circuit 80 in the feed back circuit is adjusted and set to a larger value when the damper pedal 24 is in the full pedal state than in the half pedal state. In other words, when the damper pedal 24 is in the full pedal state, a resonance tone having a higher level and a longer resonance time is generated than in the half pedal state. With the above arrangement of the damper pedal 24, the resonance tone can be reproduced in accordance with actual performance of the keyboard instrument.
In the present embodiment, when the damper pedal 24 is in the off pedal state (the damper pedal is not pressed down), the multiplication coefficient to be given to the multiplying circuit 80 in the feed back circuit is adjusted to increase as more keys of the key board 12 are pressed. With the arrangement, the resonance tone increases its level and resonance time as more keys of the keyboard 12 are pressed, and further the resonance tone can be reproduced in accordance with actual performance of the keyboard instrument.
Now, the second embodiment of the invention will be described. In the second embodiment, the resonance tone generating circuit is provided with multiplying circuits for adjusting level of data input thereto, thereby preventing overflow of data caused due to summed up data of the delayed musical signal data and feed back waveform data. An electronic musical instrument according to the second embodiment of the invention has substantially the same circuit configuration as the first embodiment shown in
As shown in
In the second embodiment, the level of the feed back waveform data output from the multiplying circuit 80 is decreased to ½ and also the level of the musical signal data output from the delay circuit 5p is decreased to ½. These feed back waveform data and the musical signal data, whose levels have been decreased to ½ are summed up, whereby data overflow is prevented. Meanwhile, the impulse response coefficients to be applied to the multiplying circuits 6p-6(n−1) at the “p”th to (n−1)th stage are doubled, whereby the doubled multiplication coefficients compensate the musical signal data whose level has been decreased to ½.
In the second embodiment, the multiplication coefficients to be set to the multiplying circuits 82 and 83 in the feed back circuit and the multiplication coefficients to be set to the multiplying circuits 6p, 6(p+1), . . . , and 6(n−1) in the product-sum circuit are adjusted by CPU 14. In the second embodiment, the multiplication coefficients of the multiplying circuits 82 and 83 are set to ½, and the multiplication coefficients of the multiplying circuits 6p, 6(p+1), . . . , and 6(n−1) are set to values equivalent to the doubled impulse response coefficients, respectively. But it may be possible to set the former multiplication coefficients to “a” (“a”<1), and the latter multiplication coefficients to “1/a” of the impulse response coefficients.
In the second embodiment, a level of data to be supplied from the multiplying circuit 80 to the adder circuit 81 in the feed back circuit is adjusted, and also a level of data to be supplied from the adder circuit 5p at the “p”th stage to the adder circuit 81 is adjusted. When the data levels are adjusted, the impulse response coefficients to be set to the multiplying circuits 6p to 6(n−1) at the “p”th to (n−1)th stage are also adjusted in accordance with the adjustment of data level. As a result, data overflow is prevented in the adder circuit 81 and output levels of the convolution operation executed at the “p”th and subsequent stages are appropriately adjusted. Therefore, a natural resonance tone having a proper level can be reproduced.
Now, the third embodiment of the present invention will be described. In the third embodiment, feed back waveform data is fed backed to a point between the delay circuit 5p at the “p”th stage and the delay circuit 5(p+1) at the (p+1)th stage and further feed back waveform data is fed backed to a point between the delay circuit 5q at the “q”th stage (q<p) and the delay circuit 5(q+1) at the (q+1)th stage. An electronic musical instrument according to the third embodiment of the invention has substantially the same circuit configuration as the first embodiment shown in
As shown in
The first and second multiplication coefficients are adjusted by CPU 14 such that, when one of the first and second multiplication coefficients is the multiplication coefficient FB which has been calculated in the multiplication coefficient calculating process of
For example, in the case where the first multiplication coefficient is set to FB and the second multiplication coefficient is set to “0”, the resonance tone generating circuit in the third embodiment shows substantially the same performance as FIR filter in the first embodiment. Meanwhile, in the case where the first multiplication coefficient is set to “0” and the second multiplication coefficient is set to FB, the musical tone data of a longer time duration (0.4 sec.) can be fed back.
Further, in the third embodiment, CPU 14 can calculate t×FB, where “t” is a constant between 0 to 1, thereby acquiring the first multiplication coefficient, and can calculate (1−t)×FB, thereby acquiring the second multiplication coefficient. The calculated multiplication coefficients are applied to the multiplying circuits 90, 91, respectively, whereby the musical signal data of 0.2 sec. and musical signal data of 0.4 sec. can be fed back at a desired rate.
In the third embodiment, the resonance Lone generating circuit is provided with two feed back circuits, through which two feed back waveform signals are fed back. The multiplying circuit in each feed back circuit can adjust the multiplication coefficients. Further, positions can be switched where the feed back waveform signals are applied to. By adjusting the multiplication coefficients, two feed back waveform signals can be applied through feed back passes, respectively.
Now, the fourth embodiment of the invention will be described with reference to a circuit configuration shown in
As shown in
In the fourth embodiment, the musical signal data at the (r-P)th tap is fed back. In the case where a time duration of the musical signal data is shorter than a time duration at the “n” tap, when the musical signal data from the delay circuit 5(n−1) at the (n−1)th stage is fed back, whereby feed back waveform data is generated, the result (data) of the convolution operation cab be a value other than “0” because of the feed back waveform data, raising the possibility of generating an unnatural reverberation sound, even if no delayed waveform data has been supplied. So, in the fourth embodiment, the “r”th stage is set such that when the musical signal data at the “r”th stage is fed back, a time duration of the musical signal data is made equivalent to or longer than the time duration at the “r”th tap, and data output from the delay circuit 5r at the “r”th stage is fed back, whereby generation of an unnatural reverberation sound can be prevented.
The above embodiments of the invention are described only to illustrate preferred embodiments of the inventions, for better understanding of the principle and structure of the present invention, and by no means restrict the scope of the inventions defined in the accompanying claims. Therefore, it should be understood that various sorts of alternations and modifications may be made to the above embodiments of the invention and such alternations and modifications will fall within the scope of the invention
In the above embodiments, it is described that FIR filter comprises the resonance tone generating circuit having (n−1) units of delay circuits (for instance, the delay circuits 51 to 5(n−1) in
As shown in
As shown in
In the fourth embodiment, it may be possible to use two multiplying circuits in the resonance tone generating circuit as in the second embodiment, wherein one multiplying circuit adjusts an output level of the multiplying circuit 95 and the other multiplying circuit adjusts an output level of the delay circuit 5p, whereby output levels of the multiplying circuits 6p to 6(n−1) at the “p”th stage and subsequent stages are adjusted in accordance with the level adjustment made by the multiplying circuits. This modification may be made with respect to the third embodiment, too.
In the above embodiments of the invention, when the damper pedal 24 is pressed down, two pedal states are established, that is, the full pedal state and the half pedal state. When the damper pedal 24 is in the full pedal state, the multiplication coefficient to be applied to the multiplying circuit 80 in the feed back circuit is adjusted larger than in the half pedal state. However, a modification may be made to the embodiments, such that a variable resistor is used which varies its resistance depending on how much the damper pedal 24 is pressed down toward and a signal is produced whose level varies with the resistance value of the variable resistor, and in accordance with the signal level, the multiplication coefficient to be applied to the multiplying circuit 80 in the feed back circuit increases as the damper pedal 24 is pressed down.
Number | Date | Country | Kind |
---|---|---|---|
2008-116875 | Apr 2008 | JP | national |