The ctoggle object
Name
Synopsis
Options
Description
Substitution
NAME
ctoggle - Creation of toggle interface object
SYNOPSIS
ctoggle name ?options?
OPTIONS
-label name
-init value
DESCRIPTION
The ctoggle command produces a toggle box. If -init is given
followed by a 0 or a 1, the initial state of the toggle will be set
upon initial parsing. The -label flag can be used to specify an
alternative name for the toggle in the interface.
An option menu is also produced with the options: k-rate, record,
playback, load and save. The user can record slider events with record
and replay them with playback. A given stream can be saved under
any name with save and recalled with load. k-rate
allows to simply play the toggle without recording.
SUBSTITUTION
At compilation, any instance of gkname or giname in
the orchestra, will be replaced by 0 if the toggle is not selected and
1 if it is. The user determines the propriety of an i-rate or k-rate usage
in a given context. The ctoggle object can also be used in the score by
using the replacement string : [name]
Copyright © 1996 - 97