New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full replay gain support for track metadata, file tags and library #766
Conversation
// 1.0/2.0 specification. | ||
// http://wiki.hydrogenaud.io/index.php?title=ReplayGain_1.0_specification | ||
// http://wiki.hydrogenaud.io/index.php?title=ReplayGain_2.0_specification | ||
static CSAMPLE parsePeak(QString strPeak, bool* pValid = 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An additional hint that strPeak = "1.0" represents the digital full scale could be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also thought about adding a static assert, because we implicitly assume
here that CSAMPLE_PEAK = 1.0
On 11/03/2015 08:15 AM, Daniel Schürmann wrote:
In src/util/replaygain.h
#766 (comment):@@ -56,6 +69,18 @@ class ReplayGain {
m_peak = CSAMPLE_PEAK;
}
- // Parse and format the peak value metadata according to the ReplayGain
- // 1.0/2.0 specification.
- // http://wiki.hydrogenaud.io/index.php?title=ReplayGain_1.0_specification
- // http://wiki.hydrogenaud.io/index.php?title=ReplayGain_2.0_specification
- static CSAMPLE parsePeak(QString strPeak, bool* pValid = 0);
An additional hint that strPeak = "1.0" represents the digital full scale
could be useful.—
Reply to this email directly or view it on GitHub
https://github.com/mixxxdj/mixxx/pull/766/files#r43721107.
Thank you for the PR. I have only commented some naming nits. |
Added column (read-only) for replay gain in table views. |
This PR is growing. When will it be ready for merge? I will now read though the remaining commits. |
I don't plan any further additions. The GUI extensions are just the icing on the cake that I need to test your On 11/06/2015 10:43 PM, Daniel Schürmann wrote:
|
I don't know why, but now there is something broken. |
I've tested it only with a fresh Mixxx library/config. I will test again On 11/06/2015 11:25 PM, Daniel Schürmann wrote:
|
My tests with both an empty and an existing Mixxx config were successful. Did you try a clean rebuild? Sometimes SCons does not reliably switch |
Strange! It seems I had messed up my working directory. Now the issue is like that: |
My error: [ no such column: replaygain_peak ] The library predict that is was already at 25, but that was wrong. After changing current the schema version back to 24, it works as desired. LGTM |
Full replay gain support for track metadata, file tags and library
Great! Thank you for reviewing and merging, Daniel. You can now rebase your PR "Replaygain 2.0" on master for a fresh start. Since no one has actually reviewed the code this is safer and clearer than merging. |
Sorry, I couldn't resist ;) Another PR for master.
This PR completes the replay gain support for track metadata (including file tags) and the library (database) by properly reading/writing the peak amplitude of a track.
The peak amplitude is currently not computed by the RG1 analyser, but could be added easily. The RG2 analyser seems to perform this analysis on the fly.