U


Intro       Symbols A B C D E F G H I J K L M N O P Q R S T U V W X Y Z       Index  
unless-chording {form}* [Macro]

Used inside algorithm to insure that forms in its body are evaluated only if the algorithm is not currently generating a chord. This avoids the necessity of "padding" item streams with duplicate items just to remain in parallel with a note stream that is generating chords.

Example:

(algorithm xyz midi-note ()
  (setf note (item (notes [c4 ef g] [d f a] [e g b])
                   :kill t))
  (unless-chording
    (setf rhythm (item (rhythms q s e))
          duration rhythm
          amplitude (item (items .1 .2 .3)))))

See Also:

algorithm, chord, status?, when-chording

 


unless-ending {form}* [Macro]

Used inside algorithm to insure that forms in its body are evaluated only if the algorithm is not executing its last event.

See Also:

algorithm, status?, when-ending

 


unless-resting {form}* [Macro]

Used inside algorithm to insure that forms in its body are not evaluated if the algorithm is currently resting. This avoids the necessity of "padding" item streams with elements just to remain in parallel with a note stream that is generating rests.

Example:

(algorithm qwe midi-note (rhythm .25 duration .25)
  (setf note (item (notes c4 r d r e) :kill 2))
  (unless-resting
    (setf amplitude (item (items .1 .2 .3)))))

See Also:

algorithm, status?, when-resting