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

Method getDisplayValue

src/app/MenuBar.cpp:376–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374 return std::log2(1e-3f);
375 }
376 float getDisplayValue() override {
377 return std::pow(2.f, getValue() - getDefaultValue());
378 }
379 void setDisplayValue(float displayValue) override {
380 setValue(std::log2(displayValue) + getDefaultValue());
381 }

Callers

nothing calls this directly

Calls 1

powFunction · 0.85

Tested by

no test coverage detected