Electronic musical instrument, musical sound generating method and storage medium
By using the accumulation and feedback structure of the multi-string model in the electronic musical instrument sound source, the problems of complexity and resource consumption in resonance sound generation in the existing technology are solved, and efficient resonance sound generation and stability improvement are achieved.
Patent Information
- Application Number
- CN202010979390.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-24
- Filing Date
- 2020-09-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-09-17
AI Technical Summary
Existing electronic musical instruments require a large amount of circuit scale and processing resources when simulating the resonance sound of an acoustic piano, resulting in complexity and low efficiency. Especially when multiple tones are pronounced at the same time, the number of resonance sound combinations increases sharply, resulting in software burden and abnormal oscillation problems. .
By setting up the accumulation and feedback structure of multiple string models in the sound source, using inverting amplifiers and adders to generate resonant sound signals, reducing abnormal oscillations, and improving stability and string resonance effects by simplifying the circuit structure and windowing processing.
It achieves the generation of good resonance sound without increasing the scale of the circuit, improves the stability and chord resonance effect, reduces the risk of abnormal oscillation, and simplifies the circuit structure and control logic.
Smart Images

Figure CN112634848B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an electronic musical instrument, a musical sound generating method and a storage medium. Background Art
[0002] A technique for a resonance sound generating device capable of more faithfully simulating the resonance sound of an acoustic piano has been proposed (for example, Patent Document 1).
[0003] Patent Document 1: Japanese Patent Application Publication No. 2015-143764 Summary of the invention
[0004] In the technology described in Patent Document 1, actual physical resonance can be stably generated by connecting the same resonator as the string model in a feedforward type (a type in which the resonator is connected to the rear stage of the model output). However, since the resonator is provided together with the string model, there is a disadvantage that the circuit scale becomes very large.
[0005] An electronic musical instrument according to a technical solution of the present invention comprises: a plurality of operating members (11), including a first operating member for specifying a first pitch; and a sound source (12D); the sound source (12D) generates an accumulated signal by accumulating (44) output signals from a first closed loop (36A-40A) provided corresponding to the specified first pitch and output signals from other closed loops provided corresponding to the specified other pitches according to the specification of a plurality of pitches including the first pitch and other pitches; after feeding back (41A) a subtraction signal obtained by subtracting (46A) a signal circulating in the first closed loop (36A-40A) from the accumulated signal to the first closed loop, a musical sound signal including signal components corresponding to the specified plurality of pitches is output as a musical sound signal corresponding to the first pitch.
[0006] According to the present invention, it is possible to generate good resonance sound without increasing the circuit scale. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 This is a diagram showing the relationship between relative pitches of resonance sounds produced according to the relative positions of keys that resonate according to one embodiment of the present invention.
[0008] Figure 2 This is a diagram that schematically shows the entire system related to this embodiment.
[0009] Figure 3 This is a block diagram showing a basic hardware circuit configuration of the electronic keyboard instrument according to this embodiment.
[0010] Figure 4This is a block diagram showing the functions executed by the DSP of the sound source related to this embodiment as a hardware configuration.
[0011] Figure 5 This is a diagram illustrating 88-key waveform data for an excitation signal stored in a waveform memory according to this embodiment.
[0012] Figure 6 It is a block diagram showing the circuit configuration of a waveform reading unit and a windowing processing unit according to this embodiment.
[0013] Figure 7 1 is a block diagram showing a circuit configuration of an all-pass filter according to this embodiment.
[0014] Figure 8 1 is a block diagram showing a circuit configuration of a low-pass filter according to this embodiment.
[0015] Fig. 9 The diagram is a diagram illustrating waveforms of musical sounds of different intensities (velocity values) of sounds of a certain key recorded and collected in accordance with the present embodiment.
[0016] Fig.10 This is a diagram illustrating a method of generating an excitation signal by adding and synthesizing strong and weak waveforms according to this embodiment.
[0017] Fig.11 This is a diagram illustrating a process of changing the read address of the waveform memory according to the velocity value according to this embodiment.
[0018] Fig.12 This is a diagram illustrating the relationship between the window function and the wavelength (pitch) according to this embodiment. DETAILED DESCRIPTION
[0019] Hereinafter, an embodiment in which the present invention is applied to an electronic keyboard instrument will be described with reference to the drawings.
[0020] [Basic Concept of the Present Embodiment]
[0021] Before describing the specific structure and operation of the embodiment in which the present invention is applied to an electronic musical instrument, a basic outline of the embodiment will be described.
[0022] There is also a method of generating resonance sound by calculating the resonance sound to be generated based on the relationship between notes in advance. For example, when the pitches of A4 (440 Hz) and A5 (880 Hz) are superimposed and sounded simultaneously, the second harmonic of A4 (880 Hz) and the fundamental tone of A5 (880 Hz) are the same frequency, and the resonance sound of A5 (880 Hz) is generated. In this case, the relative pitch difference is 12 semitones.
[0023] Figure 1 This is a diagram showing the correspondence between the relative position of the key that resonates (in semitone units) and the relative pitch (in semitone units) that is produced as the resonant sound. Figure 1 In the search key relative position "+12", the relative interval "+12" to be sounded is obtained. That is, when a certain pitch is used as a reference, such as A5 which is obtained by adding 12 semitones to A4, by storing the relative pitch difference between two notes and the resonant relative interval to be sounded in a lookup table or the like, or by calculating the common multiple of the fundamental frequency of the two intervals each time, data indicating each pitch that generates a resonant sound can be obtained, and a resonant sound can be generated based on the obtained data.
[0024] In the case of adopting such a method, since there is no special resonator and there is actually nothing that resonates, abnormal oscillation will not occur. However, in the case of making two sounds sound, it is sufficient to make the resonant sound of only one sound sound, but in the case of making three sounds sound, it is necessary to consider the three resonance relationships in the combination of three sounds, and the resonant sounds also become three sounds. That is, as the number of sounds increases, the number of combinations of resonant sounds that should occur increases sharply. That is, a sound channel is required to make each resonant sound sound. Therefore, if a limit is set on the number of resonant sounds that occur, the disadvantage of not being able to make all the resonant sounds that should occur occur will occur, and if all combinations are calculated by a processor, it will also lead to an increase in the burden on the software.
[0025] Therefore, in this embodiment, the resonant sound caused by the string resonance effect of the multiple string models is realized without adding a lot of computing resources. That is, the accumulated data of the string models other than the own string model is obtained by subtracting the output data from the own string model from the accumulated data of the full string model after accumulating the output data output by the multiple string models corresponding to the pressing of the multiple keys, and the accumulated data is fed back to the own string model as feedback, so that abnormal oscillation is less likely to occur.
[0026] Figure 2 This is a diagram showing a simplified string model system of the present embodiment. For example, in the case of an electronic musical instrument such as a piano, the string models SM1 to SM88 have a maximum of 88 keys, and their respective output signals are added up by an adder AD1, and the added output is output as a musical sound signal. At the same time, the polarity (phase) of the added output is inverted (multiplied by -1) by an inverting amplifier MP1, and then fed back to each string model SM1 to SM88 as a feedback loop signal.
[0027] For example, based on the designation of multiple pitches including a first pitch (SM1) and other pitches (SM2), an accumulated signal is generated by adding (44) output signals from a first closed loop (36A-40A) provided corresponding to the designated first pitch and output signals from other closed loops provided corresponding to the designated other pitches (SM2).
[0028] Furthermore, after the subtraction signal obtained by subtracting (46A) the signal circulating in the above-mentioned first closed loop (36A~40A) from the above-mentioned accumulated signal is fed back (41A) to the above-mentioned first closed loop, a musical sound signal including signal components corresponding to the above-mentioned multiple specified pitches is output as a musical sound signal corresponding to the above-mentioned first pitch.
[0029] That is, in each of the string models SM1 to SM88, after subtracting the content output by the own string model from the feedback loop signal, a signal representing the difference is added to the loop circuit in the model, thereby generating a musical sound accompanied by a resonance sound.
[0030] The feedback process only needs to be executed for a closed loop corresponding to a pitch being produced. The feedback process does not need to be executed for a closed loop corresponding to a pitch not being produced.
[0031] like Figure 2 As shown, by adopting a negative feedback type structure in which the polarity (phase) of the accumulated output is inverted (×-1) by the inverting amplifier MP1, the feedback value of each string itself becomes lower by reducing the negative feedback coefficient, and the stability can be improved.
[0032] That is, in order to generate the accumulated signal, the sound source (12D) inverts (49) the polarity of the signal resulting from the accumulation (44) of the output signal from the first closed loop (36A-40A) and the output signal from the other closed loops.
[0033] Furthermore, due to the increased stability, the upper limit of the resonance value can be set higher, and a larger string resonance effect can be obtained.
[0034] By the way, by making the structure of negative feedback, the feedback value of each string itself becomes lower according to the amount of negative feedback coefficient reduction, that is, the feedback rate of each string becomes lower and the gain becomes smaller. Since the string model is a delay loop of positive feedback, the interval of each string is different, but the DC gain of each string is equal. This is because the DC gain of each string becomes smaller, and the residual caused by the high gain can also be reduced.
[0035] Specifically, corresponding to the designation of the first pitch and the second pitch, the sound source (12D) generates a musical sound signal corresponding to the first pitch including a signal component corresponding to the second pitch by adding a signal based on an output signal from a second closed loop that circulates an excitation signal corresponding to the second pitch to the first closed loop (36A~40A) that circulates the excitation signal corresponding to the first pitch, and generates a musical sound signal corresponding to the second pitch including a signal component corresponding to the first pitch by adding a signal based on the output signal from the first closed loop (36A~40A) to the second closed loop.
[0036] Here, the excitation signal is obtained by Fig.10 As shown in FIG. 1 , the excitation signal waveform data (G) generated based on a plurality of waveform data (A, C, E) having different intensities of sound at corresponding pitches is used as a partial data included in the waveform data, such as Figure 4 As shown, the window processing unit applies the (33) window function to generate it.
[0037] [structure]
[0038] Figure 3 1 is a block diagram showing the configuration of a basic hardware circuit when the embodiment is applied to an electronic keyboard instrument 10. In the figure, an operation signal including a note number (pitch information) and a velocity value (key pressing speed) as volume information corresponding to an operation on the keyboard section 11 as a performance operation member is input to the CPU 12A of the LSI 12.
[0039] The LSI 12 is connected to the CPU 12A, the ROM 12B, the RAM 12C, the sound source 12D, and the D / A converter (DAC) 12E via the bus B.
[0040] The CPU 12A controls the overall operation of the electronic keyboard instrument 10. The ROM 12B stores the operation program executed by the CPU 12A and the waveform data of the excitation signal used for the performance. The RAM 12C is a working memory when the CPU 12A reads out the operation program stored in the ROM 12B, expands and stores it, and executes the program. The CPU 12A gives parameters such as the note number and the velocity value to the sound source 12D during the performance.
[0041] The sound source 12D has a DSP (digital signal processor) 12D1, a program memory 12D2, and a working memory 12D3. The DSP 12D1 reads out the action program and fixed data stored in the program memory 12D2, expands and stores them in the working memory 12D3, and then executes the action program. According to the parameters given by the CPU 12A, part of the data based on the waveform data of the required excitation signal is read out from the ROM 12B, and a musical sound signal is generated by signal processing, and the generated musical sound signal is output to the D / A conversion unit 12E.
[0042] The D / A converter 12E converts the musical sound signal into an analog signal and outputs the analog signal to the amplifier (amp.) 13. The speaker 14 amplifies the musical sound by the analog musical sound signal amplified by the amplifier 13.
[0043] Figure 4 This is a block diagram showing the functions mainly performed by the sound source 12D as a hardware structure. In addition to the note event processing unit 31, waveform memory 34, adder 44, delay holding unit 48, and inverting amplifier 49 described later, the range indicated by IV in the figure corresponds to one key included in the keyboard. In this electronic keyboard instrument 10, it is assumed that there are 88 keys in the keyboard unit 11, and the same circuit is set corresponding to the 88 keys.
[0044] In addition, in the electronic keyboard instrument 10, it is assumed that each key has a signal loop circuit of a string model of one (lowest range), two (low range) or three (middle range and above) strings according to an actual acoustic piano. Figure 4 In FIG. 1 , a key circuit IV of a signal circulation circuit having a three-string model is extracted and represented.
[0045] A note-on / off signal corresponding to the operation of a key on the keyboard section 11 is input from the CPU 12A to the note event processing section 31 .
[0046] The note event processing unit 31 considers the key being operated as a resonance sound. Figure 1 On the basis of the relative interval of pronunciation represented in, the information of the note number and the velocity value when the pronunciation starts (note on) is sent to the waveform reading unit 32 and the windowing processing unit 33, and the note on signal and the multiple corresponding to the velocity value are sent to the gate amplifier 35A~35C of each string model.
[0047] Furthermore, the note event processing section 31 sends a signal indicating the feedback attenuation amount to the envelope generator (EG) 42 and the attenuation amplifiers 40A to 40C.
[0048] The waveform reading section 32 generates a reading address corresponding to the information of the note number and the velocity value, and reads the waveform data as the excitation signal from the waveform memory 34 .
[0049] Figure 5 1 is a diagram showing waveform data of 88 keys for the excitation signal stored in the waveform memory 34. Wave (0) is the waveform data of the lowest note, and wave (87) is the waveform data of the highest note. When waveform data corresponding to the same number of wavelengths are stored, since the wavelength of the lowest note is longer, the waveform data corresponding to the lower note number is longer than the waveform data corresponding to the higher note number, and occupies a larger area in the memory.
[0050] According to the pitch of the sound, the address value obtained by adding the value offset in each wave (n) according to the strength value of the sound to the beginning address of a certain waveform data of the excitation signal for the 88 sounds is given as the offset address.
[0051] The waveform reading section 32 outputs the partial data read out from the waveform memory 34 to the windowing processing section 33 .
[0052] The windowing processing unit 33 performs windowing (window function) processing with a time width corresponding to the wavelength of the pitch corresponding to the note number based on the note number information, and sends the waveform data after the windowing processing to the gate amplifiers 35A to 35C.
[0053] Hereinafter, one of the signal circulation circuits of the three-string model, for example, the rear stage side of the uppermost gate amplifier 35A will be described as an example.
[0054] In the gate amplifier 35A, the waveform data after the windowing process is amplified by a multiple corresponding to the velocity value, and the processed waveform data is output to the adder 36A. The adder 36A also receives the waveform data on which the resonance sound is superimposed, which is output from the adder 41A described later, and outputs the added output as the output of the string model to the delay circuit 37A and the adder 43.
[0055] In an acoustic piano, the delay circuit 37A sets the string length delay Pt0_r[n] as a value corresponding to an integer part of one wavelength of the sound output when the string vibrates (for example, an integer value of 20 when corresponding to a high-pitched key and 2000 when corresponding to a low-pitched key), delays the waveform data in accordance with the string length delay Pt0_f[n], and outputs it to the subsequent all-pass filter (APF) 38A.
[0056] The all-pass filter 38A sets the chord length delay Pt0_f[n] as a value corresponding to the decimal part of the one wavelength, delays the waveform data according to the chord length delay Pt0_f[n], and outputs it to the low-pass filter (LPF) 39A in the subsequent stage. That is, the delay circuit 37A (-37C) and the all-pass filter 38A (-38C) delay the waveform data by the time (one wavelength time) determined by the input note number information (pitch information).
[0057] The low-pass filter 39A passes waveform data on the lower side than the cutoff frequency Fc[n] for wide-range attenuation set for the frequency of the chord length, and outputs the waveform data to the attenuation amplifier 40A and the delay holding unit 45A.
[0058] The attenuation amplifier 40A performs a normal attenuation process that is not related to the superposition of the resonance sound, and outputs the waveform data after the attenuation to the adder 41A.
[0059] The delay holding unit 45A holds the waveform data output from the low-pass filter 39A for one sampling period (Z-1), and then outputs the waveform data to the subtractor 46A as a subtrahend.
[0060] The subtractor 46A also receives waveform data of the resonance sound one sampling period ago superimposed with the full string model from the inverting amplifier 49 described later, and uses the waveform data of its own string model as the output of the low-pass filter 39A as a subtractant, and outputs the waveform data of the difference to the attenuation amplifier 47A.
[0061] Incidentally, the envelope generator 42 sends a signal indicating the volume corresponding to the ADSR (Attach / Decay / Sustain / Release) stage that changes over time to the multiplier 50 based on the signal indicating the feedback attenuation amount from the note event processing unit 31. The multiplier 50 multiplies the signal by the resonance level signal and outputs the product as a signal indicating the resonance value to the attenuation amplifier 47A (-47C).
[0062] The attenuation amplifier 47A performs attenuation processing at an attenuation rate corresponding to the resonance value input from the multiplier 50, and outputs waveform data after attenuation to the adder 41A.
[0063] The adder 41A adds the waveform data of the own string model output by the attenuation amplifier 40A and the waveform data of the resonance sound output by the attenuation amplifier 47A from which only the own string model is subtracted and other full string models are superimposed, and provides the summed waveform data as a feedback input to the adder 36A.
[0064] As described above, the addition output in the adder 36A is output to the delay circuit 37A in the loop circuit as the output of the string model, and is also output to the adder 43 .
[0065] Adder 43 adds the waveform data output from adder 36A to the waveform data output from adders 36B and 36C of the other two string models that also constitute the loop circuit of the excitation signal, and outputs the sum to adder 44 as a musical sound signal corresponding to the key operation.
[0066] The musical sound signals of the depressed keys are added in the adder 44 and output to the downstream D / A converter 12D for musical sound generation, while being output to the delay storage section 48 as waveform data of the resonance sound before processing.
[0067] The delay holding section 48 holds the waveform data output from the adder 44 for one sampling period (Z-1), and then outputs the waveform data to the subtractors 46A to 46C of the circuits for the respective keys.
[0068] Figure 6 It is a block diagram showing the circuit configuration of the waveform reading section 32 and the windowing processing section 33.
[0069] When a key is pressed on the keyboard 11, an offset address indicating a starting address corresponding to a note number and a velocity value to be sounded is stored in the offset address register 51. The stored content of the offset address register 51 is output to the adder 52.
[0070] On the other hand, the count value of the current address counter 53 which is reset to “0 (zero)” at the beginning of sound generation is output to the adder 52 , the interpolation unit 56 , the adder 55 , and the windowing unit 57 .
[0071] The current address counter 53 is a counter that sequentially increases its count value in accordance with the result of the adder 55 adding the value held in the tone register 54 that holds the reproduced tone of the excitation signal to its own count value.
[0072] The reproduced pitch as the setting value of the pitch register 54 is normally "1.0" if the sampling rate of the waveform data in the waveform memory 34 is consistent with the string model. On the other hand, when the pitch is changed by master tuning, stretched tuning, temperament, etc., a value obtained by adding or subtracting from "1.0" is given.
[0073] The output of the adder 52 (the integer part of the address) obtained by adding the offset address to the current address is output to the waveform memory 34 as a read address, and the corresponding waveform data is read from the waveform memory 34 .
[0074] The read waveform data is interpolated in the interpolation unit 56 according to the decimal part of the address corresponding to the tone output by the current address counter 53, and then output to the windowing unit 57. In the windowing unit 57, as the current address output by the current address counter 53 progresses, the waveform data is windowed based on a window function table such as a Hanning window or a Hamming window or a Blackman window stored in a window table 58, and the waveform data after the windowing is output as an excitation signal to the gate amplifiers 35A to 35C.
[0075] Figure 7 38A (-38C). The output from the delay circuit 37A in the previous stage is input to the subtractor 71. The subtractor 71 performs subtraction using the waveform data of one sampling period before the output of the amplifier 72 as a subtrahend, and outputs the waveform data as the difference to the delay holding unit 73 and the amplifier 74. The amplifier 74 outputs the waveform data attenuated according to the chord length delay Pt_f to the adder 75.
[0076] The delay holding section 73 holds the sent data, delays it by one sampling period (Z-1), and outputs it to the amplifier 72 and the adder 75. The amplifier 72 outputs the waveform data attenuated according to the chord length delay Pt_f as a subtractant to the subtractor 71. The sum output of the adder 75 is matched with the delay operation in the delay circuit 37A (37C) at the preceding stage, and is sent to the low-pass filter 39A (39C) at the following stage as waveform data delayed by a time (one wavelength time) determined by the input note number information (pitch information).
[0077] Figure 8 39A (-39C). The delayed waveform data from the all-pass filter 38A (-38C) in the previous stage is input to the subtractor 81. In the subtractor 81, the waveform data above the cutoff frequency Fc output by the amplifier 82 is given as a subtrahend, and the waveform data on the low-frequency side less than the cutoff frequency Fc is calculated as the difference, and output to the adder 83.
[0078] The adder 83 simultaneously inputs the same waveform data outputted by the delay holding section 84 one sampling period ago, and outputs the waveform data of the sum thereof to the delay holding section 84. The delay holding section 84 holds the data sent from the adder 83, delaying it by one sampling period (Z-1), and outputs it to the amplifier 82 and the adder 83 as the output of the low-pass filter 39A.
[0079] As a result, the low-pass filter 39A (-39C) passes the waveform data on the lower side than the cutoff frequency Fc for wide-range attenuation set for the frequency of the chord length, and outputs it to the subsequent attenuation amplifier 40A and delay holding unit 45A.
[0080] [action]
[0081] Next, the operation of the above-mentioned embodiment will be described.
[0082] First, the waveform data stored in the waveform memory 34 (ROM 12B) will be described.
[0083] Fig. 9 The diagram is an example of waveforms of musical sounds with the same note number but different velocity values that were recorded and collected. Fig. 9 (A) indicates weak (p), Fig. 9 (B) indicates medium strength (mf), Fig. 9 (C) shows each waveform of intensity (f). In modeling, it is desirable to use only the portion close to the initial portion of the waveform where the harmonic structure is stable after the impact (the t2 interval in the figure).
[0084] Furthermore, as pre-processing, it is desirable to perform normalization processing on these plurality of recorded data so that the amplitudes are equal.
[0085] Fig.10 This is a diagram illustrating a method of generating an excitation signal by adding and synthesizing strong and weak waveforms at a pitch corresponding to a certain note number. The data at the beginning of the waveform data corresponding to the strong and weak are added in a manner in which the intensities are changed respectively along the same time series as the progress of the storage address, using values represented by the addition ratios shown in the diagram.
[0086] Specifically, Fig.10 (A) is a graph showing about 6 cycles of waveform data of the strong (f) first waveform data having a relatively high intensity (the intensity of the sound is strong). For this waveform data, Fig.10 As shown in (B), an addition ratio signal is given to make the initial two cycles effective. Therefore, in the multiplier (amplifier) 21, the waveform data is multiplied by the addition ratio signal that changes between "1.0" and "0.0" as a multiple (amplification factor), and the waveform data as the product is output to the adder 24.
[0087] same, Fig.10 (C) is a graph showing about 6 cycles of waveform data of medium-strong (mf) second waveform data of medium intensity (slightly strong sound intensity). For this waveform data, Fig.10As shown in (D), an addition ratio signal for making the center approximately two cycles effective is given. Therefore, the multiplier 22 multiplies the waveform data by the addition ratio signal and outputs the waveform data as the product to the adder 24.
[0088] same, Fig.10 (E) is a graph showing about 6 cycles of weak (p) waveform data of the third waveform data having a relatively low intensity (the intensity of the sound is weak). For this waveform data, Fig.10 As shown in (F), an addition ratio signal for making about two cycles of the tail section effective is given. Therefore, the multiplier 23 multiplies the waveform data by the addition ratio signal and outputs the waveform data as the product to the adder 24.
[0089] Therefore, the output of the adder 24 which adds these waveform data is as follows: Fig.10 As shown in (G), the waveform changes continuously from "strong" to "medium" to "weak" every two cycles.
[0090] Such waveform data (waveform data for excitation signal) is stored in advance in the waveform memory 34, and by specifying the start address corresponding to the performance intensity, the required waveform data (partial data) is read out as the excitation signal. Fig.10 As shown in (H) of FIG. 1 , the window processing unit 33 performs window processing and supplies the window processing to each signal loop circuit in the subsequent stage.
[0091] In order to use 2 to 3 wavelengths as waveform data, the number of sampling data constituting the waveform data varies depending on the pitch. For example, in the case of an 88-key acoustic piano, the number of sampling data from bass to treble is about 2000 to 20 (in the case of a sampling frequency of 44.1 [kHz]).
[0092] In addition, the above-mentioned waveform data addition method is not limited to the combination of waveform data of different playing intensities of the same instrument. For example, in the case of an electric piano, when the key is struck softly, it has a waveform characteristic close to a sine wave, and when it is struck hard, it becomes a waveform shape such as a saturated rectangular wave. By continuously adding these waveforms with significantly different shapes or various musical sounds of different instruments such as waveforms extracted from guitars, it is possible to generate modeled musical sounds that continuously change according to the playing intensity or other playing operation elements.
[0093] Fig.11 The following is an example of a process in which the waveform reading unit 32 changes the read address of the waveform memory 34 according to the velocity value when the sound source 12D is driven. Fig.11As shown in (A), waveform data that changes continuously from strong (f) to weak (p) is stored, and in order to read out the waveform data portion corresponding to the velocity value during performance, the read start address is changed.
[0094] Fig.11 (B) indicates that the force value is strong (f). Fig.10 (C) indicates that the force value is medium-strong (mf). Fig.10 (D) indicates the readout range of each waveform data when the force value is weak (p).
[0095] In fact, it is not limited to the above three levels. As the windowed waveform is represented by the dotted line in the figure, it is divided into 128 levels according to the velocity value. For example, if the resolution of the velocity value is 7 bits, it makes the read position of the waveform data under the note number change continuously.
[0096] Furthermore, when windowing is performed on the read waveform data, since the wavelength differs according to the pitch, the time length of the "window" portion to which the windowing is performed needs to also differ.
[0097] Fig.12 This is a diagram illustrating the relationship between the window function and the wavelength (pitch). Fig.12 (A) shows the waveform readout range and window function of the waveform data in the case of a strong (f) of pitch F4 (MIDI: 65). Fig.12 (B) indicates the pitch F5 (MIDI: 77), which is one octave higher. Fig.12 (C) indicates the case of a pitch of F6 (MIDI: 89), which is one octave higher.
[0098] As shown in the figures, when the result of windowing the waveform data stored in the waveform memory 34 is used as an excitation signal, since the time width of the wavelength is different depending on the pitch corresponding to the specified note number, it is also necessary to change the window size (time width) according to the pronunciation tone generated as the musical sound.
[0099] In addition, as described above, the waveform data read from the waveform memory 34 by the waveform reading unit 32 is subjected to windowing processing by the windowing processing unit 33. In addition, the waveform data itself stored in the waveform memory 34 is subjected to windowing processing in advance to remove unnecessary frequency components.
[0100] Examples of the window function applied to the waveform data for storage include a Hanning window, a Blankman window, a Kaiser window, and the like, and any function may be used as long as it has little influence on the harmonic components of the original sound of the musical sound.
[0101] The waveform data read from the waveform memory 34 by the waveform reading unit 32 and windowed by the windowing processing unit 33 is processed by a multiple corresponding to the operated force value through gate amplifiers 35A to 35C and then input to the signal circulation circuit constituting the string model.
[0102] In one string model, a closed loop is formed of a delay circuit 37A (~37C) that generates a delay of the wavelength of the generated musical sound. Within the loop, an all-pass filter 38A (~38C), a low-pass filter 39A (~39C), an attenuation amplifier 40A (~40C), a delay holding section 45A (~45C) for feeding back waveform data of the resonance sound of the full string model of other pitches, a subtractor 46A (~46C), an attenuation amplifier 47A (~47C), an adder 41A (~41C) for adding them, and an adder 36A (~36C) for adding the excitation signal of the model's signal.
[0103] In the relationship between the delay circuit 37A (~37C) and the all-pass filter 38A (~38C) in which the value obtained by adding the inverse of the decimal part of the pitch frequency of the musical sound to be generated is delayed by digital processing and 1, the integer part of the wavelength is given to the delay circuit 37A (~37C) as the chord length delay Pt0_r[n] (~Pt2_r[n]), while the decimal part of the wavelength is given to the all-pass filter 38A (~38C) as the chord length delay Pt0_f[n] (~Pt2_f[n]).
[0104] As mentioned above, in Figure 4 , a circuit structure corresponding to key positions from the middle to high ranges is shown in which three string models are provided for one key based on an acoustic piano.
[0105] In the case of an acoustic piano, the tuning of the model of these three strings is called unison, and is set to slightly different pitches. These different pitches are parameters adjusted by the modeled piano.
[0106] The cutoff frequency Fc[n] of the low-pass filter 39A (-39C) for adjusting the attenuation of the harmonic component according to the time from the sound generation is also set based on the modeled piano or string.
[0107] The outputs of the string models are added in the adder 43, and the outputs of the 88 keys are further added in the adder 44, output to the D / A converter 12E at the next stage, and negatively fed back to the delay holding section 48 and the inverting amplifier 49 as waveform data of the resonance sound.
[0108] The waveform data of the signal for exciting the closed-loop string model is read from the waveform memory 34 by the waveform reading unit 32, windowed by the windowing processing unit 33, multiplied by a multiple corresponding to the force value in the gate amplifiers 35A to 35C, and supplied to each signal circulation circuit constituting the string model.
[0109] When a note is turned on (a key is pressed), a signal is sent from the note event processing unit 31 to the envelope generator 42, and the resonance value calculated based on the output of the envelope generator 42 and the resonance level is given as a multiplier (amplification factor) to the attenuation amplifier 47A (~47C).
[0110] The output of the low-pass filter 39A (39C) as the output of the delay system of each string model is directly transmitted to the attenuation amplifier 40A (40C), and on the other hand, after being delayed by one sampling period by the delay holding unit 45A (45C), it is subtracted from the waveform data of the resonance sound of the negative feedback obtained by superimposing the waveform data of all the string models emitted at that time point by the subtractor 46A (46C) as a subtrahend. Therefore, the waveform data output by the subtractor 46A becomes data obtained by removing the component of the string model from the resonance sound, and after being attenuated according to the resonance value by the attenuation amplifier 47A (47C), it is added to the waveform data of the own string model in the adder 41A (41C), and the sum output becomes the feedback input in the closed loop.
[0111] In this way, the waveform data of the resonance sound from which the component of the own string model has been removed in advance is added to the waveform data of the string model and used as the feedback input of the closed loop circuit, so that abnormal oscillation caused by the resonance sound can be suppressed.
[0112] If a note is turned off when a key is released (accepting a weakening instruction including a muting instruction), the envelope generator 42 outputs a signal of a resonance value corresponding to the volume of the R (Release) stage, so that the attenuation coefficient is adjusted by the attenuation amplifier 47A which is an attenuation multiplier for the resonance sound built into the closed loop.
[0113] At this time, by cutting off the note-on signal, the waveform data used for the excitation signal newly read by the waveform reading unit 32 is cut off by the gate amplifiers 35A~35C and is no longer input into the closed-loop circuit. In each string model, the musical sound signal, including the resonance sound component, is naturally muted according to the set attenuation coefficient.
[0114] [Effects of Embodiment]
[0115] As described above in detail, according to the present embodiment, it is possible to suppress abnormal oscillation and generate resonance sound without increasing the circuit scale.
[0116] Furthermore, in this embodiment, the note-on signal outputted by the note event processing unit 31 in response to the key operation also includes the resonance sound, and can generate a musical sound signal in the string model of the corresponding key, thereby simplifying the circuit structure and control.
[0117] Furthermore, in the present embodiment, since the attenuation of the resonance sound is controlled using the signal outputted from the envelope generator 42 for controlling the temporal variation of the volume of the musical sound, the attenuation processing can be naturally performed while the structure for generating the resonance sound is relatively simple.
[0118] In addition, in this embodiment, since the waveform data serving as the excitation signal is subjected to windowing processing using a window function and then input into a closed loop circuit, it is possible to efficiently perform the processing of repeatedly performing calculations on the waveform data together with the waveform data of the resonance sound in the closed loop circuit.
[0119] Furthermore, as described above, the present embodiment has been described with reference to the case where the embodiment is applied to an electronic keyboard instrument, but the present invention is not limited to musical instruments or specific models.
[0120] In addition, the present invention is not limited to the above-mentioned embodiments, and can be variously deformed in the implementation stage without departing from the main purpose. In addition, each embodiment can be implemented in appropriate combination as long as possible, in which case the effect of the combination can be obtained. Furthermore, the above-mentioned embodiments include inventions at various stages, and various inventions can be extracted by appropriate combinations of the disclosed multiple constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in the embodiments, if the problem described in the problem to be solved by the invention column can be solved and the effect described in the invention effect column can be obtained, the structure with the deleted constituent element can be extracted as an invention.
Claims
1. An electronic musical instrument, characterized in that: have: a plurality of operating elements, including a first operating element for specifying a first pitch; and sound source; The above sound source According to the designation of a plurality of pitches including the first pitch and other pitches, an output signal from a first closed loop provided corresponding to the designated first pitch and output signals from other closed loops provided corresponding to the designated other pitches are accumulated to generate an accumulated signal; After feeding back to the first closed loop a subtraction signal obtained by subtracting the signal circulating in the first closed loop from the accumulated signal, a musical sound signal including signal components corresponding to the plurality of designated pitches is output as a musical sound signal corresponding to the first pitch, The subtraction signal is fed back to the closed loop corresponding to the pitch being produced, and is not fed back to the closed loop corresponding to the pitch not being produced.
2. The electronic musical instrument according to claim 1, wherein: In order to generate the accumulated signal, the sound source inverts the polarity of a signal of an accumulation result of the output signal from the first closed loop and the output signals from the other closed loops.
3. The electronic musical instrument according to claim 1 or 2, characterized in that: According to the designation of the first pitch and the second pitch, the sound source generates a musical sound signal corresponding to the first pitch and including a signal component corresponding to the second pitch by adding a signal based on an output signal from the second closed loop to the first closed loop, the first closed loop circulates the excitation signal corresponding to the first pitch, and the second closed loop circulates the excitation signal corresponding to the second pitch; and By adding a signal based on the output signal from the first closed loop to the second closed loop, a musical sound signal corresponding to the second pitch and including a signal component corresponding to the first pitch is generated.
4. The electronic musical instrument according to claim 3, wherein: The excitation signal is generated by applying a window function to partial data included in excitation signal waveform data generated based on a plurality of waveform data having different intensities of sounds at corresponding pitches.
5. The electronic musical instrument according to claim 3, characterized in that: Based on input of musical performance operation data including pitch data and volume data, reading out partial data corresponding to the volume data included in the input musical performance operation data from the waveform data for the excitation signal corresponding to the pitch indicated by the pitch data included in the input musical performance operation data; The excitation signal is generated by applying a window function to the read partial data.
6. The electronic musical instrument according to claim 5, characterized in that: The number of samples of the partial data to be read out varies according to the pitch represented by the pitch data, and the width of the window of the window function also varies according to the pitch represented by the pitch data.
7. A method, characterized in that Make electronic musical instruments According to the designation of a plurality of pitches including a first pitch and other pitches, an output signal from a first closed loop provided corresponding to the designated first pitch and output signals from other closed loops provided corresponding to the designated other pitches are accumulated to generate an accumulated signal; After feeding back to the first closed loop a subtraction signal obtained by subtracting the signal circulating in the first closed loop from the accumulated signal, a musical sound signal including signal components corresponding to the plurality of designated pitches is output as a musical sound signal corresponding to the first pitch, The subtraction signal is fed back to the closed loop corresponding to the pitch being pronounced, and is not fed back to the closed loop corresponding to the pitch not being pronounced.
8. The method according to claim 7, characterized in that In order to generate the accumulated signal, the electronic musical instrument inverts the polarity of a signal of an accumulation result of the output signal from the first closed loop and the output signal from the other closed loop.
9. The method according to claim 7 or 8, characterized in that According to the designation of the first pitch and the second pitch, the electronic musical instrument A musical sound signal corresponding to the first pitch and including a signal component corresponding to the second pitch is generated by adding a signal based on an output signal from the second closed loop to the first closed loop, wherein the first closed loop circulates the excitation signal corresponding to the first pitch, and the second closed loop circulates the excitation signal corresponding to the second pitch; and By adding a signal based on the output signal from the first closed loop to the second closed loop, a musical sound signal corresponding to the second pitch and including a signal component corresponding to the first pitch is generated.
10. The method according to claim 9, characterized in that Make the above electronic musical instrument Based on input of musical performance operation data including pitch data and volume data, reading out partial data corresponding to the volume data included in the input musical performance operation data from the waveform data for the excitation signal corresponding to the pitch indicated by the pitch data included in the input musical performance operation data; The excitation signal is generated by applying a window function to the read partial data.
11. A storage medium, characterized in that: A program is stored, the program causing the electronic musical instrument to According to the designation of a plurality of pitches including a first pitch and other pitches, an output signal from a first closed loop provided corresponding to the designated first pitch and output signals from other closed loops provided corresponding to the designated other pitches are accumulated to generate an accumulated signal; After feeding back to the first closed loop a subtraction signal obtained by subtracting the signal circulating in the first closed loop from the accumulated signal, a musical sound signal including signal components corresponding to the plurality of designated pitches is output as a musical sound signal corresponding to the first pitch, The subtraction signal is fed back to the closed loop corresponding to the pitch being pronounced, and is not fed back to the closed loop corresponding to the pitch not being pronounced.
