state machine for prototype to play one note

A first state machine for the prototyp, documented for historic reasons and debugging