[PD] phasor to square

raul diaz raul.lete at gmail.com
Sun Jan 20 14:55:14 CET 2008


Thanks a lot for your suggestions!

I tried to make the mathematical comparation for phasor with [==~] and
[avg~] and then a counter in order to count phasor cycles.
But it doesn't work, it only count one. Did I make something wrong?

Attached is the example patch.



2008/1/20, Roman Haefeli <reduzierer at yahoo.de>:
>
> On Sun, 2008-01-20 at 13:50 +0100, raul diaz wrote:
> > Hi list!
> >
> > I need to convert a phasor into a square wave in this way:
> >
> > phasor:
> >
> >       /       /      /       /       /      /
> >     /  |    /  |    /  |    /  |    /  |    /  |
> >   /    |  /    |  /    |  /    |  /    |  /    |
> > /      |/      |/      |/      |/      |/      |
> >
> > square (2:1):
> > ________        _________        _
> > |              |       |              |       |
> > |              |       |              |       |
> > |              |____|              |____|
> >
> hi raul
>
> when doing ascii art, the font and formatting you are using is critical
> for the correct appearance. in order to display your aa correctly in
> other people's email-client as well, choose 'plain text' instead of
> 'html' format and a monospace font type while typing.
>
>
> to your problem:
>
> you could divide the phasor frequency by three, so that one period of
> the phasor matches one period of your desired rectangular wave. if i
> understand your drawing correctly, you want to achieve a rectangular
> wave whith a 66% on-phase (and 33% off-phase). have a look at millers
> example patch 3.audio.examples/J03.pulse.width.mod.pd to get an idea how
> to convert a phasoor into a rectangular wave with specified on-phase.
>
> roman
>
>
>
>
>
> ___________________________________________________________
> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>
>


-- 
Raul Diaz Poblete
*************************
raul.lete at gmail.com
Barcelona [Spain]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080120/9c697772/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phasor-cycles-counter.pd
Type: application/x-extension-pd
Size: 564 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080120/9c697772/attachment.bin>


More information about the Pd-list mailing list