Thank you all for your advice. The plain digital square wave doesn&#39;t sound well (I use it as an LFO in a ring modulator. I&#39;ve just added some partials to my bandlimited square wave and now it works ok. <br>I&#39;ll try [sqosc~] though.<br>
<br>Cheers,<br><br>Pierre.<br><br><div class="gmail_quote">2012/2/6 Martin Peach <span dir="ltr">&lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
You can use [mrpeach/sqosc~] bandlimited to a low frequency as an LFO.<br>
Since [sqosc~] is slew-rate limited according to the bandwidth limit, the peaks are absolutely flat and there is no overshoot, and the transitions are smooth.<br>
<br>
Martin<div class="im"><br>
<br>
On 2012-02-06 09:43, chris clepper wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
In an analog synth the square wave has some distortion to it: the rise<br>
is not instantaneous and there is some overshoot of the peak too.  Over<br>
the years this was minimized by using high slew rate amp circuits and<br>
the like so an old Moog pulse wave is less ideal in shape than a new one.<br>
<br>
For a digital square wave you would want to use band limiting to avoid<br>
alias artifacts which are quite severe for a square or sawtooth wave.<br>
As the frequency goes higher both of those waves will begin to look more<br>
like sine waves as the partials are filtered out.  Pretty much every<br>
commercial digital synth and plugin uses anti-aliased waveforms.<br>
<br>
On Mon, Feb 6, 2012 at 8:31 AM, Pierre Massat &lt;<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a><br></div><div class="im">
&lt;mailto:<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>&gt;&gt; wrote:<br>
<br>
    Dear List,<br>
<br>
    I need a square wave to use as an LFO in a ring mod patch. Though i<br>
    could simply use [expr~ $v1&gt;0.5], I m wondering if I could get a<br>
    smoother square wave. I tried to use a bandlimited square wave, but<br>
    I don&#39;t have enough harmonics and the top of the wave isn&#39;t flat<br>
    enough. Incidentally, what do analog square waves from old synths<br>
    look like? Anyway, I think i want a square wave with no jumps<br>
    between 0 and 1.<br>
<br>
    Cheers!<br>
<br>
    Pierre.<br>
<br>
    ______________________________<u></u>_________________<br></div>
    <a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> &lt;mailto:<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a>&gt; mailing list<div class="im"><br>
    UNSUBSCRIBE and account-management -&gt;<br>
    <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt;  <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</div></blockquote>
<br>
</blockquote></div><br>