Motorcycle Revving sound effects

What's the easiest way to make a motorcycle noise loop and change pitch depending on RPM? I already have a NSSound class with sound effects, but I could always switch to another API. Isn't there a way to use NSSound to load and quicktime to modify/play/loop? Does anyone have any open source code or code snippets that do this?