User:Contribution/Chanofreq Project: Difference between revisions

Contribution (talk | contribs)
Contribution (talk | contribs)
Line 81: Line 81:
Each unit increase in the encoded integer corresponds to a frequency increment of (maxfreq - minfreq) / 2^bitfreq.  
Each unit increase in the encoded integer corresponds to a frequency increment of (maxfreq - minfreq) / 2^bitfreq.  


By default, the frequency parameters are set to minfreq = 0 Hz, maxfreq = 21474.83648 Hz, and bitfreq = 32-bit, deliberately chosen to cover the full human hearing range, ensure compatibility with 32-bit hardware and software, and minimize frequency approximation errors, offering a convenient solution where frequencies are accurate to five decimal places with an additional sixth decimal being either 0 or 5; under these settings, the worst-case scenario would result in a 1 phase error approximately once every 4.6 days.
By default, the frequency parameters are set to minfreq = 0 Hz, maxfreq = 21474.83648 Hz, and bitfreq = 32-bit, deliberately chosen to cover the full human hearing range, ensure compatibility with 32-bit hardware and software, and minimize frequency approximation errors, offering a convenient solution where frequencies are accurate to five decimal places with an additional sixth decimal being either 0 or 5; under these settings, the worst-case scenario would result in a 1 phase error approximately once every 4.63 days.


While these default settings are suitable for most applications, users have the flexibility to adjust '''minfreq''' and '''maxfreq''' values and choose smaller or larger integer data types for '''bitfreq''', allowing for customized precision and compatibility tailored to specific needs.
While these default settings are suitable for most applications, users have the flexibility to adjust '''minfreq''' and '''maxfreq''' values and choose smaller or larger integer data types for '''bitfreq''', allowing for customized precision and compatibility tailored to specific needs.