cs-midi/MIDI_Constants/Chords/Intervals.hpp

22 lines
665 B
C++

#pragma once
#include <stdint.h>
namespace Intervals {
constexpr int8_t P1 = 0; ///< Perfect unison
constexpr int8_t m2 = 1; ///< Minor second
constexpr int8_t M2 = 2; ///< Major second
constexpr int8_t m3 = 3; ///< Minor third
constexpr int8_t M3 = 4; ///< Major third
constexpr int8_t P4 = 5; ///< Perfect fourth
constexpr int8_t d5 = 6; ///< Diminished fifth
constexpr int8_t P5 = 7; ///< Perfect fifth
constexpr int8_t m6 = 8; ///< Minor sixth
constexpr int8_t M6 = 9; ///< Major sixth
constexpr int8_t m7 = 10; ///< Minor seventh
constexpr int8_t M7 = 11; ///< Major seventh
constexpr int8_t P8 = 12; ///< Perfect octave
} // namespace Intervals