Hi Roman, list!

Attached is my aproach to generate masked-phasor, as suggested.
But in this way I can only obtain 1 of N phasor cycles.
How could I obtain a phasor with a M:N cycles relation, like that (2:2):

  /|  /|           /|  /|           /|  /|          /|  /|           /|  /|
 / | / |          / | / |          / | / |         / | / |          / | / |
/  |/  |_____/  |/  |_____/  |/  |_____/  |/  |_____/  |/  |____




2008/1/20, raul diaz <raul.lete@gmail.com>:
Hi Roman!

I'm sorry for my lack of information...

I'm making a pulsar granular synthesis patch based on Curtis Roads's Microsound ideas using a patch from nullpointer ( http://www.nullpointer.co.uk/-/pd.htm).
So, the phasor is my pulsar frequency reference, and I want to mask the output of pulsar granular synthesizer.
In this way a 1:3 mask will allow to hear 1 of each 4 pulsar particles.
I don't really need a square wave, I prefer to obtain a number (0/1) each phasor cycle to multiply with pulsar granular synthesize output.
But, maybe your idea could work, using directly a masked phasor to synthesize pulsar particles, instead of mask synthesized pulsar particles.

I will try this way, but anyway i'm curious about [avg~] behaviour. What's wrong on my "phasor-cycles-counter" patch?

Thanks for your suggestions!

Saludos!



2008/1/20, Roman Haefeli <reduzierer@yahoo.de>:
hi raul

i am still unsure about your initial problem. probably the solution is
quite simple, but maybe you need to provide some more information. would
you like to use the rectangular wave to mask the phasor wave? so that
your resulting wave would look like this  :

  /|  /|      /|  /|      /|  /|      /|  /|      /|  /|
/ | / |     / | / |     / | / |     / | / |     / | / |
/  |/  |____/  |/  |____/  |/  |____/  |/  |____/  |/  |____

if your goal is  to synthesize some customized waveform, it might be
easier to do it using [vline~] (have a look at the help patch). [vline~]
lets you practically compose any waveform, that consists only of
straight ramps (it might still be possible with curves, but certainly it
would be trickier).

roman


On Sun, 2008-01-20 at 14:55 +0100, raul diaz wrote:
> 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@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@gmail.com
> Barcelona [Spain]
> _______________________________________________
> PD-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list




___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de




--
Raul Diaz Poblete
*************************
raul.lete@gmail.com
Barcelona [Spain]



--
Raul Diaz Poblete
*************************
raul.lete@gmail.com
Barcelona [Spain]