Hear me hum the G major (offkey!) and use pitchwatch to view the pitch keys displayed from the lowest key A0 to the highest key C8. Check out the link at https://en.wikipedia.org/wiki/Piano_key_frequencies for more information about pitch keys. By the way, G major is a major scale based on G, consisting of the pitches G, A, B, C, D, E, F# and G (https://en.wikipedia.org/wiki/G_major). The pitch calculation is based on the AMDF-fractional pitch period determination. The function is designed to operate optimally at the sampling rate of 8000Hz; nevertheless, you may adjust the window size (wlen) to suit your pitch watching needs.
Pitchwatch is best used with Speech Snipper at https://www.mathworks.com/matlabcentral/fileexchange/11002. Have a fun time getting your pitch right! :)
Essential files: pitchwatch.m
Accompanying files: Hum.wav
Zitieren als
Alan Tan (2024). PitchWatch (https://www.mathworks.com/matlabcentral/fileexchange/14828-pitchwatch), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data > Piano sounds >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
2.1 | Edited the description |
||
2.0.0.0 | Edited to ensure compatibility with Speech Snipper v6.3.
|
||
1.0.0.0 | Added BSD license.
|