Some crazy Core Audio stuff for generating tones