RNBO Objects & Operators gatetotrig~
Open Help

gatetotrig~

A gate to trigger operator.

Description

A signal rate gate to trigger operator. Produces a A single sample after transition from zero or less to greater than zero (pos) or greater than zero to less or equal transition (neg).

Arguments

val [auto]

Optional

A bipolar input value or signal transitioning across zero can be used to trigger a single sample impulse. The @edge option sets the direction. Optionally, the initial value can be set as the argument.

Inlets

val [auto]

A bipolar input value or signal transitioning across zero can be used to trigger a single sample impulse. The @edge option sets the direction. Optionally, the initial value can be set as the argument.

Outlets

out1 [signal]

Outputs a 1.0 as a signal only when a transition is detected, otherwise outputs a zero. By default, only triggers on a positive transition.

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

edge [enum] (default: pos)

The @edge attribute sets the trigger transition direction.

  • 0 = positive (default)
  • 1 = negative

Note: a negative edge trigger will be 1 sample late

Possible values:

0 = 'pos'
1 = 'neg'

Dynamic Attributes

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

reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

val [auto]

A bipolar input value or signal transitioning across zero can be used to trigger a single sample impulse. The @edge option sets the direction. Optionally, the initial value can be set as the argument.

See Also

Name Description
delta~ The discrete derivative of the input
edge~ detect logical signal transitions
>=~