keyFunctions: Parsing and deparsing key information

keyFunctionsR Documentation

Parsing and deparsing key information

Description

These functions can be used to extract and "translate," or otherwise modify, data representing diatonic key information. The functions are:

Arguments

x

Input data, interpreted as diatonic keys.

Must be an atomic vector.

Key

The key used by the parser, deparser, and transposer.

Defaults to NULL.

Must be a diatonicSet or something coercable to diatonicSet; must be either length 1 or length(x)

parseArgs

An optional list of arguments passed to the key parser.

Defaults to an empty list().

Must be a list of named arguments to the key parser.

Details

  • key()

  • romanKey()

  • signature()

See Also

To better understand how these functions work, read about how diatonic keys are represented, parsed, and deparsed.


Computational-Cognitive-Musicology-Lab/humdrumR documentation built on Oct. 22, 2024, 9:28 a.m.