Fix condition to execute Q_ASSERT
Refactor staccato quantization code
Fix quant raster less than min allowed duration