Class Trill
- Namespace
- Celeritas.Core.Ornamentation
- Assembly
- Celeritas.dll
Trill ornament - rapid alternation between the main note and the note above
public sealed class Trill : Ornament
- Inheritance
-
Trill
- Inherited Members
Properties
EndWithTurn
Whether to end with a turn (lower neighbor + main note)
public bool EndWithTurn { get; init; }
Property Value
HasTurnEnding
The same flag as EndWithTurn under the name earlier examples used: reading either reports the trill's ending, setting either sets it.
public bool HasTurnEnding { get; init; }
Property Value
Remarks
It was a second, independent flag that only Expand() OR-ed with the first, so
a trill built with endWithTurn: true answered HasTurnEnding == false, and a
trill copied through this property lost its closing turn.
Interval
Interval in semitones (default: 2 for whole tone, 1 for half tone)
public int Interval { get; init; }
Property Value
Speed
Speed of the trill (notes per quarter note)
public int Speed { get; init; }
Property Value
StartWithUpper
Whether to start with the upper note
public bool StartWithUpper { get; init; }
Property Value
Methods
Expand()
Expands into a rapid alternation of main and upper notes, optionally closing with a turn.
public override NoteEvent[] Expand()
Returns
Exceptions
- ArgumentOutOfRangeException
Speed is not positive.