[PD] phasor to square
Derek Holzer
derek at umatic.nl
Sun Jan 20 14:22:18 CET 2008
Hi Thomas,
HIGH and LOW refer to the binary state. The square wave conversion using
[>~ 0.5] will actually give him a square triggered at the mid point of
the sawtooth wave, not the beginning or end, so the phase of the square
would be 180 degrees off from the saw. I suggested to use [==~ 1]
instead to get the peaks of the saw, and some more math to count them
and create the ratio between the two.
best,
d.
Thomas Mayer wrote:
> 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
--
derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista
---Oblique Strategy # 142:
"Shut the door and listen from outside"
More information about the Pd-list
mailing list