I'm a new Max/MSP user undertaking an educational project -- specifically, a granular mash-up type instrument. To start off, I'm trying to load a wav into a buffer and trigger 1 beat at a time according to a metro. For now the patch assumes the wav will have 4 beats. I'm doing this by loading a wav into a buffer~ and then driving a play~ with a line~. I advance to the next beat by adjusting the line~'s parameters. It seems to work okay except the last beat always comes out wrong. I think when I tell it to jump to back to 0 ms in the buffer, it plays the previous 3 beats quickly in reverse. I'm sure I could get around this somehow, but I feel as though I'm wading into a sea of unelegant programming. Is there another easier way I could do this?
Here's my patch so far:
Any suggestions or tips are greatly appreciated.