The attached patch is my attempt at beat quantization. I'm curious how others have approached this.JN