onebang Reference

Gate bangs using a bang

onebang

Examples

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 Gate bangs using a bang
change Filter out repetitions
gate Pass an input to one of several outlets.