DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::harmony::detail Namespace Reference

Functions

constexpr void copy (char *dst, std::string_view src, std::size_t dstCapacity) noexcept
 Safe small string copy used only for compile-time-friendly name building.
 
constexpr std::array< int, 7 > activeDegrees (NoteSet mask) noexcept
 Extract active scale degrees and expand them sequentially across the octave.
 
constexpr int interval (const std::array< int, 7 > &deg, int degIdx, int skip) noexcept
 Calculate semitone interval skipping 'skip' degrees in the scale.
 

Function Documentation

◆ activeDegrees()

constexpr std::array< int, 7 > dspark::harmony::detail::activeDegrees ( NoteSet  mask)
constexprnoexcept

Extract active scale degrees and expand them sequentially across the octave.

Definition at line 184 of file HarmonyConstants.h.

◆ copy()

constexpr void dspark::harmony::detail::copy ( char *  dst,
std::string_view  src,
std::size_t  dstCapacity 
)
constexprnoexcept

Safe small string copy used only for compile-time-friendly name building.

Definition at line 173 of file HarmonyConstants.h.

◆ interval()

constexpr int dspark::harmony::detail::interval ( const std::array< int, 7 > &  deg,
int  degIdx,
int  skip 
)
constexprnoexcept

Calculate semitone interval skipping 'skip' degrees in the scale.

Definition at line 209 of file HarmonyConstants.h.