grain interonset utility; not perfect yet

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi
in my eternally-evolving granulator, I am using a central phasor to drive everything; it's working sweetly. I would now like to add the parameter control "grain interonset time", whereby the central phasor is "muted" for whole number multiple of it's own period, ie stop for 1 cycle or stop for 2 cycles. Using the [rate~] object, with an argument of 2 does this very nicely, but when I change the rate argument (to 4, eg) via it's right inlet I lose sync - the on/off signal occurs mid-ramp randomly. I've tried using [sah~] in various places but to no avail. Also, on the rare occasion when I fluke the sync, with a rate argument of 4 for example, I get two on two off, where I would prefer ONE on two off. The small annotated and simple patch below describes it better:

Brendan

brendan mccloskey's icon

partially solved, with a [sah~ 0.01] in the correct place;

missing element = allow only ONE phasor ramp through, regardless of rate argument:

Max Patch
Copy patch and select New From Clipboard in Max.

thanks for looking

Brendan

brendan mccloskey's icon

A phasor ramp is [*~] by it's own output, [via rate~ 2] --> [>~ 0.5].

This 'silences' the phasor for 100% of one period. Perfect, just what I want.

If I make [rate~ 4] --> [>~ 0.75], phasor is silent for 200% of one period. Again, perfect and just as I intend. My question now is how can I relate the two variables ([rate] argument and [>] argument) while keeping the sync lock I now have?

tata
Brendan

ps; 3 posts by 1 person, sad boy :(

brendan mccloskey's icon

Company I can accept too :)

brendan mccloskey's icon

Right
that's it; we're through. Over. Finished. Beendet.

We never talk anymore; despite my commitment to this relationship it's never about me, always about you, and I'm sick of being ignored. I've found someone else who understands my needs, and, well there's no way of saying this gently but, I'm leaving you.

*SLAM*