Belfast
Belfast

Reputation: 91

difference between AKFrequencyTracker and AKMicrophoneTracker in AudioKit?

I found that there are AKFrequencyTracker and AKMicrophoneTracker in the lib. And both provides frequency as param.

The questions are:

  1. What the difference between AKFrequencyTracker and AKMicrophoneTracker?
  2. What class is better to use for a real-time microphone singing detection?

Many thanks in advance.

Upvotes: 3

Views: 440

Answers (1)

Aurelius Prochazka
Aurelius Prochazka

Reputation: 4573

AKMicrophoneTracker is a standalone class that just reads from the microphone and nothing more whereas the AKFrequencyTracker is a node that can be inserted at any point in your signal chain. They both use the same frequency detection algorithm, its just that the AKMicrophoneTracker is easier to use for the common case where all you need is pitch detection and nothing else AudioKit provides.

Upvotes: 3

Related Questions