User:Contribution/Chanofreq Project: Difference between revisions

Contribution (talk | contribs)
Contribution (talk | contribs)
Line 18: Line 18:
* '''X:''' An integer ≥ 1, representing the MIDI channel.
* '''X:''' An integer ≥ 1, representing the MIDI channel.
* '''Y:''' An integer ≥ 0, representing the note number.
* '''Y:''' An integer ≥ 0, representing the note number.
* '''Z:''' A decimal number within the range of '''minfreq''' to '''maxfreq''', representing the frequency in Hertz. This value is encoded by the parser as a positive integer with a bit depth defined by '''bitfreq'''. Each increment of this integer corresponds to a frequency size of (maxfreq - minfreq) / 2^bitfreq.
* '''Z:''' A decimal number such as '''minfreq''' ≤ Z < '''maxfreq''', representing the frequency in Hertz. This value is encoded by the parser as a positive integer with a bit depth defined by '''bitfreq'''. Each increment of this integer corresponds to a frequency size of (maxfreq - minfreq) / 2^bitfreq.


By default, the parameters are set as follows: minfreq = 0 Hz, maxfreq = 21474.83648 Hz, and bitfreq = 32. This way, Z has a precision of five decimal places with an additional sixth decimal place that must be either 0 or 5. This design is optimized for compatibility with the human hearing range and 32-bit hardware and software systems, while minimizing phase errors across all frequencies. In the worst-case scenario, 1 phase error would occur approximately once every 4.6 days. The default settings are suitable for most common applications, but there is flexibility to modify '''minfreq''', '''maxfreq''', and to utilize larger integer data types with '''bitfreq''' as needed.
By default, the parameters are set to: minfreq = 0 Hz, maxfreq = 21474.83648 Hz, and bitfreq = 32.
 
With these default settings, Z has a precision of five decimal places with an additional sixth decimal place that must be either 0 or 5. This configuration is optimized for compatibility with the human hearing range and 32-bit hardware and software systems, while minimizing phase errors across all frequencies. In the worst-case scenario, 1 phase error would occur approximately once every 4.6 days. These default settings are suitable for most applications, but there is flexibility to modify '''minfreq''' and '''maxfreq''', and to use smaller or larger integer data types with '''bitfreq''' as needed.


Commands can be separated by a semicolon (';') or a newline.
Commands can be separated by a semicolon (';') or a newline.