This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
ChannelMessageMatcher.hpp
Go to the documentation of this file.
1 /* ✔ */
2 
3 #pragma once
4 
6 
8 
12  uint8_t data2, uint8_t CN = 0)
13  : type(type), channel(channel.getRaw()), data1(data1), data2(data2),
14  CN(CN) {}
16  : type(midimsg.header & 0xF0), channel(midimsg.header & 0x0F),
17  data1(midimsg.data1), data2(midimsg.data2), CN(midimsg.CN) {}
18  uint8_t type;
19  uint8_t channel;
20  uint8_t data1;
21  uint8_t data2;
22  uint8_t CN;
23 };
24 
ChannelMessageMatcher::CN
uint8_t CN
Definition: ChannelMessageMatcher.hpp:22
Channel
A type-safe class for MIDI channels.
Definition: Channel.hpp:13
ChannelMessageMatcher::ChannelMessageMatcher
ChannelMessageMatcher(uint8_t type, Channel channel, uint8_t data1, uint8_t data2, uint8_t CN=0)
Definition: ChannelMessageMatcher.hpp:11
ChannelMessageMatcher
Struct for easily matching MIDI messages.
Definition: ChannelMessageMatcher.hpp:10
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
ChannelMessageMatcher::ChannelMessageMatcher
ChannelMessageMatcher(const ChannelMessage &midimsg)
Definition: ChannelMessageMatcher.hpp:15
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
ChannelMessageMatcher::type
uint8_t type
Definition: ChannelMessageMatcher.hpp:18
ChannelMessageMatcher::channel
uint8_t channel
Definition: ChannelMessageMatcher.hpp:19
ChannelMessageMatcher::data1
uint8_t data1
Definition: ChannelMessageMatcher.hpp:20
ChannelMessage
Definition: MIDI_Parser.hpp:47
ChannelMessageMatcher::data2
uint8_t data2
Definition: ChannelMessageMatcher.hpp:21
MIDI_Parser.hpp