Jump to content

Recommended Posts

Posted (edited)

I'm tired of constantly adjusting the volume because some songs are louder than the others, so I figure I'd make an automatic volume adjuster for my media player.

The way I was going to make it would have my player play the song and a value set in the database on how loud that song was based on the average volume of that song over the duration. Then have the main volume of the system adjusted based on that value anytime the song played after that. The problem with this idea is the level at which the song would be analyzed would always have to be max volume or an equal volume between all the songs anytime they played originally, that will be problematic since I want this to be simple, and seamless through everyday use. I can't sit down and play 2000+ songs at the same volume for however long. I need to be able to analyze the songs and get a statistic no matter what the volume currently is.

I have seen a couple of applications out there that analyze the level without playing them, and I'm wondering how exactly it's done. Any ideas?

Or if nobody knows that, how can I analyze the raw output volume of a song regardless of volume level?

Edited by Champak
  • Moderators
Posted

Champak,

It sounds (pun intended) as if you need to normalize your music library. There are plenty of apps out there which can do this (like MP3Gain) - and AutoIt would be perfect for getting the list of tracks and passing them to the app for processing!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

Yeah, I thought of using mp3gain, and then just reading out the values, the problem with that is I would be everytime I get a new song, I would have to run that app first. I'd rather have things self contained and seamless. And not actually processing the file.

Posted

I used to use ReplayGain

What I like about it is that it does not process the file at all (aka reencode it) it just does a live volume adjustment.

The volume change data is added as metadata to the files, but you must use a player that supports reading it.

 

Posted

I came up with an idea I'll try out. Since my app uses wmp object, I'm going to turn on the auto leveling feature of wmp, and grab that info from the tag and apply the data to the apps master volume in the mixer. I just have to do some testing to come up with some type of conversion of the data that the tags actually represent.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...