描述
unity音调检测Pitch Detector
Requires Unity 4.5.2 or higher.
Detects human voice pitch in realtime from the microphone. Get the notes in midi format, standard notation (C, C#, D, E...) or even the frequency in hertz of any human voice. This sc ript will allow you make singstar-like games in a single step.
Mobile friendly, supports Android and iOS fluently
Demo scene included for web, mobile and desktop devices. The demo shows how to setup the sc ript and microphone to get the samples and also has code for some more interesting tools:
-Set up the mic sensitivity in decibels
-Use a buffer to get the statistical 'mode' for the note in a period of milliseconds. This is useful because human voice has some kind of natural vibrato and may confuse the detector by a semitone.
There is also a very simple template scene that will help you to start your project from a minimun funtional pitch detector.