a Max patch for Scratch Sawing (simplified).