Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::ChordDescriptor::ChordPitches Struct Reference

Stack-allocated container for chord MIDI pitches. More...

#include <src/dsp/chord_descriptor.h>

Public Member Functions

auto begin () const
auto end () const
bool empty () const
size_t size () const
std::uint8_t operator[] (size_t i) const

Data Fields

std::array< std::uint8_t, kMaxPitches > data {}
size_t count = 0

Static Public Attributes

static constexpr size_t kMaxPitches = 8

Friends

bool operator== (const ChordPitches &, const ChordPitches &)

Detailed Description

Stack-allocated container for chord MIDI pitches.

Large enough for any chord (triad + accent + bass).

Definition at line 267 of file chord_descriptor.h.

Member Function Documentation

◆ begin()

auto zrythm::dsp::ChordDescriptor::ChordPitches::begin ( ) const
inline

Definition at line 273 of file chord_descriptor.h.

◆ empty()

bool zrythm::dsp::ChordDescriptor::ChordPitches::empty ( ) const
inline

Definition at line 275 of file chord_descriptor.h.

◆ end()

auto zrythm::dsp::ChordDescriptor::ChordPitches::end ( ) const
inline

Definition at line 274 of file chord_descriptor.h.

◆ operator[]()

std::uint8_t zrythm::dsp::ChordDescriptor::ChordPitches::operator[] ( size_t i) const
inline

Definition at line 277 of file chord_descriptor.h.

◆ size()

size_t zrythm::dsp::ChordDescriptor::ChordPitches::size ( ) const
inline

Definition at line 276 of file chord_descriptor.h.

Field Documentation

◆ count

size_t zrythm::dsp::ChordDescriptor::ChordPitches::count = 0

Definition at line 271 of file chord_descriptor.h.

◆ data

std::array<std::uint8_t, kMaxPitches> zrythm::dsp::ChordDescriptor::ChordPitches::data {}

Definition at line 270 of file chord_descriptor.h.

◆ kMaxPitches

size_t zrythm::dsp::ChordDescriptor::ChordPitches::kMaxPitches = 8
staticconstexpr

Definition at line 269 of file chord_descriptor.h.


The documentation for this struct was generated from the following file: