Skip to content
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

Method to determine whether model has loudness data #33

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

pawelKapl
Copy link
Contributor

@pawelKapl pawelKapl commented Apr 14, 2023

Adding method determining whether model has configured loudness parameter. If current loudness is equal to the default one - normalisation wont occur. This is a compromise to avoid passing unnecessary bool param to the model.

(partially) Fixes sdatkinson/NeuralAmpModelerPlugin#183

This is a first of 2 parts to resolve ☝️ issue.

@pawelKapl pawelKapl marked this pull request as ready for review April 14, 2023 10:17
Copy link
Owner

@sdatkinson sdatkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍🏻

@@ -60,6 +60,7 @@ class DSP
// DSP subclass implementation.
virtual void finalize_(const int num_frames);
void SetNormalize(const bool normalize) { this->mNormalizeOutputLoudness = normalize; };
bool HasLoudness() { return mLoudness != TARGET_DSP_LOUDNESS; };
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, that'll work for now.

@sdatkinson sdatkinson merged commit 2682287 into sdatkinson:main Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Disable Normalization toggle when model has no loudness information
2 participants