Electronic musical instrument, method and storage medium
By using the processor in an electronic instrument to calculate and adjust the attenuation speed of the musical tone, the unnatural listening experience of the musical tone during combo operation is solved, and a more natural musical tone attenuation effect is achieved.
Patent Information
- Application Number
- CN202210661449.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-06-17
- Filing Date
- 2022-06-13
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2042-06-13
AI Technical Summary
In electronic instruments, the musical tone during combo operation is unnatural in listening, especially when the force of the button changes, it is difficult for the prior art to effectively adjust the attenuation speed of the musical tone, resulting in unnaturally increasing or rapidly decaying of the volume.
By using at least one processor in an electronic instrument, the amplitude ratio of the first musical tone and the second musical tone is calculated according to the operation of the performance operating member, the parameter value for adjusting the attenuation speed of the first musical tone is determined, and the attenuation of the musical tone is adjusted by the sound source LSI.
This achieves a more natural sound attenuation during combo operation, avoiding the problem of unnaturally expanding or rapid attenuation of the volume, making the musical notes produced by electronic instruments closer to natural acoustic instruments.
Smart Images

Figure CN115497439B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to electronic musical instruments, methods and storage media. Background Art
[0002] In electronic musical instruments, there is a known technique that, when a musical note is continuously produced by a performance operating member of the same pitch (hereinafter referred to as a "continuous operation"), the musical note is produced according to a new key operation, and the musical note that has been produced is rapidly attenuated according to the previous key operation. For example, Japanese Patent Publication No. 2001-209382 describes a specific structure of an electronic musical instrument to which such a technique is applied.
[0003] However, since the unnatural sound of the musical sound produced during the combo operation is eliminated by quickly muting the smaller musical sounds, when the force of the current key press is greater than the force of the previous key press, the musical sound produced by the previous key press operation decays at twice the speed than usual.
[0004] In addition, when the force of the current key press is equal to or less than the force of the previous key press, the musical sound corresponding to the previous key press operation decays at a normal speed.
[0005] For example, when a key operation is performed continuously with a large force, if the force of the current key operation is equal to or less than the force of the previous key operation, the musical sound generated by the previous key operation decays at a normal speed. Therefore, if the key operation is repeated repeatedly, the musical sound that has not decayed completely at the normal speed remains at a considerable level, and although it is temporary, the volume sometimes increases unnaturally. Summary of the invention
[0006] In order to make the musical sound produced during the combo operation closer to the natural musical sound, further improvement of the electronic musical instrument is required.
[0007] An electronic musical instrument according to one embodiment of the present invention comprises a playing operation member and at least one processor, wherein the at least one processor indicates the production of a first musical sound based on a first operation on the playing operation member, obtains a first amplitude value of the first musical sound based on a second operation on the playing operation member during the production of the first musical sound, and obtains a second amplitude value of a second musical sound produced based on the second operation, determines a parameter value for adjusting the decay speed of the first musical sound based on a ratio between the first amplitude value and the second amplitude value, and indicates the decay of the production of the first musical sound based on the determined parameter value.
[0008] According to one embodiment of the present invention, there are provided an electronic musical instrument, a method, and a storage medium storing a program that add an improvement for making musical sounds produced by the electronic musical instrument during a combo operation close to natural musical sounds. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 This is a block diagram showing the structure of an electronic musical instrument according to one embodiment of the present invention.
[0010] Figure 2 This is a diagram showing an example of the structure of waveform data stored in the ROM included in the electronic musical instrument according to one embodiment of the present invention.
[0011] Figure 3 This is a block diagram showing the structure of a sound source included in an electronic musical instrument according to one embodiment of the present invention.
[0012] Figure 4A This is a diagram showing an example of a pitch envelope output from a pitch envelope generator provided in a sound source according to one embodiment of the present invention.
[0013] Figure 4B This is a diagram showing an example of a filter envelope output from a filter envelope generator provided in a sound source according to one embodiment of the present invention.
[0014] Figure 4C This is a diagram showing an example of an amplified envelope output from an amplified envelope generator provided in a sound source according to one embodiment of the present invention.
[0015] Figure 5A This is a diagram for explaining the characteristics of musical sound when an impact is applied to a vibrating body.
[0016] Figure 5B This is a diagram for explaining the characteristics of musical sound when an impact is applied to a vibrating body.
[0017] Figure 5C This is a diagram for explaining the characteristics of musical sound when an impact is applied to a vibrating body.
[0018] Figure 6 This is a flowchart of key-press processing executed by a processor of an electronic musical instrument according to one embodiment of the present invention.
[0019] Figure 7 This is a flowchart of key-press processing executed by a processor of an electronic musical instrument according to one embodiment of the present invention.
[0020] Figure 8 This is a graph showing the relationship between the amplitude value of the second musical sound corresponding to the second operation and the force value during the second operation in one embodiment of the present invention.
[0021] Fig. 9 This is a flowchart of a muting process executed by a processor of an electronic musical instrument according to one embodiment of the present invention.
[0022] Fig.10 This is a graph showing the relationship between a parameter value for adjusting the decay speed of a first musical sound and a ratio between a first amplitude value and a second amplitude value in one embodiment of the present invention.
[0023] Fig.11 Description Figure 7 The effect of adjusting the decay speed of the first musical sound by executing the key processing.
[0024] Fig.12 Description Figure 7 The effect of adjusting the decay speed of the first musical sound by executing the key processing.
[0025] Fig.13 Description Figure 7 The effect of adjusting the decay speed of the first musical sound by executing the key processing. DETAILED DESCRIPTION
[0026] An electronic musical instrument according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. The method and program according to an embodiment of the present invention are implemented by causing a computer (circuit components) of the electronic musical instrument to execute various processes.
[0027] Figure 1 1 is a block diagram showing the structure of the electronic musical instrument 1. In the present embodiment, the electronic musical instrument 1 is, for example, an electronic piano, and is configured to enable natural musical sounds (for example, musical sounds close to the characteristics of acoustic instruments) to be heard by adjusting the decay speed of musical sounds produced when keys of the same pitch are struck repeatedly.
[0028] In addition, the technology of the present invention for producing natural musical sounds during combo operations can also be applied to electronic musical instruments other than electronic pianos. Specifically, the case where an acoustic musical instrument (such as a percussion instrument, a plucked string instrument, a hammered string instrument, a chromatic percussion instrument, etc.) that produces musical sounds by applying an impact to a vibrating body is configured as an electronic musical instrument also falls within the scope of the present invention.
[0029] like Figure 1 As shown, the electronic musical instrument 1 includes a processor 10, a RAM (Random Access Memory) 11, a ROM (Read Only Memory) 12, a switch panel 13, an input / output interface 14, an LCD (Liquid Crystal Display) 15, an LCD controller 16, a keyboard 17, a key scanner 18, a sound source LSI (Large Scale Integration) 19, a D / A converter 20, and an amplifier 21 as a hardware structure. The various parts of the electronic musical instrument 1 are connected via a bus 22.
[0030] The processor 10 reads out the programs and data stored in the ROM 12 and controls the electronic musical instrument 1 as a whole by using the RAM 11 as a work area.
[0031] The processor 10 is, for example, a single processor or a multi-processor, and includes at least one processor. In the case of a structure including multiple processors, the processor 10 may be packaged as a single device, or may be composed of multiple devices physically separated in the electronic musical instrument 1 .
[0032] The processor 10 includes as a functional block: a musical sound indication unit 101 for indicating the production of a first musical sound according to a first operation on a performance operating member; an amplitude value acquisition unit 102 for acquiring a first amplitude value of the first musical sound according to a second operation on the performance operating member during the production of the first musical sound, and acquiring a second amplitude value of a second musical sound for producing according to the second operation; and a parameter value determination unit 103 for determining a parameter value for adjusting the decay speed of the first musical sound based on a ratio between the first amplitude value and the second amplitude value. The musical sound indication unit 101 indicates the decay of the production of the first musical sound based on the parameter value determined by the parameter value determination unit 103. In addition, Figure 1 Each functional block of the processor 10 shown may be realized by software, or may be partially or entirely realized by hardware such as a dedicated logic circuit.
[0033] In addition, in this specification, two consecutive key operations are defined as the first operation and the second operation. "Two consecutive key operations" means that the next key operation is performed during the pronunciation period corresponding to the first key operation. Therefore, the second operation means the next operation of the first operation performed during the pronunciation period corresponding to the first operation (during the pronunciation of the first musical sound). In addition, in the case of three consecutive key operations (that is, the next key operation is performed during the pronunciation of two musical sounds corresponding to the two consecutive key operations), the second key operation becomes the first operation and the third key operation becomes the second operation.
[0034] The RAM 11 temporarily stores data and programs. The RAM 11 stores programs and data read from the ROM 12 and other data necessary for communication.
[0035] ROM 12 is a non-volatile semiconductor memory such as a flash memory, EPROM (Erasable Programmable ROM), or EEPROM (Electrically Erasable Programmable ROM), and serves as a secondary storage device or an auxiliary storage device. ROM 12 stores, for example, waveform data 121. In addition, programs and data used by the processor 10 for various processes, as well as data generated or obtained by the processor 10 for various processes are stored in ROM 12.
[0036] The switch panel 13 is an example of an input device. When the user operates the switch panel 13, a signal indicating the operation content is output to the processor 10 via the input / output interface 14. The switch panel 13 is composed of, for example, a key switch, a button, etc. of a mechanical type, an electrostatic capacitance contactless type, a membrane type, etc. The switch panel 13 may also be a touch panel.
[0037] LCD 15 is an example of a display device. LCD 15 is driven by LCD controller 16. When LCD controller 16 drives LCD 15 according to the control signal of processor 10, a screen corresponding to the control signal is displayed on LCD 15. LCD 15 can also be replaced by an organic EL (Electro Luminescence), LED (Light Emitting Diode) or other display device. LCD 15 can be a touch panel. In this case, the touch panel can be used as both an input device and a display device.
[0038] The keyboard 17 includes a keyboard having a plurality of white keys and black keys as a plurality of performance operation elements. Each key corresponds to a different pitch.
[0039] The key scanner 18 monitors the keying and key-release of the keyboard. When, for example, a key operation by a user is detected, the key scanner 18 outputs key event information to the processor 10. The key event information includes the pitch (key number) and velocity (velocity value) of the key involved in the key operation. The velocity value can also be said to be a value indicating the strength of the key operation.
[0040] The processor 10 operates as a musical sound indication unit 101, which indicates the sound of musical sound according to the operation (first operation or second operation) of the key (performance operating member). The sound source LSI 19 generates musical sound based on the waveform data read from the ROM 12 based on the instruction of the processor 10. In this embodiment, the sound source LSI 19 can emit 128 musical sounds at the same time. In addition, in this embodiment, the processor 10 and the sound source LSI 19 are configured as separate devices, but in another embodiment, the processor 10 and the sound source LSI 19 can be configured as one processor.
[0041] Figure 2 1 is a diagram showing an example of the structure of the waveform data 121 stored in the ROM 12. Figure 2 As shown, in the waveform data 121, waveform data information 1221 to 1222 of various tones such as "guitar" and "piano" are registered. m1 . In the waveform data information 1221~122 of various timbres m1 In the example, waveform data 1230 to 1234 of all key numbers of the target timbre (for example, piano) are registered. m2 . In more detail, for each key number, waveform data corresponding to the velocity value (i.e., the intensity of the operation on the performance operating member) is registered. For example, in the case of 1<n1<n2<n3<127, for each key number, waveform data 124p corresponding to a low velocity value (greater than 1 and less than n1), waveform data 124mp corresponding to a slightly lower velocity value (greater than n1 and less than n2), waveform data 124f corresponding to a slightly higher velocity value (greater than n2 and less than n3), and waveform data 124ff corresponding to a high velocity value (greater than n3 and less than 127) are registered.
[0042] The processor 10 reads waveform data corresponding to the intensity (in other words, the velocity value) of the operation on the performance operating member from the plurality of waveform data stored in the ROM 12. More specifically, the processor 10 sets the timbre (guitar, piano, etc.) of the musical sound according to the user's operation on the switch panel 13. The processor 10 reads key event information (i.e., the key number pressed and the velocity value when the key is pressed) and waveform data corresponding to the currently set timbre from the waveform data 121.
[0043] The sound signal of the musical sound generated by the sound source LSI 19 is DA-converted by the D / A converter 20 , amplified by the amplifier 21 , and output to a speaker (not shown).
[0044] Figure 3 FIG. 1 is a block diagram showing the structure of the sound source LSI 19. Figure 3As shown, the sound source LSI 19 has 128 generator sections 19A_1 to 19A_128 and a mixer 19B. The generator sections 19A_1 to 19A_128 are respectively provided corresponding to the 128 simultaneous sounding channels. The mixer 19B mixes the outputs from the generator sections 19A_1 to 19A_128 to generate musical sounds, and outputs the generated musical sounds to the D / A converter 20. In addition, Figure 3 Each functional block of the sound source LSI 19 shown may be realized by software, or may be partially or entirely realized by hardware such as a dedicated logic circuit.
[0045] Each of the generator units 19A_1 to 19A_128 includes a waveform generator 19a, a pitch envelope generator 19b, a filter 19c, a filter envelope generator 19d, an amplifier 19e, an amplified envelope generator 19f, and an envelope detector 19g.
[0046] The waveform generator 19a reads out waveform data corresponding to the instruction of the processor 10 from the ROM 12 at a pitch corresponding to the pitch envelope waveform output from the pitch envelope generator 19b.
[0047] The pitch envelope generator 19b changes the pitch of the waveform data read out from the ROM 12 by the waveform generator 19a over time.
[0048] Figure 4A FIG. 1 shows an example of a pitch envelope output from the pitch envelope generator 19b. Figure 4A In the figure, the vertical axis represents the level of the tone, and the horizontal axis represents time. The variable range of the tone level is -1200 cents to +1200 cents (-1 octave to +1 octave), and the level of the envelope is added to the tone being played.
[0049] The pitch envelope generator 19b outputs a pitch envelope corresponding to the instruction of the processor 10 from the three pitch envelopes when the key is pressed, when the key is released, and when the key is muted. The pitch envelope when the key is pressed starts from level L0, reaches level L1 at speed R1, then decreases at speed R2, and maintains at the fixed level "0" reached when the key is continuously pressed. The pitch envelope when the key is released reaches L3 at speed R3 from the level at the time point of key release, then decreases at speed R4, and finally maintains at level L4. Since the current pronunciation is stopped while the new pronunciation is processed, the pitch envelope when the key is muted tends to level L5 at speed R5.
[0050] The filter 19c changes a cutoff frequency according to the filter envelope output from the filter envelope generator 19d, and adjusts the frequency characteristics of the waveform data output from the waveform generator 19a.
[0051] The filter envelope generator 19d varies the cutoff frequency of the filter 19c with time.
[0052] Figure 4B FIG. 1 shows an example of the filter envelope output from the filter envelope generator 19d. Figure 4B In FIG. 1 , the vertical axis represents the level of the cutoff frequency of the filter 19 c and the horizontal axis represents time. The variable range of the cutoff frequency level is from a minimum value of 0 to a maximum value of 1.0.
[0053] The filter envelope generator 19d outputs a filter envelope corresponding to the instruction of the processor 10 from the three filter envelopes when a key is pressed, when a key is released, and when a continuous sound is muted. The filter envelope when a key is pressed starts from level L0, reaches level L1 at a speed of R1, then decreases at a speed of R2 and maintains level L2. The filter envelope when a key is released reaches level L3 at a speed of R3 from level L2 at the time point of key release, then decreases at a speed of R4 and finally maintains at level L4. Since the current pronunciation is stopped while a new pronunciation is being processed, the filter envelope when a continuous sound is muted tends to level L5 at a speed of R5.
[0054] The amplifier 19e changes the amplification factor according to the amplification envelope output from the amplification envelope generator 19f, and adjusts the volume of the waveform data output from the filter 19c.
[0055] The amplification envelope generator 19f varies the amplification factor of the amplifier 19e with time.
[0056] Figure 4C FIG. 1 shows an example of the amplified envelope output from the amplified envelope generator 19f. Figure 4C In FIG. 1 , the vertical axis represents the level of the gain of the amplifier 19 e , and the horizontal axis represents time. The variable range of the gain level is from a minimum value of 0 to a maximum value of 1.0.
[0057] The amplified envelope generator 19f outputs an amplified envelope corresponding to the instruction of the processor 10 from the three amplified envelopes when a key is pressed, when a key is released, and when a continuous sound is muted. The amplified envelope when a key is pressed starts from level L0, reaches level L1 at speed R1, then decreases at speed R2 and maintains level L2. The amplified envelope when a key is released reaches level L3 at speed R3 from level L2 at the time point of key release, then decreases at speed R4 and finally maintains a fixed level "0". Since the current pronunciation is stopped while a new pronunciation is being processed, the amplified envelope when a continuous sound is muted tends to level "0" at speed R5.
[0058] The envelope detector 19g detects the envelope of the waveform output from the amplifier 19e. For example, the envelope detector 19g converts the waveform output from the amplifier 19e into an absolute value by a rectifier circuit and smoothes the absolute valued waveform by a low-pass filter, thereby detecting the envelope (in other words, the amplitude value) of the waveform output from the amplifier 19e.
[0059] In addition, if the level of the waveform is standardized, the value of the amplified envelope generator 19f can also be applied as the envelope of the waveform output from the amplifier 19e. Even if the level of the waveform is not standardized, the virtual level envelope generator can be driven individually for each generator unit, and the value obtained by the level envelope generator can be applied as the envelope of the waveform output from the amplifier 19e.
[0060] Here, in percussion instruments, plucked string instruments, struck string instruments, chromatic percussion instruments, etc., if the vibrating body of the instrument is in a stationary state, as long as the kinetic energy of the impact body that impacts the vibrating body is the same, approximately the same musical sound will be produced. In contrast, when an impact body is used to impact a vibrating vibrating body, a portion of the vibration energy of the vibrating body is dissipated as impact sound during the collision. In other words, the vibration energy of the vibrating body is lost during the collision. The amount of vibration energy lost by the vibrating body during the collision varies, for example, depending on the relationship between the vibration energy of the vibrating body and the kinetic energy of the impact body. Therefore, even if the kinetic energy of the impact body is the same, the way the musical sound is produced after the collision will change depending on the vibration state of the vibrating body at the time of the collision.
[0061] Here, a cymbal is used as an example to describe the characteristics of a musical sound when an impact is applied to a vibrating body. Figure 5A to Figure 5C Indicates the amplitude of the musical sound when a hammer (impacting body) strikes a cymbal (vibrating body). Figure 5A to Figure 5C In each of the graphs, the vertical axis represents amplitude and the horizontal axis represents time.
[0062] Figure 5A It represents the situation where the cymbal is tapped lightly immediately after the cymbal is hit hard with a hammer at time point A1 (time point A2) (hereinafter referred to as "Situation A"). In situation A, the vibration caused by the heavy tapping at time point A1 continues to decay naturally as time passes. Therefore, after time point A1, the musical sound caused by the vibration of the heavy tapping can be heard to gradually decay. Moreover, at time point A2, the impact sound of the light tapping can be heard to be generated differently from the musical sound of the above-mentioned vibration. This is because the vibration energy generated by the heavy tapping at time point A1 is hardly lost due to the impact generated by the light tapping at time point A2. Therefore, the vibration generated by the heavy tapping at time point A1 actually continues to decay naturally as time passes after time point A2.
[0063] Figure 5BThis shows the situation where the cymbal is struck hard (at time B2) immediately after being lightly struck with a mallet at time B1 (hereinafter referred to as "Situation B"). In situation B, even if the vibration generated by the light strike at time B1 remains at time B2, the musical sound of the vibration is quite small compared to the impact sound of the heavy strike at time B2, so the impact sound is eliminated to the extent that it is almost inaudible. Even if the vibration decays rapidly after time B2, or continues to decay naturally over time, the musical sound after time B2 will not sound much different.
[0064] Figure 5C The figure shows a case where a cymbal is struck with a hammer at the same intensity at each time point marked C1 to C4 (hereinafter referred to as "case C"). In case C, the amplitude increases immediately after the impact at each time point, but immediately converges within a certain range. This is because the amplitude of the vibrating body (cymbal) is physically restricted, the vibrating body does not accumulate energy, and the energy dissipated as impact sound during collision is so large as to be almost unchanged compared to the kinetic energy of the impact body.
[0065] Consider the case where an electronic musical instrument (specifically, an electronic piano) is used to reproduce the musical sounds of situations A to C. For example, in the electronic musical instrument described in Patent Document 1, the musical sound produced in the previous operation decays at a multiple of the normal speed when the force of the current key press is greater than the force of the previous key press, and decays at the normal speed in all other cases. Therefore, for example, in situation A, when the force of the key press at time point A2 is greater than the force of the key press at time point A1, the vibration produced at time point A1 decays unnecessarily quickly after time point A2, and the musical sound may become unnatural. In addition, for example, in situation C, when the force of the key press at time point C2 is the same as or less than the force of the key press at time point C1, the vibration will not immediately converge to a certain extent after each key operation, which may cause the volume to expand unnaturally.
[0066] Therefore, in this embodiment, the key processing described below is executed so that the musical sound produced during the double-click operation is close to the natural musical sound.
[0067] In the key processing of this embodiment, the attenuation speed of the first musical sound (more specifically, the speed at which the pitch, timbre, and volume of the musical sound that has been produced change during the double-click muting) is adjusted based on the ratio of the amplitude value of the vibrating body to be impacted by the double-click operation (the first amplitude value a) and the strength of the current key (the second amplitude value b). The generator units 19A_1 to 19A_128 are equivalent to the vibrating body. The amplitude value of the vibrating body (the first amplitude value a) is detected by the envelope detector 19g of the generator unit.
[0068] Figure 61 is a flowchart of the key processing performed by the processor 10 in cooperation with the various components of the electronic musical instrument 1. Figure 6 As shown, the processor 10 determines whether a key operation is detected (step S1). When key event information indicating the key number and force value of the key involved in the key operation is input from the key scanner 18 to the processor 10, the key operation is detected (step S1: Yes).
[0069] When a key operation is detected (step S1: Yes), the processor 10 determines whether the musical sound (i.e., the first musical sound) corresponding to the operation on the key with the same key number as the key number obtained in step S1 is in the sound generation period (step S2). In the case where the first musical sound is not in the sound generation period (step S2: No), the processor 10 instructs the sound source LSI 19 to generate the sound corresponding to the key event information obtained in step S1 (in other words, instructs the sound generation of the first musical sound) (step S3). That is, in step S3, the processor 10 acts as the musical sound instruction unit 101, which instructs the sound generation of the first musical sound according to the first operation on the key (performance operation member). According to the sound generation instruction, the waveform data is started to be read in the generator unit, and the envelope is started to be output from each envelope generator.
[0070] When the first musical sound is in the sound generation period (step S2: Yes), the processor 10 obtains the first amplitude value a of the first musical sound (for example, the amplitude value of the first musical sound at the second operation time point), and obtains the second amplitude value b of the second musical sound to be generated according to the current key operation, i.e., the second operation (step S4). That is, in step S4, the processor 10 operates as the amplitude value acquisition unit 102, and the amplitude value acquisition unit 102 obtains the first amplitude value a of the first musical sound according to the second operation (operation on the key with the same key number as the first operation) on the key (performance operation member) during the sound generation period of the first musical sound, and obtains the second amplitude value b of the second musical sound to be generated according to the second operation.
[0071] The processor 10 determines a parameter value r based on the ratio between the first amplitude value a and the second amplitude value b acquired in step S4 (step S5 ), and the sound source LSI 19 instructs the attenuation of the generation of the first musical sound based on the determined parameter value r (step S6 ).
[0072] The parameter value r is a parameter value for adjusting the decay speed of the first musical sound, which will be described in detail later. Thus, in step S5, the processor 10 operates as a parameter value determination unit 103, and the parameter value determination unit 103 determines the parameter value r for adjusting the decay speed of the first musical sound based on the ratio of the first amplitude value a to the second amplitude value b.
[0073] According to the instruction of step S6, by adjusting the decay speed of the first musical sound based on the parameter value r, it is possible to avoid unnatural expansion of the volume during the combo operation or unnatural musical sound caused by unnecessary rapid decay. Thus, the musical sound during the combo operation can be made close to the characteristics of natural musical sound like that of an acoustic instrument.
[0074] As described above, at the second operation time point, when the first musical sound corresponding to the key operation up to the last time is in the sounding period, the operation is performed. Figure 6 By executing the processing of steps S4 to S6, the musical sound during the combo operation can be made close to the natural musical sound characteristics. Figure 7 The flowchart of FIG. 4 illustrates the details of the processing of steps S4 to S6.
[0075] like Figure 7 As shown, the processor 10 obtains the key number and force value included in the key event information input by the key scanner 18 (step S101). For convenience, the force value is denoted by a reference symbol v. The force value v ranges from a minimum value of 1 to a maximum value of 127.
[0076] The processor 10 obtains the currently set timbre (guitar, piano, etc.) and information of the waveform data determined according to the key number and velocity value v obtained in step S101 from the plurality of waveform data 121 stored in the ROM 12 (step S102 ).
[0077] The processor 10 uses the force value v representing the speed of the current key press (or the strength of the key press in other viewpoints) to obtain the second amplitude value b of the musical sound corresponding to the current key press operation (step S103). The second amplitude value b can be recorded as "the second amplitude value for the second musical sound corresponding to the current key press operation (second operation)". Here, as a specific example of obtaining the second amplitude value b, a method of calculating the second amplitude value b using the following formula (1) is shown.
[0078] [Formula (1)]
[0079] b=(v / 127)2×100
[0080] Figure 8 is a graph showing the relationship between the second amplitude value b and the force value v calculated by equation (1). Figure 8 In FIG. 1 , the vertical axis represents the second amplitude value b, and the horizontal axis represents the force value v. Figure 8 As shown, the second amplitude value b increases exponentially according to the force value v. The second amplitude value b ranges from a minimum value of 0 to a maximum value of 100.
[0081] The generators 19A_1 to 19A_128 are assigned numbers 1 to 128. The processor 10 sets a variable n to 1, which indicates the number of the generator of the object to be checked (step S104). For convenience, the generator of the object to be checked is referred to as "object generator".
[0082] The processor 10 checks the state of the object generator section assigned the same number as the variable n (step S105 ). Specifically, the processor 10 checks whether the object generator section is currently being used to generate musical sounds.
[0083] If the object generator unit is currently used to generate musical sounds (step S105: Yes), the processor 10 obtains the value of the envelope detected by the envelope detector 19g of the object generator unit (step S106). The obtained envelope value ranges from a minimum value of 0 to a maximum value of 100.
[0084] Processor 10 will begin executing Figure 7 The values of each envelope obtained in step S106 from the key processing up to this point are compared with the value of the envelope obtained in this step S106, and it is determined whether the value of the envelope obtained in this step S106 is the minimum value (step S107).
[0085] When the value of the envelope obtained in this step S106 is the minimum value (step S107: Yes), the processor 10 sets the object generator part as the candidate used in the generation of the musical sound corresponding to the current key operation (step S108). For convenience, the generator part set as the candidate is recorded as the "allocation candidate generator part". In addition, when the allocation candidate generator part has already been set, the object generator part is set as the new allocation candidate generator part by overwriting. When the value of the envelope obtained in this step S106 is not the minimum value (step S107: No), the processor 10 does not set the object generator part as the allocation candidate generator part.
[0086] The processor 10 determines whether the object generator unit is performing a musical sound generation process with the same key number as the key number obtained in step S101 (step S109). If the musical sound generation process is being performed with the same key number (step S109: Yes), the processor 10 proceeds to step S213 after executing the mute process of step S110.
[0087] Furthermore, when the object generator unit is performing a musical sound generation process with the same key number as the key number obtained in step S101, the value of the envelope obtained in this step S106 represents the current amplitude value of the musical sound produced according to the key operation of the key number pressed this time until the last time. This amplitude value can be recorded as "the first amplitude value a of the first musical sound corresponding to the first operation".
[0088] Thus, in steps S103 and S106, the processor 10 acts as an amplitude value acquisition unit 102, which acquires a first amplitude value a of the first musical sound based on a second operation (an operation on a key with the same key number as the first operation) during the pronunciation of the first musical sound corresponding to a first operation on a performance operating member (a key of the keyboard 17 in the present embodiment), and acquires a second amplitude value b for the second musical sound to be pronounced according to the second operation.
[0089] When the object generator unit is performing a musical sound generation process with a key number different from the key number acquired in step S101 (step S109 : No), the processor 10 does not execute the mute process in step S110 , and proceeds to step S213 .
[0090] Fig. 9 This is a flowchart of the noise cancellation process.
[0091] Considering the above-mentioned situations A to C, the more the amplitude value of the musical sound produced in the previous operation (the first amplitude value a) is similar to the amplitude value of the musical sound produced in the current operation (the second amplitude value b), the more unnatural musical sound (musical sound with unnaturally swollen volume) is likely to be produced if the first musical sound is not quickly attenuated. In addition, the more the first amplitude value a is different from the second amplitude value b, the more likely the musical sound will become unnatural when the first musical sound is quickly attenuated.
[0092] Therefore, the processor 10 determines the parameter value r for adjusting the decay speed of the first musical sound based on the ratio (a / b) of the first amplitude value a and the second amplitude value b (step S201). More specifically, the processor 10 determines the parameter value to be a value at which the decay speed of the first musical sound increases as the ratio (a / b) approaches 1. Thus, in step S201, the processor 10 operates as the parameter value determination unit 103 that determines the parameter value r.
[0093] Here, as a specific example of determining the parameter value r, a method of calculating the parameter value r using the following formula (2) is described.
[0094] [Formula (2)]
[0095] r = 100 / (1+|log2(a / b)|)
[0096] Fig.10 is a graph showing the relationship between the parameter value r calculated by equation (2) and the ratio (a / b). Fig.10 In the figure, the vertical axis represents the parameter value r, and the horizontal axis represents the ratio (a / b). The parameter value r takes a value greater than 0 and less than 100 (in Fig.10 (a portion of the graph is omitted). Fig.10As shown, generally speaking, the closer the ratio (a / b) is to 1, the larger the parameter value r is.
[0097] In the present embodiment, as described above, a method is adopted for switching the waveform data used in the generation of musical sounds according to the intensity of the operation on the performance operating member (in other words, the velocity value). This method is called, for example, the velocity split method. When the electronic musical instrument 1 using the velocity split method is subjected to a continuous operation with the same intensity as in the above-mentioned case C, the same waveform data is read out from ROM12. In this case, if the first musical sound generated by the key operation up to the last time has a large volume remaining, the first musical sound and the second musical sound generated by the current key operation will cause phase interference, and the musical sound after the continuous operation may become an unnatural musical sound.
[0098] In the present embodiment, in order to suppress such phase interference, the attenuation method of the first musical sound is changed depending on whether the waveform data used for generating the first musical sound is the same as the waveform data used for generating the second musical sound.
[0099] Specifically, the processor 10 determines whether the waveform data (first waveform data) read by the object generator unit is the same as the waveform data (second waveform data) obtained in step S102 (step S202). If the two are the same waveform data (step S202: Yes), the processor 10 sets the variable w to 1 (step S203) and executes the processing after step S205. If the two are different waveform data (step S202: No), the processor 10 sets the variable w to 0 (step S204) and executes the processing after step S205.
[0100] The speed R5 of each envelope during the double-attack muting indicates the decay speed of the first musical sound. In steps S205 to S207, the speed R5 of each envelope is adjusted using the parameter value r determined based on the ratio (a / b).
[0101] Specifically, in step S205, the processor 10 adjusts the speed R5 (hereinafter referred to as "speed R5P") of the pitch envelope during the combo muting based on the parameter value r. Here, the speed R5P is adjusted using the following formula (3). In addition, the speed R5P is a minimum value of 0 to a maximum value of 100. According to the following formula (3), when the speed R5P exceeds 100, the speed R5P is limited to 100.
[0102] [Formula (3)]
[0103] R5P=R5P0+(PDP1×r / 100)+PDP2×w
[0104] R5P0: Speed before adjustment R5P
[0105] PDP1, PDP2: Adjustment depth of speed R5P
[0106] The speed R5P0 is the speed R5P before the adjustment process according to the formula (3), and is a minimum value of 0 to a maximum value of 100. Here, in the present embodiment, the speed R5P is adjusted by adding the value obtained based on the parameter value r to the speed R5P0 as the original speed. Therefore, the adjusted speed R5P becomes a value higher than the speed R5P0 before the adjustment. In the formula (3), the value of the speed R5P0 is set to the minimum value 0 in the settable range, so that the range of the speed R5P calculated by the formula (3) is 0 to 100.
[0107] Depth PDP1 and depth PDP2 are adjustment depths (degrees) of velocity R5P, ranging from a minimum value of 0 to a maximum value of 100. Depth PDP1 and depth PDP2 are appropriate values pre-set for each timbre (guitar, piano, etc.) of musical sound and each key number. In addition, the values of depth PDP1 and depth PDP2 can also be changed by the user's operation on the switch panel 13.
[0108] In step S206, the processor 10 adjusts the speed R5 (hereinafter referred to as "speed R5F") of the filter envelope during the combo muting based on the parameter value r. Here, the speed R5F is adjusted using the following formula (4). In addition, the speed R5F is a minimum value of 0 to a maximum value of 100. According to the following formula (4), when the speed R5F exceeds 100, the speed R5F is limited to 100.
[0109] [Formula (4)]
[0110] R5F=R5F0+(FDP1×r / 100)+FDP2×w
[0111] R5F0: speed before adjustment R5F
[0112] FDP1, FDP2: Adjustment depth of speed R5F
[0113] The speed R5F0 is the speed R5F before the adjustment process according to the formula (4), and is between a minimum value of 0 and a maximum value of 100. For the same reason as the speed R5P0, the value of the speed R5F0 is also set to 0 in the formula (4).
[0114] Depth FDP1 and depth FDP2 are depths (degrees) of adjustment of velocity R5F, ranging from a minimum value of 0 to a maximum value of 100. Depth FDP1 and depth FDP2 may be appropriate values preset for each timbre and each key number, as with depth PDP1, and may be changeable by user operation.
[0115] In step S207, the processor 10 adjusts the speed R5 (hereinafter referred to as "speed R5A") of the amplified envelope during the combo muting based on the parameter value r. Here, the speed R5A is adjusted using the following formula (5). In addition, the speed R5A is a minimum value of 0 to a maximum value of 100. According to the following formula (5), when the speed R5A exceeds 100, the speed R5A is limited to 100.
[0116] [Formula (5)]
[0117] R5A=R5A0+(ADP1×r / 100)+ADP2×w
[0118] R5A0: Speed before adjustment R5A
[0119] ADP1, ADP2: Adjustment depth of speed R5A
[0120] Speed R5A0 is speed R5A before adjustment according to equation (5), and ranges from a minimum value of 0 to a maximum value of 100. For the same reason as speed R5P0, the value of speed R5A0 is also set to 0 in equation (5).
[0121] Depth ADP1 and depth ADP2 are depths (degrees) of adjustment of velocity R5A, ranging from a minimum value of 0 to a maximum value of 100. Depth ADP1 and depth ADP2 may be appropriate values preset for each timbre and each key number, as with depth PDP1, and may be changeable by user operation.
[0122] Only when the waveform data (first waveform data) read out by the object generator unit is the same as the waveform data (second waveform data) obtained in step S102, the term (PDP2×w) in equations (3) to (5) takes a value greater than 0. That is, in order to suppress the phase interference between the first musical sound and the second musical sound, when the waveform data of the two are the same, a faster decay speed is calculated by equations (3) to (5). Therefore, when the first waveform data and the second waveform data are the same, the decay speed of the first musical sound is adjusted to a faster speed than when the waveform data of the two are different. In this way, it is possible to avoid the generation of unnatural musical sounds due to the phase interference between the first musical sound and the second musical sound.
[0123] The processor 10 sets the speed R5P of the first musical sound adjusted in step S205 in the pitch envelope generator 19b of the object generator unit (step S208). As a result, the pitch envelope during the double-attack muting (more specifically, the speed of change of the pitch of the first musical sound during the double-attack muting) becomes the value adjusted using equation (3).
[0124] The processor 10 sets the speed R5F of the first musical sound adjusted in step S206 in the filter envelope generator 19d of the object generator unit (step S209). As a result, the filter envelope during the double-attack muting (more specifically, the change speed of the cutoff frequency of the first musical sound during the double-attack muting) becomes the value adjusted using equation (3).
[0125] The processor 10 sets the speed R5A of the first musical sound adjusted in step S207 in the amplification envelope generator 19f of the object generator section (step S210). As a result, the amplification envelope during the double-attack muting (more specifically, the speed of change of the volume level of the first musical sound during the double-attack muting) becomes the value adjusted using equation (3).
[0126] Thus, in steps S208 to S210, the processor 10 sets the decay speed of the first musical sound calculated in steps S205 to S207 in the object generator unit. In other words, the processor 10 instructs the object generator unit to decay the sound of the first musical sound based on the parameter value r determined in step S201. Moreover, in the case where the waveform data (first waveform data) read out by the object generator unit and the waveform data (second waveform data) obtained in step S102 are the same, the processor 10 instructs a faster speed as the decay speed of the first musical sound than in the case where the waveform data of the two are different.
[0127] return Figure 7 In the case where the object generator section is not currently used for generating musical sounds (step S105: No), the processor 10 determines whether a generator section for generating musical sounds corresponding to the current key operation has been assigned (step S111). For convenience, the generator section assigned as the generator section for generating musical sounds corresponding to the current key operation is recorded as "use assigned generator section".
[0128] If the use allocation generator unit is not allocated (step S111: No), the processor 10 allocates the object generator unit as the use allocation generator unit (step S112), and proceeds to step S113. If the use allocation generator unit has been allocated (step S111: Yes), the processor 10 does not execute step S112, and proceeds to step S113.
[0129] The processor 10 increments the variable n by 1 (step S113). The processor 10 determines whether the variable n after increment is 129 (step S114). If the variable n is not 129 (step S114: No), the processor 10 returns to step S105 and executes the processing after step S105 on the object generator part assigned the same number as the variable n after increment.
[0130] In addition, when the interval between consecutive hits is short, the following situation may occur: although it is only a moment, multiple tone generators generate tones of the same key number as the key number pressed this time in parallel. In this case, all generators generating tones of the same key number are silenced in step S110.
[0131] When the variable n is 129 (step S114: Yes), the status confirmation and other processes have been completed for all 128 generator units 19A_1 to 19A_128. Therefore, the processor 10 determines whether the usage allocation generator unit has been allocated (step S115).
[0132] If the usage allocation generator unit has not been allocated (step S115: No), the processor 10 allocates the allocation candidate generator unit that was finally set as the usage allocation generator unit in step S108 (step S116), and proceeds to step S118 after performing a dump process (step S117) on the allocated usage allocation generator unit at a prescribed speed (for example, immediately). If the usage allocation generator unit has been allocated (step S115: Yes), the processor 10 does not perform the allocation process of step S116 and the dump process of step S117, and proceeds to step S118.
[0133] In order to change the pitch of the second musical sound over time, the processor 10 sets the levels L0 and L1 and the velocity R1 of the pitch envelope according to the currently set timbre and the information obtained from the key event information (step S118 ).
[0134] In order to change the cutoff frequency for the second musical sound over time, the processor 10 sets the levels L0 and L1 and the speed R1 of the filter envelope according to the currently set timbre and the information obtained from the key event information (step S119 ).
[0135] In order to change the volume level of the second musical sound (in other words, the amplification factor of the amplifier 19e) over time, the processor 10 sets the levels L0 and L1 and the speed R1 of the amplification envelope according to the currently set timbre and the information obtained from the key event information (step S120).
[0136] The processor 10 sends a signal to the sound source LSI 19. Figure 7 The pronunciation instruction of the use distribution generator unit set in the key processing of is used (step S121). According to the pronunciation instruction, the waveform data is started to be read in the use distribution generator unit, and the envelope is started to be output from each envelope generator. Figure 7 The key processing is completed.
[0137] use Figure 11 to Figure 13 , indicating that Figure 7The effect of adjusting the decay speed of the first musical sound by executing the key processing.
[0138] Fig.11 2 is a diagram for explaining case 1. Case 1 is a case where the key with the same key number as the first operation is lightly pressed when the first amplitude value a is large (in other words, the first amplitude value a is large and the second amplitude value b is small).
[0139] Fig.12 2 is a diagram for explaining case 2. Case 2 is a case where the key with the same key number as the first operation is pressed again when the first amplitude value a is small (in other words, the first amplitude value a is small and the second amplitude value b is large).
[0140] Fig.13 3 is a diagram for explaining case 3. Case 3 is a case where when the first amplitude value a is medium, the key with the same key number as the first operation is pressed with medium strength (in other words, the first amplitude value a is medium and the second amplitude value b is also medium).
[0141] exist Figures 11 to 13 In the figure, the upper graph shows the amplitude value of the first musical tone, and the lower graph shows the amplitude value of the second musical tone. Figure 11 to Figure 13 In any of the figures, the vertical axis represents the amplitude value and the horizontal axis represents the time. The dotted line in the upper figure represents the amplitude value of the first musical sound of the comparative example, and the solid line in the upper figure represents the amplitude value of the first musical sound of the embodiment. The reference symbol T1 represents the time point when the first operation is performed, and the reference symbol T2 represents the time point when the second operation is performed. Figure 11 to Figure 13 Each of the graphs is a schematic diagram showing a situation where the amplitude increases instantaneously to a maximum value at an operation time point and then gradually decays.
[0142] In each case, for comparison of the first musical tone of the comparative example and the embodiment, the second musical tone is the same in the comparative example and the embodiment. For the first musical tone, the comparative example and the embodiment are the same except for the decay speed.
[0143] The first musical sound of the comparative example is the first musical sound without adjusting the decay speed based on the parameter value r (in other words, the first musical sound before the envelope is adjusted), and decays at a predetermined speed. Figure 7 The first musical sound when the decay speed is adjusted based on the parameter value r by the key processing (in other words, the first musical sound after the envelope is adjusted).
[0144] For example, in case C, the decay speed of the first musical sound of the embodiment is greatly improved compared with the comparative example. As in case C, when the double-touch operation is performed with the same degree of strength (in other words, when the ratio (a / b) is close to 1), by executing Figure 7The key processing greatly increases the decay speed of the first musical sound, thereby avoiding unnatural expansion of the volume after each key operation.
[0145] For example, in case A and case B, the decay speed of the first musical tone does not change much between the comparative example and the embodiment. In these cases, when the ratio (a / b) of the first amplitude value a and the second amplitude value b is not close to 1, the execution Figure 7 The key pressing process shown will not cause the decay speed of the first musical tone to be too fast, thereby preventing the musical tone from becoming unnatural due to unnecessary fast decay.
[0146] Thus, in this embodiment, the parameter value r is calculated each time based on the ratio (a / b) of the current first amplitude value a of the vibrating body and the second amplitude value b of the second musical sound used to produce the sound according to the current key operation, and the calculated parameter value r is used to attenuate the first musical sound (in other words, the closer the ratio (a / b) is to 1, the faster the first musical sound decays), thereby being able to approach the characteristics of a natural musical sound like an acoustic musical instrument.
[0147] In addition, the present invention is not limited to the above-mentioned embodiments, and various modifications can be made in the implementation stage without departing from the scope of the main purpose. In addition, the functions performed in the above-mentioned embodiments can also be implemented in appropriate combinations as much as possible. The above-mentioned embodiments include various stages, and various inventions can be extracted by appropriate combinations of the disclosed multiple constituent elements. For example, even if several constituent elements are deleted from all the constituent elements shown in the embodiments, as long as the effect can be obtained, the structure in which the constituent elements are deleted can also be extracted as an invention.
[0148] In the above embodiment, the pitch, timbre, and volume of the first musical sound are all adjusted by the speed of change during the double-beat muting based on the parameter value r, but the structure of the present invention is not limited to this. In the case where the speed of change during the double-beat muting based on the parameter value r is adjusted for one or two of the pitch, timbre, and volume of the first musical sound, an effect close to the characteristics of natural musical sound can also be obtained.
Claims
1. An electronic musical instrument, wherein: have: Playing operating parts; as well as at least one processor, the at least one processor, Instructing the production of a first musical tone according to a first operation on the performance operating member, acquiring a first amplitude value of the first musical tone at a timing corresponding to a second operation on the performance operating member during the production of the first musical tone, and acquiring a second amplitude value of a second musical tone produced according to the second operation, determining a parameter value for adjusting a decay speed of the first musical sound based on a ratio between the first amplitude value and the second amplitude value, Based on the determined parameter value, the decay of the production of the first musical sound is instructed.
2. The electronic musical instrument according to claim 1, wherein: The parameter value is determined to be a value such that the decay speed of the first musical sound increases as the ratio of the first amplitude value to the second amplitude value approaches 1.
3. The electronic musical instrument according to claim 1 or 2, wherein: The parameter value is determined by the following formula: Parameter value = 100 / (1+|log2(a / b)|) Wherein, a is the first amplitude value, and b is the second amplitude value.
4. The electronic musical instrument according to any one of claims 1 to 3, wherein: the at least one processor, reading out waveform data corresponding to the intensity of the operation on the performance operating member from the plurality of waveform data, When the first waveform data read out according to the first operation is identical to the second waveform data read out according to the second operation, a faster speed is indicated as the decay speed of the first tone than when the first waveform data is different from the second waveform data.
5. The electronic musical instrument according to any one of claims 1 to 4, wherein: The at least one processor adjusts at least one of the pitch, timbre, and volume of the first musical sound based on the parameter value.
6. The electronic musical instrument according to any one of claims 1 to 5, wherein: A keyboard including the performance operating member is provided, The first operation and the second operation are key operations on the keyboard.
7. A method for an electronic musical instrument, wherein: Causes the computer to: Instructing the production of a first musical tone according to a first operation on the performance operating member, acquiring a first amplitude value of the first musical tone at a timing corresponding to a second operation on the performance operating member during the production of the first musical tone, and acquiring a second amplitude value of a second musical tone produced according to the second operation, determining a parameter value for adjusting a decay speed of the first musical sound based on a ratio between the first amplitude value and the second amplitude value, Based on the determined parameter value, the decay of the production of the first musical sound is instructed.
8. The method according to claim 7, wherein: The parameter value is determined to be a value such that the decay speed of the first musical sound increases as the ratio of the first amplitude value to the second amplitude value approaches 1.
9. The method according to claim 7 or 8, wherein: The parameter value is determined by the following formula: Parameter value = 100 / (1+|log2(a / b)|) Wherein, a is the first amplitude value, and b is the second amplitude value.
10. The method according to any one of claims 7 to 9, wherein: The computer performs: reading out waveform data corresponding to the intensity of the operation on the performance operating member from the plurality of waveform data, When the first waveform data read out according to the first operation is identical to the second waveform data read out according to the second operation, a faster speed is indicated as the decay speed of the first tone than when the first waveform data is different from the second waveform data.
11. The method according to any one of claims 7 to 10, wherein: The computer adjusts at least one of the pitch, timbre, and volume of the first musical sound by adjusting a decay speed based on the parameter value.
12. The method according to any one of claims 7 to 11, wherein: The performance operating member is included in the keyboard, The first operation and the second operation are key operations on the keyboard.
13. A storage medium storing a program, wherein: The program causes the computer to: Instructing the production of a first musical tone according to a first operation on the performance operating member, acquiring a first amplitude value of the first musical tone at a timing corresponding to a second operation on the performance operating member during the production of the first musical tone, and acquiring a second amplitude value of a second musical tone produced according to the second operation, determining a parameter value for adjusting a decay speed of the first musical sound based on a ratio between the first amplitude value and the second amplitude value, Based on the determined parameter value, the decay of the production of the first musical sound is instructed.
Citation Information
Patent Citations
Beat processing device of electronic instrument
JP2001209382A
Method and device for determining volume adjustment proportion information, equipment and storage medium
CN110688082A
Electronic musical instrument and method for performing electronic musical instrument
CN111009228A