The subdominant key: the key a fifth below, in the mode this key's third names, and the exact inverse of dominantKeyOf on the tonic spelling.
The spelled tonic of the key, as a note name, note data, or a Note.
Note
The key/scale, as a key name, a key/scale, or a Key; its mask decides the mode of the result.
Key
The key a fifth below, in the mode this key's third names.
If the tonic or the mask is malformed, or if the resulting signature falls outside [-12, 12] fifths — the subdominant of a key already at -12.
import { formatNote, majorKey, parseNote, subdominantKeyOf } from '@libraz/libcantus';formatNote(subdominantKeyOf(parseNote('C'), majorKey(0)).tonic); // 'F' Copy
import { formatNote, majorKey, parseNote, subdominantKeyOf } from '@libraz/libcantus';formatNote(subdominantKeyOf(parseNote('C'), majorKey(0)).tonic); // 'F'
The subdominant key: the key a fifth below, in the mode this key's third names, and the exact inverse of dominantKeyOf on the tonic spelling.