Pitch Detection
![pitch detection](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/pitch_detection-dca68d47d56bb3c4ca4e0b8e92f637dc.png)
Use Pitch Detection to detect the pitch of the audio source in realtime. Pitch Detection is in the Audio category.
Input
Name | Data Type | Description |
---|---|---|
Audio | Audio Stream | The audio stream you want to detect the pitch for. |
Enabled | Boolean | Enable this node or not. |
Output
Name | Data Type | Description |
---|---|---|
Audio | Audio Stream | The connected audio stream. Connect it to a Speaker to play or connect it to a Detection Output to play with no sound. |
Pitch Value | Number | The pitch detection result. The higher the pitch, the greater the number; value range from 45 Hz to 650 Hz. The value -1 means no pitch has been detected. |
Example
This example uses Pitch Detection to control the Face Liquify effect parameter.
![pitch detection node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/pitch_detection_node-c5ee33a4f7d165c6db52edb46ce962b3.png)
AI Music powered by TikTok – SAMI.