nw.gateplus~ in gen

Dario's icon

Anybody ever made something like nw.gateplus~ from the nathan wolek granular toolkit in gen? I've been racking my brain as to how to this but to no avail. Seems like it would be pretty easy in theory but...

Dario's icon

Like a gen patch that waits until the next zero crossing to open the gate :)

Graham Wakefield's icon

What closes the gate? Sorry don't have nw.gateplus~ object here. Here's a guess, below. It will only open or close the gate on a zero crossing. Note the comment inside -- it will hold the value when the gate closes, and this is rarely going to be exactly zero. If you do want zero, change the 2nd latch to a multiply object. (You could even add a tiny smoother to that too, to really eliminate all possible clicks).

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

Graham Wakefield's icon

Here's one with the smoothing:

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

Dario's icon

Thanks Graham!! Can't wait to try this out tonight I'm sure this will work wonders in stuttering and granular effects that I will use with my OWL hardware :)

Btw a toggle opens and closes the gate when using nw.gateplus~

Dario's icon

It works great btw. Now I have to try to adapt your code into a version of selector~ with zero crossing awareness :D :0 :()