The pik function
The Cybil composition language
Cybil general syntax
Algorithms sq
- li - lo -
ma - gr
Functions ran -
pik - pa - co
Operations
Examples of Cybil command lines
The pik function
{pik val1 val2 val3 ....}
pik is for pick. pik will choose a number amongst the values
in the list following the pik. Functions have no duration and can
only be used inside an algorithm or as an operand.
Values can be:
-
real numbers.
{pik 1.2 9 100 2000 4.4 -6.4 51.967876}
-
CECILIA irate variables. Any irate variable from the CECILIA interface
can be used (sliders, toggles, option) by including the name of the variable
between [] brackets. The substitution is done before the score is
pre-compiled.
{pik [blue] [red] 6 70.9}
where blue and red have been defined as irate variables in
the CECILIA interface.
-
a Cybil function.Any Cybil function can be used to generate a value.
Each time the value is needed, the function is evaluated (see functions
further).
{pik {ran f .5 3.3} 4 5 6 8 {pik 3 4 5 6 7}}