Control Surface master
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ProgramChanger< N > Class Template Reference

#include <MIDI_Outputs/Bankable/ProgramChanger.hpp>

Detailed Description

template<setting_t N>
class Bankable::ProgramChanger< N >

Definition at line 13 of file Bankable/ProgramChanger.hpp.

+ Inheritance diagram for ProgramChanger< N >:
+ Collaboration diagram for ProgramChanger< N >:

Public Member Functions

 ProgramChanger (OutputBankConfig<> bank, const Array< uint8_t, N > &programs, MIDIChannelCable channelCN)
void select (setting_t setting) override
setting_t getInitialSelection () const
void setInitialSelection (setting_t initialSelection)

Static Public Member Functions

static setting_t validateSetting (setting_t setting)

Private Attributes

OutputBankableMIDIAddress bank
Array< uint8_t, N > programs
MIDIChannelCable channelCN
setting_t initialSelection

Constructor & Destructor Documentation

◆ ProgramChanger()

ProgramChanger ( OutputBankConfig<>  bank,
const Array< uint8_t, N > &  programs,
MIDIChannelCable  channelCN 

Definition at line 15 of file Bankable/ProgramChanger.hpp.

Member Function Documentation

◆ select()

void select ( setting_t  setting)

Implements Selectable< N >.

Definition at line 19 of file Bankable/ProgramChanger.hpp.

◆ validateSetting()

static setting_t validateSetting ( setting_t  setting)

Definition at line 19 of file Selectable.hpp.

◆ getInitialSelection()

setting_t getInitialSelection ( ) const

Definition at line 33 of file Selectable.hpp.

◆ setInitialSelection()

void setInitialSelection ( setting_t  initialSelection)

Definition at line 35 of file Selectable.hpp.

Member Data Documentation

◆ bank

Definition at line 26 of file Bankable/ProgramChanger.hpp.

◆ programs

Array<uint8_t, N> programs

Definition at line 27 of file Bankable/ProgramChanger.hpp.

◆ channelCN

MIDIChannelCable channelCN

Definition at line 28 of file Bankable/ProgramChanger.hpp.

◆ initialSelection

setting_t initialSelection

Definition at line 40 of file Selectable.hpp.

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