MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / setBandState

Method setBandState

Source/Panels/SpectrogramPanel/Multiband.cpp:687–693  ·  view source on GitHub ↗

Sets the enable and solo state for a specific band.

Source from the content-addressed store, hash-verified

685
686// Sets the enable and solo state for a specific band.
687void Multiband::setBandState(int bandIndex, BandState state, juce::NotificationType notification)
688{
689 // Ensure the index is valid.
690 jassert(bandIndex >= 0 && bandIndex < bandUIs.size());
691 bandUIs[bandIndex].enableButton->setToggleState(state.isEnabled, notification);
692 bandUIs[bandIndex].soloButton->setToggleState(state.isSoloed, notification);
693}
694
695// Copies the complete settings (state and parameters) from one band to another.
696void Multiband::copyBandSettings(int targetIndex, int sourceIndex)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected