LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2014, 07:47 AM   #1
mike acker
Member
 
Registered: Feb 2014
Location: Michigan
Distribution: Debian 10
Posts: 199

Rep: Reputation: Disabled
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
 
Old 08-04-2014, 09:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,140

Rep: Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307
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
 
Old 08-21-2014, 05:32 PM   #3
mike acker
Member
 
Registered: Feb 2014
Location: Michigan
Distribution: Debian 10
Posts: 199

Original Poster
Rep: Reputation: Disabled
Unhappy one item at a time

Quote:
Originally Posted by business_kid View Post
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.....

Last edited by mike acker; 08-21-2014 at 05:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Adjusting audio gain in Avidemux Steve W Linux - Software 6 02-03-2017 06:10 PM
Abandoned SVN instance, how to gain control back anon091 Programming 6 10-03-2013 10:35 AM
Audio File volume/gain level issues jmikeneedham Ubuntu 3 04-29-2008 10:08 AM
pciehp: Fails to gain control of native hot-plug slackb0t Slackware 2 04-23-2005 11:33 PM
network traffic control project a2ps Programming 2 11-17-2003 03:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration