Control Surface
main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
src
MIDI_Outputs
Bankable
Bankable/PBAbsoluteEncoder.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Banks/BankAddresses.hpp
>
4
#include <
MIDI_Outputs/Bankable/Abstract/MIDIAbsoluteEncoder.hpp
>
5
#include <
MIDI_Senders/PitchBendSender.hpp
>
6
7
BEGIN_CS_NAMESPACE
8
9
namespace
Bankable
{
10
23
template
<
size_t
NumBanks>
24
class
PBAbsoluteEncoder
25
:
public
MIDIAbsoluteEncoder
<NumBanks, SingleAddress, PitchBendSender<14>> {
26
public
:
56
PBAbsoluteEncoder
(
const
BankConfig<NumBanks>
&config,
AHEncoder
&&
encoder
,
57
MIDIChannelCable
address
, int16_t speedMultiply = 1,
58
uint8_t pulsesPerStep = 4)
59
:
MIDIAbsoluteEncoder
<NumBanks,
SingleAddress
,
PitchBendSender
<14>>(
60
{config,
address
}, std::move(
encoder
), speedMultiply,
61
pulsesPerStep, {}) {}
62
};
63
64
}
// namespace Bankable
65
66
END_CS_NAMESPACE
BankAddresses.hpp
MIDIAbsoluteEncoder.hpp
PitchBendSender.hpp
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:14
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:11
AHEncoder
Class for reading quadrature encoders, heavily influenced by http://www.pjrc.com/teensy/td_libs_Encod...
Definition
AHEncoder.hpp:24
Bankable::GenericMIDIAbsoluteEncoder
An abstract class for rotary encoders that send absolute MIDI events.
Definition
Bankable/Abstract/MIDIAbsoluteEncoder.hpp:25
Bankable::GenericMIDIAbsoluteEncoder::address
BankAddress address
Definition
Bankable/Abstract/MIDIAbsoluteEncoder.hpp:92
Bankable::GenericMIDIAbsoluteEncoder::encoder
Enc encoder
Definition
Bankable/Abstract/MIDIAbsoluteEncoder.hpp:91
Bankable::PBAbsoluteEncoder
A class of MIDIOutputElements that read the input of a quadrature (rotary) encoder and send out absol...
Definition
Bankable/PBAbsoluteEncoder.hpp:25
Bankable::PBAbsoluteEncoder::PBAbsoluteEncoder
PBAbsoluteEncoder(const BankConfig< NumBanks > &config, AHEncoder &&encoder, MIDIChannelCable address, int16_t speedMultiply=1, uint8_t pulsesPerStep=4)
Construct a new Bankable PBAbsoluteEncoder object with the given pins, channel, speed factor,...
Definition
Bankable/PBAbsoluteEncoder.hpp:56
Bankable::SingleAddress
Definition
BankAddresses.hpp:9
MIDIChannelCable
A class for saving a MIDI channel and cable number.
Definition
MIDIAddress.hpp:24
PitchBendSender
Class that sends continuous MIDI pitch bend messages with a resolution of 14 bits.
Definition
PitchBendSender.hpp:20
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition
BankAddresses.hpp:7
BankConfig
Definition
BankConfig.hpp:54
Generated by
1.10.0