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

Method copyBandSettings

Source/Panels/SpectrogramPanel/Multiband.cpp:696–707  ·  view source on GitHub ↗

Copies the complete settings (state and parameters) from one band to another.

Source from the content-addressed store, hash-verified

694
695// Copies the complete settings (state and parameters) from one band to another.
696void Multiband::copyBandSettings(int targetIndex, int sourceIndex)
697{
698 // Ensure indices are valid.
699 jassert(targetIndex >= 0 && targetIndex < 4);
700 jassert(sourceIndex >= 0 && sourceIndex < 4);
701
702 // 1. Copy the button states.
703 setBandState(targetIndex, getBandState(sourceIndex));
704
705 // 2. Copy all related audio parameters.
706 setParametersToAFromB(targetIndex, sourceIndex);
707}
708
709// Resets a specific band to its default settings.
710void Multiband::resetBandToDefault(int bandIndex)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected