Electronic musical instrument, method and storage medium
By using the addition processing and limiting control of waveform data in electronic instruments, the time change of string contact sound in stringed instruments is successfully reproduced, the problem of monotonous contact sound in the prior art is solved, and the diversity of tone is improved and authenticity.
Patent Information
- Application Number
- CN202010572595.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-27
- Filing Date
- 2020-06-22
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-12-27
AI Technical Summary
It is difficult for existing electronic instruments to effectively reproduce the contact sounds generated when the strings touch other objects in stringed instruments, especially the time changes of the contact sound cannot be accurately reproduced, resulting in monotonous sounds.
By setting a waveform data input unit and an addition data generation unit in an electronic musical instrument, adding processing is performed using the data output from the first and second waveform generators to generate addition data, and controlling the limit of the waveform's amplitude envelope exceeds the threshold value. Amplitude processing produces distorted sounds that simulate contact sounds, and then reproduces the time changes of contact sounds.
It realizes a good reproduction of contact sounds in stringed instruments such as acoustic pianos and guitars, and can dynamically adjust the sound according to the changes in string movements, enhancing the diversity of tone.
Smart Images

Figure CN112150990B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an electronic musical instrument, a method and a storage medium. Background Art
[0002] In the past, various technologies have been developed for reproducing the sound of stringed instruments such as acoustic pianos and guitars in electronic musical instruments. Since stringed instruments not only produce ordinary instrument sounds but also produce sounds caused by the strings contacting other objects, attempts have been made to reproduce such contact sounds in electronic musical instruments. For example, Patent Document 1 discloses a technology for reproducing the sound of a damper contacting a vibrating string when a key is released from an acoustic piano.
[0003] However, in the technology disclosed in Patent Document 1, only the same monotonous contact sound is always reproduced.
[0004] Patent Document 1: Japanese Patent Application Publication No. 2011-154394 Summary of the invention
[0005] An electronic musical instrument involved in one embodiment of the present invention comprises: a waveform data input unit, which inputs first waveform data into the above-mentioned first waveform generator, and inputs second waveform data representing positive and negative inversion data of a portion of the above-mentioned first waveform data exceeding a certain limit level into the above-mentioned second waveform generator, in order to make the first waveform generator output first output data and the second waveform generator output second output data based on user operation of at least one operating component; and an addition data generation unit, which generates addition data based on the above-mentioned first output data output from the above-mentioned first waveform generator and the above-mentioned second output data output from the above-mentioned second waveform generator.
[0006] According to the present invention, it is possible to reproduce the contact sound produced when playing an acoustic musical instrument well. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1A A diagram for explaining contact sound produced in an acoustic piano.
[0008] Figure 1B It is a diagram for explaining a comparative example in which the contact sound generated in an acoustic piano is not reproduced and an embodiment of the present invention in which the contact sound is reproduced.
[0009] Figure 2A This is a diagram for explaining the contact sound generated by a guitar.
[0010] Figure 2B A diagram for explaining a comparative example in which the contact sound generated by a guitar is not reproduced and an embodiment of the present invention in which the contact sound is reproduced.
[0011] Figure 3 This is a diagram showing an example of the appearance of an electronic musical instrument according to an embodiment of the present invention.
[0012] Figure 4 This is a block diagram showing the hardware structure of an electronic musical instrument.
[0013] Figure 5 A diagram for explaining a normal waveform and a differential waveform.
[0014] Figure 6 This is a block diagram showing a schematic structure of a sound source LSI.
[0015] Figure 7 This is a diagram for explaining the addition process of the normal waveform and the differential waveform.
[0016] Fig. 8A This is a diagram showing an example of an envelope for generating piano sounds.
[0017] Figure 8B This is a diagram showing an example of an envelope for generating piano sounds.
[0018] Figure 8C This is a diagram showing an example of an envelope for generating piano sounds.
[0019] Fig. 9A This is a diagram showing an example of an envelope for generating guitar sounds.
[0020] Fig. 9B This is a diagram showing an example of an envelope for generating guitar sounds.
[0021] Fig. 9C This is a diagram showing an example of an envelope for generating guitar sounds.
[0022] Fig.10 This is a flowchart showing the processing procedure of the CPU.
[0023] Fig.11 Yes means Fig.10 Flowchart of the subroutine of the sound source LSI control processing step in step S108.
[0024] Explanation of symbols
[0025] 300 electronic musical instrument; 310 CPU; 320 RAM; 330 ROM; 340 switch panel; 350 LCD; 360 keyboard; 370 sound source LSI; 371 generator section; 372 generator mixer; 373 normal channel; 3731 normal waveform generator; 3732 normal waveform filter; 3733 normal waveform amplifier; 374 differential channel; 3741 differential waveform generator; 3742 differential waveform filter; 3743 differential waveform amplifier; 375 section mixer; 380 D / A converter; 385 amplifier; 390 timing counter. DETAILED DESCRIPTION
[0026] Hereinafter, the principle of the present invention will be described with reference to the accompanying drawings, and then, an embodiment based on the principle of the present invention will be described. In addition, in the description of the accompanying drawings, the same elements are represented by the same reference numerals, and repeated descriptions are omitted. In addition, for the convenience of description, the dimensional ratio of the accompanying drawings may be enlarged so as to be different from the actual ratio.
[0027] [Principle of the invention]
[0028] First, the cause of the contact sound generated when the strings of a stringed instrument come into contact with another object and the output image including the waveform of the contact sound will be described.
[0029] Figure 1A A diagram for explaining contact sound produced in an acoustic piano. Figure 1B The diagrams are output image diagrams of a waveform not including the contact sound generated in an acoustic piano (comparative example) and output image diagrams of a waveform including the contact sound (example 1).
[0030] exist Figure 1A In the acoustic piano 100 shown, when the key 110 is released, the damper 120 contacts the string 130 and the vibration of the string 130 is damped. Although the felt used in the damper 120 is made of a soft material, the resistance it provides to the string 130 is much greater than the air resistance, so when the damper 120 contacts the string 130, the vibration of the string 130 is irregularly damped and a contact sound is generated. During the period when the amplitude of the string 130 is large, the damper 120 is bounced (jumped) by the string 130 and cannot contact the string 130 for a long time. However, as the amplitude of the string 130 decreases with the passage of time, the time that the damper 120 contacts the string 130 becomes longer, so that the contact sound is also emphasized in the sound produced.
[0031] In an electronic musical instrument that reproduces the sound of an acoustic piano 100, such as Figure 1BAs shown in the upper figure (comparative example) of FIG. 1 , the level of the sound when the key is released, that is, the amplitude of the waveform, is controlled to change over time according to the envelope that reproduces the amplitude envelope of the string 130 when the key is released. However, in conventional electronic musical instruments, it is not possible to reproduce the temporal change of the contact sound as described above. Therefore, in the electronic musical instrument involved in the present embodiment, Figure 1B As shown in the lower figure of (the first embodiment of the present invention), a threshold envelope representing the threshold value for generating contact sound is set, and when the amplitude envelope of the waveform exceeds the threshold envelope, the amplitude of the waveform is limited and contact sound is generated. Thus, a distorted sound corresponding to the waveform with limited amplitude is generated as a sound simulating contact sound. For example, the amplitude of the waveform corresponding to the sound when the acoustic piano 100 is released from the key is controlled to be greatly limited as time passes. And, the distorted sound as contact sound is controlled, for example, as Figure 1B As shown in the lower figure of , it is increasingly emphasized as the period k1, period k2, and period k3 progress (the difference between the dotted line value indicated by the dotted line representing the threshold envelope and the solid line value indicated by the solid line representing the amplitude envelope gradually increases as the period k1, period k2, and period k3 progress, and thus the amplitude of the waveform is greatly suppressed over time, and the distorted sound, i.e., the contact sound, is emphasized over time). Therefore, the contact sound between the damper 120 and the string 130 generated when the key is released in the acoustic piano 100 can be well reproduced.
[0032] Figure 2A This is a diagram for explaining the contact sound generated by a guitar. Figure 2B The diagrams show an output image of a waveform that does not include the contact sound generated by the guitar (comparative example) and an output image of a waveform that includes the contact sound (second embodiment).
[0033] exist Figure 2A In a plucked string instrument such as the guitar 200 shown, a contact sound is also produced when the player's finger F leaves the string 210, i.e., the string is released. More specifically, since the string 210 vibrates with the fret 220 as a fulcrum while the finger F is pressing the string 210, no contact sound is produced. However, when the finger F starts to move in a direction away from the fret 220, the fulcrum of the string 210 moves from the fret 220 to the finger F, and the string 210 starts to vibrate with the finger F as a fulcrum. When the string 210 contacts the fret 220, etc., a contact sound is produced. Therefore, in the guitar 200, unlike the acoustic piano 100, the contact sound starts to be heard immediately after the string is released. Then, as the amplitude of the string 210 decreases with the passage of time, or as the finger F moves in a direction away from the fret 220, the contact sound becomes difficult to hear.
[0034] In an electronic musical instrument that reproduces the sound of a guitar 200, such as Figure 2BAs shown in the upper figure of , the level of the sound when the key is released, that is, the amplitude of the waveform is controlled to change with the passage of time according to the envelope that reproduces the amplitude envelope of the string 210 when the string is released. More specifically, the amplitude of the waveform is controlled to increase with the passage of time in the period k4 just after the guitar 200 is released and the electronic musical instrument is released, and to decay with the passage of time in the subsequent periods k5 and k6. And, for example, as for the threshold envelope, Figure 2B The distorted sound as the contact sound is controlled so that it is emphasized over time in period k4 (because the difference between the dashed value shown by the dashed line and the solid value shown by the solid line gradually increases), but is weakened over time in period k5 (because the difference between the dashed value shown by the dashed line and the solid value shown by the solid line gradually decreases), and the contact sound is not heard in period k6 (because the solid value does not reach the dashed value). In this way, the contact sound generated when the strings 210 of the guitar 200 touch the frets when the strings are released can be well reproduced.
[0035] Hereinafter, the structure and processing of the electronic musical instrument for reproducing the contact sound as described above will be described with reference to the drawings.
[0036] <Modes of Carrying Out the Invention>
[0037] (structure)
[0038] Figure 3 This is a diagram showing an example of the appearance of an electronic musical instrument according to an embodiment of the present invention. Figure 4 This is a block diagram showing the hardware structure of an electronic musical instrument. Figure 5 A diagram for explaining a normal waveform and a differential waveform.
[0039] like Figure 3 and Figure 4 As shown, the electronic musical instrument 300 includes a CPU (Central Processing Unit) 310, a RAM (Random Access Memory) 320, a ROM (Read Only Memory) 330, a switch panel 340, an LCD (Liquid Crystal Display) 350, a keyboard 360, a sound source LSI (Large Scale Integrated Circuit) 370, a D / A converter 380, an amplifier 385, and a timer counter 390. The CPU 310, the RAM 320, the ROM 330, and the sound source LSI 370 are connected to a bus 395. In addition, the switch panel 340, the LCD 350, and the keyboard 360 are connected to the bus 395 via an I / O interface 345, an LCD controller 355, and a key scanner 365, respectively.
[0040] The CPU 310 as a processor executes control of each of the above-mentioned components, various calculation processes, etc. according to a program. The RAM 320 serves as a work area and temporarily stores programs, data, etc.
[0041] The ROM 330 as a memory includes a program area and a data area, and stores in advance various programs, various data, etc. The ROM 330 serves as a waveform memory, for example, and stores a plurality of waveform data corresponding to a plurality of musical instrument sounds.
[0042] More specifically, for the sound of the musical instrument that produces the string contact sound, ROM330 stores the following Figure 5 The first waveform data of the normal waveform and the second waveform data of the differential waveform (positive and negative inversion data) are shown. The normal data is a waveform corresponding to the sound of an ordinary musical instrument with an interval, excluding the string contact sound. The differential waveform is a waveform obtained by cutting out the portion of the normal waveform that exceeds a certain limit level and setting the portion to an inverted phase, that is, a waveform after the sign (positive and negative) of the portion is inverted. The differential waveform is pre-generated based on the normal waveform and the limit level set according to the envelope of the normal waveform. The limit level can be set to a level obtained by multiplying the level represented by the envelope of the normal waveform by a fixed ratio (for example, 90%). However, the method of setting the limit level is not limited to the above example, and the limit level can also change according to the passage of time, the way of playing, etc. In addition, for musical instruments that do not produce string contact sounds, ROM330 stores the data of the normal waveform instead of the data of the differential waveform.
[0043] Back to Figure 4 The switch panel 340 includes a plurality of switches 341 and accepts an operation of the user pressing each of the plurality of switches 341. For example, the switch panel 340 includes a plurality of switches 341 corresponding to a plurality of musical instrument sounds and accepts an operation of selecting a musical instrument sound from the plurality of musical instrument sounds. The I / O interface 345 monitors each of the plurality of switches 341 on the switch panel 340 and notifies the CPU 310 when the pressing of each of the plurality of switches 341 is detected.
[0044] The LCD 350 displays various information. The LCD controller 355 is an IC (Integrated Circuit) that controls the LCD 350 .
[0045] The keyboard 360 includes a plurality of keys 361 as operating components, and accepts key pressing and key release operations by the user as user operations. Each of the plurality of keys 361 can be operated using one end of a leaf spring or the like as a fulcrum, and has a plurality of switches (contacts) below that are sequentially turned on or off by pressing or releasing the keys.
[0046] The key scanner 365 monitors each of the plurality of keys 361 on the keyboard 360, and detects the pressing or releasing of each of the plurality of keys 361. When a key is detected, the key scanner 365 detects the key number (note number) of the pressed key 361 and the velocity of the key corresponding to the key pressing speed, and notifies the CPU 310. In addition, when a key is detected, the key scanner 365 detects the key number of the key 361 to be released and the velocity (Velocity) of the key to be released corresponding to the key releasing velocity, and notifies the CPU 310. The key scanner 365 can also detect the velocity of the key pressing and the velocity of the key releasing by measuring the time difference between the detection of the turning on or off of at least two switches provided in each of the plurality of keys 361.
[0047] The sound source LSI 370 as a processor uses a well-known waveform memory read method to read the waveform data corresponding to the instrument sound selected by the user from the ROM 330, and then processes it and outputs it to the D / A converter 380. The sound source LSI 370 will be referred to later. Figure 6 Provide detailed explanation.
[0048] D / A converter 380 converts digital waveform data output from sound source LSI 370 into an analog waveform signal, and outputs it to amplifier 385. Amplifier 385 amplifies the analog waveform signal output from D / A converter 380, and outputs it to a speaker or an output terminal (neither of which is shown).
[0049] The timer counter 390 includes a counter that increments a value every 1 μsec, for example, and measures time.
[0050] In addition, the electronic musical instrument 300 may include components other than the above components, or may not include some of the above components.
[0051] Next, the sound source LSI 370 will be described in detail. Figure 6 This is a block diagram showing a schematic structure of a sound source LSI. Figure 7 This is a diagram for explaining the addition process of the normal waveform and the differential waveform.
[0052] like Figure 6As shown, the sound source LSI 370 includes a plurality of (e.g., corresponding to 128 channels) generator sections 371 and a generator mixer 372 for mixing waveform data output from each generator section 371. Each generator section 371 includes: a normal channel (also referred to as a normal system or a first system) 373 having a normal waveform generator (first waveform generator) 3731, a normal waveform filter 3732, and a normal waveform amplifier (first waveform amplifier) 3733, etc.; a differential channel (also referred to as a differential system or a second system) 374 having a differential waveform generator (second waveform generator) 3741, a differential waveform filter 3742, and a differential waveform amplifier (second waveform amplifier) 3743, etc.; and a section mixer 375 for mixing (adding) the waveform data (also referred to as "output data") in each channel. In addition, each generator section 371 further includes a normal waveform filter envelope generator 3734, a normal waveform amplifier envelope generator 3735, an envelope detection section 3736, a differential waveform filter envelope generator 3744, an envelope comparison section 3745, and a threshold envelope generator 3746 for controlling each of the above-mentioned constituent elements. In addition, in the following, Figure 6 As shown, the envelope generator is also recorded as "EG".
[0053] The normal waveform generator 3731 reads out the normal waveform data corresponding to the instrument sound selected by the user from the ROM 330 at a readout speed corresponding to the key number of the pressed key 361, and generates the normal waveform data corresponding to the key number. The normal waveform filter 3732 controls the sound quality of the sound corresponding to the normal waveform data according to the filter envelope representing the time variation of the cutoff frequency of the filter (e.g., low-pass filter) generated by the normal waveform filter EG3734. The normal waveform amplifier 3733 controls the level of the sound corresponding to the normal waveform data, that is, the amplitude of the normal waveform according to the amplifier envelope representing the time variation of the volume (level) generated by the normal waveform amplifier EG3735. That is, the normal waveform data is input to the normal waveform generator 3731 and output from the normal waveform amplifier 3733. The envelope detection unit 3736 includes an absolute value circuit (full-wave rectifier circuit), a low-pass filter, etc., and detects the amplitude envelope of the waveform represented by the normal waveform data output from the normal waveform amplifier 3733.
[0054] The differential waveform generator 3741 reads the differential waveform data corresponding to the instrument sound selected by the user from the ROM 330 at a readout speed corresponding to the key number of the pressed key 361, and generates the differential waveform data corresponding to the key number. The differential waveform generator 3741 reads the differential waveform data at a timing synchronized with the timing of reading the normal waveform data. The differential waveform filter 3742 controls the sound quality of the sound corresponding to the differential waveform data according to the filter envelope generated by the differential waveform filter EG3744. The differential waveform amplifier 3743 controls the level of the sound corresponding to the differential waveform data according to the amplifier envelope output by the envelope comparison unit 3745. In this embodiment, the envelope comparison unit 3745 outputs the amplifier envelope (multiplication coefficient) of the differential waveform according to the comparison result between the amplitude envelope of the normal waveform detected by the envelope detection unit 3736 and the threshold envelope generated by the threshold EG3746. Therefore, the output value of the differential waveform amplifier 3743 can also be said to be a value obtained by adjusting the shape of the differential waveform according to the difference of these envelopes. In other words, it can be said that the waveform of the output value when the difference of the comparison result is a second difference larger than the first difference is adjusted to be larger than the waveform of the output value when the difference of the comparison result is the first difference.
[0055] More specifically, the threshold EG3746 is generated as follows Figure 1B and Figure 2B As shown, the threshold envelope represents the time variation of the threshold value determined according to the instrument sound selected by the user. Then, the envelope comparison unit 3745 outputs the amplifier envelope (multiplication coefficient), which represents the time variation of the level (difference) obtained by subtracting the level of the threshold envelope generated by the threshold EG3746 from the level of the amplitude envelope of the normal waveform detected by the envelope detection unit 3736. Therefore, the larger the level obtained by subtraction, the larger the level of the amplifier envelope output by the envelope comparison unit 3745. Thus, as shown in 1B and Figure 2B As also shown, the more the amplitude of the waveform corresponding to the amplitude envelope exceeds the threshold envelope, the greater the amplitude is limited. In addition, when the value of the level obtained by subtraction is a negative value, the envelope comparison unit 3745 may output an amplifier envelope with a level value of 0.
[0056] If the comparison result obtained by the envelope comparison unit 3745 is the same, the multiplication coefficient is 0, and the differential waveform amplifier 3743 does not output the differential waveform. The normal waveform output from the normal waveform amplifier 3733 is directly output from the section mixer 375.
[0057] As the comparison result increases, the multiplication coefficient approaches 1 from 0, and the shape of the differential waveform output from the differential waveform amplifier 3743 approaches the shape of the stored differential waveform. The shape of the waveform of the portion exceeding the clipping level in the normal waveform is slightly deformed so as to approach the clipping level as the multiplication coefficient approaches 1 from 0, and the waveform is output from the section mixer 375.
[0058] When the multiplication coefficient is 1.0, the shape of the differential waveform output from the differential waveform amplifier 3743 is the same as the shape of the stored differential waveform, and a waveform having a shape obtained by limiting the portion of the normal waveform that exceeds the limiting level is output from the section mixer 375.
[0059] use Figure 2B The result is that the amplitude of the waveform at the boundary of k4 and k5, where the difference between the envelope and the clipping level is large, is located on the dotted line side between the solid line value and the dotted line value. On the other hand, the amplitude of the waveform at the boundary of k5 and k6, where the difference between the envelope and the clipping level is small, is located on the solid line side between the solid line value and the dotted line value.
[0060] In addition, the multiplication coefficient may be a value greater than 1.0.
[0061] When the present invention is applied, for example, half of the 256 waveform generators are used for oscillation of the differential waveform, the number of simultaneous sounds can be limited from 256 to half, that is, 128. However, according to the present invention, the contact sound can be well expressed by simply processing using the existing waveform generator.
[0062] Each EG3734, 3735, 3744 and 3746 as described above generates the following when a key is pressed or released, based on the parameters related to each envelope provided by the CPU 310: Fig. 8A and Figure 8B Each envelope shown. The parameters include parameters related to the target levels L0 to L4, parameters related to the rates R1 to R4 for reaching the target levels, and the like. When the value of the amplifier envelope generated by the normal waveform amplifier EG3735 reaches 0 and the operation of the normal waveform amplifier 3733 stops, the operation of the normal waveform generator 3731 also stops. In addition, when the value of the amplifier envelope output by the envelope comparison section 3745 reaches 0 and the operation of the differential waveform amplifier 3743 stops, the operation of the differential waveform generator 3741 also stops.
[0063] In addition, each EG3734, 3735, 3744 and 3746 can be provided with parameters corresponding to the force by the CPU 310, and each envelope corresponding to the force can also be generated. For example, each EG3734, 3735, 3744 and 3746 can be provided with parameters including a release rate R4 by the CPU 310, and the release rate R4 is set to a smaller force value, that is, a slower key-off speed, and a gentler slope.
[0064] The section mixer 375 mixes the normal waveform represented by the normal waveform data output from the normal waveform amplifier 3733 and the differential waveform represented by the differential waveform data output from the differential waveform amplifier 3743. The section mixer 375 outputs, for example, Figure 7 The section mixer 375 outputs data of a waveform (added waveform) obtained by adding the normal waveform and the differential waveform as shown in FIG. 1 (a). Thus, the section mixer 375 can output data of an added waveform corresponding to a distorted sound as a sound simulating a contact sound. More specifically, the section mixer 375 outputs data of an added waveform obtained by adding a portion of the normal waveform and a differential waveform corresponding to a portion of the normal waveform exceeding a certain clipping level as waveform data reproducing virtual clipping.
[0065] As described above, the amplitudes of the normal waveform and the differential waveform are controlled respectively according to the amplifier envelope generated by the normal waveform amplifier EG3735 and the amplifier envelope output by the envelope comparison unit 3745. Therefore, the addition ratio of the normal waveform and the differential waveform in the section mixer 375 is also controlled according to these envelopes, and by controlling the addition ratio, the output is as follows: Figure 7 The data of the added waveforms including various clipping shapes are shown in FIG. 1 . For example, when the addition ratio is 1:1, the data of the added waveform whose amplitude is well limited in the clipping level is output. In addition, when the addition ratio is less than 1:1, the data of the added waveform with a smaller degree of distortion is output. Such an added waveform can be as follows: Figure 1A In the acoustic piano 100 shown in FIG. 1 , a waveform corresponding to a moderate contact sound produced by the soft damper 120 contacting the string 130 is output. In addition, when the addition ratio is greater than 1:1, data of an added waveform with a greater degree of distortion is output. Such an added waveform may be as follows: Figure 2A In the guitar 200 shown, the waveform corresponds to the contact sound generated when the string 210 contacts the hard metal fret 220 and the high overtones are emphasized.
[0066] In addition, the addition ratio of the normal waveform and the differential waveform can be controlled in the segment mixer 375 instead of the threshold envelope or in addition to the threshold envelope. For example, the action of the threshold EG3746 can be stopped, and the amplifier envelope similar to the amplitude envelope of the normal waveform detected by the envelope detection unit 3736 can be output by the envelope comparison unit 3745. At this time, the ratio of the normal waveform and the differential waveform input to the segment mixer 375 is controlled to a value close to 1:1. Then, in the segment mixer 375, the addition ratio of the normal waveform data and the differential waveform data can be adjusted to the set value of the addition ratio provided by the CPU 310. Thus, the addition ratio can be controlled by a simpler method than controlling each EG3735 and 3746 separately. Alternatively, in the segment mixer 375, the approximate addition ratio of the normal waveform and the differential waveform can be set to a fixed ratio, and the subtle changes in the addition ratio generated over time can be expressed according to each EG3735 and 3746. In addition, the section mixer 375 may be provided with a setting value of the addition ratio corresponding to the velocity by the CPU 310 , or may adjust the addition ratio of the normal waveform data and the distorted waveform data to the setting value of the addition ratio corresponding to the velocity.
[0067] In addition, the sound source LSI 370 may implement functions other than the above functions, or may not implement some of the above functions. For example, each of the waveform generators 3731 and 3741 may generate each waveform data corresponding to the sustained sound by executing a loop process of repeatedly reading each waveform data from the ROM 330. In addition, the generator mixer 372 may be provided with a set value of a level corresponding to the velocity by the CPU 310, or may adjust the level value of the sound corresponding to each waveform data output by each generator section 371 to the set value of the level corresponding to the velocity.
[0068] (Envelope example)
[0069] Next, an example of an envelope generated by each of EG3734, 3735, 3744, and 3746 is described. Figure 8A to Figure 8C This is a diagram showing an example of an envelope generated for the sound of an acoustic piano. Figures 9A to 9C This is a diagram showing an example of an envelope generated for the sound of a guitar.
[0070] As mentioned above, in Figure 1A In the acoustic piano 100 shown, when the key 110 is released, a sound of the damper 120 contacting the string 130 is generated, and the proportion of the contact sound in the generated sound increases with the passage of time. In order to reproduce this phenomenon well, the following control is performed: the normal waveform filter EG3734 and the differential waveform filter EG3744 generate the following Fig. 8AThe filter envelope shown, the normal waveform amplifier EG3735 generates as Figure 8B The amplifier envelope shown, the threshold EG3746 generates as Figure 8C The threshold envelope is shown. Figure 8C In the example, the value of the threshold envelope when a key is pressed is set to the maximum value, i.e., 1.0, and the contact sound is controlled not to be generated when the key is pressed. In addition, the value of the threshold envelope when a key is released is set to decrease with the passage of time, and the contact sound is controlled to become easier to hear with the passage of time. In addition, as described above, the addition ratio of the normal waveform and the differential waveform is different from the above. Figure 8A to Figure 8C Each envelope other than that shown can also be controlled by the section mixer 375, and the addition ratio of the normal waveform and the differential waveform in the section mixer 375 can be set to about 1:0.6.
[0071] In addition, Figure 2A In the guitar 200 shown, when the string 210 is untied, a sound of the string 210 contacting the fret 220 etc. is produced, and as time passes, the contact sound becomes less audible. In order to reproduce this phenomenon well, the following control is performed: the normal waveform filter EG3734 and the differential waveform filter EG3744 generate the following Fig. 9A The filter envelope shown, the normal waveform amplifier EG3735 generates as Fig. 9B The amplifier envelope shown, the threshold EG3746 generates as Fig. 9C The threshold envelope is shown. Fig. 9C In the example of , the value of the threshold envelope when a key is pressed is set to be smaller than the value of the normal waveform amplifier envelope in a certain period just after the key is pressed, and the contact sound is controlled to be generated not only when the key is released but also in a certain period when the key is pressed. In addition, the value of the threshold envelope when the key is released is set to the minimum value just after the key is released, and then is set to tend to the maximum value, that is, 1.0, and is controlled so that the contact sound becomes difficult to hear as time passes. In addition, as described above, the addition ratio of the normal waveform and the differential waveform is not the same as Figures 9A to 9C Each envelope other than that shown can also be controlled by the segment mixer 375, and the addition ratio of the normal waveform and the differential waveform in the segment mixer 375 can be set to about 1:1.5.
[0072] (deal with)
[0073] Next, the processing executed by CPU 310 will be described in detail. Fig.10 This is a flowchart showing the processing procedure of the CPU. Fig.11 Yes means Fig.10 The algorithms shown in the flowcharts are stored as programs in ROM 330 or the like, and are executed by CPU 310.
[0074] like Fig.10 As shown in FIG. 1 , when the power is turned on, the CPU 310 first performs initialization processing for each component of the electronic musical instrument 300 (step S101). Then, the CPU 310 performs user interface processing (UI processing) (step S102) for displaying various information on the LCD 350 or accepting user operations via the switch panel 340. For example, the CPU 310 accepts a user operation of selecting a certain musical instrument sound from a plurality of musical instrument sounds via the switch panel 340.
[0075] Next, the CPU 310 determines whether the user has pressed a key (step S103). When it is determined that a key has been pressed (step S103: Yes), the CPU 310 performs a key press process (also called a "sounding process" or a "note striking process") (step S104). The key press process includes, for example, a process of obtaining the key number and strength of the pressed key 361, an assignment process of the generator section 371, and the like. In addition, the key press process includes a control process for causing the sound source LSI 370 to perform the following operations: initialization and start of operation of each waveform generator 3731 and 3741 in the assigned generator section 371, reading of each waveform data in each waveform generator 3731 and 3741 after the operation starts, initialization of each EG 3734, 3735, 3744, and 3746, and the like. In addition, the operation of each EG 3734, 3735, 3744, and 3746 is automatically started in the EG normal process of step S107 described later. On the other hand, when it is determined that no key has been pressed (step S103 : NO), CPU 310 directly performs the process of step S105 .
[0076] Next, CPU310 determines whether the user has released the key (step S105). When it is determined that the key has been released (step S105: Yes), CPU310 performs key release processing (also called "mute processing", "sound weakening processing" or "note completion processing") (step S106). The key release processing includes, for example, obtaining the key number and strength of the key 361 that has been released, and the control processing of each EG3734, 3735, 3744 and 3746. That is, CPU310, for example, performs the processing of converting each EG3734, 3735, 3744 and 3746 to a released state as the key release processing. On the other hand, when it is determined that the key has not been released (step S105: No), CPU310 directly performs the processing of step S107.
[0077] Next, the CPU 310 performs EG normal processing (step S107). More specifically, the CPU 310 performs processing to generate an envelope by providing parameters corresponding to the selected instrument sound and the current state to each EG 3734, 3735, 3744, and 3746. Then, the CPU 310 performs sound source LSI control processing (step S108). The sound source LSI control processing will be described later. Fig.11 Provide detailed explanation.
[0078] Next, CPU 310 determines whether the value counted by timing counter 390 is 1000 μsec, i.e., 1 ms or more (step S109). When it is determined that the count value is not 1000 μsec or more, i.e., less than 1000 μsec (step S109: No), CPU 310 waits until the count value reaches 1000 μsec or more. On the other hand, when it is determined that the count value is 1000 μsec or more (step S109: Yes), CPU 310 subtracts 1000 μsec from the value counted by timing counter 390 (step S110), and returns to the process of step S102. That is, CPU 310 executes the processes of steps S109 and S110 so that the processes of steps S102 to S108 are executed once every 1000 μsec on average.
[0079] Next, the sound source LSI control process of step S108 will be described in detail. Fig.11 The processing of steps S201 to S206 is shown.
[0080] Specifically, if Fig.11 As shown, in the sound source LSI 370, the filter envelope generated by the differential waveform filter EG3744 is set in the differential waveform filter 3742 (step S201). In addition, the amplifier envelope output by the envelope comparison unit 3745 is set in the differential waveform amplifier 3743 (step S202). Furthermore, the filter envelope generated by the normal waveform filter EG3734 is set in the normal waveform filter 3732 (step S203), and the amplifier envelope generated by the normal waveform amplifier EG3735 is set in the normal waveform amplifier 3733 (step S204).
[0081] Then, it is determined whether the value of the amplifier envelope generated by the normal waveform amplifier EG3735 and the value of the amplifier envelope output by the envelope comparison unit 3745 have both reached 0, and whether the operations of both the normal waveform amplifier 3733 and the differential waveform amplifier 3743 have stopped (step S205).
[0082] When it is determined that the operations of the two amplifiers 3733 and 3743 have stopped (step S205: Yes), the operations of the normal waveform generator 3731 and the differential waveform generator 3741 are also stopped (step S206), and the sound source LSI control process is terminated. On the other hand, when it is determined that the operations of the two amplifiers 3733 and 3743 have not stopped (step S205: No), the sound source LSI control process is directly terminated.
[0083] This embodiment can achieve the following effects.
[0084] The electronic musical instrument 300 outputs data of a summed waveform obtained by adding a normal waveform and a differential waveform corresponding to a portion of the normal waveform exceeding a certain clip level. Thus, the electronic musical instrument 300 can reproduce the string contact sound produced in a stringed musical instrument that changes with the passage of time or the way of playing, etc., by only performing a relatively simple signal processing, i.e., an addition processing.
[0085] In the electronic musical instrument 300, the differential waveform is a waveform obtained by inverting the sign of the portion of the normal waveform exceeding a certain clipping level. Thus, the electronic musical instrument 300 can add the normal waveform and the differential waveform corresponding to the portion of the normal waveform exceeding a certain clipping level, and can output data of the added waveform that reproduces the virtual clipping.
[0086] Furthermore, in the electronic musical instrument 300, the output value of the differential waveform amplifier 3743 is adjusted according to the difference between the amplitude envelope of the normal waveform detected by the envelope detection unit 3736 and the threshold envelope generated by the threshold EG 3746. Thus, the electronic musical instrument 300 can well reproduce the contact sound that changes according to the actual movement of the strings in the stringed instrument.
[0087] In addition, in the electronic musical instrument 300, the threshold value represented by the threshold value envelope is determined according to the musical instrument sound selected by the user. Thus, the electronic musical instrument 300 can reproduce different contact sounds for each musical instrument well.
[0088] Furthermore, in the electronic musical instrument 300, the normal waveform and the differential waveform are added at a certain ratio. Thus, the electronic musical instrument 300 can output data including the added waveform of various slice shapes.
[0089] Furthermore, in the electronic musical instrument 300, the addition ratio of the normal waveform and the differential waveform when the sound of the guitar is selected from the plurality of musical instrument sounds is set to be larger than the addition ratio when the sound of the acoustic piano is selected. Thus, the electronic musical instrument 300 can well reproduce, for example, the contact sound generated by the soft damper 120 contacting the string 130 in the acoustic piano 100 or the contact sound generated by the string 210 contacting the hard metal fret 220 in the guitar 200.
[0090] In addition, the present invention is not limited to the above-described embodiment, and various changes, improvements, etc. can be made within the scope of the claimed patent protection.
[0091] For example, although the above embodiment illustrates a case where differential waveform data is generated in advance and stored in ROM 330, the differential waveform data may not be stored in ROM 330. In this case, when normal waveform data is read from ROM 330, differential waveform data may be generated based on the normal waveform data.
[0092] In addition, although the above-mentioned embodiment illustrates the case where the clipping level is set in the positive region of the normal waveform, the clipping level may be set in the negative region of the normal waveform. In this case, the differential waveform is generated as a waveform corresponding to a portion of the normal waveform that exceeds a certain clipping in the negative region. In addition, the clipping level may be set in both the positive region and the negative region of the normal waveform.
[0093] In addition, although the above embodiment exemplifies the case where parameters and set values corresponding to the force are provided from the CPU 310 to the sound source LSI 370, parameters and set values corresponding to factors other than the force may be provided to the sound source LSI 370. Examples of factors other than the force include aftertouch that can be detected by a pressure sensor or the like.
[0094] In addition, although in the above embodiment, the CPU 310 is used as an example to execute Fig.10 However, the processing shown in the figure can also be performed by the sound source LSI 370 Fig.10 At least a portion of the processing shown.
[0095] In addition, although the above embodiment illustrates the case where the contact sound generated in the acoustic piano 100 and the guitar 200 is reproduced in the electronic musical instrument 300, the contact sound generated in other stringed instruments can also be reproduced. As examples of other musical instruments, for example, folk musical instruments such as sitars with contact plates (bridges) and fretless basses can be cited. In folk musical instruments such as sitars, even if the vibration of the strings is relatively small, long and stable contact sounds can be generated. In order to reproduce such contact sounds, the electronic musical instrument 300 can, for example, control the value of the level obtained by subtracting the level of the threshold envelope from the level of the amplitude envelope to a positive value for a long period of time.
[0096] In addition, although the above embodiment illustrates the case where the contact sound produced by a stringed instrument is reproduced in the electronic musical instrument 300, the contact sound can also be reproduced in other devices. Examples of other devices include a PC used for music production.
[0097] 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 main purpose. In addition, the functions performed in the above-mentioned embodiments can be implemented in an appropriate combination as much as possible. The above-mentioned embodiments include various stages, and various inventions can be extracted by appropriately combining 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 achieved, the structure with the deleted constituent elements can be extracted as an invention.
Claims
1. An electronic musical instrument, characterized in that: have: A first system including a first waveform generator as a normal waveform generator, a normal waveform filter, and a first waveform amplifier as a normal waveform amplifier; a second system including a second waveform generator as a differential waveform generator, a differential waveform filter, and a second waveform amplifier as a differential waveform amplifier; a waveform data input section that inputs first waveform data to the first waveform generator included in the first system according to a user operation on at least one operating component, and inputs second waveform data representing positive and negative inversion data of a portion of the first waveform data exceeding a certain slice level to the second waveform generator included in the second system; as well as An addition data generating section generates addition data based on first output data output from the first waveform amplifier included in the first system and second output data output from the second waveform amplifier included in the second system.
2. The electronic musical instrument according to claim 1, characterized in that: Compared with the case where the addition ratio between the first output data and the second output data is 1:1, when the addition ratio is a value greater than 1:1, the distortion degree of the above-mentioned added data is greater, and when the addition ratio is a value less than 1:1, the distortion degree of the above-mentioned added data is less.
3. The electronic musical instrument according to claim 1 or 2, characterized in that: have: an envelope detection unit configured to detect an envelope of the first output data outputted from the first waveform amplifier; An envelope generating unit that generates an envelope corresponding to a set threshold value; as well as An adjustment unit adjusts an output value of the second output data outputted from the second waveform amplifier according to a difference between the detected envelope of the first output data and an envelope corresponding to the threshold value.
4. The electronic musical instrument according to claim 3, characterized in that: When the difference is a first difference, the waveform of the output value of the second output data is smaller than the waveform of the output value of the second output data when the difference is a second difference larger than the first difference.
5. The electronic musical instrument according to claim 3, characterized in that: The threshold value set above is determined according to the musical instrument selected from the plurality of musical instruments based on the user operation.
6. The electronic musical instrument according to claim 5, characterized in that: The waveform of the second output data added when the guitar is selected from the plurality of musical instruments is larger than the waveform of the second output data added when the piano is selected from the plurality of musical instruments.
7. A method for an electronic musical instrument, the electronic musical instrument comprising: a first system including a first waveform generator as a normal waveform generator, a normal waveform filter, and a first waveform amplifier as a normal waveform amplifier; a second system including a second waveform generator as a differential waveform generator, a differential waveform filter, and a second waveform amplifier as a differential waveform amplifier, characterized in that: Perform the following processing: A process for inputting first waveform data to the first waveform generator included in the first system and inputting second waveform data representing positive and negative inversion data of a portion of the first waveform data exceeding a certain slice level to the second waveform generator included in the second system according to a user operation on at least one operating component; as well as A process of generating addition data based on first output data output from the first waveform amplifier included in the first system and second output data output from the second waveform amplifier included in the second system.
8. The method according to claim 7, characterized in that Compared with the case where the addition ratio between the first output data and the second output data is 1:1, when the addition ratio is a value greater than 1:1, the distortion degree of the above-mentioned added data is greater, and when the addition ratio is a value less than 1:1, the distortion degree of the above-mentioned added data is less.
9. The method according to claim 8, characterized in that Perform the following processing: detecting an envelope of the first output data; A process of generating an envelope corresponding to a set threshold value; and The process of adjusting the output value of the second output data according to the difference between the detected envelope of the first output data and the envelope corresponding to the threshold value.
10. The method according to claim 9, characterized in that When the difference is a first difference, the waveform of the output value of the second output data is smaller than the waveform of the output value of the second output data when the difference is a second difference larger than the first difference.
11. The method according to claim 9, characterized in that The threshold value set above is determined according to the musical instrument selected from the plurality of musical instruments based on the user operation.
12. The method according to claim 11, characterized in that The waveform of the second output data added when the guitar is selected from the plurality of musical instruments is larger than the waveform of the second output data added when the piano is selected from the plurality of musical instruments.
13. A storage medium storing a computer program executed by a computer of an electronic musical instrument, characterized in that: The electronic musical instrument comprises: a first system including a first waveform generator as a normal waveform generator, a normal waveform filter, and a first waveform amplifier as a normal waveform amplifier; a second system including a second waveform generator as a differential waveform generator, a differential waveform filter, and a second waveform amplifier as a differential waveform amplifier, The computer program causes a computer of an electronic musical instrument to execute the following processing: A process for inputting first waveform data to the first waveform generator included in the first system and inputting second waveform data representing positive and negative inversion data of a portion of the first waveform data exceeding a certain slice level to the second waveform generator included in the second system according to a user operation on at least one operating component; as well as A process of generating addition data based on first output data output from the first waveform amplifier included in the first system and second output data output from the second waveform amplifier included in the second system.