How to get the groove~ loop argument to generate a bang

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

Hey everyone I want the loop argument for groove to output a bang when it has finished its first cycle to trigger an amplitude envelope using function. Is this possible? or will I have to use a metro to a counter object to out put the bang message?

brendan mccloskey's icon

Are you trying to create a grain window that relies on loop size? If so, I don't think [function] is the way to go...

(Stupid question but, you know about the loop sync output from [groove~]?)

Brendan

dthomas86's icon

noob thats exactly what im trying to create ha. I totally forgot about using loop sync ive been trying to drive a bang using a counter object which got its maximum count from the info~ object.

brendan mccloskey's icon

I realize [function] will let you draw your own grain-window:

[trapezoid], driven with the sync signal from [groove~] gives you minimal control over grain-window shape,

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

but look at

Cycling74/examples/utilities/buffer-writer

and you can draw grains all day!

hih
Brendan

dthomas86's icon

awesome thank you so much for that I really need to understand trapezoid I've looked into it but haven't used it before with those arguments you are using at the moment what type of waveform are they producing? (Sorry for sounding daft)

brendan mccloskey's icon

Just have a quick glance at the helpfile for [trapezoid~]: it's a trapezoidal wavetable, and the 2 arguments (usually between 0. and 1.) dictate the phase position of the up and down ramps, effectively allowing you to slope those two ramps; you can also set the amplitude using the message [hi $1].

Look at [curve~] too

Check out youtube (ronnie9253) for my groove-grain tutorials; a bit out-dated but might be useful

Brendan

seejayjames's icon

stay in the signal domain if you can, so no bangs or counters. should be able to do that no problem with trapezoid~, as well as the

delta~
>~ 0.5
edge~

kind of analysis on the sync outlet of groove~.

It would be nice to have a built-in way to grab this all-important information without these three chained-together objects, but hey, they work great.