;
freq1 = hslider("freq1 [unit:Hz]", 1000, 20, 3000, 1);
freq2 = hslider("freq2 [unit:Hz]", 200, 20, 3000, 1);

process = vgroup("Oscillator", os.osc(freq1) * vol, os.osc(freq2) * vol);

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

<p>The Cmajor code can be generated using:</p>
<pre><code class="language-bash">faust -lang cmajor osc.dsp -o osc.cmajor
</code></pre>
<p>This will generate a <code>mydsp</code> processor included in a namespace <code>faust {...}</code> with a set of methods to manipulate 