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

Method setPage

src/Random8.cpp:777–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775 }
776
777 void setPage(int page) {
778 for (int p = 0; p < Random8::NUM_PAGES; p++) {
779 const bool visible = (p == page);
780 for (int i = 0; i < Random8::NUM_CHANNELS; i++) {
781 if (pageKnobs[p][i]) {
782 pageKnobs[p][i]->visible = visible;
783 }
784 }
785 }
786 lastVisiblePage = page;
787 }
788
789 void appendContextMenu(Menu *menu) override {
790 ModuleWidget::appendContextMenu(menu);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected