 changing the desired frequency to <code>phase</code>:</p>
<pre><code>process = phase(440);
</code></pre>
<h3 id="example-3-sawtooth-signal-generator">Example 3: Sawtooth signal generator</h3>
<p>We can now use the phase generator to produce a sawtooth signal:</p>
<!-- faust-run -->
<div class="faust-run"><img src="exfaust25/exfaust25.svg" class="mx-auto d-block">
<faust-editor><!--

import("stdfaust.lib");

decimalpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~ _;

sawtooth(f) = phase(f) * 2 -