Electronic device, method and program
The electronic device addresses sound distortion in musical instruments by dynamically adjusting clip values based on current consumption, protecting speakers and maintaining sound quality.
Patent Information
- Application Number
- JP2022092931
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2042-06-08
AI Technical Summary
Existing electronic musical instruments face issues with sound distortion due to clipping of high-level output signals, which can damage speakers.
An electronic device with a sound source LSI that dynamically adjusts clip values based on current consumption, using threshold values to control waveform shaping, reducing clip values during high-level signals and increasing them during lower-level signals to prevent distortion and protect the speaker.
The solution effectively prevents speaker damage and maintains sound quality by avoiding distortion of high-level output signals, particularly attack sounds, through dynamic clip value adjustments.
Smart Images

Figure 0007559802000001 
Figure 0007559802000002 
Figure 0007559802000003
Abstract
Description
[Technical field]
[0001] The disclosure herein relates to an electronic device, a method, and a program. [Background technology]
[0002] An electronic musical instrument, which is one example of an electronic device, is known (see, for example, Patent Document 1). In this type of electronic musical instrument, for example, a clipping function of a power amplifier is used to clip the input voltage to the speaker, thereby protecting the speaker. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2004-264501 A Summary of the Invention [Problem to be solved by the invention]
[0004] For example, consider a case where a momentarily high-level attack sound is generated. In this case, the peak of the attack sound that exceeds a certain level may be clipped, causing the attack sound to become distorted. It is necessary to protect the speaker while avoiding such sound distortion.
[0005] The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide an electronic device, method, and program that can protect circuit sections such as speakers while preventing high-level output signals from being clipped and causing sound distortion. [Means for solving the problem]
[0006] An electronic device according to an embodiment of the present invention includes an amplifier for amplifying an input signal, an acquisition unit for acquiring a value indicating power supplied to the amplifier, a waveform shaping unit for shaping a waveform of an output signal output from the amplifier, and at least one processor, wherein the at least one processor controls the waveform shaping unit in a first pattern so as to reduce a clip value for the output signal when the value acquired by the acquisition unit is greater than a reference potential and detects that the value has changed from a state where it was below a second threshold to a state where it is above a first threshold that is greater than the second threshold, and controls the waveform shaping unit in a second pattern so as to increase a clip value for the output signal when the value acquired by the acquisition unit is greater than the reference potential and detects that the value has changed from a state where it was above the first threshold to a state where it is below the second threshold. The first pattern is a pattern in which a clip value for the output signal decreases over time, and the second pattern is a pattern in which a clip value for the output signal increases over time. . Effect of the Invention
[0007] According to one embodiment of the present invention, there is provided an electronic device, method, and program that can protect circuitry such as a speaker while preventing a high-level output signal from being clipped and causing sound distortion. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram illustrating a schematic configuration of an electronic musical instrument according to an embodiment of the present invention. [Figure 2A] FIG. 4 is a diagram showing an example of a table for dynamically changing a clip value for an audio signal in an embodiment of the present invention. [Figure 2B] FIG. 4 is a diagram showing an example of a table for dynamically changing a clip value for an audio signal in an embodiment of the present invention. [Figure 3A] 11A and 11B are diagrams for explaining an example in which an output waveform from a speaker is shaped by dynamically changing a clip value for an audio signal in one embodiment of the present invention. [Figure 3B]11A and 11B are diagrams for explaining an example in which an output waveform from a speaker is shaped by dynamically changing a clip value for an audio signal in one embodiment of the present invention. [Figure 4] 5 is a diagram showing the relationship between a current value and time allowed in a speaker according to an embodiment of the present invention. FIG. [Diagram 5] 1 is a block diagram showing a specific configuration of an electronic musical instrument according to an embodiment of the present invention; [Figure 6] 5 is a flowchart showing a process for dynamically changing a clip value, which is executed in an electronic musical instrument according to an embodiment of the present invention. [Figure 7] FIG. 11 is a block diagram illustrating a schematic configuration of an electronic musical instrument according to another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] An electronic device according to an embodiment of the present invention, and a method and a program executed by the electronic device, which is an example of a computer, will be described in detail with reference to the drawings.
[0010] 1 is a block diagram for explaining a schematic configuration of an electronic musical instrument 1, which is an example of an electronic device according to an embodiment of the present invention. The electronic musical instrument 1 is, for example, an electronic keyboard. The electronic musical instrument 1 may be an electronic keyboard instrument other than an electronic keyboard, or may be another type of electronic musical instrument, such as an electronic percussion instrument, an electronic wind instrument, or an electronic string instrument.
[0011] The electronic musical instrument 1 operates on power supplied from an AC adapter 2. As shown generally in Fig. 1, the electronic musical instrument 1 includes a current sense amplifier 10, a peak hold circuit 20, a sound source LSI (Large Scale Integration) 30, a class D amplifier 40, and a speaker SP.
[0012] The current sense amplifier 10 is installed on a power supply path from the AC adapter 2 to the class-D amplifier 40, and measures a drop voltage at a shunt resistor as a value indicating the current consumption in the class-D amplifier 40.
[0013] The peak hold circuit 20 detects the peak value of the value measured by the current sense amplifier 10. Specifically, the peak hold circuit 20 holds the peak value of the drop voltage indicating the current consumption in the class D amplifier 40, and outputs this peak value to the ADIN terminal of the sound source LSI 30.
[0014] The tone generator LSI 30 is an example of at least one processor, and may include, for example, a single processor or multiple processors. When multiple processors are included, the tone generator LSI 30 may be packaged as a single device, or may be configured as multiple devices that are physically separated within the electronic musical instrument 1.
[0015] The sound source LSI 30 obtains a value indicating the current consumption in the class-D amplifier 40 from the peak value input to the ADIN terminal. This value indicating the current consumption is an example of a value indicating the power supplied to the amplifier. For convenience, the value indicating the current consumption in the class-D amplifier 40 is referred to as the "current consumption value CCV."
[0016] The class D amplifier 40 is an example of an amplifier section that amplifies an input signal (an audio signal in this embodiment).
[0017] The current sense amplifier 10, the peak hold circuit 20, and the sound source LSI 30 operate as an acquisition unit that acquires the current consumption value CCV.
[0018] The sound source LSI 30 shapes the waveform of the output signal output from the class-D amplifier 40 by controlling the waveform shaping unit in accordance with the current consumption value CCV. In this embodiment, the "waveform shaping unit" shapes the waveform of the output signal output from the amplification unit, and specifically, is a clipping circuit 42 provided in the class-D amplifier 40. The clipping circuit 42 clips the audio signal (an example of an output signal) output from the class-D amplifier 40 to protect the speaker SP.
[0019] When the sound source LSI 30 acquires a current consumption value CCV that exceeds the first threshold, the sound source LSI 30 changes the clip value by the clip circuit 42 in a first pattern. More specifically, the first pattern is a pattern in which the clip value for the audio signal is gradually decreased over time. Here, the clip value indicates a certain potential at which the audio signal is clipped. That is, the above-mentioned first pattern gradually decreases the potential at which the audio signal is clipped over time. In other words, as the clip value decreases over time (the potential to be clipped becomes lower), the amplitude of the audio signal clipped by the clip circuit 42 becomes smaller. Note that in the first pattern, the potential to be clipped becomes almost constant after a certain time.
[0020] When the sound source LSI 30 obtains a current consumption value CCV below a second threshold value lower than the first threshold value, the sound source LSI 30 changes the clip value by the clip circuit 42 in a second pattern. More specifically, the second pattern is a pattern in which the clip value for the audio signal is gradually increased over time. In the second pattern, the potential to be clipped becomes almost constant after a certain time.
[0021] The internal memory 32 of the sound source LSI 30 stores a table T1 for changing the clip value over time in a first pattern, and also stores a table T2 for changing the clip value over time in a second pattern.
[0022] An example of table T1 is shown in Fig. 2A. An example of table T2 is shown in Fig. 2B. In each of Fig. 2A and Fig. 2B, the vertical axis represents the clip value (unit: dB) for the audio signal, and the horizontal axis represents time (unit: seconds).
[0023] When the current consumption value CCV exceeds the first threshold, the sound source LSI 30 reduces the clip value for clipping the audio signal over time according to table T1. When the current consumption value CCV falls below the second threshold, the sound source LSI 30 increases the clip value for clipping the audio signal over time according to table T2. In this way, the sound source LSI 30 dynamically changes the clip value for the audio signal output from the class-D amplifier 40 according to the current consumption value CCV.
[0024] 3A and 3B are diagrams for explaining an example in which an output waveform from speaker SP is shaped by dynamic change of clip value by sound source LSI 30. FIG. 3A shows an example of an output waveform when processing for dynamically changing clip value is not applied. FIG. 3B shows an example of an output waveform when processing for dynamically changing clip value according to this embodiment is applied to the output waveform example of FIG. 3A. In each of FIGS. 3A and 3B, the vertical axis is voltage (unit: V) and the horizontal axis is time (unit: seconds). For convenience, the time axis in FIGS. 3A and 3B is divided into periods A1 to A5.
[0025] In Fig. 3A, the speaker output waveform W1 shows the waveform output from the speaker SP when the audio signal is not clipped. The speaker output waveform W1 is correlated with the current consumption value CCV. That is, the higher the current consumption value CCV, the larger the amplitude of the speaker output waveform W1 becomes, and the lower the current consumption value CCV, the smaller the amplitude of the speaker output waveform W1 becomes.
[0026] In Fig. 3A, an attack waveform W3 indicates the waveform of an attack sound included in the speaker output waveform W1. Here, an attack sound refers to a sound whose output signal level is momentarily high when a key on a keyboard 60 of an electronic musical instrument 1 (described later) is momentarily pressed hard. For example, the attack waveform W3 in Fig. 3A (and Fig. 3B) is an exemplary waveform for indicating an attack sound, and is not limited to this.
[0027] For example, if a high-level speaker output waveform W1 is continuously output from the speaker SP, it may lead to permanent damage to the speaker SP. The high-level speaker output waveform W1 is a waveform with a large absolute value when the reference value 0V (reference potential) is set to 0, and is, for example, a waveform that exceeds a clip-on threshold Th1 described later.
[0028] 3A, the attack waveform W3 exceeds the clip-on threshold Th1. In order to prevent permanent damage to the speaker SP, it is possible to clip the speaker output waveform W1. However, simply clipping the speaker output waveform W1 would clip the peak of the attack waveform W3, distorting the attack sound.
[0029] Therefore, in this embodiment, in order to protect the speaker SP while avoiding sound distortion due to clipping of a high-level output signal, the clip value is dynamically changed. The dynamic change of the clip value will be specifically described with reference to FIG. 3B.
[0030] FIG. 3B shows a clipped waveform W2 as a waveform output from the speaker SP when the clip value for the audio signal is dynamically changed.
[0031] The clip-on thresholds Th1(+) and Th1(-) are an example of a first threshold. The clip-on threshold Th1(+) and the clip-on threshold Th1(-) have the same absolute value but different signs. Hereinafter, the clip-on threshold Th1(+) and the clip-on threshold Th1(-) are collectively referred to as the "clip-on threshold Th1." For example, a "waveform exceeding the clip-on threshold Th1" refers to a waveform whose absolute value is greater than the clip-on threshold Th1(+) and the clip-on threshold Th1(-). For example, a "waveform falling below the clip-on threshold Th1" refers to a waveform whose absolute value is smaller than the clip-on threshold Th1(+) and the clip-on threshold Th1(-).
[0032] The clip-off thresholds Th2(+) and Th2(-) are an example of a second threshold. The clip-off thresholds Th2(+) and Th2(-) have the same absolute value but different signs. Hereinafter, the clip-off thresholds Th2(+) and Th2(-) are collectively referred to as the "clip-off thresholds Th2." For example, a "waveform exceeding the clip-off threshold Th2" refers to a waveform whose absolute value is greater than the clip-off thresholds Th2(+) and Th2(-). For example, a "waveform falling below the clip-off threshold Th2" refers to a waveform whose absolute value is smaller than the clip-off thresholds Th2(+) and Th2(-).
[0033] The clip-on threshold Th1 and the clip-off threshold Th2 are stored in, for example, the internal memory 32. Note that the current consumption value CCV is a value converted into a voltage because the current sense amplifier 10 measures a voltage value as a current value. Correspondingly, the clip-on threshold Th1 and the clip-off threshold Th2 are also values converted into a voltage.
[0034] The clip-on threshold Th1 and the clip-off threshold Th2 are set based on at least one of the rated noise voltage, the maximum input voltage, and the instantaneous maximum input voltage of the speaker SP, which is an example of a predetermined circuit unit. As an example, the clip-on threshold Th1 is set to a value higher than the rated noise voltage and lower than the maximum input voltage, and the clip-off threshold Th2 is set to a value lower than the rated noise voltage. The rated noise voltage, the maximum input voltage, and the instantaneous maximum input voltage are defined in JIS C 5532:2014.
[0035] Fig. 4 is a diagram showing the relationship between the current value allowed in the speaker SP and time. In Fig. 4, the vertical axis is the current value (unit: A) and the horizontal axis is the time (unit: seconds). The curve showing the relationship between the current value allowed in the speaker SP and time is referred to as the "protection curve."
[0036] The protection curve (thin line) is a curve showing the relationship between the current value and time allowed by the specifications of the speaker SP, and was estimated by the inventor based on the rated noise voltage, maximum input voltage, and instantaneous maximum input voltage of the speaker SP. The protection curve (thick line) is a curve set by the inventor with a safety factor taken into consideration for the protection curve (thin line).
[0037] In this embodiment, the clip-on threshold Th1 and the clip-off threshold Th2 are set based on a protection curve (thin line) that is set in consideration of a safety factor with respect to a protection curve (thin line) that indicates a limit value in the specifications of the speaker SP.
[0038] That is, in this embodiment, the clip-on threshold Th1 and the clip-off threshold Th2 are set based on the rated noise voltage, the maximum input voltage, and the instantaneous maximum input voltage of the speaker SP.
[0039] The values CL(+) and CL(-) indicate clip values that change according to tables T1 and T2. The values CL(+) and CL(-) have different signs, but the same absolute value. The maximum values MAX of the values CL(+) and CL(-) are +10V and -10V, respectively. This maximum value is set, for example, to a value higher than the rated noise voltage and the clip-on threshold Th1 and lower than the instantaneous maximum input voltage.
[0040] 3B, at a time point SIG1 slightly after 0 seconds on the time axis, a current consumption value CCV exceeding the clip-on threshold Th1 is detected. Therefore, the sound source LSI30 reduces the clip value for the audio signal over time according to table T1. As a result, from period A1 onwards, the speaker output waveform W1 is clipped, and a clipped waveform W2 with a reduced amplitude is output from the speaker SP.
[0041] The sound source LSI 30 calculates the envelope of the speaker output waveform W1, and performs threshold determination on the calculated envelope using a clip-on threshold Th1 and a clip-off threshold Th2.
[0042] During the period A1, the input voltage to the speaker SP gradually decreases from around the time point SIG1. This makes it possible to prevent permanent damage to the speaker SP, for example, when a loud sustained sound is input. In addition, because the input voltage to the speaker SP gradually decreases over time, the generation of unnatural sounds due to a sudden drop in the input voltage is suppressed.
[0043] 3B, at time SIG2 (around the beginning of period A2), a current consumption value CCV below the clip-off threshold Th2 is detected. Therefore, the sound source LSI 30 increases the clip value for the audio signal over time in accordance with table T2. By increasing the clip value quickly, the electronic musical instrument 1 quickly returns to a state in which it can output the original sound without clipping.
[0044] In this way, when the sound source LSI 30 detects that the current consumption value CCV is greater than the reference potential (0V) and has changed from a state in which the current consumption value CCV exceeds the clip-on threshold value Th1 to a state in which the current consumption value CCV falls below the clip-off threshold value Th2, the sound source LSI 30 controls the clip circuit 42 in the second pattern so that the clip value for the audio signal becomes larger.
[0045] At a time point SIG3 (around 0.01 seconds on the time axis), a current consumption value CCV exceeding the clip-on threshold Th1 is detected. Specifically, an attack sound exceeding the clip-on threshold Th1 (for example, an attack waveform W3 in which the input voltage to the speaker SP momentarily exceeds the rated noise voltage) occurs.
[0046] The speaker SP can output momentarily loud sounds such as attack sounds as regulated by the maximum input voltage and the instantaneous maximum input voltage. On the other hand, the speaker SP cannot continuously output sounds exceeding the rated noise voltage. Therefore, after time SIG3 (immediately after the occurrence of the attack sound), the sound source LSI30 decreases the clip value for the audio signal over time according to the table T1.
[0047] As shown in table T1, the clip value for the audio signal is not lowered all at once immediately after the occurrence (detection) of an attack sound, but is lowered gradually. Therefore, the attack sound is output without clipping the instantaneous peak of the attack waveform W3. This prevents distortion of the attack sound caused by clipping the peak, improving the quality of the attack sound.
[0048] In this way, the sound source LSI 30 sets the table T1 (in other words, the first pattern, the rate at which the clip value is reduced) so that at least one of the feature signals included in the output signal (for example, the attack waveform W3) is not shaped by the clip circuit 42.
[0049] Furthermore, when the sound source LSI 30 detects that the current consumption value CCV is greater than the reference potential (0V) and has changed from a state in which the current consumption value CCV is less than the clip-off threshold value Th2 to a state in which the current consumption value CCV is greater than the clip-on threshold value Th1, the sound source LSI 30 controls the clip circuit 42 in a first pattern so that the clip value for the audio signal becomes smaller.
[0050] In the period A3 after the occurrence of the attack sound, as in the period A1, the input voltage to the speaker SP is lowered, thereby making it possible to prevent permanent damage to the speaker SP when, for example, a large sustained sound is input.
[0051] In FIG. 3B, at time SIG4 (around the beginning of period A4), a current consumption value CCV below the clip-off threshold value Th2 is detected. In order to quickly return to a state where the original sound without clipping can be output, the sound source LSI30 increases the clip value for the audio signal over time according to table T2. Also, by quickly increasing the clip value, even if an attack sound is input, for example, the peak is output without being clipped. This dynamic change in the clip value prevents distortion of the attack sound caused by clipping the peak, improving the sound quality of the attack sound while protecting the speaker SP.
[0052] 3B, at time SIG5 (around the beginning of period A5), a current consumption value CCV exceeding the clip-on threshold Th1 is detected. Therefore, the sound source LSI30 again reduces the clip value for the audio signal over time according to table T1. In period A5, the speaker output waveform W1 of a large sustained sound is clipped, preventing permanent damage to the speaker SP.
[0053] In this manner, according to this embodiment, for example, an audio signal with a momentary high level (a signal including an attack sound) is clipped, and it is possible to protect the speaker SP while preventing the attack sound from being distorted.
[0054] A specific configuration of the electronic musical instrument 1 will now be described. Fig. 5 is a block diagram showing the configuration of the electronic musical instrument 1. As shown in Fig. 5, the electronic musical instrument 1 includes a current sense amplifier 10, a peak hold circuit 20, a sound source LSI 30, class D amplifiers 40a, 40b, a power supply circuit 50, a RAM (Random Access Memory) 52, a flash ROM (Read Only Memory) 54, a switch panel 56, a microcomputer 58, a keyboard 60, a key scanner 62, an LCD (Liquid Crystal Display) 64, an LCD controller 66, an operator 68, a USB (Universal Serial Bus) interface 70, an external input interface 72, an external output interface 74, and speakers SPa and SPb.
[0055] The power supply circuit 50 generates power to be supplied to each section of the electronic musical instrument 1 from power supplied by the AC adapter 2 or a battery attached to the electronic musical instrument 1, and supplies the generated power to each section.
[0056] The sound source LSI 30, which is an example of at least one processor, controls the electronic musical instrument 1 overall by reading out programs and data stored in the flash ROM 54 and using the RAM 52 as a work area.
[0057] The RAM 52 temporarily stores data and programs, and stores programs and data (waveform data, etc.) read from the flash ROM 54, as well as other data necessary for communication.
[0058] The flash ROM 54 is a non-volatile semiconductor memory such as a flash memory, an EPROM (Erasable Programmable ROM), or an EEPROM (Electrically Erasable Programmable ROM).
[0059] The switch panel 56 is, for example, an operation panel provided on the housing of the electronic musical instrument 1, and includes LEDs (Light Emitting Diodes) 56a and a touch device 56b. When each of the multiple LEDs 56a emits light, various icons that accept various operations are displayed on the top panel of the electronic musical instrument 1.
[0060] The touch device 56b incorporates, for example, a capacitive or optical touch panel. When the user touches an icon displayed on the top panel, an operation signal indicating the operation is output to the sound source LSI 30 via the microcomputer 58. The sound source LSI 30 controls each section based on the operation signal, and the electronic musical instrument 1 performs an operation according to the user's operation. As an example, the user can specify a tone (guitar, bass, piano, etc.) by performing a touch operation on the touch device 56b.
[0061] The switch panel 56 is not limited to a touch panel, and may include switches, buttons, and other operators, such as mechanical, capacitive non-contact, and membrane switches.
[0062] The keyboard 60 has a number of white and black keys as performance operators, each of which corresponds to a different pitch.
[0063] The key scanner 62 monitors key presses and releases on the keyboard 60. For example, when the key scanner 62 detects a key press by a user, it outputs key press event information to the sound source LSI 30. The key press event information includes information on the pitch of the key related to the key press (key number). The key number is also called a key number, a MIDI key, or a note number.
[0064] In this embodiment, a means for measuring the key pressing speed (velocity value) is provided separately, and the velocity value measured by this means is also included in the key pressing event information. For example, a plurality of contact switches are provided for each key. The velocity value is measured based on the difference in the time that each contact switch is conductive when the key is pressed. The velocity value can be said to be a value indicating the strength of the key pressing operation, and also a value indicating the loudness (volume) of the musical sound.
[0065] The LCD 64 is driven by an LCD controller 66. When the LCD controller 66 drives the LCD 64 in accordance with a control signal from the sound source LSI 30, a screen corresponding to the control signal is displayed on the LCD 64. The LCD 64 may be replaced with a display device such as an organic EL (Electro Luminescence) display. The LCD 64 may be one of the controls having a built-in touch panel.
[0066] The operators 68 include various operators for operating the electronic musical instrument 1, such as knobs (such as a main volume knob), buttons, pedals, and the like.
[0067] The USB interface 70 is, for example, an interface for transmitting and receiving MIDI data (MIDI messages) to and from an external MIDI (Musical Instrument Digital Interface) device.
[0068] The external input interface 72 is, for example, an audio interface to which an external device such as a microphone is connected, while the external output interface 74 is, for example, an audio interface to which an external device such as a speaker with a built-in amplifier, headphones, etc. is connected.
[0069] The sound source LSI 30 reads out waveform data corresponding to the tone color and key press event information selected by the user, for example, and generates musical tones based on the read out waveform data. The sound source LSI 30 has, for example, 128 generator sections and can generate a maximum of 128 musical tones simultaneously.
[0070] The digital musical sound data (e.g., I 2 The digital signal (S format) is input to class D amplifiers 40a and 40b, where it is converted to an analog signal, amplified, and output to speakers SPa and SPb, respectively. This reproduces musical tones in accordance with key depression operations.
[0071] Fig. 6 is a flowchart showing a process for dynamically changing the clip value, which is executed by the sound source LSI 30. The flowchart shown in Fig. 6 is started, for example, when the system of the electronic musical instrument 1 is started, and is repeatedly executed until the system of the electronic musical instrument 1 is stopped.
[0072] The sound source LSI 30 converts the peak value input from the peak hold circuit 20 to the ADIN terminal T11 from an analog signal to a digital signal at a predetermined sampling rate, and obtains the average value every n periods (e.g., every 4 samplings) as the current consumption value CCV (step S101). The number of samples used to calculate the average value is set, for example, taking into consideration the suppression of the variation in the peak values and the delay associated with the calculation of the average value.
[0073] The current consumption value CCV indicates the total current consumption value of the class D amplifiers 40a and 40b. Therefore, the sound source LSI 30 calculates the current consumption value CCVa of the class D amplifier 40a and the current consumption value CCVb of the class D amplifier 40b from the current consumption value CCV (step S102). For example, the sound source LSI 30 calculates the current consumption value CCVa and the current consumption value CCVb from the current consumption value CCV based on the main volume value, equalizer boost, cut, etc. set for each of the speakers SPa and SPb.
[0074] The tone generator LSI 30 executes clip control CC (steps S103 to S109) for each of the class-D amplifiers 40a and 40b.
[0075] For example, the sound source LSI 30 first executes clip control CC (steps S103 to S109) on the class-D amplifier 40a.
[0076] Specifically, the sound source LSI 30 determines whether the current consumption value CCVa exceeds the clip-on threshold Th1 (step S103). If the current consumption value CCVa exceeds the clip-on threshold Th1 (step S103: YES), the sound source LSI 30 generates a clip control signal CCa according to table T1 (step S104). The clip control signal CCa is a control signal for controlling the clip circuit 42a of the class-D amplifier 40a.
[0077] The sound source LSI 30 converts the clip control signal CCa and the main volume signal Va generated in step S104 into, for example, 2 The main volume signal Va is output in the C format to the class D amplifier 40a (step S105). The main volume signal Va is a signal indicating a main volume value set for the speaker SPa.
[0078] The class D amplifier 40a amplifies the audio signal input from the sound source LSI 30 according to the main volume signal Va, and operates the clip circuit 42a based on the clip control signal CCa to clip the audio signal, which is the output signal to the speaker SPa. This causes the clip value for the audio signal to decrease over time (see, for example, period A3 in FIG. 3B). Therefore, while protecting the speaker SPa, distortion of the attack sound caused by clipping the peak is avoided.
[0079] If the current consumption value CCVa is equal to or less than the clip-on threshold Th1 (step S103: NO), the sound source LSI 30 determines whether the current consumption value CCVa is below the clip-off threshold Th2 (step S106). If the current consumption value CCVa is below the clip-off threshold Th2 (step S106: YES), the sound source LSI 30 generates the clip control signal CCa according to table T2 (step S107).
[0080] The sound source LSI 30 converts the clip control signal CCa and the main volume signal Va generated in step S107 into, for example, 2 The signal is output to the class D amplifier 40a in the C format (step S108).
[0081] The class D amplifier 40a amplifies the audio signal input from the sound source LSI 30 in response to the main volume signal Va, and operates the clip circuit 42a based on the clip control signal CCa to clip the audio signal that is the output signal to the speaker SPa. This causes the clip value for the audio signal to increase over time (see, for example, period A4 in FIG. 3B). This allows the speaker SPa to be protected while quickly returning to a state in which it can output original sound without clipping, and prevents distortion of the attack sound caused by clipping of the peak.
[0082] When the current consumption value CCVa is equal to or less than the clip-on threshold Th1 and equal to or more than the clip-off threshold Th2 (step S106: NO), the sound source LSI 30 adjusts the main volume signal Va, for example, to I 2 The audio signal is output to the class D amplifier 40a in the C format (step S109). The class D amplifier 40a amplifies the audio signal input from the sound source LSI 30 according to the main volume signal Va and outputs the amplified audio signal to the speaker SPa. Even if the audio signal is not clipped, an excessive current does not flow to the speaker SPa, so there is no risk of the speaker SPa being damaged.
[0083] The tone generator LSI 30 also executes a similar clip control CC (steps S103 to S109) for the class-D amplifier 40b.
[0084] In general, when the current consumption value CCVb exceeds the clip-on threshold Th1 (step S103: YES), the sound source LSI 30 generates a clip control signal CCb according to table T1 (step S104). The clip control signal CCb is a control signal for controlling the clip circuit 42b of the class-D amplifier 40b. The sound source LSI 30 outputs the clip control signal CCb and the main volume signal Vb generated in step S104 to the class-D amplifier 40b (step S105). The main volume signal Vb is a signal indicating a main volume value set for the speaker SPb.
[0085] If the current consumption value CCVb is lower than the clip-off threshold Th2 (step S106: YES), the sound source LSI 30 generates the clip control signal CCb according to the table T2 (step S107). The sound source LSI 30 outputs the clip control signal CCb and the main volume signal Vb generated in step S107 to the class D amplifier 40b (step S108).
[0086] When the current consumption value CCVb is equal to or less than the clip-on threshold Th1 and equal to or more than the clip-off threshold Th2 (step S106: NO), the sound source LSI 30 outputs the main volume signal Va to the class D amplifier 40a (step S109).
[0087] When the specifications of the speaker SPa and the speaker SPb (in other words, the rated noise voltage, the maximum input voltage, and the instantaneous maximum input voltage) are the same, the clip-on threshold Th1 and the clip-off threshold Th2 for the speakers SPa and SPb are set to the same values. In contrast, when the specifications of the speaker SPa and the speaker SPb are different, the clip-on threshold Th1 and the clip-off threshold Th2 for the speakers SPa and SPb are set to different values.
[0088] That is, a plurality of types of clip-on thresholds Th1 and clip-off thresholds Th2 corresponding to the plurality of types of speakers SP are stored in the internal memory 32 of the sound source LSI 30. The clip-on thresholds Th1 and clip-off thresholds Th2 for the plurality of types of speakers SP are set in advance, for example, at the manufacturing stage.
[0089] The clip-on threshold Th1 and the clip-off threshold Th2 for each of the multiple types of speakers SP may be automatically set by the sound source LSI 30 by recognizing the model number of the speaker SP. For example, the sound source LSI 30 recognizes the type of the speaker SP to which the class D amplifier 40 is output, and sets the clip-on threshold Th1 and the clip-off threshold Th2 according to the recognized type of speaker SP from among the clip-on threshold Th1 and the clip-off threshold Th2 stored in the internal memory 32.
[0090] As described above, according to this embodiment, it is possible to protect the speaker SP while preventing a high-level output signal such as an attack sound from being clipped and causing sound distortion.
[0091] In addition, the present invention is not limited to the above-mentioned embodiment, and various modifications can be made in the implementation stage without departing from the gist of the invention. In addition, the functions executed in the above-mentioned embodiment may be implemented in appropriate combinations as much as possible. The above-mentioned embodiment includes various steps, and various inventions can be extracted by appropriate combinations of the multiple components disclosed. For example, if an effect can be obtained even if some components are deleted from all the components shown in the embodiment, the configuration from which the components are deleted can be extracted as an invention.
[0092] In the above embodiment, the speaker SP is given as an example of a circuit part to be protected, but the present invention also covers cases where a circuit part other than the speaker SP (for example, the AC adapter 2) is protected. That is, when the output current value of the AC adapter 2 exceeds the clip-on threshold Th1, the clip value for the output current of the AC adapter 2 may be decreased over time, and when the output current value of the AC adapter 2 falls below the clip-off threshold Th2, the clip value for the output current of the AC adapter 2 may be increased over time.
[0093] A plurality of types of tables T1 and T2 corresponding to the plurality of types of speakers SP may be stored in the internal memory 32 of the sound source LSI 30. In other words, the internal memory 32 may operate as a storage unit that stores a plurality of types of first patterns and a plurality of types of second patterns corresponding to the plurality of types of speakers SP.
[0094] In this case, the sound source LSI 30 may obtain tables T1 and T2 corresponding to the type of speaker SP to which the class D amplifier 40 is output from among a plurality of types of tables T1 and T2 stored in the internal memory 32, and control the clip circuit 42 with the obtained tables T1 and T2. Furthermore, the tables T1 and T2 may be set based on a protection curve (thick line in FIG. 4) that is set in consideration of a safety factor with respect to a protection curve (thin line in FIG. 4) that indicates a specification limit value corresponding to the type of speaker SP.
[0095] Also, instead of tables T1 and T2, two functions approximating the curves of tables T1 and T2 (see FIGS. 2A and 2B) may be stored in the internal memory 32 of the tone generator LSI 30. That is, the tone generator LSI 30 may control the clip circuit 42 with a pattern defined by the functions.
[0096] 7 is a block diagram for explaining a schematic configuration of an electronic musical instrument 1 according to another embodiment of the present invention. The electronic musical instrument 1 according to the another embodiment includes a voltage dividing circuit 80 and a DC-DC converter 82. The voltage dividing circuit 80 includes a digital potentiometer DPM.
[0097] In another embodiment, when the current consumption value CCV exceeds the clip-on threshold Th1 or falls below the clip-off threshold Th2, the sound source LSI 30 controls the resistance value of the digital potentiometer DPM in accordance with the table T1 or T2. When the voltage division ratio changes as the resistance value of the digital potentiometer DPM changes under the control of the sound source LSI 30, the output voltage of the DC-DC converter 82 installed on the power supply path from the AC adapter 2 to the class-D amplifier 40 changes, and the power supplied to the speaker SP changes dynamically.
[0098] In another embodiment, similarly to the above embodiment, the clip value for the audio signal, which is the output signal to the speaker SP, decreases over time, and increases over time, thereby protecting the speaker SP while preventing high-level output signals such as attack sounds from being clipped and distorting the sound.
[0099] The invention as described in the claims of the original application is set forth below. [Appendix 1] an amplifier section for amplifying an input signal; an acquisition unit that acquires a value indicating power supplied to the amplifier; a waveform shaping unit that shapes a waveform of an output signal output from the amplifier unit; at least one processor; The at least one processor: when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from a state below a second threshold to a state above a first threshold that is greater than the second threshold, the waveform shaping unit is controlled with a first pattern so that a clip value for the output signal becomes smaller; when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from being greater than the first threshold value to being less than the second threshold value, the waveform shaping unit is controlled with a second pattern so that a clip value for the output signal is increased. electronic equipment. [Appendix 2] The at least one processor: setting the first pattern so that at least one of the characteristic signals included in the output signal is not shaped by the waveform shaping unit; 2. The electronic device according to claim 1. [Appendix 3] the first pattern is a pattern in which a clip value for the output signal decreases over time, the second pattern is a pattern in which a clip value for the output signal increases over time; 10. The electronic device according to claim 1 or 2. [Appendix 4] the waveform shaping unit is a clipping circuit that clips the output signal, The at least one processor: when a value exceeding the first threshold is acquired by the acquisition unit, a clip value by the clip circuit is changed in the first pattern so that a clip value for the output signal becomes smaller over time; when a value below the second threshold is acquired by the acquisition unit, the clip value for the output signal is changed in the second pattern so that the clip value for the output signal increases over time. 4. An electronic device according to any one of claims 1 to 3. [Appendix 5] the acquiring unit includes a current sense amplifier installed on a power supply path to the amplifying unit, and a peak hold circuit that detects a peak value of a value measured by the current sense amplifier, and acquires a value indicating the power from the detected peak value. 5. An electronic device according to any one of claims 1 to 4. [Appendix 6] The first threshold value and the second threshold value are values set based on at least one of a rated noise voltage, a maximum input voltage, and an instantaneous maximum input voltage of a predetermined circuit section. 6. An electronic device according to any one of claims 1 to 5. [Appendix 7] the input signal and the output signal are audio signals; the predetermined circuit unit is a speaker to which the audio signal output from the amplifier unit is input, 7. An electronic device according to any one of claims 1 to 6. [Appendix 8] a storage unit that stores a plurality of types of the first patterns and the second patterns corresponding to the plurality of types of speakers, The at least one processor: obtaining, from among the plurality of types of first patterns and second patterns, the first pattern and the second pattern corresponding to the type of the speaker to which the amplifier unit is output; controlling the waveform shaping unit using the acquired first pattern and second pattern; 8. The electronic device according to claim 7. [Appendix 9] It is an electronic musical instrument having multiple keys. 9. An electronic device according to any one of claims 1 to 8. [Appendix 10] A computer of an electronic device including an amplifier that amplifies an input signal, an acquisition unit that acquires a value indicating power supplied to the amplifier, and a waveform shaping unit that shapes a waveform of an output signal output from the amplifier, when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from a state below a second threshold to a state above a first threshold that is greater than the second threshold, controlling the waveform shaping unit with a first pattern so that a clip value for the output signal becomes smaller; when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from being greater than the first threshold value to being less than the second threshold value, the waveform shaping unit is controlled in a second pattern so that a clip value for the output signal is increased. method. [Appendix 11] A computer of an electronic device including an amplifier that amplifies an input signal, an acquisition unit that acquires a value indicating power supplied to the amplifier, and a waveform shaping unit that shapes a waveform of an output signal output from the amplifier, when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from a state below a second threshold to a state above a first threshold that is greater than the second threshold, controlling the waveform shaping unit with a first pattern so that a clip value for the output signal becomes smaller; when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from being greater than the first threshold value to being less than the second threshold value, the waveform shaping unit is controlled in a second pattern so that a clip value for the output signal is increased. program. [Explanation of symbols]
[0100] 1: Electronic instruments 2: AC adapter 10: Current sense amplifier 20: Peak hold circuit 30: Sound source LSI 32: Internal memory 40: Class D amplifier 42: Clip circuit 50: Power supply circuit 52: RAM 54: Flash ROM 56: Switch panel 56a: LED 56b: Touch devices 58: Microcomputer 60: Keyboard 62: Key scanner 64: LCD 66: LCD controller 68: Operator 70: USB interface 72: External input interface 74: External output interface 80: Voltage divider circuit 82: DC-DC converter
Claims
1. an amplifier section for amplifying an input signal; an acquisition unit that acquires a value indicating power supplied to the amplifier; a waveform shaping unit that shapes a waveform of an output signal output from the amplifier unit; At least one processor; The at least one processor when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has gone from being below a second threshold to being greater than a first threshold that is greater than the second threshold, the waveform shaping unit is controlled with a first pattern so that a clip value for the output signal becomes smaller; when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from being greater than the first threshold value to being less than the second threshold value, the waveform shaping unit is controlled in a second pattern so that a clip value for the output signal is increased; the first pattern is a pattern in which a clip value for the output signal decreases over time, the second pattern being a pattern in which a clip value for the output signal increases over time; electronic equipment.
2. The at least one processor setting the first pattern so that at least one of the characteristic signals included in the output signal is not shaped by the waveform shaping unit; 2. The electronic device according to claim 1.
3. the waveform shaping unit is a clipping circuit that clips the output signal, The at least one processor when the acquisition unit acquires a value exceeding the first threshold, the clipping value by the clipping circuit is changed in the first pattern so that the clipping value for the output signal becomes smaller over time; when the acquisition unit acquires a value below the second threshold, the clip value for the output signal is changed in the second pattern so that the clip value for the output signal increases over time; 2. The electronic device according to claim 1.
4. the acquisition unit includes a current sense amplifier installed on a power supply path to the amplification unit, and a peak hold circuit that detects a peak value of a value measured by the current sense amplifier, obtaining a value indicating the power from the detected peak value; 2. The electronic device according to claim 1.
5. the first threshold value and the second threshold value are values set based on at least one of a rated noise voltage, a maximum input voltage, and an instantaneous maximum input voltage of a predetermined circuit section; 2. The electronic device according to claim 1.
6. the input signal and the output signal are audio signals; the predetermined circuit unit is a speaker to which the audio signal output from the amplifier unit is input, 6. The electronic device according to claim 5.
7. a storage unit configured to store a plurality of types of the first patterns and the second patterns corresponding to the plurality of types of speakers, The at least one processor obtaining, from among the plurality of types of first patterns and second patterns, the first pattern and the second pattern corresponding to the type of the speaker to which the amplifier unit is output; controlling the waveform shaping unit using the acquired first pattern and second pattern; 7. The electronic device according to claim 6.
8. It is an electronic musical instrument having multiple keys. The electronic device according to claim 1 .
9. A computer of an electronic device including an amplifier that amplifies an input signal, an acquisition unit that acquires a value indicating power supplied to the amplifier, and a waveform shaping unit that shapes a waveform of an output signal output from the amplifier, when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has gone from being below a second threshold to being greater than a first threshold that is greater than the second threshold, the waveform shaping unit is controlled in a first pattern so that a clip value for the output signal is reduced; when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from being greater than the first threshold value to being less than the second threshold value, the waveform shaping unit is controlled in a second pattern so that a clip value for the output signal is increased; the first pattern is a pattern in which a clip value for the output signal decreases over time, the second pattern being a pattern in which a clip value for the output signal increases over time; method.
10. A computer of an electronic device including an amplifier that amplifies an input signal, an acquisition unit that acquires a value indicating power supplied to the amplifier, and a waveform shaping unit that shapes a waveform of an output signal output from the amplifier, when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has gone from being below a second threshold to being greater than a first threshold that is greater than the second threshold, the waveform shaping unit is controlled in a first pattern so that a clip value for the output signal is reduced; when it is detected that the value acquired by the acquisition unit is greater than a reference potential and that the value has changed from being greater than the first threshold value to being less than the second threshold value, the waveform shaping unit is controlled in a second pattern so that a clip value for the output signal is increased; the first pattern is a pattern in which a clip value for the output signal decreases over time, the second pattern being a pattern in which a clip value for the output signal increases over time; program.
Citation Information
Patent Citations
Keyboard musical instrument
JP2004264501A
Digital signal processing device and digital signal processing method
WO2011061830A1
