Key class final

A musical key or tonality.

See Key (music).


See also:

Implemented types
Annotations
  • @immutable

Constructors

Key(Note note, TonalMode mode)
Creates a new Key from note and mode.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
isTheoretical bool
Whether this Key is theoretical, whose signature would have at least one Accidental.doubleFlat or Accidental.doubleSharp.
no setter
mode TonalMode
The mode representing this Key.
final
note Note
The tonal center representing this Key.
final
parallel Key
The TonalMode.major or TonalMode.minor parallel Key of this Key.
no setter
relative Key
The TonalMode.major or TonalMode.minor relative Key of this Key.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale Scale<Note>
The scale notes of this Key.
no setter
signature KeySignature
The KeySignature of this Key.
no setter

Methods

compareTo(Key other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString({NoteNotation system = NoteNotation.english}) String
The string representation of this Key based on system.
override

Operators

operator ==(Object other) bool
The equality operator.
override