TuningFork is a simple utility for processing microphone input and interpreting pitch, frequency, amplitude, etc.
TuningFork powers the Partita instrument tuner app.
Add the following to your Podfile:
pod 'TuningFork'
Add the following to your Cartfile:
github "comyarzaheri/TuningFork" "master"
import TuningFork
class MyTunerDelegate: TunerDelegate {
func tunerDidUpdate(tuner: Tuner, output: TunerOutput) {
// Dreams come true here
print(output.pitch, output.octave)
}
}
let tuner = Tuner()
let delegate = MyTunerDelegate()
tuner.delegate = delegate
tuner.start()
TuningFork is available under the MIT License.