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

Method updateDataForLEDDisplay

src/NoisePlethora.cpp:420–437  ·  view source on GitHub ↗

set which text NoisePlethoraWidget should display on the 7 segment display

Source from the content-addressed store, hash-verified

418
419 // set which text NoisePlethoraWidget should display on the 7 segment display
420 void updateDataForLEDDisplay() {
421
422 if (programKnobMode == PROGRAM_MODE) {
423 textDisplayA = std::to_string(programSelectorWithCV.getA().getProgram());
424 }
425 else if (programKnobMode == BANK_MODE) {
426 textDisplayA = 'A' + programSelectorWithCV.getA().getBank();
427 }
428 isDisplayActiveA = programSelectorWithCV.getMode() == SECTION_A;
429
430 if (programKnobMode == PROGRAM_MODE) {
431 textDisplayB = std::to_string(programSelectorWithCV.getB().getProgram());
432 }
433 else if (programKnobMode == BANK_MODE) {
434 textDisplayB = 'A' + programSelectorWithCV.getB().getBank();
435 }
436 isDisplayActiveB = programSelectorWithCV.getMode() == SECTION_B;
437 }
438
439 // handle convoluted logic for the multifunction Program knob
440 void processProgramBankKnobLogic(const ProcessArgs& args) {

Callers

nothing calls this directly

Calls 3

getProgramMethod · 0.80
getBankMethod · 0.80
getModeMethod · 0.80

Tested by

no test coverage detected