Clef class

Represents a clef at the beginning of a staff.

Inheritance

Constructors

Clef({ClefType clefType = ClefType.treble, int? staffPosition, String? type})

Properties

actualClefType → ClefType
Returns the "real" clef type (without octave transposition).
no setter
clefType → ClefType
The clef this element actually is.
no setter
glyphName → String
Returns the SMuFL glyph name corresponding to this clef.
no setter
hashCode → int
The hash code for this object.
no setterinherited
octaveShift → int
Returns the octave shift applied by the clef.
no setter
referenceLineOffsetSmufl → double
Returns the vertical offset of the clef reference line on the staff according to SMuFL specifications (in staff space units).
no setter
referenceLinePosition → int
Returns the reference line position of the clef on the staff (0 = middle line, positive = above, negative = below).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staffPosition → int?
final
type → String
Backward compatibility - DEPRECATED: Use actualClefType instead
no setter
xmlId ↔ String?
Identificador único MEI (xml:id). Opcional; required for elementos referenciados by other via atributos de ligação of the MEI v5.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

clefTypeFromName(String name) → ClefType
Resolves the legacy string name to a ClefType.