Cocoa Framework for Pitch Detection and Tracking