Voice.voice1 constructor
Voice.voice1({
- List<
MusicalElement> ? elements, - String? name,
Factory: Create voice 1 (top voice, stems up)
Implementation
factory Voice.voice1({List<MusicalElement>? elements, String? name}) {
return Voice(
number: 1,
elements: elements,
name: name ?? 'Voice 1',
forcedStemDirection: StemDirection.up,
);
}