28 enum class note : std::uint32_t
164 static std::unordered_map<note, std::string>
const sMap =
298 return sMap.at(aNote);
303 if (std::isdigit(aNote.at(0)))
304 return static_cast<note>(boost::lexical_cast<std::uint32_t>(aNote));
306 static std::unordered_map<std::string, note>
const sMap =
463 return sMap.at(aNote);
468 return std::pow(2.0f, (
static_cast<float>(
note) - 69.0f) / 12.0f) * 440.0f;
471 template <neogfx::note Note>
663 static std::unordered_map<neogfx::instrument, std::string>
const sMap =
800 static std::unordered_map<percussion_instrument, std::string>
const sMap =
856 None = 0x0000000000000000ULL,
857 Mono = 0x0000000000000001ULL,
861 Lfe = 0x0000000000000010ULL,
876 Aux0 = 0x0000000000080000ULL,
877 Aux1 = 0x0000000000100000ULL,
878 Aux2 = 0x0000000000200000ULL,
879 Aux3 = 0x0000000000400000ULL,
880 Aux4 = 0x0000000000800000ULL,
881 Aux5 = 0x0000000001000000ULL,
882 Aux6 = 0x0000000002000000ULL,
883 Aux7 = 0x0000000004000000ULL,
884 Aux8 = 0x0000000008000000ULL,
885 Aux9 = 0x0000000010000000ULL,
886 Aux10 = 0x0000000020000000ULL,
887 Aux11 = 0x0000000040000000ULL,
888 Aux12 = 0x0000000080000000ULL,
889 Aux13 = 0x0000000100000000ULL,
890 Aux14 = 0x0000000200000000ULL,
891 Aux15 = 0x0000000400000000ULL,
892 Aux16 = 0x0000000800000000ULL,
893 Aux17 = 0x0000001000000000ULL,
894 Aux18 = 0x0000002000000000ULL,
895 Aux19 = 0x0000004000000000ULL,
896 Aux20 = 0x0000008000000000ULL,
897 Aux21 = 0x0000010000000000ULL,
898 Aux22 = 0x0000020000000000ULL,
899 Aux23 = 0x0000040000000000ULL,
900 Aux24 = 0x0000080000000000ULL,
901 Aux25 = 0x0000100000000000ULL,
902 Aux26 = 0x0000200000000000ULL,
903 Aux27 = 0x0000400000000000ULL,
904 Aux28 = 0x0000800000000000ULL,
905 Aux29 = 0x0001000000000000ULL,
906 Aux30 = 0x0002000000000000ULL,
907 Aux31 = 0x0004000000000000ULL,
915 return static_cast<audio_channel>(
static_cast<std::uint64_t
>(lhs) &
static_cast<std::uint64_t
>(rhs));
920 return static_cast<audio_channel>(
static_cast<std::uint64_t
>(lhs) |
static_cast<std::uint64_t
>(rhs));
925 return static_cast<audio_channel>(
static_cast<std::uint64_t
>(lhs) ^
static_cast<std::uint64_t
>(rhs));
930 return static_cast<audio_channel>(~static_cast<std::uint64_t>(lhs));
935 return static_cast<std::uint64_t
>(std::popcount(
static_cast<std::uint64_t
>(channels)));
995 template <
typename SampleType, std::
size_t Channels>
constexpr style_aspect operator&(style_aspect aLhs, style_aspect aRhs)
std::uint64_t audio_frame_index
audio_standard_sample_rate
audio_channel operator^(audio_channel lhs, audio_channel rhs)
audio_channel operator~(audio_channel lhs)
std::uint64_t audio_sample_count
std::string to_string(note const &aNote)
std::uint64_t audio_sample_index
std::uint64_t audio_frame_count
constexpr style_aspect operator|(style_aspect aLhs, style_aspect aRhs)
std::array< SampleType, Channels > audio_frame
note string_to_note(std::string const &aNote)
std::uint64_t audio_sample_rate
std::uint64_t channel_count(audio_channel channels)