Sound production control device
The sound generation control device addresses harmonic distortion by using a combination of waveform processing units to limit amplitude and generate smooth sound data, enhancing sound quality and reducing noise in sound generation systems.
Patent Information
- Application Number
- PCT/JP2024/005367
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-21
- Filing Date
- 2024-02-15
- Publication Date
- 2024-09-26
AI Technical Summary
Existing sound generation systems face issues with harmonic distortion and abnormal noise due to simple waveform peak limitation, which restricts input/output signals below allowable levels, leading to inefficient sound production.
A sound generation control device that includes an excess determination unit, absolute value waveform generation unit, peak-holding waveform generation unit, gain curve generation unit, and smoothing processing unit to limit the amplitude of waveforms and suppress harmonic distortion by generating pronunciation data through a combination of delayed input waveforms and smooth gain curves.
The solution effectively limits the amplitude of waveforms to prevent harmonic distortion, ensuring smooth sound generation while maintaining the perceivability of notification sounds, reducing product size and cost without compromising auditory quality.
Smart Images

Figure JP2024005367_26092024_PF_FP
Abstract
Description
Sound control device CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is based on Japanese Patent Application No. 2023-44827, filed on March 21, 2023, the contents of which are incorporated herein by reference.
[0002] The present disclosure relates to a sound generation control device used to cause a sound generation body to generate sound.
[0003] For example, a vehicle approach notification device described in Patent Document 1 has been known for some time, and this vehicle approach notification device includes a function of generating sound data to be emitted by a sound source such as a speaker. The vehicle approach notification device described in Patent Document 1 is installed in automobiles such as hybrid automobiles and electric automobiles. For example, the vehicle approach notification device may mix an approach notification sound that notifies pedestrians around the automobile that the automobile is approaching when traveling at low speed, and a back-up warning sound that notifies pedestrians that the automobile is backing up, and emit these sounds simultaneously from a single sound source.
[0004] JP 2013-49312 A
[0005] A sound generation system (e.g., a vehicle approach warning device described in Patent Document 1) in which a sound generator generates sound based on sound generation data includes a digital-to-analog converter and a power amplifier that process sound signals input to a sound generator such as a speaker. The digital-to-analog converter and the power amplifier each have an allowable input / output (I / O) setting. The sound generator also has an allowable input / output (I / O) setting. Therefore, in the sound generation system, a sound generation control device that generates sound generation data must keep the I / O signals of the digital-to-analog converter, the power amplifier, and the sound generator below the allowable I / O and effectively utilize the allowable I / O.
[0006] In response to this problem, it is conceivable to suppress the input / output signals of an audio device to below the allowable input / output level by simply limiting the waveform peak. However, such a simple limitation of the waveform peak results in harmonic distortion caused by waveform breaks, which in turn generates abnormal noise. The inventors have found the above as a result of detailed investigations.
[0007] In view of the above, the present disclosure aims to provide a sound generation control device that can limit the amplitude of the waveform in sound generation data while suppressing abnormal sounds such as harmonic distortion caused by the amplitude limit of the waveform.
[0008] In order to achieve the above object, according to one aspect of the present disclosure, a sound generation control device is a sound generation control device that is included in a sound generation system in which a sound generator generates sound in accordance with a sound generation signal based on sound generation data representing a sound waveform, and that generates sound generation data, and that includes: an excess determination unit that acquires an input waveform that is a waveform indicating the relationship between time and level corresponding to the voltage of the sound generation signal and that is the basis of the sound generation data, and determines whether the input waveform includes an excess portion where the absolute value of the level exceeds a predetermined limiter threshold; an absolute value waveform generation unit that generates an absolute value waveform by converting the level in the input waveform to the absolute value of that level when the excess determination unit determines that the input waveform includes an excess portion; a peak hold waveform generation unit that generates a peak hold waveform that indicates the relationship between the level and input waveform time, which is time in the input waveform, based on the absolute value waveform; a gain curve generation unit that generates a gain curve that indicates the relationship between the gain obtained based on the level in the peak hold waveform and input waveform time; and a smoothing processing unit that performs a smoothing process to smooth the gain curve, thereby obtaining a smooth gain curve based on the gain curve. a sound generation data generation unit that generates sound generation data by multiplying a delayed input waveform, in which the input waveform is shifted by a predetermined waveform delay time toward the time plus side, which is the side on which the input waveform time elapses along the time axis, by a smooth gain curve, and the peak hold waveform forms a waveform shape obtained by extracting an outline formed on the higher level side of a waveform collection that is made up of an absolute value waveform, a peak hold section that is provided for each local maximum point of level in the absolute value waveform and extends linearly from that local maximum point to the time plus side while showing the same level as the local maximum point over a predetermined peak hold time, until it reaches the absolute value waveform, and a release section that is provided for each peak hold section that extends over the peak hold time, and moves from the time plus side end of the peak hold section to the side with a lower level as it approaches the time plus side, until it reaches the absolute value waveform, The gain of the gain curve is set to 1 in the range along the time axis where the level of the peak hold waveform is equal to or less than the limiter threshold, and is set to a value obtained from "Gn = Th / Lv" where Gn is the gain, Lv is the level, and Th is the limiter threshold, in the range along the time axis where the level of the peak hold waveform exceeds the limiter threshold;The smooth gain curve is set so that the gain delay time is shifted to the positive side of the gain curve when comparing peak portions where the gain becomes maximum or minimum, and the waveform delay time is equal to or greater than the gain delay time, and the peak hold time is equal to or greater than the waveform delay time.
[0009] In this way, sound generation data is generated based on the input waveform. At the same time, by multiplying the delayed input waveform by the smooth gain curve, it is possible to limit the amplitude of the waveform represented by the sound generation data to below the limiter threshold. Then, since the waveform of the amplitude-limited sound generation data is formed smoothly, it is possible to suppress abnormal sounds such as harmonic distortion caused by the amplitude limit.
[0010] In addition, in each section of the application documents, each element may be assigned a reference number in parentheses. In this case, the reference number merely indicates an example of the correspondence between the element and the specific configuration described in the embodiment described below. Therefore, the present disclosure is not limited in any way by the description of the reference number.
[0011] 1 is a block diagram showing a schematic configuration of a sound generation system in a first embodiment; FIG. 2 is a flowchart showing a control process executed by a limiter unit included in the sound generation system of the first embodiment; FIG. 3 is a diagram showing an input waveform input to a limiter unit, an absolute value waveform and a peak hold waveform, and a gain curve, with the time axes of each orthogonal coordinate system being aligned with each other; FIG. 4 is a diagram showing a waveform collection that is the basis of the peak hold waveform and an absolute value waveform, with the time axes of each orthogonal coordinate system being aligned with each other; FIG. 5 is a diagram showing a gain curve, with the time axes of each orthogonal coordinate system being aligned with each other, and a smooth gain curve obtained by performing a smoothing process on the gain curve, with the time axes of each orthogonal coordinate system being aligned with each other; FIG. 6 is a diagram showing a smooth gain curve, with a delayed input waveform, and a waveform represented by sound generation data, with the time axes of each orthogonal coordinate system being aligned with each other;
[0012] Hereinafter, embodiments will be described with reference to the drawings. In the following embodiments, including other embodiments described later, identical or equivalent parts are designated by the same reference numerals in the drawings.
[0013] 1 is a vehicle approach notification device mounted on, for example, a hybrid vehicle or an electric vehicle. For example, the sound system 8 is electrically connected to a sound source 80 such as a speaker or a buzzer. The sound source 8 outputs various alarm sounds from the sound source 80, such as a vehicle approach notification sound that notifies those around that a vehicle having the sound system 8 is approaching, and other alarm sounds.
[0014] The sound production system 8 includes a microcomputer 10, a digital-to-analog converter 12, and a power amplifier 14. In the description of this embodiment, the digital-to-analog converter 12 is also referred to as a DAC 12, and the power amplifier 14 is also referred to as an AMP 14.
[0015] The microcomputer 10 outputs the sound generation data Dsd generated by the microcomputer 10 to the DAC 12. The DAC 12 converts the sound generation data Dsd input from the microcomputer 10 into a sound generation signal Ssa, which is an analog signal, and outputs the sound generation signal Ssa to the AMP 14. Note that the sound generation data Dsd, output waveform data DW described below, first synthesized waveform data D1m, and second synthesized waveform data D2m are digital data representing sound waveforms (e.g., PCM waveforms).
[0016] Based on the voltage applied from a constant voltage source (not shown), the AMP 14 passes a current corresponding to the sound generation signal Ssa input from the DAC 12 to the sound generator 80. The sound generator 80 generates sound in accordance with the current supplied from the AMP 14. In other words, the sound generator 80 generates sound in accordance with the sound generation signal Ssa based on the sound generation data Dsd. In this embodiment, the circuit gain of the acoustic circuit between the microcomputer 10 and the sound generator 80, i.e., the circuit gain of the acoustic circuit composed of the DAC 12 and the AMP 14, is set to be constant, for example.
[0017] The microcomputer 10 is, in other words, an electronic control device, configured as an in-vehicle microcomputer equipped with a CPU, RAM, ROM, non-volatile rewritable memory, and the like (not shown). That is, the microcomputer 10 reads and executes a computer program stored in the ROM or non-volatile rewritable memory, which are non-transitory physical recording media. Execution of this computer program results in the execution of a method corresponding to the computer program. In other words, the microcomputer 10 executes various control processes, such as the control process shown in FIG. 2 , executed by a limiter unit 26 (described later) included in the microcomputer 10, in accordance with the computer program.
[0018] As shown in FIG. 1, the microcomputer 10 functionally comprises a plurality of sound source control units 16, a mixing unit 22, an equalizer unit 24, and a limiter unit 26.
[0019] Each of the plurality of sound source control units 16 selects one or more pieces of sound source data from a plurality of pieces of sound source data pre-stored in a storage medium such as a ROM in accordance with the vehicle condition signal. Then, the sound source control unit 16 performs pitch control and volume control on each selected piece of sound source data to generate output waveform data DW based on each selected piece of sound source data, and outputs the output waveform data DW to the mixing unit 22. The vehicle condition signal is a signal that indicates the state of the vehicle in which the sound generation system 8 is installed (e.g., the vehicle's running status, the amount of fuel remaining, the conditions around the vehicle, etc.), and is input to the microcomputer 10 from, for example, various sensors installed in the vehicle.
[0020] Among the plurality of sound source control units 16, the sound source control unit 16 that selects sound source data to be reproduced as, for example, a vehicle approach warning sound performs pitch control and volume control on the selected sound source data. On the other hand, among the sound source control units 16, the sound source control unit 16 that selects sound source data to be reproduced as, for example, a warning sound other than a vehicle approach warning sound performs volume control on the selected sound source data without performing pitch control.
[0021] The mixing unit 22 mixes the multiple pieces of output waveform data DW input to the mixing unit 22 from the multiple sound source control units 16. Then, the mixing unit 22 outputs the first synthesized waveform data D1m, which is the waveform data after the mixing, to the equalizer unit 24. In other words, the mixing unit 22 outputs the first synthesized waveform data D1m synthesized based on the multiple pieces of output waveform data DW to the equalizer unit 24.
[0022] The equalizer unit 24 generates second synthesized waveform data D2m based on the first synthesized waveform data D1m by correcting the acoustic characteristics of the first synthesized waveform data D1m, and outputs the second synthesized waveform data D2m to the limiter unit 26. For example, the filter characteristics of the equalizer unit 24 are determined by providing a filter type, center frequency, gain, and filter width. The degree of change of the second synthesized waveform data D2m relative to the first synthesized waveform data D1m varies greatly depending on the combination of the first synthesized waveform data D1m and the filter characteristics of the equalizer unit 24, making it difficult to predict the amplitude peak of the digital waveform represented by the second synthesized waveform data D2m.
[0023] The filter type is selected by a known technique, for example, and examples of the filter type that can be selected include a low-pass filter, a high-pass filter, a band-pass filter, a notch filter, a low-shelf filter, a high-shelf filter, and a peaking filter.
[0024] The limiter section 26 limits the amplitude of the digital waveform represented by the sound generation data Dsd to a predetermined limiter threshold Th or less, and outputs the amplitude-limited sound generation data Dsd to the DAC 12. The limiter threshold Th corresponds to the allowable input of the sound generation unit 80 and the AMP 14 and the full range of the DAC 12. For example, the limiter threshold Th is experimentally set in advance to be as large a value as possible within a range that can suppress the voltage of the input signal to each of the sound generation unit 80 and the AMP 14 to be equal to or less than the allowable input, and that can suppress the waveform amplitude of the sound generation data Dsd input to the DAC 12 to be equal to or less than the full range of the DAC 12.
[0025] In order to limit the amplitude of the sound generation data Dsd in this way, the limiter unit 26, before outputting the sound generation data Dsd to the DAC 12, reads in advance the second synthesized waveform data D2m input from the equalizer unit 24 and executes the control process shown in Fig. 2. This control process in Fig. 2 is executed repeatedly, for example, when the second synthesized waveform data D2m is input to the limiter unit 26. The limiter unit 26 corresponds to the sound generation control device of the present disclosure.
[0026] 2, the limiter unit 26 first acquires the input waveform Win to be input to the limiter unit 26 in step S01. This input waveform Win is a digital waveform represented by the second synthesized waveform data D2m input to the limiter unit 26 from the equalizer unit 24, and is the basis of the sound generation data Dsd output from the limiter unit 26 to the DAC 12. In addition to the input waveform Win, the waveforms and curves generated based on the input waveform Win in steps S03 to S09, which will be described later, are also digital waveforms.
[0027] 3A, the input waveform Win is a waveform that shows the relationship between level Lv and time Tm. The level Lv corresponds to the voltage of the sound signal Ssa, which is an analog signal, and the amplitude of the level Lv corresponds to the voltage amplitude of the sound signal Ssa. In the description of this embodiment, the time Tm on the horizontal axis of the input waveform Win is sometimes referred to as the input waveform time Tm. After step S01 in FIG. 2, the process proceeds to step S02.
[0028] In step S02, as shown in Fig. 3A, the limiter unit 26 determines whether the input waveform Win includes an excess portion EX where the absolute value of the level Lv exceeds the limiter threshold Th. The input waveform Win shown in Fig. 3A includes three excess portions EX.
[0029] 2, if it is determined that the input waveform Win includes the excess portion EX, the process proceeds to step S03. On the other hand, if it is determined that the input waveform Win does not include the excess portion EX, the process proceeds to step S09.
[0030] In step S03, as shown in Fig. 3B, the limiter unit 26 generates an absolute value waveform Wab by converting the level Lv on the vertical axis of the input waveform Win into the absolute value of that level Lv. In other words, the absolute value waveform Wab is a waveform that combines a waveform obtained by inverting the negative portions of the input waveform Win where the level Lv is negative to the positive side of the level Lv with the zero position of the level Lv as the reference, and a waveform of the positive portions of the input waveform Win where the level Lv is positive. After step S03 in Fig. 2, the process proceeds to step S04.
[0031] In step S04, as shown in FIGS. 3(b) and 4, the limiter section 26 generates a peak hold waveform Wp that indicates the relationship between the level Lv and the input waveform time Tm based on the absolute value waveform Wab.
[0032] In the description of this embodiment, in a Cartesian coordinate system with the level Lv on the vertical axis and the input waveform time Tm on the horizontal axis, the side of the input waveform time Tm on the time axis Dt, which is the horizontal axis, where the input waveform time Tm elapses is referred to as the positive time side Dtp, and the side of the input waveform time Tm going back is referred to as the negative time side Dtm. Also, in this Cartesian coordinate system, the side of the high level Lv on the level axis DL, which is the vertical axis, is referred to as the high level side DLp, and the side of the low level Lv is referred to as the low level side DLm. Just to be clear, the absolute value waveform Wab displayed in FIG. 3B is the same as the absolute value waveform Wab displayed in FIG. 4.
[0033] Specifically, to obtain the peak hold waveform Wp, the limiter section 26 first generates a waveform set 30 consisting of an absolute value waveform Wab, one or more peak hold sections 32, and one or more release sections 33, as shown in FIG. 4.
[0034] The peak holding units 32 included in the waveform collection 30 are provided for each maximum point 28 of level Lv in the absolute value waveform Wab. In other words, the number of peak holding units 32 provided is the same as the number of maximum points 28 of level Lv that the absolute value waveform Wab has.
[0035] The peak holding portion 32 extends linearly in parallel to the time axis direction Dt from the local maximum point 28 of the level Lv as its starting point to the positive time side Dtp. More specifically, the peak holding portion 32 extends linearly from the local maximum point 28 as its starting point to the positive time side Dtp for a predetermined peak hold time Ht, until it reaches the absolute value waveform Wab while showing the same level Lv as the local maximum point 28.
[0036] For example, if the peak hold portion 32 reaches any point on the absolute value waveform Wab before extending from the local maximum point 28 and reaching the length spanning the peak hold time Ht, the length of the peak hold portion 32 will be less than the length spanning the peak hold time Ht. On the other hand, if the peak hold portion 32 extends from the local maximum point 28 and reaches the length spanning the peak hold time Ht without intersecting with the absolute value waveform Wab, the length of the peak hold portion 32 will be the length spanning the peak hold time Ht. The peak hold time Ht is, for example, a constant value, and is set in advance to as short a time as possible within a range that allows the amplitude of the waveform represented by the sound generation data Dsd to be limited to or below the limiter threshold Th.
[0037] A release section 33 included in the waveform set 30 is provided for each peak holding section 32 that extends over the peak hold time Ht. That is, a release section 33 is provided for each peak holding section 32 whose length in the time axis direction Dt reaches the length spanning the peak hold time Ht, but is not provided for each peak holding section 32 whose length in the time axis direction Dt is less than the length spanning the peak hold time Ht. Therefore, the same number of release sections 33 are provided as the number of peak holding sections 32 whose length in the time axis direction Dt reaches the length spanning the peak hold time Ht.
[0038] The release portion 33 begins at an extension end 32a, which is the end of the positive time side Dtp of the peak holding portion 32, which has a length spanning the peak holding time Ht, and extends from the extension end 32a toward the low-level side DLm as far as the positive time side Dtp until it reaches a point on the absolute value waveform Wab. The gradient of the release portion 33 in the orthogonal coordinate system of the level Lv and the input waveform time Tm may be constant, or may become steeper the further it is from the extension end 32a, which is the starting point. The gradient of the release portion 33 is preset to avoid any unnaturalness in pronunciation caused by limiting the amplitude of the waveform represented by the sound generation data Dsd to below the limiter threshold Th.
[0039] As shown in Figures 3(b) and 4, the limiter unit 26 extracts a high-level side contour 301, which is the contour formed on the high-level side DLp of the waveform collection 30 formed as described above, and sets the shape of the extracted high-level side contour 301 as the waveform shape of the peak hold waveform Wp. In other words, the limiter unit 26 determines the peak hold waveform Wp so that the waveform shape of the peak hold waveform Wp is the same as the shape of the high-level side contour 301 of the waveform collection 30. In short, the peak hold waveform Wp generated in step S04 is determined to have the same waveform shape as the high-level side contour 301 of the waveform collection 30. The time width occupied by the release portion 33 of the peak hold waveform Wp in the time axis direction Dt is referred to as the release time Rt. After step S04 in Figure 2, the process proceeds to step S05.
[0040] In step S05, as shown in FIG. 3(c) and FIG. 5(a), the limiter unit 26 generates a gain curve Wgn that indicates the relationship between the gain Gn obtained based on the level Lv of the peak hold waveform Wp and the input waveform time Tm.
[0041] In the description of this embodiment, in an orthogonal coordinate system with the gain Gn on the vertical axis and the input waveform time Tm on the horizontal axis, the side of the vertical gain axis Dgn where the gain Gn is large is referred to as the large gain side Dgnp, and the side of the vertical gain axis Dgn where the gain Gn is small is referred to as the small gain side Dgnm. Furthermore, in the orthogonal coordinate system of the gain Gn and the input waveform time Tm, the orientation of the time axis direction Dt is indicated by the positive time side Dtp and the negative time side Dtm, similar to the orthogonal coordinate system of the level Lv and the input waveform time Tm described above. Furthermore, in the description of this embodiment and in the figures, the gain Gn may be displayed either as a raw value or as a percentage.
[0042] Specifically, the gain Gn of the gain curve Wgn is set to 1 in the ranges R1t, R2t in the time axis direction Dt (i.e., the ranges R1t, R2t within the threshold) where the level Lv in the peak hold waveform Wp is equal to or less than the limiter threshold Th.
[0043] On the other hand, the gain Gn of the gain curve Wgn is set to a value obtained from the following formula F1 in ranges R3t, R4t in the time axis direction Dt where the level Lv of the peak hold waveform Wp exceeds the limiter threshold Th (i.e., over-threshold ranges R3t, R4t). The over-threshold ranges R3t, R4t are the ranges obtained by excluding the under-threshold ranges R1t, R2t from the width of the peak hold waveform Wp in the time axis direction Dt. In the following formula F1, Gn is the gain Gn of the gain curve Wgn, Th is the limiter threshold Th, and Lv is the level Lv of the peak hold waveform Wp. After step S05 in FIG. 2, the process proceeds to step S06. Gn = Th / Lv (F1)
[0044] 5A and 5B, the limiter unit 26 performs a smoothing process to smooth the gain curve Wgn, thereby obtaining a smoothed gain curve Wsgn based on the gain curve Wgn. For example, the smoothing process is performed by passing the gain curve Wgn through a double moving average filter, a Bessel filter, or a Thiran low-pass filter.
[0045] Just to confirm, the gain curve Wgn displayed in Fig. 3(c) is the same as the gain curve Wgn displayed in Fig. 5(a), and the smooth gain curve Wsgn displayed in Fig. 6(a) is the same as the smooth gain curve Wsgn displayed in Fig. 5(b).
[0046] More specifically, the smooth gain curve Wsgn obtained in step S06 is set so as to be shifted by a gain delay time St on the positive time side Dtp when comparing the peak portions 36a, 37a where the gain Gn becomes maximum or minimum with respect to the gain curve Wgn. The gain delay time St is a constant value.
[0047] For example, in the time axis direction Dt, a center time T1 of one peak portion 36a included in the gain curve Wgn is compared with a center time T2 of a peak portion 37a of the smooth gain curve Wsgn that corresponds to the peak portion 36a of the gain curve Wgn. In this case, the center time T2 of the peak portion 37a of the smooth gain curve Wsgn is shifted by the gain delay time St toward the positive time side Dtp from the center time T1 of the peak portion 36a of the gain curve Wgn. This also applies when other peak portions 36a, 37a are compared between the gain curve Wgn and the smooth gain curve Wsgn. After step S06 in FIG. 2, the process proceeds to step S07.
[0048] In step S07, as shown in FIG. 6B, the limiter unit 26 generates a delayed input waveform Wind by shifting the input waveform Win toward the positive time side Dtp in the time axis direction Dt by a predetermined waveform delay time D. The waveform delay time D is, for example, a constant value. In other words, the delayed input waveform Wind is a waveform obtained by translating the input waveform Win toward the positive time side Dtp by the waveform delay time D.
[0049] The magnitude relationship between the gain delay time St, waveform delay time D, and peak hold time Ht is "St≦D≦Ht." For example, in this embodiment, the gain delay time St, waveform delay time D, and peak hold time Ht are "St=D=Ht=1 msec." After step S07 in FIG. 2, the process proceeds to step S08.
[0050] 6(a) to 6(c), the limiter unit 26 generates sound generation data Dsd by multiplying the delayed input waveform Wind by the smooth gain curve Wsgn. Generating the sound generation data Dsd by multiplying the delayed input waveform Wind by the smooth gain curve Wsgn means calculating the product of the level Lv of the delayed input waveform Wind and the gain Gn of the smooth gain curve Wsgn, and setting this calculated product as the level Lv of the waveform Wsd represented by the sound generation data Dsd. The limiter unit 26 outputs the sound generation data Dsd generated in step S08 to the DAC 12.
[0051] By performing the processes of steps S03 to S08 described above, the limiter unit 26 can obtain sound generation data Dsd in which distortion of the waveform Wsd is suppressed by continuously adjusting the gain Gn while keeping the amplitude of the waveform Wsd represented by the sound generation data Dsd below the limiter threshold Th. However, the waveform Wsd represented by the sound generation data Dsd output by the limiter unit 26 is delayed in time by the waveform delay time D with respect to the input waveform Win.
[0052] In step S09 of FIG. 2, the limiter unit 26 outputs the sound generation data Dsd at the level Lv of the waveform Wsd represented by the sound generation data Dsd without suppressing the level Lv of the input waveform Win acquired in step S01.
[0053] 2 constitutes a functional unit that realizes the respective function. Specifically, steps S01 and S02 correspond to the excess determination unit, step S03 corresponds to the absolute value waveform generation unit, step S04 corresponds to the peak hold waveform generation unit, and step S05 corresponds to the gain curve generation unit. Also, step S06 corresponds to the smoothing processing unit, steps S07 and S08 correspond to the sound generation unit, and step S09 corresponds to the level non-suppression unit. The limiter unit 26 includes the excess determination unit, absolute value waveform generation unit, peak hold waveform generation unit, gain curve generation unit, smoothing processing unit, sound generation unit, and level non-suppression unit.
[0054] As described above, according to this embodiment, as shown in Figures 3 and 6, when the input waveform Win includes an excess portion EX of the level Lv, the limiter section 26 generates the sound generation data Dsd by multiplying the delayed input waveform Wind by the smooth gain curve Wsgn.
[0055] Therefore, the sound generation data Dsd is generated based on the input waveform Win. At the same time, by multiplying the delayed input waveform Wind by the smooth gain curve Wsgn, it is possible to limit the amplitude of the waveform Wsd (see FIG. 6(c)) represented by the sound generation data Dsd to be equal to or less than the limiter threshold Th. Then, since the waveform Wsd of the amplitude-limited sound generation data Dsd is formed smoothly, it is possible to suppress abnormal sounds such as harmonic distortion caused by the amplitude limit.
[0056] In particular, since the input waveform Win input to the limiter unit 26 is a waveform that has been waveform synthesized by the mixing unit 22 in Fig. 1 and has had its frequency characteristics corrected by the equalizer unit 24, it is difficult to predict the excess portion EX (see Fig. 3(a)) of the level Lv contained in the input waveform Win. Even in such a case, the limiter unit 26 of this embodiment can generate sound generation data Dsd that suppresses abnormal sounds such as harmonic distortion while keeping the amplitude of the waveform Wsd below the limiter threshold Th, as described above.
[0057] Furthermore, in this embodiment, to prevent a drop in sound pressure, the time period for limiting the amplitude of the waveform Wsd of the sound data Dsd, i.e., the sum of the gain delay time St, peak hold time Ht, and release time Rt, should be set to a value that corresponds to the human sensitivity to volume changes, for example, a value that is sufficiently smaller than the 125 msec time constant of the Fast characteristic. For example, the sum of the gain delay time St, peak hold time Ht, and release time Rt should be set to 20 msec or less. In this way, the amplitude of only the portion of the input waveform Win that exceeds the level Lv, near EX, is limited for a short period of time, thereby preventing a drop in audible sound pressure, i.e., a decrease in recognizability.
[0058] By configuring the system to execute the control processing shown in Figure 2, it is possible to provide a sound generation system 8 that combines the freedom of simultaneous sound generation, the freedom of correction, and the reduction of product size and cost without compromising the recognizability of the alarm sound.
[0059] Furthermore, according to this embodiment, when the input waveform Win does not include the excess portion EX of the level Lv, the limiter unit 26 outputs the sound generation data Dsd without suppressing the level Lv of the waveform Wsd represented by the sound generation data Dsd relative to the level Lv of the input waveform Win. Therefore, the amplitude of the waveform Wsd represented by the sound generation data Dsd is not unnecessarily suppressed.
[0060] (Other Embodiments) (1) In the above-described embodiment, the sound output system 8 is, for example, a vehicle approaching notification device mounted on an automobile, but this is just one example. The sound output system 8 does not have to be a vehicle approaching notification device, and various uses of the sound output system 8 are envisioned. Furthermore, the sound output system 8 does not have to be mounted on an automobile.
[0061] (2) In the above embodiment, in step S04 of Fig. 2, limiter unit 26 generates peak hold waveform Wp after generating waveform collection 30 of Fig. 4, but this is just one example. As a result, it is sufficient that peak hold waveform Wp has the same waveform shape as high-level side contour 301 (see Fig. 3(b)) of waveform collection 30, and limiter unit 26 does not need to generate waveform collection 30.
[0062] (3) In the above embodiment, the processes executed by the microcomputer 10, such as the processes of the steps shown in the flowchart of FIG. 2, are implemented by computer programs, but they may also be implemented by hardware.
[0063] (4) Note that the present disclosure is not limited to the above-described embodiment and can be implemented in various modifications. Furthermore, it goes without saying that the elements constituting the above-described embodiment are not necessarily essential unless they are specifically stated as essential or are considered to be clearly essential in principle.
[0064] Furthermore, in the above embodiments, when numerical values such as the number, values, amounts, and ranges of components of the embodiments are mentioned, they are not limited to the specific numbers, except when it is particularly clearly stated that they are essential or when they are clearly limited to a specific number in principle, etc. Furthermore, in the above embodiments, when the materials, shapes, positional relationships, etc. of components are mentioned, they are not limited to the materials, shapes, positional relationships, etc., except when it is particularly clearly stated or when they are clearly limited to a specific material, shape, positional relationship, etc. in principle, etc.
Claims
1. A sound generation control device (26) included in a sound generation system (8) in which a sound generator (80) generates sound in accordance with a sound generation signal (Ssa) based on sound generation data (Dsd) representing a waveform of a sound, the sound generation control device (26) generating the sound generation data, comprising: an excess determination unit (S01, S02) which acquires an input waveform (Win) on which the sound generation data is based, the input waveform being a waveform showing the relationship between a level (Lv) corresponding to the voltage of the sound generation signal and time (Tm), and determines whether the input waveform includes an excess portion (EX) in which the absolute value of the level exceeds a predetermined limiter threshold value (Th); an absolute value waveform generation unit (S03) which generates an absolute value waveform (Wab) obtained by converting the level in the input waveform to the absolute value of the level when the excess determination unit determines that the input waveform includes the excess portion; and a peak hold waveform generation unit (S04) which generates a peak hold waveform (Wp) based on the absolute value waveform, the peak hold waveform showing the relationship between the level and input waveform time (Tm), which is the time in the input waveform. a gain curve generating unit (S05) for generating a gain curve (Wgn) showing the relationship between the gain (Gn) obtained based on the level in the peak hold waveform and the input waveform time; a smoothing processing unit (S06) for performing a smoothing process to smooth the gain curve, thereby obtaining a smooth gain curve (Wsgn) based on the gain curve; and a sound generation data generating unit (S07, S08) for generating the sound generation data by multiplying a delayed input waveform (Wind) in which the input waveform is shifted by a predetermined waveform delay time (D) toward the time plus side (Dtp) on the time axis direction (Dt) on which the input waveform time elapses, by the smooth gain curve,The peak hold waveform forms a waveform shape obtained by extracting an outline (301) formed on the higher level side (DLp) of a waveform collection (30) including the absolute value waveform, a peak hold section (32) provided for each maximum point (28) of the level in the absolute value waveform, and extending linearly from the maximum point to the positive time side while showing the same level as the maximum point over a predetermined peak hold time (Ht) until it reaches the absolute value waveform, and a release section (33) provided for each peak hold section extending over the peak hold time, proceeding from an end (32a) on the positive time side of the peak hold section toward the lower level side (DLm) as it approaches the positive time side, until it reaches the absolute value waveform, a sound generation control device in which the gain of the gain curve is set to 1 in the time axis range (R1t, R2t) where the level of the peak hold waveform is below the limiter threshold, and in the time axis range (R3t, R4t) where the level of the peak hold waveform exceeds the limiter threshold, the gain is set to a value obtained from "Gn = Th / Lv", where the gain is Gn, the level is Lv, and the limiter threshold is Th; the smooth gain curve is set such that it is shifted by a gain delay time (St) to the positive time side when comparing peak portions (36a, 37a) where the gain is maximum or minimum, with respect to the gain curve; the waveform delay time is equal to or greater than the gain delay time, and the peak hold time is equal to or greater than the waveform delay time.
2. The pronunciation control device as described in claim 1, further comprising a level non-suppression unit (S09) which, when the excess determination unit determines that the input waveform does not contain the excess portion, outputs the pronunciation data without suppressing the level of the waveform represented by the pronunciation data relative to the level of the input waveform.
Citation Information
Patent Citations
Vehicle-approach notification device
JP2013049312A
Automatic dynamic range control circuit
JP1998173455A
Automatic gain control circuit
WO1997028599A1
Acoustic processing device
WO2010005034A1
