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:
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.
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!
Note that you can also initialize onebang automatically by adding 1 as first argument.
Seems like cudnylon already knew this. I, however, didn't. So thanks for the info!
oh yeah... sounds like I should read more carefully the posts :-)