Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
sin

Language Guide / Functions ยท Generated namespace reference

sin

klang::sin

Sine of an angle in radians.

Returns 0 at zero radians. One application is converting phase to a bipolar waveform.

-3.14-1-1.57-0.5001.570.53.141ResultInput x (radians)
sin(x)

Based on std::sin.

Direct call

const signal wave = sin(phase);

Signal flow

const signal wave = phase >> sin;