Clear sample
Restore duty cycle value after clear
Fix number of generated frames
Limit buffer shift

This prevents a buffer error when less data was written than requested (no
tracks attached).
Reset slide states when clearing track
Bump version to 0.7.1