| 507 | } |
| 508 | |
| 509 | void setAlgorithmViaProgram(int newProgram) { |
| 510 | |
| 511 | const int currentBank = programSelector.getCurrent().getBank(); |
| 512 | std::string_view algorithmName = getBankForIndex(currentBank).getProgramName(newProgram); |
| 513 | const int section = programSelector.getMode(); |
| 514 | |
| 515 | setAlgorithm(section, algorithmName); |
| 516 | } |
| 517 | |
| 518 | void setAlgorithmViaBank(int newBank) { |
| 519 | newBank = clamp(newBank, 0, numBanks - 1); |
nothing calls this directly
no test coverage detected