alpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~ _;
osc(f) = sin(phase(f) * 2 * ma.PI);

process = osc(440);

--></faust-editor>
<br>
</div>
<!-- /faust-run -->

<p>But now that we have seen how to create a sinusoidal oscillator from scratch, we will use the one defined in the standard Faust libraries:</p>
<!-- faust-run -->
<div class="faust-run"><img src="exfaust28/exfaust28.svg" class="mx-auto d-block">
<faust-editor><!--

import("stdfaust.lib");

process = os.osc(440);

--></faust-editor>
