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

Method getDisplayValueString

src/Random8.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98 struct StyleParamQuantity : ParamQuantity {
99 std::string getDisplayValueString() override {
100 static const char *styleNames[] = {
101 "Standard", "Rosc", "Gamma", "Expo", "Weibull", "Low-High", "FBM", "Perlin",
102 };
103 int index = static_cast<int>(std::round(getValue()));
104 index = clamp(index, 0, R8::NUM_AVAILABLE_STYLES - 1);
105 return styleNames[index];
106 }
107 };
108
109 Random8() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected