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

Band-Splitter Four Band Option and Tri-State Button #33

Merged
merged 20 commits into from
Jan 27, 2024

Conversation

RachelMaryamLocke
Copy link
Contributor

Screenshot 2024-01-10 at 18 14 41 Screenshot 2024-01-10 at 18 14 59
Screen.Recording.2024-01-10.at.17.41.46.mov

Copy link
Contributor

@jatinchowdhury18 jatinchowdhury18 left a comment

Choose a reason for hiding this comment

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

Looking good! Just one issue with the tri-state button and some testing, and we should be good to go :).

Comment on lines -28 to +30
.withOutput ("Band-Split (High)", juce::AudioChannelSet::stereo(), true);
.withOutput ("Band-Split (High)", juce::AudioChannelSet::stereo(), true)
.withOutput ("Band-Split (LowMid", juce::AudioChannelSet::stereo(), true)
.withOutput ("Band-Split (HighMid", juce::AudioChannelSet::stereo(), true);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should work. I've been testing to make sure it doesn't break backwards compatibility, by saving a session using the band-splitter with multiple outputs using the previous nightly build, then loading up the new build to make sure everything is the same. I've checking in a couple of DAWs, but any more that you can test in would be great!

src/dsp/BandSplitter/BandSplitterProcessor.h Outdated Show resolved Hide resolved
Comment on lines 52 to +62
chowdsp::BoolParameter::Ptr threeBandOnOff {
juce::ParameterID { "band_split_3band_on", ParameterVersionHints::version1_0_0 },
"Band Splitter 3-Band",
false
};

chowdsp::BoolParameter::Ptr fourBandOnOff {
juce::ParameterID { "band_split_4band_on", ParameterVersionHints::version1_1_0 },
"Band Splitter 4-Band",
false
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're using two parameters to control this, we might need to be careful in case the user changes the parameters via automation in a way that we're not expecting.

src/gui/BandSplitter/BandSplitterPlot.cpp Outdated Show resolved Hide resolved
src/gui/BandSplitter/BandSplitterPlot.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@jatinchowdhury18 jatinchowdhury18 left a comment

Choose a reason for hiding this comment

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

Looking good! Just a couple of little things.

Comment on lines 114 to 121
getCutoffParam = [this](int bandIndex) -> const chowdsp::FreqHzParameter::Ptr& {
if (bandIndex < (numBands / 3))
return bandSplitterParams.cutoff;
else if (bandIndex <= numBands / 2)
return bandSplitterParams.cutoff2;
else
return bandSplitterParams.cutoff3;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably keep the comment that was with this logic previously, just to help avoid confusion in the future.

src/gui/BandSplitter/BandSplitterPlot.h Outdated Show resolved Hide resolved
src/gui/BandSplitter/TriStateButtonAttachment.cpp Outdated Show resolved Hide resolved
src/gui/BandSplitter/TriStateButtonAttachment.cpp Outdated Show resolved Hide resolved
@jatinchowdhury18 jatinchowdhury18 merged commit f5dccd1 into main Jan 27, 2024
4 checks passed
@jatinchowdhury18 jatinchowdhury18 deleted the bandsplitter_four_band branch January 27, 2024 23:51
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.

2 participants