MCPcopy Create free account
hub / github.com/VCVRack/Befaco / setAlgorithmViaProgram

Method setAlgorithmViaProgram

src/NoisePlethora.cpp:509–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 3

getBankMethod · 0.80
getProgramNameMethod · 0.80
getModeMethod · 0.80

Tested by

no test coverage detected