<-- -->
 

The sq 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 sq algorithm

{sq val1 val2 val3....duration(s)}
The sq is for sequence. The list of values given after sq will be sequenced and looped. Last element in the list is the repeat factor or the duration in seconds (s) N.B. if the repeat counter is given with a number, this number will indicate the number of times the sq will be looped.

 Values can be a number of things:
 

  1. a real number. The number will be entered as is in the sequence.
  2. {sq 4.567 0.56 8 10s} 
    {sq 3 5.5 6 30} <--this will yeild 90 events!
  3. an algorithm. The algorithm can be any of the available algorithms including another sequence. Each embedded algorithm will be fully evaluated before the containing sq will move to the next element in the list.
  4. {sq 4 8 {sq 6 5 4 2} 8 2}
    will yield: 4 8 6 5 4 6 5 4 8 4 8 6 5 4 6 5 4 8
    {sq {li 1 10 10} 8 8 8 2}
    will yield: 1 2 3 4 5 6 7 8 9 10 8 8 8 1 2 3 4 5 6 7 8 9 10 8 8 8

    If embedded commands are timed in seconds, the highest level determines the total duration of the command. Hence an embedded command would not complete its course should the timer for the container run out before.
     
     

  5. 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.
  6. {sq 4 5 [blue] 6 7 [black] 30s}
    where blue and black have been defined as irate variables  in the CECILIA interface.
     
     
  7. 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).
  8. {sq 4 5 {ran f .5 3.3} 4 30s}
    Each time the sequence steps through the third element in the list, a random number between .5 and 3.3 will be generated.