TuningFork 是一个简单的用于 iOS 的 Tuner。
使用示例:
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()