chordStrokesOf function

List<ChordStroke> chordStrokesOf(
  1. String meter
)

Os golpes do padrão de uma fórmula (ver o arquivo).

Implementation

List<ChordStroke> chordStrokesOf(String meter) => switch (meter) {
  '4/4' => const [
    (beat: 1.0, rule: ChordRule.triad),
    (beat: 3.0, rule: ChordRule.triad),
  ],
  '2/2' => const [
    (beat: 1.0, rule: ChordRule.triad),
    (beat: 2.0, rule: ChordRule.triad),
  ],
  '3/4' => const [
    (beat: 1.0, rule: ChordRule.fundamental),
    (beat: 2.0, rule: ChordRule.triad),
    (beat: 3.0, rule: ChordRule.triad),
  ],
  '6/8' => const [
    (beat: 1.0, rule: ChordRule.fundamental),
    (beat: 4.0, rule: ChordRule.triad),
  ],
  _ => const [(beat: 1.0, rule: ChordRule.fundamental)],
};