I have created a “reactive/generative”-music creation tool:
The cryptic, unexplained XML-mess to the left in the applet is actually a state machine specification with variables that can be changed dynamically in the right panel.
The actions within the <action_sequence> are executed step-wise each measure while all other actions are executed until all are done.
/Per