KR100735368B1 - Device for adjusting audio output gain and method thereof - Google Patents

Device for adjusting audio output gain and method thereof Download PDF

Info

Publication number
KR100735368B1
KR100735368B1 KR1020010050875A KR20010050875A KR100735368B1 KR 100735368 B1 KR100735368 B1 KR 100735368B1 KR 1020010050875 A KR1020010050875 A KR 1020010050875A KR 20010050875 A KR20010050875 A KR 20010050875A KR 100735368 B1 KR100735368 B1 KR 100735368B1
Authority
KR
South Korea
Prior art keywords
music file
value
output gain
reference value
audio
Prior art date
Application number
KR1020010050875A
Other languages
Korean (ko)
Other versions
KR20030017839A (en
Inventor
김학열
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020010050875A priority Critical patent/KR100735368B1/en
Publication of KR20030017839A publication Critical patent/KR20030017839A/en
Application granted granted Critical
Publication of KR100735368B1 publication Critical patent/KR100735368B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers without distortion of the input signal
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/3005Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G7/00Volume compression or expansion in amplifiers
    • H03G7/007Volume compression or expansion in amplifiers of digital or coded signals

Abstract

본 발명은 멜로디를 포함한 각종 음악 파일 재생에 따른 오디오 출력 이득을 곡별로 적합하게 자동으로 조정할 수 있도록 한다. 이를 위한 본 발명은 음악 파일 재생에 따른 오디오를 스피커를 통해 출력하는 장치에 있어서, 음악 파일의 정보에 따른 음악을 합성하여 그에 따른 오디오신호를 출력하는 음악 합성기; 상기 음악 합성기로부터 출력되는 오디오신호를 증폭하여 상기 스피커에 인가하는 오디오 증폭기와; 상기 스피커에 인가되는 오디오신호의 레벨을 검출하는 오디오 출력 레벨 검출기와; 상기 음악 합성기와 상기 오디오 증폭기 중 적어도 어느 하나의 출력 이득을 상기 음악 파일에 미리 설정된 출력 이득으로 설정하여 상기 음악 파일을 재생시키며, 상기 재생되는 음악 파일이 조정이 필요한 음악 파일인지 확인하여 상기 출력 이득의 조정이 필요한 음악 파일이면, 일정시간 동안 검출되는 상기 오디오 신호 레벨의 최대값을 검출값으로 저장하고, 상기 검출값과 기준값의 차이에 대응되게 상기 출력 이득을 조정하여 재설정하는 제어부를 포함하는 것을 특징으로 한다.The present invention enables to automatically adjust the audio output gain according to the reproduction of various music files including melody appropriately for each song. According to an aspect of the present invention, there is provided an apparatus for outputting audio through a speaker according to a music file, comprising: a music synthesizer for synthesizing music according to information of a music file and outputting an audio signal according thereto; An audio amplifier amplifying the audio signal output from the music synthesizer and applying the amplified audio signal to the speaker; An audio output level detector for detecting a level of an audio signal applied to the speaker; Set the output gain of at least one of the music synthesizer and the audio amplifier to a preset output gain for the music file to play the music file, and determine whether the played music file is a music file that requires adjustment and the output gain. And a control unit for storing a maximum value of the audio signal level detected for a predetermined time as a detection value and adjusting and resetting the output gain to correspond to a difference between the detected value and a reference value. It features.

음악 파일, 멜로디, 오디오 출력 이득 조정.Adjust music file, melody, and audio output gains.

Description

오디오 출력 이득 조정장치 및 그 방법{DEVICE FOR ADJUSTING AUDIO OUTPUT GAIN AND METHOD THEREOF} Audio output gain adjuster and method thereof {DEVICE FOR ADJUSTING AUDIO OUTPUT GAIN AND METHOD THEREOF}             

도 1은 통상적인 이동 전화기의 멜로디 출력 구성도,1 is a configuration diagram of the melody output of a conventional mobile phone;

도 2는 본 발명의 실시예에 따른 오디오 출력 이득 조정장치의 블록구성도,2 is a block diagram of an audio output gain adjusting apparatus according to an embodiment of the present invention;

도 3은 본 발명의 실시예에 따른 처리 흐름도.
3 is a process flow diagram in accordance with an embodiment of the present invention.

본 발명은 음악 파일을 재생하는 장치에 관한 것으로, 특히 외부로 부터 다운로드(download)받은 음악 파일을 재생하여 그에 따른 오디오를 스피커로 출력하는 장치에 관한 것이다.The present invention relates to an apparatus for playing a music file, and more particularly, to an apparatus for playing a music file downloaded from the outside and outputting audio according to the speaker.

최근에 휴대용 단말기 중에는 MP3(MPEG-1 Layer 3) 플레이어를 내장함으로써 사용자가 MP3 포맷의 음악 파일을 재생하여 들을 수 있는 휴대용 단말기가 시판 및 사용되고 있다. 이와 같이 MP3 플레이어를 구비한 휴대용 단말기에 있어서 MP3 포맷의 음악 파일은 PC(Personal Computer)와 같은 외부장치로 부터 다운로드(download)받아 휴대용 단말기에 내장된 MP3 플레이어의 메모리에 저장된다. 이와 같이 저장된 음악 파일이 MP3 플레이어에 의해 재생되면 그에 따른 오디오는 스피커를 통해 출력된다.Recently, portable terminals have been commercially available and used in which a user can play and listen to MP3 format music files by embedding an MP-1 (MPEG-1 Layer 3) player. As described above, in a portable terminal having an MP3 player, music files in the MP3 format are downloaded from an external device such as a personal computer (PC) and stored in the memory of the MP3 player embedded in the portable terminal. When the music file stored as described above is played by the MP3 player, audio corresponding thereto is output through the speaker.

한편 휴대용 전화기의 기능이 다양화되면서 4-폴리(poly) 또는 16-폴리 멜로디(melody)를 벨소리로 사용하는 추세가 일반화되고 있다. 이러한 멜로디를 재생하여 출력하기 위해서는 예전에 벨소리를 출력하는데 사용되어 왔었던 부저(buzzer) 대신에 스피커를 사용할 수 밖에 없다. 즉, 도 1에 보인 바와 같이 CPU(Central Processing Unit)(100)의 제어에 의해 멜로디 합성기(synthesizer)(102)에서 멜로디 파일의 정보에 따른 멜로디를 합성하여 그에 따른 오디오신호를 출력하며, 멜로디 합성기(102)로 부터 출력되는 오디오신호는 오디오 증폭기(104)에 의해 증폭된 후 스피커(106)를 통해 출력된다.Meanwhile, as the functions of portable telephones are diversified, the trend of using 4-poly or 16-poly melody as a ring tone is becoming common. In order to play and output such melodies, a speaker may be used instead of a buzzer that has been used to output a ringtone. That is, as shown in FIG. 1, the melody synthesizer 102 synthesizes the melody according to the information of the melody file under the control of the central processing unit (CPU) 100, and outputs an audio signal according to the melody synthesizer. The audio signal output from the 102 is amplified by the audio amplifier 104 and then output through the speaker 106.

상기한 바와 같은 멜로디는 휴대용 전화기의 제조업체에 의해 휴대용 전화기에 내장되기도 하지만 이동전화서비스 사업자나 벨소리 다운로드 사업자의 벨소리 다운로드 서비스를 통해 다운로드받거나 사용자 자신이 멜로디를 만들어서 사용할 수 있다. 이와 같이 사용되는 멜로디들 중에 휴대용 전화기에 내장된 멜로디는 휴대용 전화기 제조업체에서 스피커(106)의 정격 출력에 맞춰, 멜로디 합성기(102) 및 오디오 증폭기(104)를 조정하여 전체적인 출력을 조정하고, 각각의 곡을 만들 때 소프트웨어적으로 볼륨(volume)을 조정하여 최종 출력을 결정하게 된다.
Melody as described above may be embedded in the portable telephone by the manufacturer of the portable telephone, but may be downloaded through a ringtone download service of a mobile phone service provider or a ringtone download operator, or the user may make and use a melody. Among the melodies used in this way, the melody built into the portable telephone is adjusted by the portable telephone manufacturer to adjust the overall output by adjusting the melody synthesizer 102 and the audio amplifier 104 to the rated output of the loudspeaker 106. When you create a song, the software will adjust the volume to determine the final output.

상기한 바와 같이 휴대용 전화기에 내장된 멜로디는 휴대용 전화기 제조업체에서 스피커의 정격 출력에 맞춰 하드웨어 및 소프트웨어적으로 정확히 조정하여만 하였었다. 또한 사용자가 추가로 다운로드받아 사용하는 멜로디는 어떻게 만들었는가에 따라 실제 휴대용 전화기에 적용했을 때 음이 너무 작거나, 반대로 너무 클 수도 있는 문제가 발생한다. 또한 스피커의 경우 부품 특성상 정격보다 작은 신호를 출력할 때는 문제가 되지 않지만 큰 신호가 출력될 경우 스피커가 손상될 가능성이 많다. 이러함에도 불구하고 사용자가 다운로드받아 사용하는 멜로디에 대하여는 오디오 출력 이득(gain)을 제어할 방법이 없다. 또한 멜로디 합성기와 오디오 증폭기의 전원을 배터리 전원을 사용할 경우에는 배터리의 충전 정도에 따라 오디오 출력 이득이 달라질 수 있다. As mentioned above, the melody embedded in the mobile phone had only been accurately adjusted by the mobile phone manufacturer in hardware and software to match the speaker's rated power. In addition, depending on how the user created and downloaded additional melodies, there is a problem that the sound may be too small or too loud when applied to a real mobile phone. In addition, the speaker is not a problem when outputting a signal smaller than the rating due to the characteristics of components, but if a large signal is output, the speaker is likely to be damaged. Despite this, there is no way to control the audio output gain for the melody downloaded and used by the user. Also, when the battery power is used for the melody synthesizer and the audio amplifier, the audio output gain may vary depending on the battery charge level.

이러한 문제는 상기한 바와 같이 음악 파일을 다운로드받아 재생하여 그에 따른 오디오를 스피커를 통해 출력하게 되는 MP3 플레이어를 내장한 휴대용 단말기에서도 마찬가지로 발생한다.This problem also occurs in a portable terminal with a built-in MP3 player that downloads and plays music files and outputs audio through the speaker as described above.

한편 스피커의 손상을 방지하기 위해 AGC(Automatic Gain Control)를 채용하여 오디오 출력 레벨을 일정하게 조정하는 것을 고려할 수도 있을 것이다. 그러나 멜로디를 포함한 각종 음악 파일은 주파수로서 음 높이를 제어하고 이득으로서 음 크기를 제어하는데, 이에따라 곡별로 일정한 음 크기가 유지되는 것이 아니라 악기 종류와 강약에 따라 이득이 변동된다. 그러므로 AGC를 이용할 경우 출력 레벨이 일정하게 유지하게 되므로 이러한 특성을 살릴 수 없게 된다.On the other hand, you may want to consider using AGC (Automatic Gain Control) to constantly adjust the audio output level to prevent speaker damage. However, various music files including melody control the pitch as frequency and the volume as gain. Accordingly, the gain does not maintain a constant loudness for each song, but the gain varies depending on the type and strength of the instrument. Therefore, when using AGC, the output level is kept constant, so this characteristic cannot be utilized.

따라서 본 발명의 목적은 멜로디를 포함한 각종 음악 파일 재생에 따른 오디 오 출력 이득을 곡별로 적합하게 자동으로 조정할 수 있는 오디오 출력 이득 조정장치 및 그 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide an audio output gain adjusting device and a method for automatically adjusting the audio output gain according to the playback of various music files including melody to each song.

본 발명의 다른 목적은 배터리 전원을 사용할 경우에도 배터리의 충전 정도에 따라 오디오 출력 이득의 변화를 방지할 수 있는 오디오 출력 이득 조정장치 및 그 방법을 제공함에 있다.
Another object of the present invention is to provide an audio output gain adjusting apparatus and method for preventing a change in the audio output gain according to the degree of charging of the battery even when using battery power.

상술한 목적을 달성하기 위한 본 발명의 오디오 출력 이득 조정장치는, 음악 파일의 정보에 따른 음악을 합성하여 그에 따른 오디오신호를 출력하는 음악 합성기와; 상기 음악 합성기로부터 출력되는 오디오신호를 증폭하여 상기 스피커에 인가하는 오디오 증폭기와; 상기 스피커에 인가되는 오디오신호의 레벨을 검출하는 오디오 출력 레벨 검출기와; 상기 음악 합성기와 상기 오디오 증폭기 중 적어도 어느 하나의 출력 이득을 상기 음악 파일에 미리 설정된 출력 이득으로 설정하여 상기 음악 파일을 재생시키며, 상기 재생되는 음악 파일이 조정이 필요한 음악 파일인지 확인하여 상기 출력 이득의 조정이 필요한 음악 파일이면, 일정시간 동안 검출되는 상기 오디오 신호 레벨의 최대값을 검출값으로 저장하고, 상기 검출값과 기준값의 차이에 대응되게 상기 출력 이득을 조정하여 재설정하는 제어부를 포함하는 것을 특징으로 한다.An audio output gain adjusting apparatus of the present invention for achieving the above object comprises: a music synthesizer for synthesizing music according to information of a music file and outputting an audio signal accordingly; An audio amplifier amplifying the audio signal output from the music synthesizer and applying the amplified audio signal to the speaker; An audio output level detector for detecting a level of an audio signal applied to the speaker; Set the output gain of at least one of the music synthesizer and the audio amplifier to a preset output gain for the music file to play the music file, and determine whether the played music file is a music file that requires adjustment and the output gain. And a control unit for storing a maximum value of the audio signal level detected for a predetermined time as a detection value and adjusting and resetting the output gain to correspond to a difference between the detected value and a reference value. It features.

상술한 목적을 달성하기 위한 본 발명의 오디오 출력 이득 조정방법은, 음악 파일이 재생되면 상기 재생되는 음악파일이 출력 이득의 조정이 필요한 음악 파일인지 검사하는 과정과; 상기 음악 파일이 출력 이득의 조정이 필요한 음악 파일이면, 상기 음악 파일에 대한 오디오 신호 레벨을 일정시간 동안 검출하여 그 중 최대값을 검출값으로 저장하는 과정과; 상기 검출값과 기준값이 차이가 나면, 상기 검출값과 상기 기준값의 차에 대응되게 상기 음악 파일에 대한 출력이득을 조정하여 재설정하는 과정을 포함하는 것을 특징으로 한다.
이하 본 발명의 바람직한 실시예를 첨부한 도면을 참조하여 상세히 설명한다. 하기 설명 및 첨부 도면에서 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능 및 구성에 대한 상세한 설명은 생략한다. 그리고 이하의 설명에서는 멜로디 재생에 따른 오디오 출력 이득을 조정하는 경우에 적용하는 예를 들어 설명한다.
The audio output gain adjustment method of the present invention for achieving the above object comprises the steps of: checking whether a music file to be reproduced is a music file that requires adjustment of an output gain when a music file is played; If the music file is a music file that requires adjustment of an output gain, detecting an audio signal level for the music file for a predetermined time and storing a maximum value thereof as a detection value; And when the detected value and the reference value are different, adjusting and resetting the output gain of the music file to correspond to the difference between the detected value and the reference value.
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description and the annexed drawings, detailed descriptions of well-known functions and configurations that may unnecessarily obscure the subject matter of the present invention will be omitted. In the following description, an example of application to the case of adjusting the audio output gain according to melody reproduction will be described.

삭제delete

도 2는 본 발명의 실시예에 따른 오디오 출력 이득 조정장치의 블록구성도를 보인 것이다. 멜로디 합성기(202, 또는 음악 합성기)는 CPU(200)의 제어에 의해 멜로디 파일(또는 음악 파일)의 정보에 따른 멜로디(또는 음악)를 합성하여 그에 따른 오디오신호를 출력한다. 오디오 증폭기(204)는 멜로디 합성기(202)로 부터 출력되는 오디오 신호를 증폭하여 스피커(206)에 인가한다. 오디오 출력 레벨 검출기(208)는 LPF(Low Pass Filter)(210)와 ADC(Analog-to-Digital Convertor)(212)를 구비하여 오디오 증폭기(204)로 부터 스피커(206)에 인가되는 오디오 신호의 레벨을 검출하여 CPU(200)에 제공한다. LPF(210)는 오디오 신호를 저역통과여파하여 DC(Direct Current) 레벨을 검출하고, 이와 같이 검출된 DC 레벨은 ADC(212)에 의해 그 레벨에 대응하는 디지털값으로 변환되어 CPU(200)에 인가된다. 도 2에 보인 오디오 출력 이득 조정장치를 포함한 휴대용 전화기의 제어부로 사용되는 CPU(200)는 본 발명에 따라 멜로디 합성기(202)와 오디오 증폭기(204) 중에 하나 또는 모두의 이득을 출력 이득을 조정할 멜로디 파일에 대응되게 설정되는 출력 이득으로 셋팅하고 이득 조정할 멜로디 파일을 재생시킨다. 이와 같이 멜로디 파일을 재생하게 되면, 일정시간동안 오디오 출력 레벨 검출기(208)에 의해 검출되는 레벨의 최대값을 미리 정해진 기준값과 비교하여 차이가 있는 경우 그 차이에 대응되게 출력 이득을 조정하여 재설정함으로써 스피커(206)의 정격 출력을 넘지 않도록 한다. 상기한 일정시간은 수 ㎳(milli-second) ∼ 수 초로 설정한다.Figure 2 shows a block diagram of an audio output gain adjusting apparatus according to an embodiment of the present invention. The melody synthesizer 202 or the music synthesizer synthesizes a melody (or music) according to the information of the melody file (or music file) under the control of the CPU 200 and outputs an audio signal accordingly. The audio amplifier 204 amplifies the audio signal output from the melody synthesizer 202 and applies it to the speaker 206. The audio output level detector 208 includes a low pass filter (LPF) 210 and an analog-to-digital convertor (ADC) 212 for the audio signal applied from the audio amplifier 204 to the speaker 206. The level is detected and provided to the CPU 200. The LPF 210 detects a DC (Direct Current) level by low-pass filtering the audio signal, and the detected DC level is converted into a digital value corresponding to the level by the ADC 212 to the CPU 200. Is approved. The CPU 200, which is used as a control unit of the portable telephone including the audio output gain adjusting device shown in Fig. 2, is a melody to adjust the output gain by adjusting the gain of one or both of the melody synthesizer 202 and the audio amplifier 204 according to the present invention. Set the output gain to correspond to the file and play the melody file with gain adjustment. When the melody file is played in this way, the maximum value of the level detected by the audio output level detector 208 for a predetermined time is compared with a predetermined reference value, and if there is a difference, the output gain is adjusted to correspond to the difference. Do not exceed the rated output of the speaker 206. The constant time is set at several milli-seconds to several seconds.

상기한 바와 같이 멜로디 파일에 대응되게 출력 이득을 조정하여 설정하기 위해 CPU(200)는 하기 표 1과 같이 각 멜로디 파일마다에 대하여 조정 여부를 체크함과 아울러 조정된 출력 이득을 저장해 놓는다.As described above, in order to adjust and set the output gain corresponding to the melody file, the CPU 200 checks the adjustment for each melody file and stores the adjusted output gain as shown in Table 1 below.

멜로디 melody 출력 이득 Output gain 조정 여부 Reconciliation 1   One 16    16 완료   complete 2   2 32    32 미조정  Fine tune 3   3 -     - 미조정  Fine tune · · ·   · · · · · ·     · · · · · ·    · · ·

상기 표 1은 멜로디 합성기(202)나 오디오 증폭기(204)의 이득 가변 범위가 1∼64라고 할 때, 멜로디 1에 대하여는 출력 이득을 16으로 조정하여 재설정해 놓은 것을 나타내고, 멜로디 2에 대하여는 이전에 재생할 때 출력 이득을 32로 조정하였으나, 후술하는 바와 같이 다시 한번 조정이 필요하므로 미조정 상태로 체크해 놓은 것을 나타내며, 멜로디 3에 대하여는 한번도 출력 이득을 조정하지 않은 미조정 상태임을 나타낸다.Table 1 shows that when the gain variable range of the melody synthesizer 202 or the audio amplifier 204 is 1 to 64, the output gain is adjusted to 16 for melody 1, and the melody 2 has been previously set. The output gain is adjusted to 32 during playback, but as it will be described later, it needs to be adjusted again, indicating that it is checked in the unadjusted state. For melody 3, the output gain is not adjusted.

한편 오디오 출력 레벨 검출기(208)에 의해 검출되는 출력 레벨이 정격보다 작으면 문제가 없으나 출력이 정격보다 크면 스피커(206)를 손상시킬 우려가 있다. 이에 따라 각각의 일정시간동안의 최대값이 모두 기준값보다 작은 경우에는 곡 전체가 끝날 때까지 기다렸다가 해당 멜로디 파일에 대한 출력 이득을 조정하여 다음에 재생을 할 때부터 적용한다. 예를 들어 오디오 검출 레벨이 곡 시작부분에 기준값의 1/2값이 검출되었을 경우에 정격보다 작다고 하여 2배로 이득을 조정한다면 이후에 이 값보다 조금이라도 큰 값이 검출되면 곡의 중반부에서 다시 이득을 조정하게 되고, 이 것이 곡 전체동안 반복되어 너무 빈번한 조정이 발생하게 되어 오히려 곡의 흐름이 이상하게 되고 듣기에도 어색할 수 밖에 없다. 그러나 일정시간동안의 최대값이 정격기준 보다 큰 경우에는 즉시 이득을 조정한다.On the other hand, if the output level detected by the audio output level detector 208 is smaller than the rating, there is no problem, but if the output is larger than the rating, the speaker 206 may be damaged. Accordingly, if the maximum value for each predetermined time is smaller than the reference value, wait until the end of the entire song and adjust the output gain for the corresponding melody file to apply from the next playback. For example, if the audio detection level is adjusted at twice the value when the half of the reference value is detected at the beginning of the song, and the gain is adjusted twice, then the gain is regained at the middle of the song if a value larger than this value is detected later. This is repeated throughout the song, causing too frequent adjustments, making the flow of the song strange and awkward to listen. However, if the maximum value for a certain time is larger than the rated standard, adjust the gain immediately.

이제 본 발명의 실시예에 따른 CPU(200)의 처리 흐름도를 (300)∼(320)단계로 보인 도 3을 참조하면, CPU(200)는 (300)단계에서 멜로디 파일을 재생하기 시작하면 (302)단계에서 출력 이득 조정이 필요한 멜로디 파일인가를 검사한다. 만일 상기한 표 1의 멜로디 1과 같이 이전에 출력 이득 조정된 멜로디 파일이라면 조정할 필요가 없으므로 (320)단계에서 종료한다. 이와 달리 상기한 표 1의 멜로디 2,3과 같이 출력 이득 조정이 필요한 멜로디 파일이라면 (304)단계에서 일정시간동안 오디오 출력 레벨 검출기(208)로 부터 입력되는 오디오 검출 레벨을 체크하여 일정시간동안의 최대값을 검출값으로 저장한다. 그리고 (306)단계에서 검출값을 기준값과 비교하여, 기준값보다 크다면 (308)단계로 진행하여 하기 표 2와 같이 검출값과 기준값의 차이에 대응되게 출력 이득을 조정(즉, 하향 조정)하고 상기 표 1과 같이 저장하여 재설정하고 완료 상태로 체크한 다음에 (310)단계로 진행한다.Referring now to FIG. 3, which shows a process flow diagram of the CPU 200 according to an embodiment of the present invention in steps 300 to 320, when the CPU 200 starts to play a melody file in step 300 ( In step 302, it is checked whether the output gain adjustment requires a melody file. If the melody file has been previously adjusted for output gain as shown in melody 1 of Table 1 above, it does not need to be adjusted, and thus the process ends at 320. On the contrary, if the melody file needs to adjust the output gain as shown in the melody 2 and 3 of Table 1, the audio detection level input from the audio output level detector 208 is checked for a predetermined time in step (304), The maximum value is stored as a detection value. In operation 306, the detection value is compared with the reference value. If the detection value is larger than the reference value, the controller proceeds to step 308 and adjusts the output gain corresponding to the difference between the detection value and the reference value as shown in Table 2 below. After saving and resetting as shown in Table 1 and checking the completion state, the process proceeds to step 310.

검출값 - 기준값 Detection value-reference value 조정비      Adjustment fee -127 ∼ -65  -127 to -65 이전 이득 ×2.00 Previous gain × 2.00 -64 ∼ -33   -64--33 이전 이득 ×1.50 Previous gain × 1.50 -32 ∼ -17   -32 to -17 이전 이득 ×1.25 Previous gain × 1.25 -16 ∼ 16   -16 to 16 이전 이득 Previous gain 17 ∼ 32    17 to 32 이전 이득 ÷1.25 Previous gain ÷ 1.25 33 ∼ 64    33 to 64 이전 이득 ÷1.50 Previous gain ÷ 1.50 65 ∼ 127    65-127 이전 이득 ÷2.00 Previous gain ÷ 2.00 128   128 이전 이득 ÷2.00 Previous gain ÷ 2.00

상기 표 2는 상기한 바와 같이 멜로디 합성기(202)나 오디오 증폭기(204)의 이득 가변 범위가 1∼64이고, ADC(212)로 부터 출력되는 검출값이 0∼255이며, 정격 기준값이 128이라고 할 때의 조정비를 보인 것이다.Table 2 shows that the melody synthesizer 202 or the audio amplifier 204 has a gain variable range of 1 to 64, the detected value output from the ADC 212 is 0 to 255, and the rated reference value is 128. It shows the adjustment cost when doing.

상기한 (310)단계에서는 재생 종료 여부를 확인하여 재생을 종료하지 않았으면 상기한 (304)단계로 진행한다. 이와 달리 재생을 종료한 경우에는 (316)단계에서 검출값이 기준값보다 큰가를 검사하여 크지 않으면 (320)단계에서 종료하고, 여전히 크다면 (318)단계에서 해당 멜로디 파일을 상기한 표 1과 같이 출력 이득 조정이 필요한 멜로디 파일, 즉 미조정 상태로 체크한 후 (320)단계에서 종료한다. 이에따라 하나의 멜로디 파일의 재생을 종료한 때 여전히 기준값보다 검출값이 큰 경우에는 해당 멜로디 파일을 출력 이득 조정이 필요한 멜로디 파일로 체크해 놓게 됨으로써 다음에 다시 조정을 하도록 한다.In step 310, if it is determined that the playback is not finished, the process proceeds to step 304 above. On the other hand, if the playback is terminated, it is determined whether the detected value is greater than the reference value in step 316, and if it is not large, it ends in step 320, and if it is still large, the corresponding melody file in step 318 is shown in Table 1 above. After checking the melody file that requires the output gain adjustment, that is, the unadjusted state, the process ends in step 320. Accordingly, if the detection value is still larger than the reference value when the reproduction of one melody file is finished, the melody file is checked as a melody file requiring output gain adjustment, and the adjustment is made again later.

그리고 상기한 (306)단계에서 검출값이 기준값보다 크지 않다면 (312)단계에서는 검출값을 이전의 최대 검출값과 비교하여 큰 값을 최대 검출값으로 다시 저장한다. 다음에 (314)단계에서 재생 종료 여부를 검사하여 재생을 종료하지 않았으면 상기한 (304)단계로 진행하고 재생을 종료하였다면 (322)단계로 진행한다. 상기 (322)단계에서는 해당 멜로디 파일의 재생을 종료할 때까지 기준값보다 큰 검출값이 있었는가를 검사한다. 만일 기준값보다 큰 검출값이 있었다면 상기한 (308)단계에서 출력 이득 조정 및 저장이 이루어진 것이므로 (320)단계에서 종료한다. 이와 달리 기준값보다 큰 검출값이 없었다면 음악 파일 전체에 대한 검출값들, 즉 각각의 일정시간동안의 최대값들이 모두 기준값보다 작을 경우이므로 (324)단계에서 최대 검출값과 기준값의 차이에 대응되게 출력 이득을 조정(즉, 상향 조정)하여 저장함으로써 재설정하고 완료 상태로 체크한 후 (320)단계에서 종료한다.If the detected value is not greater than the reference value in step 306, the detected value is compared with the previous maximum detected value and stored again as the maximum detected value. In step 314, if the playback is not finished by checking whether or not the playback is finished, the process proceeds to step 304, and if the playback ends, the process proceeds to step 322. In step 322, it is checked whether there is a detection value larger than the reference value until the reproduction of the melody file is completed. If there is a detection value larger than the reference value, the output gain is adjusted and stored in step 308, and the process ends in step 320. On the contrary, if there is no detection value larger than the reference value, the detection values of the entire music file, that is, the maximum values for each predetermined time are all smaller than the reference value, and are output corresponding to the difference between the maximum detection value and the reference value in step 324. The gain is adjusted (ie, adjusted upward) by being stored, reset, checked as completed, and then terminated at step 320.

따라서 멜로디를 포함한 각종 음악 파일 재생에 따른 오디오 출력 이득을 곡별로 적합하게 자동으로 조정하게 된다.Therefore, the audio output gain according to the reproduction of various music files including melody is automatically adjusted appropriately for each song.

이에따라 사용자가 추가로 다운로드받아 사용하는 멜로디의 출력 이득을 조정을 용이하게 할 수 있다. 또한 멜로디 합성기(202)와 오디오 증폭기(204)의 전원을 배터리 전원을 사용할 경우에도 충전 정도에 관계없이 오디오 출력 이득을 일정하게 할 수 있다. 또한 제조업체에 의해 멜로디를 내장할 경우에 멜로디의 이득 조정을 곡별로 정확하게 하지 않고 출력 근사치에 맞게 조정하여도 되므로 편리하게 된다.This makes it easy to adjust the output gain of the melody the user downloads and uses. In addition, even when battery power is used for the melody synthesizer 202 and the audio amplifier 204, the audio output gain can be made constant regardless of the degree of charge. In addition, when the melody is built by the manufacturer, the gain adjustment of the melody may be conveniently performed according to the output approximation instead of precisely by song.

한편 전술한 표 2와 같이 검출값과 기준값의 차이에 대응되게 미리 설정된 조정비에 따라 출력 이득을 조정하는 대신에 하기 표 3과 같이 사용자의 선택에 의 해 설정된 조정 이득에 따라 조정하도록 할 수도 있다. 하기 표 3는 사용자가 기준값을 이득 8, 16, 24, 32의 4단계중에 하나로 선택할 수 있도록 설정하는 예를 보인 것이다.Meanwhile, instead of adjusting the output gain according to a preset adjustment ratio corresponding to the difference between the detection value and the reference value as shown in Table 2, the control gain may be adjusted according to the adjustment gain set by the user as shown in Table 3 below. . Table 3 below shows an example in which the user can select one of four levels of gains 8, 16, 24 and 32.

검출값 - 기준값 Detection value-reference value 이득 8 Gain 8 이득 16 Gain 16 이득 24 Gain 24 이득 32 Gain 32 -127 ∼ -65  -127 to -65 16   16 32    32 48   48 64    64 -64 ∼ -33   -64--33 12   12 24    24 36   36 48    48 -32 ∼ -17   -32 to -17 10   10 19    19 30   30 40    40 -16 ∼ 16   -16 to 16 8    8 16    16 24   24 32    32 17 ∼ 32    17 to 32 6    6 13    13 19   19 26    26 33 ∼ 64    33 to 64 5    5 11    11 16   16 21    21 65 ∼ 127    65-127 4    4 8     8 12   12 16    16 128   128 4    4 8     8 12   12 16    16

한편 상술한 본 발명의 설명에서는 구체적인 실시예에 관해 설명하였으나, 여러가지 변형이 본 발명의 범위에서 벗어나지 않고 실시할 수 있다. 특히 본 발명의 실시예에서는 멜로디 파일 재생에 따른 오디오 출력 이득을 조정하는 경우에 적용하는 예를 들었으나, MP3 파일과 같이 다른 형태의 음악 파일을 재생하는 경우에도 마찬가지로 적용된다. 따라서 발명의 범위는 설명된 실시예에 의하여 정할 것이 아니고 특허청구범위와 특허청구범위의 균등한 것에 의하여 정하여져야 한다.
Meanwhile, in the above description of the present invention, specific embodiments have been described, but various modifications can be made without departing from the scope of the present invention. In particular, in the embodiment of the present invention has been applied to the case of adjusting the audio output gain according to the reproduction of the melody file, the same applies to the case of playing other types of music files such as MP3 files. Therefore, the scope of the invention should not be defined by the described embodiments, but should be defined by the equivalent of claims and claims.

상술한 바와 같이,
본 발명은 음악 파일들의 상이한 출력이득들을 적합한 어느 하나의 출력이득으로 균일하게 재설정할 수 있는 효과가 있다.
또한, 본 발명은 출력이득이 재설정된 음악 파일은 출력이득의 설정을 생략함으로써 불필요한 연산을 방지하는 효과가 있다.
As mentioned above,
The present invention has the effect of uniformly resetting the different output gains of the music files to any suitable output gain.
In addition, the present invention has the effect of preventing unnecessary operation by omitting the setting of the output gain of the music file of which the output gain is reset.

Claims (12)

음악 파일 재생에 따른 오디오를 스피커를 통해 출력하는 장치에 있어서,In the device for outputting audio through the speaker according to the music file playback, 음악 파일의 정보에 따른 음악을 합성하여 그에 따른 오디오신호를 출력하는 음악 합성기와,A music synthesizer for synthesizing music according to information of a music file and outputting audio signals accordingly; 상기 음악 합성기로부터 출력되는 오디오신호를 증폭하여 상기 스피커에 인가하는 오디오 증폭기와,An audio amplifier for amplifying an audio signal output from the music synthesizer and applying the same to the speaker; 상기 스피커에 인가되는 오디오신호의 레벨을 검출하는 오디오 출력 레벨 검출기와,An audio output level detector for detecting a level of an audio signal applied to the speaker; 상기 음악 합성기와 상기 오디오 증폭기 중 적어도 어느 하나의 출력 이득을 상기 음악 파일에 미리 설정된 출력 이득으로 설정하여 상기 음악 파일을 재생시키며, 상기 재생되는 음악 파일이 조정이 필요한 음악 파일인지 확인하여 상기 출력 이득의 조정이 필요한 음악 파일이면, 일정시간 동안 검출되는 상기 오디오 신호 레벨의 최대값을 검출값으로 저장하고, 상기 검출값과 기준값의 차이에 대응되게 상기 출력 이득을 조정하여 재설정하는 제어부를 포함하는 것을 특징으로 하는 오디오 출력 이득 조정장치.Set the output gain of at least one of the music synthesizer and the audio amplifier to a preset output gain for the music file to play the music file, and determine whether the played music file is a music file that requires adjustment and the output gain. And a control unit for storing a maximum value of the audio signal level detected for a predetermined time as a detection value and adjusting and resetting the output gain to correspond to a difference between the detected value and a reference value. An audio output gain adjuster. 제1항에 있어서, 상기 제어부는,The method of claim 1, wherein the control unit, 상기 검출값이 상기 기준값보다 크면, 상기 기준값보다 큰 검출값과 상기 기준값의 차에 대응되게 상기 음악 파일에 대한 출력이득을 하향 조정하여 재설정하는 것을 특징으로 하는 오디오 출력 이득 조정장치.And if the detected value is greater than the reference value, adjusts and resets the output gain of the music file in accordance with the difference between the detected value greater than the reference value and the reference value. 제2항에 있어서, 상기 제어부는,The method of claim 2, wherein the control unit, 상기 음악 파일의 재생이 종료되고 상기 음악 파일을 재생하는 동안 검출되는 검출값 중에서 상기 기준값보다 큰 검출값이 존재하면, 상기 재생 종료된 음악 파일을 출력 이득의 조정이 필요한 음악 파일로 체크하는 것을 특징으로 하는 하는 오디오 출력 이득 조정장치.When the reproduction of the music file is terminated and a detection value larger than the reference value exists among the detection values detected during the reproduction of the music file, the reconstructed music file is checked as a music file requiring adjustment of output gain. Audio output gain adjuster made with. 제1항에 있어서, 상기 제어부는,The method of claim 1, wherein the control unit, 상기 검출값이 상기 기준값보다 크지 않으면, 상기 기준값보다 크지 않은 검출값과 이전 최대 검출값 중 더 큰 값을 상기 오디오 신호 레벨의 검출값으로 저장하는 것을 특징으로 하는 오디오 출력 이득 조정장치. And if the detected value is not greater than the reference value, the larger of the detected value not greater than the reference value and the previous maximum detected value as the detected value of the audio signal level. 제4항에 있어서, 상기 제어부는,The method of claim 4, wherein the control unit, 상기 음악 파일의 재생이 종료되고 상기 음악 파일이 재생하는 동안 저장되는 검출값이 상기 기준값보다 크지 않으면, 상기 기준값보다 크지 않은 검출값과 상기 기준값의 차에 대응되게 상기 음악 파일에 대한 출력이득을 상향 조정하여 재설정하는 것을 특징으로 하는 오디오 출력 이득 조정장치. When the reproduction of the music file is ended and the detection value stored while the music file is playing is not greater than the reference value, the output gain for the music file is increased to correspond to the difference between the detection value not greater than the reference value and the reference value. And adjusting and resetting the audio output gain adjuster. 제1항에 있어서, 상기 제어부는, The method of claim 1, wherein the control unit, 상기 검출값과 상기 기준값의 차이에 대응되게 디폴트로 설정된 조정비 또는 사용자의 선택에 의해 설정된 조정 이득에 따라 상기 출력 이득을 조정함을 특징으로 하는 오디오 출력 이득 조정장치.And adjusting the output gain according to an adjustment ratio set as a default corresponding to a difference between the detected value and the reference value or an adjustment gain set by a user's selection. 오디오 출력 이득을 조정하기 위한 방법에 있어서, A method for adjusting the audio output gain, 음악 파일이 재생되면 상기 재생되는 음악파일이 출력 이득의 조정이 필요한 음악 파일인지 검사하는 과정과,When the music file is played, checking whether the played music file is a music file that requires adjustment of an output gain; 상기 음악 파일이 출력 이득의 조정이 필요한 음악 파일이면, 상기 음악 파일에 대한 오디오 신호 레벨을 일정시간 동안 검출하여 그 중 최대값을 검출값으로 저장하는 과정과,If the music file is a music file that requires adjustment of an output gain, detecting an audio signal level for the music file for a predetermined time and storing a maximum value thereof as a detection value; 상기 검출값과 기준값이 차이가 나면, 상기 검출값과 상기 기준값의 차에 대응되게 상기 음악 파일에 대한 출력이득을 조정하여 재설정하는 과정을 포함하는 것을 특징으로 하는 오디오 출력 이득을 조정하기 위한 방법. And if the detected value and the reference value differ, adjusting and resetting the output gain of the music file to correspond to the difference between the detected value and the reference value. 제7항에 있어서, 상기 재설정 과정은,The method of claim 7, wherein the resetting process, 상기 검출값이 상기 기준값보다 크면, 상기 기준값보다 큰 검출값과 상기 기준값의 차에 대응되게 상기 음악 파일에 대한 출력이득을 하향 조정하여 재설정하는 것을 특징으로 하는 오디오 출력 이득을 조정하기 위한 방법. And if the detected value is larger than the reference value, down-adjusting and resetting the output gain for the music file to correspond to the difference between the detected value greater than the reference value and the reference value. 제8항에 있어서,The method of claim 8, 상기 음악 파일의 재생이 종료되고 상기 음악 파일을 재생하는 동안 검출되는 검출값 중에서 상기 기준값보다 큰 검출값이 존재하면, 상기 재생 종료된 음악 파일을 출력 이득의 조정이 필요한 음악 파일로 체크하는 과정을 더 포함하는 것을 특징으로 하는 오디오 출력 이득을 조정하기 위한 방법. If the reproduction of the music file is terminated and there is a detection value larger than the reference value among the detection values detected during the reproduction of the music file, the step of checking the reproduction-finished music file as a music file requiring adjustment of the output gain is performed. Further comprising an audio output gain. 제7항에 있어서, 상기 재설정 과정은,The method of claim 7, wherein the resetting process, 상기 검출값이 상기 기준값보다 크지 않으면, 상기 기준값보다 크지 않은 검출값과 이전 최대 검출값 중 더 큰 값을 상기 오디오 신호 레벨의 검출값으로 저장하는 것을 특징으로 하는 오디오 출력 이득을 조정하기 위한 방법. And if the detected value is not greater than the reference value, storing the greater of the detected value not greater than the reference value and the previous maximum detected value as the detected value of the audio signal level. 제10항에 있어서, The method of claim 10, 상기 음악 파일의 재생이 종료되고 상기 음악 파일이 재생하는 동안 저장되는 검출값이 상기 기준값보다 크지 않으면, 상기 기준값보다 크지 않은 검출값과 상기 기준값의 차에 대응되게 상기 음악 파일에 대한 출력이득을 상향 조정하여 재설정하는 과정을 더 포함하는 것을 특징으로 하는 오디오 출력 이득 조정방법.When the reproduction of the music file is finished and the detection value stored while the music file is playing is not greater than the reference value, the output gain for the music file is increased to correspond to the difference between the detection value not greater than the reference value and the reference value. And adjusting and resetting the audio output gain. 제7항에 있어서,The method of claim 7, wherein 상기 검출값과 상기 기준값의 차이에 대응되게 디폴트로 설정된 조정비 또는 사용자의 선택에 의해 설정된 조정 이득에 따라 상기 출력 이득을 조정하는 과정을 더 포함하는 것을 특징으로 하는 오디오 출력 이득 조정방법.And adjusting the output gain according to an adjustment ratio set by default corresponding to a difference between the detected value and the reference value or an adjustment gain set by a user's selection.
KR1020010050875A 2001-08-23 2001-08-23 Device for adjusting audio output gain and method thereof KR100735368B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020010050875A KR100735368B1 (en) 2001-08-23 2001-08-23 Device for adjusting audio output gain and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020010050875A KR100735368B1 (en) 2001-08-23 2001-08-23 Device for adjusting audio output gain and method thereof

Publications (2)

Publication Number Publication Date
KR20030017839A KR20030017839A (en) 2003-03-04
KR100735368B1 true KR100735368B1 (en) 2007-07-04

Family

ID=27720431

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020010050875A KR100735368B1 (en) 2001-08-23 2001-08-23 Device for adjusting audio output gain and method thereof

Country Status (1)

Country Link
KR (1) KR100735368B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040026264A (en) * 2002-09-23 2004-03-31 삼성전자주식회사 System for controlling volume of music file and method thereof
KR20050090283A (en) * 2004-03-08 2005-09-13 엘지전자 주식회사 Method for adjusting gain of down-loaded music file
CN106558314B (en) * 2015-09-29 2021-05-07 广州酷狗计算机科技有限公司 Method, device and equipment for processing mixed sound

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR840003950A (en) * 1982-02-22 1984-10-04 글렌 에이취. 브르스틀 Digital automatic gain control
KR19990025250A (en) * 1997-09-11 1999-04-06 구자홍 Automatic equalizer unit
KR19990049079A (en) * 1997-12-11 1999-07-05 김영환 Automatic Microphone Volume Control of Video Accompaniment System and Its Control Method
KR19990085424A (en) * 1998-05-18 1999-12-06 윤종용 Sound mode automatic setting device and method
KR20000033293A (en) * 1998-11-19 2000-06-15 구자홍 Device for adjusting amplification rate of audio apparatus and method thereof
JP2000235772A (en) * 1999-02-12 2000-08-29 Kenwood Corp Cd reproducing device
JP2001067100A (en) * 1999-08-31 2001-03-16 Aiwa Co Ltd Mp3 portable player
KR20010077269A (en) * 2000-02-01 2001-08-17 정명식 Apparatus and method for automatically controlling volume

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR840003950A (en) * 1982-02-22 1984-10-04 글렌 에이취. 브르스틀 Digital automatic gain control
KR19990025250A (en) * 1997-09-11 1999-04-06 구자홍 Automatic equalizer unit
KR19990049079A (en) * 1997-12-11 1999-07-05 김영환 Automatic Microphone Volume Control of Video Accompaniment System and Its Control Method
KR19990085424A (en) * 1998-05-18 1999-12-06 윤종용 Sound mode automatic setting device and method
KR20000033293A (en) * 1998-11-19 2000-06-15 구자홍 Device for adjusting amplification rate of audio apparatus and method thereof
JP2000235772A (en) * 1999-02-12 2000-08-29 Kenwood Corp Cd reproducing device
JP2001067100A (en) * 1999-08-31 2001-03-16 Aiwa Co Ltd Mp3 portable player
KR20010077269A (en) * 2000-02-01 2001-08-17 정명식 Apparatus and method for automatically controlling volume

Also Published As

Publication number Publication date
KR20030017839A (en) 2003-03-04

Similar Documents

Publication Publication Date Title
US20070142942A1 (en) Audio profiles for portable music playback device
US20010049566A1 (en) Apparatus and method for controlling audio output in a mobile terminal
KR20080038586A (en) Method and apparatus for adjusting audio volume to prevent hearing loss or damage
JP2008294803A (en) Reproducing device, and reproducing method
JP2008521028A (en) How to normalize recording volume
KR100735368B1 (en) Device for adjusting audio output gain and method thereof
US7515702B2 (en) Method and system for downloading audio samples for personalized telephone ring tones
US6892177B2 (en) Method and system for adjusting the dynamic range of a digital-to-analog converter in a wireless communications device
KR20050090283A (en) Method for adjusting gain of down-loaded music file
KR100690781B1 (en) Audio output apparatus for mobile communication terminal
CN101958956A (en) Vehicle-mounted electronic equipment and reproduction method thereof
JP3024502B2 (en) Audio equipment
JP2007129464A (en) Volume controller, content file reproducing device, and volume control program
KR100631612B1 (en) Sound pressure adjusting device and method of mobile communication terminal
KR100597969B1 (en) A made to order-type audio playing machine
KR20060040547A (en) Apparatus for compensating sound in an audio set and method thereof
KR100662485B1 (en) Circuit for controlling timbre based on audio signal output mode
KR20060104246A (en) Mobile communication terminal to calculate optimum default amplification gain for sound source not to be saturation and method thereof
KR100597964B1 (en) The advanced digital audio contents service system and its implementation method for mobile wireless device on wireless and wired internet communication network
KR0136701B1 (en) Initial amplifying level adjusting method of audio system
KR100378403B1 (en) Device for controling audio output in portble terminal and method thereof
KR200299971Y1 (en) Phone Bell Accessory Connected to Mobile Phone
CN115550798A (en) Audio signal processing method and system, sound box and storage medium
KR100324747B1 (en) Circuit for removing noise of voice
JP2003271197A (en) Music reproducing device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee