Tuner
Captures audio in real time, analyzes its frequency and determines the corresponding pitch (musical note) based on equal temperament.
Functions
StartTuning
Starts audio capture and tone detection.
StopTuning
Stops audio capture and tone detection.
Events
ToneDetected(frequency, note)
Fired whenever a tone is detected in the captured audio.
frequency
: The detected frequency in Hertz (Hz).note
: The corresponding musical note, such as "C4" or "A#3", using the equal temperament system.
PermissionError
Fired if the necessary permissions to access the microphone have not been granted.
- Useful for notifying the user that they must grant permissions before using the extension.
Frequencies are detected with the help of FFT (Fast Fourier Transform), and notes are calculated relative to the standard frequency of A4 = 440 Hz.
Extension:
joejsanz.joedevtuner.aix (4.4 MB)
Thanks.