Use OPTION of CMake for XM_DEBUG.
Fix more tone portamento "features".
Support ping-pong looping samples.