Control Surface
1.2.0
MIDI Control Surface library for Arduino
src
MIDI_Inputs
ChannelMessageMatcher.hpp
Go to the documentation of this file.
1
/* ✔ */
2
3
#pragma once
4
5
#include <
MIDI_Parsers/MIDI_Parser.hpp
>
6
7
BEGIN_CS_NAMESPACE
8
10
struct
ChannelMessageMatcher
{
11
ChannelMessageMatcher
(
MIDIMessageType
type
,
Channel
channel
, uint8_t
data1
,
12
uint8_t
data2
, uint8_t
CN
= 0)
13
:
type
(
type
),
channel
(
channel
),
data1
(
data1
),
data2
(
data2
),
CN
(
CN
) {}
14
ChannelMessageMatcher
(
const
ChannelMessage
&midimsg)
15
:
type
(midimsg.getMessageType()),
channel
(midimsg.getChannel()),
16
data1
(midimsg.
data1
),
data2
(midimsg.
data2
),
CN
(midimsg.
CN
) {}
17
MIDIMessageType
type
;
18
Channel
channel
;
19
uint8_t
data1
;
20
uint8_t
data2
;
21
uint8_t
CN
;
22
};
23
24
END_CS_NAMESPACE
ChannelMessageMatcher::ChannelMessageMatcher
ChannelMessageMatcher(MIDIMessageType type, Channel channel, uint8_t data1, uint8_t data2, uint8_t CN=0)
Definition:
ChannelMessageMatcher.hpp:11
ChannelMessageMatcher::data1
uint8_t data1
Definition:
ChannelMessageMatcher.hpp:19
Channel
A type-safe class for MIDI channels.
Definition:
Channel.hpp:13
ChannelMessageMatcher::data2
uint8_t data2
Definition:
ChannelMessageMatcher.hpp:20
ChannelMessageMatcher::CN
uint8_t CN
Definition:
ChannelMessageMatcher.hpp:21
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition:
Settings/NamespaceSettings.hpp:9
ChannelMessageMatcher
Struct for easily matching MIDI messages.
Definition:
ChannelMessageMatcher.hpp:10
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition:
Settings/NamespaceSettings.hpp:10
MIDIMessageType
MIDIMessageType
Definition:
MIDI_MessageTypes.hpp:21
ChannelMessageMatcher::ChannelMessageMatcher
ChannelMessageMatcher(const ChannelMessage &midimsg)
Definition:
ChannelMessageMatcher.hpp:14
ChannelMessage
Definition:
MIDI_MessageTypes.hpp:72
ChannelMessageMatcher::channel
Channel channel
Definition:
ChannelMessageMatcher.hpp:18
MIDI_Parser.hpp
ChannelMessageMatcher::type
MIDIMessageType type
Definition:
ChannelMessageMatcher.hpp:17
Generated by
1.8.19