Thanks a lot for your suggestions!<br><br>I tried to make the mathematical comparation for phasor with [==~] and [avg~] and then a counter in order to count phasor cycles.<br>But it doesn't work, it only count one. Did I make something wrong?
<br><br>Attached is the example patch.<br><br><br><br><div><span class="gmail_quote">2008/1/20, Roman Haefeli <<a href="mailto:reduzierer@yahoo.de">reduzierer@yahoo.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 2008-01-20 at 13:50 +0100, raul diaz wrote:<br>> Hi list!<br>><br>> I need to convert a phasor into a square wave in this way:<br>><br>> phasor:<br>><br>> / / / / / /
<br>> / | / | / | / | / | / |<br>> / | / | / | / | / | / |<br>> / |/ |/ |/ |/ |/ |<br>><br>> square (2:1):<br>> ________ _________ _
<br>> | | | | |<br>> | | | | |<br>> | |____| |____|<br>><br> hi raul<br><br>when doing ascii art, the font and formatting you are using is critical
<br>for the correct appearance. in order to display your aa correctly in<br>other people's email-client as well, choose 'plain text' instead of<br>'html' format and a monospace font type while typing.<br>
<br><br>to your problem:<br><br>you could divide the phasor frequency by three, so that one period of<br>the phasor matches one period of your desired rectangular wave. if i<br>understand your drawing correctly, you want to achieve a rectangular
<br>wave whith a 66% on-phase (and 33% off-phase). have a look at millers<br>example patch 3.audio.examples/J03.pulse.width.mod.pd to get an idea how<br>to convert a phasoor into a rectangular wave with specified on-phase.
<br><br>roman<br><br><br><br><br><br>___________________________________________________________<br>Telefonate ohne weitere Kosten vom PC zum PC: <a href="http://messenger.yahoo.de">http://messenger.yahoo.de</a><br><br></blockquote>
</div><br><br clear="all"><br>-- <br>Raul Diaz Poblete<br>*************************<br><a href="mailto:raul.lete@gmail.com">raul.lete@gmail.com</a><br>Barcelona [Spain]