3 ms·
Love how tau is defined as a constant in there. Word is spreading!
by MarkLowenstein 5y ago
Love how tau is defined as a constant in there. Word is spreading!
- erikschoster 5y agoWould you mind elaborating a little or pointing us toward where we can read more about this? I just (more-or-less blindly, not grokking the actual math behind it) ported the yin algorithm from someone else's implementation this year and tau was defined as a range where tau min is samplerate / freq_max and tau max is samplerate / freq_min where freq_min and freq_max are the bounds of the detection algorithm, at least as I understood it. My port works but I never really understood tau (except as I described) -- if there's a way I can refactor this with a fixed tau that would be very interesting!
- protomikron 5y agoThere's some more or less serious discussion, that instead of using π = 3.14... (Pi) in formulas, we should adopt τ = 6.28... (Tau). Proponents claim, that it would simplify many formulas that include the term "2π". For example the circumference on the unit circle is 2π and would become just τ if we adopted it as a constant.
- erikschoster 5y agoAh, OK I was on the completely wrong track. Thanks for explaining!
- 6gvONxR4sf7o 5y agoTo add to this, it's specifically because 2*pi (and forms of it like 4*pi^2) show up so frequently.
- nayuki 5y agoThe Tau Manifesto by Michael Hartl: https://tauday.com/tau-manifesto https://tauday.com/tau-manifesto