LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Audio Gain Control program project (https://www.linuxquestions.org/questions/programming-9/audio-gain-control-program-project-4175513165/)

mike acker 08-03-2014 07:47 AM

Audio Gain Control program project
 
I'm thinking of starting a project to create an audio gain control program. Naturally I'm interested in starter packages so I don't have to do it all myself--

the place to start would be a customizeable app package that would let me name my app and then browse for the file(s) to act on .

I would then want to incorporate a digital/audio library that has gain control features so that for the selected files I could read the data and analyze the level and the re-output the data with the peak level normalized to 0db

xipf would likely have the audio library -- maybe SourceForge for the file handling ? everything needs to be under CreativeCommons

business_kid 08-04-2014 09:33 AM

I would investigate what's already being done in the hardware. There are dsps in every soundcard, so gain control is trivial. 0dB sounds like a poor choice of normalising values There's a standard of ~200mV p-p that is used for most equipment things will match to. Make it too small, and you lose data, because A/Ds are fixed resolution

mike acker 08-21-2014 05:32 PM

one item at a time
 
Quote:

Originally Posted by business_kid (Post 5214717)
I would investigate what's already being done in the hardware. There are dsps in every soundcard, so gain control is trivial. 0dB sounds like a poor choice of normalising values There's a standard of ~200mV p-p that is used for most equipment things will match to. Make it too small, and you lose data, because A/Ds are fixed resolution

~200mV -- that sounds like signal level for RCA type analog connections. The "line level" ports for these cables were typically 500mV at 50K or 100K ohms for full modulation

currently I just use the Realtec DAC that is built in on my mobo together with Linux ALSA . it would be interesting to find a sound card that had the capability to adjust to a nominal level, -- "0db is considered full modulation and that is generally preferred as the proper setting.

i don't see how a track could be adjusted to 0db in a sound card though: you have to look at the whole signal: from start to finish and adjust the peak to the 0db level. otherwise you are going to get the hated compression of the sound level....

this is relatively easy to do using Audacity -- they have that function under "amplify" on their menu. the trouble of course is that you have to proceed one item at a time.....


All times are GMT -5. The time now is 05:28 PM.