(19)
(11) EP 0 187 211 A1

(12) EUROPEAN PATENT APPLICATION

(43) Date of publication:
16.07.1986 Bulletin 1986/29

(21) Application number: 85113670.5

(22) Date of filing: 28.10.1985
(51) International Patent Classification (IPC)4G10H 7/00
(84) Designated Contracting States:
DE GB

(30) Priority: 30.10.1984 JP 228371/84

(71) Applicant: YAMAHA CORPORATION
Hamamatsu-shi Shizuoka-ken (JP)

(72) Inventor:
  • Kunimoto, Toshifumi
    Hamamatsu-shi Shizuoka-ken (JP)

(74) Representative: Kehl, Günther, Dipl.-Phys. et al
Patentanwälte Hagemann & Kehl Postfach 86 03 29
81630 München
81630 München (DE)


(56) References cited: : 
   
       


    (54) Tone signal generating apparatus


    (57) A tone signal generating apparatus comprises a waveform memory (14) in which a plurality of waveform data representing different waveforms but corresponding to a same tone name are stored. These different waveform data are sequentially read from the memory (14) and are supplied to a digital low-pass filter (28) which comprises a delay circuit (33) and a multiplier (31) connected to each other to form a feedback loop. The low-pass filter (28) smoothes abrupt variation of the waveform data and outputs a smoothed waveform data thereby interpolating the different waveforms. A tone signal is produced in accordance with this smoothed waveform data.




    Description


    [0001] This invention relates to a tone signal generating apparatus suitable for use in an electronic musical instrument.

    [0002] There have been proposed various kinds of tone signal generating apparatuses in which tone signals are electronically produced. Among such tone signal generating apparatuses, there is known one in which a musical tone signal is formed by repeatedly and sequentially reading from a memory - each of a plurality of groups of data representing preselected portions of the musical tone signal. In such conventional tone signal generating apparatus, when the tone signal S to be generated has an envelope L as shown in Fig. 1, sampling data (or waveform data) of portions A1, A2, ... of the tone signal S are previously stored in a memory. In this case, time length of each of the portions A1, A2, ... is set to one period of the tone signal S. And, during the time T1 shown in Fig. 1, the sample data of the portion A1 of the tone signal S are sequentially and repeatedly read from the memory to generate the tone signal S. In the same manner, during the time T2 the sample data of the portion A2 are sequentially and repeatedly read from the memory to generate the tone signal S, during the time T3 the sample data of the portion A3 are read from the memory, and so on.

    [0003] The above-described musical tone generating apparatus however has such a deficiency that a complicated signal processing need be performed at each of the boundary portions between the time T1 and the time T2, between the time T2 and the time T3, and so on. More specifically, for example, if the tone signal based only on the sample data of the portion A3 begins to be generated immediately after the completion of the generation of the tone signal corresponding to the time T2, the waveform of the tone signal abruptly varies at the boundary between the time T2 and the time T3. As a result, the generated musical tone becomes somewhat odd. To solve this problem, an interpolation structure has been proposed in the European Patent Application No. 85100233.7 filed on January 11, 1985 under the title "Tone Signal Generation Device For An Electronic Musical Instrument", in which the sample data precedingly read from the memory and the sample data currently read from the memory are multiplied respectively by data decreasing from "1" to "0" with the lapse of time and data increasing from "0" to "1" with the lapse of time, as shown in Fig. 2. And, the thus obtained multiplication results are added together to form the tone signal in which the abrupt variation or discontinuity of the waveform has been compensated. This arrangement is however disadvantageous in that the construction of the circuit necessary for compensating for the abrupt variation of the waveform is rather complicated.

    [0004] It is therefore an object of the present invention to provide a tone signal generating apparatus which can generate, with a simplified structure, a musical tone signal close to that generated by a natural musical instrument by sequentially generating waveform data representative of a plurality of portions of an overall waveform of the tone signal.

    [0005] It is another object of the present invention to provide a tone generating apparatus having a simple structure to interpolate the succeeding waveforms in a tone signal.

    [0006] According to an aspect of the invention, there is provided a tone signal generating apparatus characterized by the provision of waveform data generating means for generating data relating to at least first and second periodic waveforms of a tone signal, the waveform data generating means sequentially generating data representative of the first- waveform and data representative of the second waveform; and low-pass filter means for filtering the data generated by the waveform generating means to output a filtered data as the tone signal, the low-pass filter means comprising delay circuit means for delaying data supplied thereto by a time interval determined in accordance with the periods of the first and second waveforms to output a delayed data, and feedback circuit means for feeding the delayed data back to the delay circuit means, the feedback means multiplying the delayed data by a predetermined filter coefficient and feeding the resultant data to the delay circuit means as the feedback data, the data generated by the waveform data generating means being supplied to the fedback delay circuit means.

    [0007] Examples of the present invention will now be described with reference to the accompanying drawings, in which:-

    Fig. 1 is an illustration showing one example of waveform of a musical tone;

    Fig. 2 is an illustration showing one method of compensating for an abrupt variation or discontinuity of waveform;

    Fig. 3 is a block diagram of an ordinary digital low-pass filter;

    Fig. 4 is an illustration showing the characteristic of the low-pass filter of Fig. 3;

    Fig. 5 is a block diagram of a modified form of the low-pass filter of Fig. 3 wherein the delay circuit 3 is replaced by a delay circuit 7;

    Fig. 6 is a block diagram of a modified form of the low-pass filter of Fig. 5;

    Fig. 7 is an illustration showing one example of waveform of a musical tone;

    Fig. 8 is an illustration showing the characteristic of the low-pass filter of Fig. 6;

    Fig. 9 is a block diagram of a low-pass filter equivalent to that applicable to the present invention;

    Fig. 10 is a block diagram of a musical tone generating apparatus provided in accordance with the present invention; and

    Fig. 11 is a block diagram of the low-pass filter 28 of the musical tone generating apparatus of Fig. 10.

    Fig. 3 shows the construction of a low-pass filter which is known perse and comprises an input terminal 1 for receiving data to be filtered, an adder 2, a delay circuit 3 such as a D-type flip-flop (DFF) for delaying an output data of the adder 2 by a time interval equal to one sampling time of the input data. This digital low-pass filter further comprises a multiplier 4 for multiplying data fed from the delay circuit 3 by a filter coefficient g, another multiplier 5 for multiplying the data fed from the delay circuit 3 by a coefficient (1 - g) and an output terminal 6 for taking out an output of this filter from the multiplier 4. With this digital low-pass filter, when the input data supplied to the input terminal 1 abruptly varies as indicated by a solid line L1 in Fig. 4, the output data at the output terminal 6 gradually varies along an exponential curve as indicated by a solid line L2 in the same figure. The form of the curved line L2 can be altered by changing the value of the coefficient g as indicated by broken lines L3 and L4 in Fig. 4. The coefficient g is normally set to a value slightly less than "1".

    Fig. 5 shows another digital low-pass filter which differs from that shown in Fig: 3 in that the delay circuit 3 is replaced by a delay circuit 7 which delays an input thereto by a time interval equal to m sampling times of the data fed to the input terminal 1. The delay circuit 7 may comprise serially connected m DFFs. The filter shown in Fig. 5 acts, as a low-pass filter, on those sample data produced every m sampling times. In other words, the low-pass filter shown in Fig. 5 processes m sample data contained in each group of data individually in a time sharing manner.

    Fig. 6 shows a modified form of the low-pass filter of Fig. 5 which differs therefrom in the position of the multiplier 4. This modified low-pass filter shown in Fig. 6 is substantially the same in function as that shown in Fig. 5 but is superior thereto in that the variation of level of data at the output terminal 6 at the time when the filter coefficient g is changed is smaller than that in the filter of Fig. 5. And, a low-pass filter 28 provided in an embodiment of the invention (Fig. 10), which will be described later, is formed on the basis of the low-pass filter of Fig. 6. The operation of the low-pass filter of Fig. 6 performed when data representative of a musical tone waveform (or sample data of a musical tone signal) are applied will be described. Fig. 7 shows one example of waveform of a musical tone, wherein the waveforms of the musical tone in time periods T1 , T2 and T3 are identical to each other. And, the waveforms of the musical tone in time periods T4, T5 and T6 are also identical to each other, but the waveform in each of the time periods T1, T2 and T3 differs from that in each of the time periods T3, T4 and T5. The time periods T1 to T6 are of the same time length, and a sampling of the waveform is made m times during each time period. Assuming that a sample data D1 is applied to the input terminal 1 of the filter of Fig. 6 at time t shown in Fig. 7, data identical to the data D1 are applied to the input terminal 1 at times t + mT (T is a sampling time) and t + 2mT, respectively, and sample data D2 are applied to the input terminal 1 at times t + 3mT, t + 4mT and t + 5mT, espectively. In this case, since the low-pass filter of Fig. 6 acts on those sample data produced every m sampling times, as described before, the data sequentially outputted from the output terminal 6 at the times t + mT, t + 2mT, ... gradually varies from the value D1 to the value D2 along an exponetial curve as shown in Fig. 8. Output data corresponding to those other than the above sample data vary in the same manner. Thus, when data representative of a musical tone waveform which abruptly varies as shown in Fig. 7 are applied to the input terminal 1, data representative of a musical tone waveform whose abrupt variation has been compensated are outputted from the output terminal 6. It will be appreciated that the output data of the filter of Fig. 6 can alternatively be taken from an output terminal 6a. The difference between the two output data exists only in that the output data taken from the output terminal 6a is shifted from that taken from the output terminal 6 by a time interval equal to mT.

    Fig. 9 shows a modified form of the low-pass filter of Fig. 6 which differs therefrom in that interlocked switches 8a and 8b are provided. When both of the switches 8a and 8b are in the solid line positions, this low-pass filter is equivalent to the low-pass filter of Fig. 6. On the other hand, when the switches 8a and 8b are in the broken line positions, output data of the delay circuit 7 are supplied through the switch 8b and the adder 2 to the input terminal of the same delay circuit 7 thereby to self-hold the data contained therein. With this arrangement, the compensation for the abrupt variation of the waveform of a musical tone can be performed more gradually by holding the switches 8a and 8b in the solid line positions for a time interval corresponding to one period (or cycle) of the waveform, subsequently holding the switches 8a and 8b in the broken line positions for a time interval corresponding to, for example, five periods of the waveform, and thereafter repeating the above two operations.



    [0008] The embodiment of the present invention will now be described with reference to Figs. 10 and 11, wherein a circuit equivalent to the circuit shown in Fig. 9 is used as the low-pass filter 28.

    [0009] With this embodiment, data representative of the portions A1, A2, ... of the waveform of the musical tone signal shown in Fig. 1 are previously stored in a waveform memory 14, and the musical tone signal is generated by reading the data from the memory 14. The musical tone generating apparatus shown in Fig. 10 comprises a keyboard 11 and a key depression detection circuit 12. The key depression detection circuit 12 detects a state of each key of the keyboard 11, outputs a key code KC representative of a depressed key in accordance with the detection results, and outputs a key-on signal KON which rises to "1" at the beginning of the depression of the key and falls to "0" at the end of the depression of the key. The key code KC and the key-on signal KON are fed to an address generator 13 which generates address data to be supplied to the waveform memory 14 and a coefficient memory 15. As shown in Fig. 11, the address generator 13 comprises a note clock generator 16 which generates a note clock 0 of a frequency corresponding to the key designated by the key code KC. A differentiator 17 outputs a key-on pulse KONP of a short pulse width at the leading edge of the key-on signal KON, that is to say, when a key begins to depressed. A counter 18 having a count range of "m" counts up the note clock 0 and is reset by the key-on pulse KONP. A count output of the counter 18 varies within the range of "0" to "m - 1" and is supplied to the waveform memory 14 as address data AD1. The counter 18 also outputs a carry signal CA to a counter 19 when the count output of the counter 18 changes from "m - 1" to "0". The counter 19 counts up the carry signal CA and is reset by an output of an OR gate 20. A repetition number memory 21 previously stores data representative of the number of repetitions of the same waveform, that is to say, data representative of the number of repetitions of each of the waveforms of the portions A1, A2, A3, ... shown in Fig. 1. A comparator 22 compares a count output of the counter 19 with an output data of the repetition number memory 21 and outputs to one input terminal of an AND gate 24 a coincidence signal EQ of "1" when the both outputs coincide to each other. A counter 23 counts up the coincidence signal EQ fed from the comparator 22 through the AND gate 24 and is reset by the key-on pulse KONP. A NAND gate 25 effects a NAND operation on all the bits of a count output of the counter 23 and outputs the result of the NAND operation to the other input terminal of the AND gate 24. A switch control circuit 26 generates in accordance with the count output of the counter 19 a switch control signal SON for controlling the ON/OFF state of a switch 30 in the low-pass filter 28 shown in Fig. 10. This switch control circuit 26 renders the switch control signal SON "1" when the count output of the counter 19 is, for example, any one of "0", "5", "10", "15", ..., and renders the switch control signal SON "0" when the count output of the counter 19 takes any other values. When the switch control signal SON is in the state of "1", the switch 30 is brought into the ON state.

    [0010] The waveform memory 14 has therein storage areas E0, E1, E2, ... for respectively storing data representative of the portions A1, A2, A3, ... of the waveform shown in Fig. 1. In this case, each of the portions A1, A2, A3, ... constitutes one period or one cycle of the waveform and is represented by m sample data, so that m sample data are stored in each of the storage areas E0, E1, E2, .... One of the storage areas E0, E1, E2, .. is designated by address data AD1 fed from the counter 23, and the sample data in the designated storage area are read therefrom in accordance with address data AD1 fed from the counter 18. The sample data read from the waveform memory 14 are supplied to the low-pass filter 28 which comprises a subtractor 29, the switch 30, a multiplier 31, an adder 32 and a delay circuit 33. In this case, the multiplier 31 may be constituted by the combination of a data shift circuit and an adder. The delay circuit 33 is for delaying data inputted thereto by m bit-times of the note clock 0 and comprises m stages of DFFs, each stage of which is triggered by the note clock 0 and reset by the key-on pulse KONP. This low-pass filter 28 is equivalent to the low-pass filter shown in Fig. 9, as will be appreciated from the following description. Assuming that the data at the input terminal 1 and the output data of the delay circuit 7 in Fig. 9 are expressed as x and y, respectively, the outputs of the multipliers 4 and 5 are expressed as g.x and (1 - g).y, respectively, when the switches 8a and 8b are in the ON states. And therefore, the output of the adder 2 becomes equal to

    On the other hand, in the low-pass filter 28, the output of the subtractor 29 is (x - y), and the output of the multiplier 31 becomes equal to g.(x - y) when the switch 30 is in the ON state. Also, when the switch 30 is held in the ON state, the output of the adder 32 becomes equal to

    It is apparent from the above formulas (1) and (2) that the low-pass filter 28 shown in Fig. 10 is equivalent to the low-pass filter of Fig. 9. With the low-pass filter 28, the data contained in the delay circuit 33 are self-held when the switch 30 is held in the OFF state, as in the case of the low-pass filter of Fig. 9.

    [0011] The coefficient memory 15 previously stores filter coefficients g0, g1, ... to be supplied to the multiplier 31. The coefficients g0, g1, ... are read from the memory 15 in accordance with the address data AD2 and supplied to the multiplier 31.

    [0012] A multiplier 35 multiplies output data of the low-pass filter 28 by envelope data ED fed from an envelope generator 36 and supplies data representative of the multiplication results to a digital-to-analog converter (DAC) 37. The DAC 37 converts the data fed from the multiplier 35 into an analog signal and supplies the analog signal to a sound system 38. The sound system amplifies the supplied analog signal and supplies the amplified analog signal to a loudspeaker to thereby produce the musical tone.

    [0013] The operation of this embodiment will now be described.

    [0014] When a key on the keyboard 11 is depressed, the key depression detection circuit 12 detects the depression of the key and outputs to the address generator 13 a key code KC representative of the depressed key together with a key-on signal KON of "1". Thus, the note clock generator 16 (Fig. 11) in the address generator 13 begins to generate a note clock 0 whose frequency corresponds to the depressed key represented by the key code KC. On the other hand, the differentiator 17 outputs a key-on pulse KONP at the leading edge of the key-on signal KON, whereupon the counters 18, 19 and 23 and the DFFs of the delay circuit 33 in the low-pass filter 28 are reset. When the counter 23 is reset, address data AD2 equal to "0" is outputted therefrom to the waveform memory 14 and the coefficient memory 15. Thus, the storage area EO in the waveform memory 14 is designated, and the filter coefficient go is read from the coefficient memory 15 and supplied to the multiplier 31. The address data AD2 of "0" is also supplied to the repetition number memory 21, whereupon data representative of the number of repetitions of the portion A1 (see Fig. 1) is read therefrom and supplied to the comparator 22. It is assumed here that the number of repetition is N1.

    [0015] After being reset by the key-on pulse KONP, the counter 18 counts up the note clock 0, so that address data AD1, which varies from "0" to "m - 1", is repeatedly outputted from the counter 18. The counter 18 also outputs a carry signal CA when the address data AD1 returns from "m - 1" to "0". While the address data AD1 varying from "0" to "m - 1" is repeatedly outputted, the sample data in the storage area E0 of the waveform memory 14 are sequentially and repeatedly read therefrom and supplied through the low-pass filter 28 to the multiplier 35. The filtered sample data is applied with an envelope at the multiplier 35 and then converted into an analog signal by the DAC 37. The thus obtained analog signal is supplied to the sound system 38 whereby the musical tone corresponding to the time T1 of Fig. 1 is produced.

    [0016] On the other hand, the counter 19 counts up the carry signals CA outputted from the counter 18. And, when the count output of the counter 19 reaches the aforesaid repetition number N1, the comparator 22 outputs a coincidence signal EQ to the counter 23 through the AND gate 24, whereupon address data AD2 equal to "1" is outputted from the counter 23. When the address data AD2 of "1" is outputted, the storage area E1 of the waveform memory 14 is designated, and at the same time the filter coefficient g, and the repetition number (assumed to be N2) of the portion A2 of Fig. 1 are read from the coefficient memory 15 and the repetition number memory 21, respectively. On the other hand, the coincidence signal EQ is also supplied to the reset terminal R of the counter 19 to reset the same. Thus, the sample data in the storage area E1 are sequentially and repeatedly read therefrom in accordance with the address data AD1. The sample data thus read from the storage area E1 are subjected to the compensation for the abrupt variation of waveform at the low-pass filter 28. The output data of the low-pass filter 28 are then applied with an envelope at the multiplier 35 and fed through the DAC 37 to the sound system 38, whereby the musical tone corresponding to the time T2 of Fig. 1 is produced.

    [0017] When the count output of the counter 1 9 reaches the repetition number N2, the comparator 22 again outputs the coincidence signal EQ whereupon address data equal to "2" is outputted from the counter 23. As a result, the storage area E2 of the waveform memory 14 is designated, and the filter coefficient g2 and the repetition number N3 are read from the coefficient memory 15 and the repetition number memory 21, respectively. The coincidence signal EQ also resets the counter 19, and thus the musical tone corresponding to the time T3 of Fig. 1 begins to be produced.

    [0018] And thereafter, an operation similar to the above-described operation is repeated. While the above operation is repeated, the switch control circuit 26 repeatedly outputs a switch control signal of "1". As a result, the switch 30 is alternately and repeatedly brought into the ON and OFF states in synchronism with the count output of the counter 19. And, when the address data AD2 outputted from the counter 23 becomes equal to "11...1", the sample data in the last storage area of the waveform memory 14 are read to produce the corresponding musical tone signal. Also, when the address data AD2 of "11...1" is outputted, the output signal of the NAND gate 25 is rendered "0" to close the AND gate 24, so that the address data AD2 will not vary any more until a key is newly depressed at the keyboard 11.

    [0019] With the above embodiment, the waveform data stored in each of the storage areas E0, E1, ... represent one period or one cycle of the musical tone waveform at the corresponding portion, however waveform data representative of consecutive two or more periods of the musical tone wave at the corresponding portion may alternatively be stored in each storage area of the waveform memory 14. With the above embodiment, the waveform memory 14 is used as means for generating the waveform data (or the sample data), however other means such as one which generates the waveform data based on a predetermined calculation may substitute therefor. Furthermore, with the above embodiment, the delay time of the delay circuit 33 is set to one period of the musical tone waveform, the delay time may however be set to a length which corresponds to a plurality of periods of the waveform. In this case, the delay circuit 33 can be constituted by a shift register, a RAM or the like. Furthermore, with the above embodiment, the output data of the low-pass filter 28 are derived from the output terminal of the delay circuit 33, however, the output data of the filter 28 can be derived from any other appropriate points of the circuit including the output terminal of the adder 32. With the above embodiment, although the envelope of the musical tone is applied to the tone signal with the multiplier 35 and the envelope generator 36, the envelope of the musical tone at a decay portion thereof can be applied to the tone signal with the low-pass filter 28 in the following manner. From the beginning of the decay portion, the output data of the low-pass filter 28 is exponentially decreased by holding the switch 30 in the ON state, rendering the output data from the waveform memory 14 "0" and setting the coefficient g applied to the multiplier 31 to an appropriate value. Thus, the envelope of the decay portion can be applied to the tone signal without the multiplier 35 and the envelope generator 36. Also, although the tone signal is generated by a digital processing in the above embodiment, this invention can be applied to a musical tone generating apparatus in which a tone signal is generated by an analog processing. Furthermore, this invention can be applied not only to an apparatus for generating a musical tone signal corresponding to a depressed key on the keyboard, but also to other apparatuses such as one for generating a musical tone signal corresponding to a tone of a percussive musical instrument.


    Claims

    1. A tone signal generating apparatus characterized by the provision of:

    (a) waveform data generating means for generating data relating to at least first and second periodic waveforms of a tone signal, said waveform data generating means sequentially generating data representative of said first waveform and data representative of said second waveform; and

    (b) low-pass filter means for filtering said data generated by said waveform generating means to output a filtered data as said tone signal, said low-pass filter means comprising delay circuit means for delaying data supplied thereto by a time interval determined in accordance with the periods of said first and second waveforms to output a delayed data, and feedback circuit means for feeding said delayed data back to said delay circuit means, said feedback means multiplying said delayed data by a predetermined filter coefficient and feeding the resultant data to said delay circuit means as the feedback data, said data generated by said waveform data generating means being supplied to said fedback delay circuit means.


     
    2. A tone signal generating apparatus according to claim 1, wherein the period of said first waveform is identical to that of said second waveform.
     
    3. A tone signal generating apparatus according to claim 2 further comprising a keyboard having a plurality of keys, said waveform data generating means being responsive to a depressed key among said plurality of keys to generate said data at a rate determined by a pitch corresponding to said depressed key.
     
    4. A tone signal generating apparatus according to claim 3, wherein said delay time corresponds to one period of said first and second waveforms.
     
    5. A tone signal generating apparatus according to claim 3, wherein said delay time corresponds to a plurality of periods of said first and second waveforms.
     
    6. A tone signal generating apparatus according to claim 3, wherein said waveform data generating means comprises memory means storing the data representative of said first and second waveforms and address generator means responsive to said depressed key for outputting address data to said memory means so that said data are read from from said memory at a rate determined by a pitch corresponding to said depressed key.
     
    7. A tone signal generating apparatus according to claim 6 further comprising second memory means storing predetermined coefficients, said address generator means further outputting second address data to said second memory means so that said coefficients are read therefrom in synchronism with the readout of said data representative of said waveforms from said memory means, said read coefficients being supplied to said feedback means as said filter coefficient.
     
    8. A tone signal generating apparatus according to claim 7 further comprising control signal generating means for outputting a switch control signal which repeatedly becomes active in accordance with the readout of said data representative of said waveforms from said first named memory means, said low-pass filter means further comprising switch circuit means responsive to said switch control signal for preventing said data read from said memory means from being supplied to said fedback delay circuit means and for feeding said delayed data directly back to said delay circuit means.
     




    Drawing
















    Search report