Skip to content

seesaw

yield one of two alternate values on each call.

Syntax

iout seesaw ival1, ival2 [, Sid]
iout seesaw ival1, ival2 [, Sid]

Usage

Seesaw is a simple convenience wrapper around iterArr. Given two values, seesaw yields each value in turn on each call.


Outputs and arguments

iout -- output value

ival1 -- The first value.

ival2 -- The second value.

Sid (optional, default="swsw[p1]") -- String channel name to store state. Can be anything, but ideally is unique. If not present Sid is taken from p1 of the calling instrument, however if using multiple seesaw's in the same instrument it is best to set Sid explicitly.