Voice.voice2 constructor

Voice.voice2({
  1. List<MusicalElement>? elements,
  2. String? name,
})

Factory: Create voice 2 (bottom voice, stems down, offset right)

Implementation

factory Voice.voice2({List<MusicalElement>? elements, String? name}) {
  return Voice(
    number: 2,
    elements: elements,
    name: name ?? 'Voice 2',
    forcedStemDirection: StemDirection.down,
    horizontalOffset: 0.6, // Will be multiplied by staffSpace
  );
}