class:: ToggleFF
summary:: Toggle flip flop.
related:: Classes/SetResetFF
categories::  UGens>Triggers


Description::

Toggles between 0 and 1 upon receiving a trigger.


classmethods::

method::ar, kr

argument::trig

Trigger input.


Examples::

code::

(
play({
	SinOsc.ar((ToggleFF.ar(Dust.ar(XLine.kr(1,1000,60))) * 400) + 800, 0, 0.1)
}))

::

