RNBO Objects & Operators onebang
Open Help

onebang

Gate bangs using a bang

Description

Allows a bang in the left inlet to pass through ONLY if a bang has been received in the right inlet. After that, a bang in the left inlet will not get through again until a bang has been received again in the right inlet.

Arguments

initial [number]

Optional

Set initialization state

Inlets

input [bang]

A bang in the left inlet will be passed to the left outlet only if it is the first bang after the right inlet receives a bang. Else it will be passed to the right outlet.

reset [bang]

A bang in the right inlet will allow the next bang in the left inlet to be passed to the left outlet.

Outlets

out1 [bang]

Outputs a bang whenever the left inlet is banged after the right inlet.

out2 [bang]

Outputs all bangs from the left inlet that are not preceded by a bang in the right inlet.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

initial [number] (default: 0)

Set initialization state

input [bang]

A bang in the left inlet will be passed to the left outlet only if it is the first bang after the right inlet receives a bang. Else it will be passed to the right outlet.

reset [bang]

A bang in the right inlet will allow the next bang in the left inlet to be passed to the left outlet.

See Also

Name Description
onebang
change Filter out repetitions
gate Pass an input to one of several outlets.