TracktionEngine
Loading...
Searching...
No Matches
engine::ActiveNoteList Struct Reference

#include <tracktion_ActiveNoteList.h>

Public Member Functions

void reset () noexcept
bool isNoteActive (int channel, int note) const noexcept
void startNote (int channel, int note) noexcept
void clearNote (int channel, int note) noexcept
bool areAnyNotesActive () const noexcept
template<typename Visitor>
void iterate (Visitor &&v) const noexcept

Static Public Member Functions

static bool isValidIndex (int channel, int note) noexcept

Public Attributes

juce::uint16 activeChannels [128] = {}

Member Function Documentation

◆ reset()

void engine::ActiveNoteList::reset ( )
noexcept

◆ isNoteActive()

bool engine::ActiveNoteList::isNoteActive ( int channel,
int note ) const
noexcept

References activeChannels, and isValidIndex().

◆ startNote()

void engine::ActiveNoteList::startNote ( int channel,
int note )
noexcept

References activeChannels, and isValidIndex().

◆ clearNote()

void engine::ActiveNoteList::clearNote ( int channel,
int note )
noexcept

References activeChannels, and isValidIndex().

◆ areAnyNotesActive()

bool engine::ActiveNoteList::areAnyNotesActive ( ) const
noexcept

References activeChannels.

◆ iterate()

template<typename Visitor>
void engine::ActiveNoteList::iterate ( Visitor && v) const
noexcept

◆ isValidIndex()

bool engine::ActiveNoteList::isValidIndex ( int channel,
int note )
staticnoexcept

Referenced by clearNote(), isNoteActive(), and startNote().

Member Data Documentation

◆ activeChannels

juce::uint16 engine::ActiveNoteList::activeChannels[128] = {}

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