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 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'''.
* '''Z:''' A decimal number within the range '''minfreq''' ≤ Z < '''maxfreq''', representing the frequency in Hertz. This value is encoded as a positive integer by the parser with a bit depth defined by '''bitfreq''', using the formula: parser_frequency = int(((Z - minfreq) * (2 ** bitfreq) / (maxfreq - minfreq)) + 0.5).
With default settings, Z has a precision of five decimal places with an additional sixth decimal place that must be either 0 or 5, and is ranged between 0 Hz and 21474.83648 Hz.
With default settings, minfreq = 0 Hz, maxfreq = 21474.83648 Hz, bitfreq = 32, thus Z has a precision of five decimal places with an additional sixth decimal place that must be either 0 or 5.


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