Skip to contents

humdrumR includes a easy-to-use system for generating a variety of diatonic key representations, which can be flexibly modified by users. "Under the hood" humdrumR represents all tonal chord information using the same underlying representation, which is typically extracted from input data using the key parser. This representation can then be "deparsed" into a variety of predefined output formats, or into new formats that you create!

Details

Deparsing is the second step in the key function processing pipeline:

  • Input representation |>

    • Parsing |>

      • Intermediate (diatonicSet) representation |>

      • Transformation |>

    • Deparsing (DEPARSING ARGS GO HERE) |>

  • Output representation

Various pitch representations can be generated using predefined key functions like key() signature(), and romanKey(). All of these functions use a common deparsing framework, and are specified using different combinations of arguments to the deparser. By modifying these "deparsing" arguments, you can exercise fine control over how you want pitch information to be represented in your output.

See also

All humdrumR key functions make use of the deparsing functionality.