Added thread safe cyclic buffer to synth.  This forms an input queue
allowing all midi and generation operations to be done at the same
priority level on the callback from the audio hardware.