[PD] phasor to square
Thomas Mayer
thomas at dergrossebruder.org
Sun Jan 20 14:01:33 CET 2008
raul diaz wrote:
> Hi list!
>
> I need to convert a phasor into a square wave in this way:
>
> phasor:
>
> / / / / / /
> / | / | / | / | / | / |
> / | / | / | / | / | / |
> / |/ |/ |/ |/ |/ |
>
> square (2:1):
> ________ _________ _
> | | | | |
> | | | | |
> | |____| |____|
>
>
> so, a relation HIGH:LOW holds a high or a low value (1 or 0) a indicate
> number of cycles.
> I need this conversion in order to make a masking, so square doesn't have to
> be an audio signal necessarily (could be a number upload each phasor cycle).
>
> What could be the best implementation for that scheme?
I'm not sure what you mean exactly expecially bi HIGH:LOW, but
[phasor]
|
[>~ 0.5]
|
[-~ 0.5]
outputs a perfect square wave, although you need [>~] from zexy for that.
cu Thomas
--
"Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance."
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/
More information about the Pd-list
mailing list