Chooose Notes From a Notelist or Notegroup (choose)

Handel allows you to choose a random subset of notes from a notelist using the choose keyword.

The syntax for choosing a random subset of notes (a notelist) from another notelist is: choose somedigit from notelist

Below is an example program that uses a choose expression:

start
chunk example
block
save list = C3, D3, E3, F3, G3, A3, B3
play choose 1 from list for 4b
endblock loop for 4
endchunk
chunk chords
play C3, E3, G3 for 2b
play F3, A3, C3 for 2b
play B2, D3, F3 for 2b
play C4, E4, G4 for 2b
endchunk
run example with sound piano, reverb 10000, loop for 10
run chords with sound guitar, loop for 20, volume 40
finish

Note that the simple program above is non-deterministic and in thus case creates "generative music".