27#include "music_theory/music_theory.hpp"
37 case NoteStep::C:
return music_theory::NoteName::C;
38 case NoteStep::D:
return music_theory::NoteName::D;
39 case NoteStep::E:
return music_theory::NoteName::E;
40 case NoteStep::F:
return music_theory::NoteName::F;
41 case NoteStep::G:
return music_theory::NoteName::G;
42 case NoteStep::A:
return music_theory::NoteName::A;
43 case NoteStep::B:
return music_theory::NoteName::B;
45 throw std::invalid_argument(
"Unknown NoteStep value.");
54 case music_theory::NoteName::C:
return NoteStep::C;
55 case music_theory::NoteName::D:
return NoteStep::D;
56 case music_theory::NoteName::E:
return NoteStep::E;
57 case music_theory::NoteName::F:
return NoteStep::F;
58 case music_theory::NoteName::G:
return NoteStep::G;
59 case music_theory::NoteName::A:
return NoteStep::A;
60 case music_theory::NoteName::B:
return NoteStep::B;
62 throw std::invalid_argument(
"Unknown music_theory::NoteName value.");
71 toMusicTheoryNoteName(pitch.step),
82 return toMusicTheoryPitch(
static_cast<sequence::Pitch::Required
>(pitch));
NoteStep
The diatonic note step values.
Definition Enumerations.h:292
NoteName
The available note names in array order.
Definition music_theory.hpp:66
A spelled pitch, expressed relative to C4.
Definition music_theory.hpp:83