baseNote method

  1. @override
String baseNote(
  1. BaseNote baseNote
)
override

The string notation for baseNote.

Implementation

@override
String baseNote(BaseNote baseNote) => switch (baseNote) {
      BaseNote.c => 'Do',
      BaseNote.d => 'Re',
      BaseNote.e => 'Mi',
      BaseNote.f => 'Fa',
      BaseNote.g => 'Sol',
      BaseNote.a => 'La',
      BaseNote.b => 'Si',
    };