Champak Posted November 25, 2015 Posted November 25, 2015 (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 November 25, 2015 by Champak
Moderators Melba23 Posted November 25, 2015 Moderators Posted November 25, 2015 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Champak Posted November 25, 2015 Author Posted November 25, 2015 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.
ViciousXUSMC Posted November 25, 2015 Posted November 25, 2015 I used to use ReplayGainWhat 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.
Champak Posted November 25, 2015 Author Posted November 25, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now