new RomanNumeral(figure, keyStr)
Represents a RomanNumeral. By default, capital Roman Numerals are
major chords; lowercase are minor.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
figure |
string | the roman numeral as a string, e.g., 'IV', 'viio', 'V7' |
||
keyStr |
string | music21.key.Key |
<optional> |
'C' |
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
scale |
Array.<music21.pitch.Pitch> | (readonly) returns the scale associated with the roman numeral |
key |
music21.key.Key | the key associated with the RomanNumeral (not allowed to be undefined yet) |
figure |
string | the figure as passed in |
degreeName |
string | the name associated with the scale degree, such as "mediant" etc., scale 7 will be "leading tone" or "subtonic" appropriately |
scaleDegree |
Int | |
impliedQuality |
string | "major", "minor", "diminished", "augmented" |
pitches |
Array.<music21.pitch.Pitch> | RomanNumerals are Chord objects, so .pitches will work for them also. |
Extends
Methods
-
<static> RomanNumeral#_updatePitches()
-
Update the .pitches array. Called at instantiation, but not automatically afterwards.
- Source:
-
<static> RomanNumeral#asString(displayType, inversion) → {String}
-
Gives a string display. Note that since inversion is not yet supported
it needs to be given separately.Inverting 7th chords does not work.
Parameters:
Name Type Argument Default Description displayTypestring ['roman', 'bassName', 'nameOnly', other]
inversionInt <optional>
0 - Source:
Returns:
- Type
- String