![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated namespace reference Exponential with base two. Returns 2 raised to the input. An octave offset can be converted to a frequency ratio this way. Based on exp2
klang::exp2std::exp2.Direct call
const signal ratio = exp2(octaveOffset);Signal flow
const signal ratio = octaveOffset >> exp2;