Copies the complete settings (state and parameters) from one band to another.
| 694 | |
| 695 | // Copies the complete settings (state and parameters) from one band to another. |
| 696 | void 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. |
| 710 | void Multiband::resetBandToDefault(int bandIndex) |
nothing calls this directly
no outgoing calls
no test coverage detected