Two bangs in simultaneously, one bang out?

Feb 27, 2010 at 1:32am

Two bangs in simultaneously, one bang out?

I’m wanting to add random beats to my sequencer similar to Audio Damage’s Tattoo. I have the sequencer banging away, and an extra metro running simultaneously at a set note value. The extra trigger is sent through a gate so that I can select the percentage outputted, then routed to the same input as the sequenced triggers. Everything is well and good except when the sequencer and the metro bang at the same time, both triggers are counted as received. What is the best way to prevent the extra bang without causing timing delays? [onebang] works but only if it’s always receiving two bangs at once, otherwise it causes drop outs.

Here is a quick example code i worked up to show what i mean:

– Pasted Max Patch, click to expand. –
#48804
Feb 27, 2010 at 9:23am

Try attaching a [delay 1] to the left outlet of your [onebang] and attach this again to the right inlet of the same [onebang]. So if you send in a bang in the left inlet of [onebang] it will be let through, then [onebang] closes for 1 millisecond until it opens again. This should let through any bangs that are spaced more widely than 1 millisecond apart, plus it will let through the first of any two “simultaneous” bangs.

It does involve a delay of course, but not of the bangs themselves. Adjust the delay to another number of milliseconds, if necessary.

– Pasted Max Patch, click to expand. –
#175402
Feb 27, 2010 at 10:06am

Fantastic! I just ran a quick test an it works exactly how I need it to if i use [onebang 1] with [del 1]. Thanks!

#175403
Feb 28, 2010 at 11:59am

Note that you can also initialize onebang automatically by adding 1 as first argument.

#175404
Feb 28, 2010 at 12:38pm

Seems like cudnylon already knew this. I, however, didn’t. So thanks for the info!

#175405
Feb 28, 2010 at 1:01pm

oh yeah… sounds like I should read more carefully the posts :-)

#175406

You must be logged in to reply to this topic.