<-- -->
 

The ma algorithm

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 ma algorithm

{ma f/i val1 val2 val3 val4 duration(s)}
The ma is for mask. The values given after ma will define whether floating point numbers (f) or integer numbers (i) will be generated, followed by a tendency mask. val1 and val3 define the departure and arrival points of the minimum line. val2 and val4 define the departure and arrival points of the maximum line. A random number between the time-varying minimum and maximum lines lines is generated. Last element in the list is the duration in number of events or seconds (s)

Values can be:

  1. a real number.
  2. {ma f 1.2 3 5 9  10s} 
    {ma i 3 10 400 6000 30}
  3. a CECILIA irate variable. 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.
  4. {ma f [blue] [black] 6 6 30s}
    where blue and black have been defined as irate variables in the CECILIA interface. 

  5. a Cybil function.Any Cybil function can be used to generate a value for the sequencer. Each time the value is needed, the function is evaluated (see functions further).
  6. {ma i {ran f .5 3.3} 4  {ran i 9 100} 2000 30s}
    At computation time, the departure value of the minimum line will be randomly selected between .5 and 3.3 and the departure point for the maximum line will be randomly selected between 9 and 100.