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

Method getDisplayValueString

src/Random8.cpp:91–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90 struct ScaleParamQuantity : ParamQuantity {
91 std::string getDisplayValueString() override {
92 int index = static_cast<int>(std::round(getValue()));
93 index = clamp(index, 0, R8::NUM_AVAILABLE_SCALES - 1);
94 return befaco::scale_names[index];
95 }
96 };
97
98 struct StyleParamQuantity : ParamQuantity {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected