TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Making a Guitar Tuner with HTML5

55 pointsby jbergknoffover 10 years ago

2 comments

xyzzy_plughover 10 years ago
Pretty cool, but a Fourier transform is overkill! Many commercial hand-held tuners use a cool trick that works exceptionally well: zero-crossing.<p>While far less accurate than your implementation, it can still help nail the note (I&#x27;ve written an implementation in awk before... disgusting, but worked!). Simply look at the raw data, and see when it crosses over from negative to positive (or vice-versa). Count the number of crossings in some interval, and now you have the frequency. Usually a little input fuzzing is required, but it works exceptionally well.<p>Regardless, nice job.
评论 #8554111 未加载
评论 #8554403 未加载
notdanover 10 years ago
If you are interested in guitars&#x2F;music and HTML5, I wrote a transcribing tool (looper, slow downer, etc) that runs in a browser and uses the Audio APIs. Wasn&#x27;t sure if it would be possible, but was able to do quite a bit:<p><a href="http://www.tunetranscriber.com/" rel="nofollow">http:&#x2F;&#x2F;www.tunetranscriber.com&#x2F;</a>
评论 #8555013 未加载