MCPcopy Create free account
hub / github.com/VCVRack/Rack / getDisplayValue

Method getDisplayValue

src/app/MenuBar.cpp:198–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 return 0.0;
197 }
198 float getDisplayValue() override {
199 return std::round(std::pow(2.f, getValue()) * 100);
200 }
201 void setDisplayValue(float displayValue) override {
202 setValue(std::log2(displayValue / 100));
203 }

Callers

nothing calls this directly

Calls 2

roundFunction · 0.85
powFunction · 0.85

Tested by

no test coverage detected