User:Contribution/Chanopif Project: Difference between revisions

Contribution (talk | contribs)
No edit summary
Contribution (talk | contribs)
Line 69: Line 69:


=== Comments ===
=== Comments ===
Comments are ignored by the parser and do not affect the file's execution. They can be used to provide explanations or annotations within the file.
Use # to insert a comment. Comments are ignored by the parser and do not affect the file's execution. They can be used to provide explanations or annotations within the file.
# Inline comment


Nota bene: YAML metadata only supports inline comment.
Nota bene: YAML metadata only supports inline comment.
# Inline comment


=== Tuning control ===
=== Tuning control ===
As described bellow, use:
As described above, use:
  channel_base10  noteNumber_base16  pitch_base16.fractionalPitch_base32
  channel_base10  noteNumber_base16  pitch_base16.fractionalPitch_base32


Line 83: Line 83:
  frequency = 440 * 2^((pitch_decimal - 69) / 12 + (fractional_pitch_decimal / 2^25))
  frequency = 440 * 2^((pitch_decimal - 69) / 12 + (fractional_pitch_decimal / 2^25))


pitch_decimal is the integer portion of the Pitch 7.25 value (0–127 in decimal).
* '''pitch_decimal''' is the 7-bit pitch portion, represented in hexadecimal within Chanopif and converted internally to a value between 0 and 127.
fractional_pitch is the 25-bit fractional portion, represented in base 32 within Chanopif and converted internally to a value between 0 and 2^25 - 1.
* '''fractional_pitch_decimal''' is the 25-bit fractional portion, represented in base 32 within Chanopif and converted internally to a value between 0 and 2^25 - 1.


== Purpose and Implementation ==
== Purpose and Implementation ==