A type-safe class for MIDI channels.  
 More...
#include <Def/Channel.hpp>
A type-safe class for MIDI channels. 
- Examples
 - Keyboard-Matrix-BCD.ino.
 
Definition at line 13 of file Channel.hpp.
 
◆ Channel()
  
  
      
        
          | constexpr Channel  | 
          ( | 
          int8_t  | 
          zeroBasedChannel | ) | 
           | 
         
       
   | 
  
inlineexplicitconstexpr   | 
  
 
Create a MIDI Channel object. 
- Parameters
 - 
  
    | zeroBasedChannel | The zero-based channel (0 is the first channel).  | 
  
   
Definition at line 21 of file Channel.hpp.
 
 
◆ getRaw()
  
  
      
        
          | constexpr int8_t getRaw  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineconstexpr   | 
  
 
Get the channel as an integer. 
- Returns
 - The zero-based channel (0 is the first channel). 
 
Definition at line 29 of file Channel.hpp.
 
 
◆ createChannel()
  
  
      
        
          | static constexpr Channel createChannel  | 
          ( | 
          int8_t  | 
          oneBasedChannel | ) | 
           | 
         
       
   | 
  
inlinestaticconstexpr   | 
  
 
Create a channel. 
- Parameters
 - 
  
    | oneBasedChannel | The channel number (1 is the first channel).  | 
  
   
Definition at line 37 of file Channel.hpp.
 
 
◆ operator==()
  
  
      
        
          | constexpr bool operator==  | 
          ( | 
          const Channel &  | 
          rhs | ) | 
           const | 
         
       
   | 
  
inlineconstexpr   | 
  
 
Check if two channels are the same. 
- Parameters
 - 
  
    | rhs | The other channel to compare this channel to.  | 
  
   
Definition at line 47 of file Channel.hpp.
 
 
◆ operator+=()
  
  
      
        
          | Channel& operator+=  | 
          ( | 
          const int8_t  | 
          rhs | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Add an offset. 
- Parameters
 - 
  
    | rhs | The offset to add to this channel.  | 
  
   
Definition at line 57 of file Channel.hpp.
 
 
◆ operator+()
  
  
      
        
          | Channel operator+  | 
          ( | 
          const int8_t  | 
          rhs | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Add an offset to a channel. 
- Parameters
 - 
  
    | rhs | The offset to add to the channel.  | 
  
   
Definition at line 68 of file Channel.hpp.
 
 
◆ operator-=()
  
  
      
        
          | Channel& operator-=  | 
          ( | 
          const int8_t  | 
          rhs | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Subtract an offset. 
- Parameters
 - 
  
    | rhs | The offset to subtract from this channel.  | 
  
   
Definition at line 80 of file Channel.hpp.
 
 
◆ operator-()
  
  
      
        
          | Channel operator-  | 
          ( | 
          const int8_t  | 
          rhs | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Subtract an offset from a channel. 
- Parameters
 - 
  
    | rhs | The offset to subtract from the channel.  | 
  
   
Definition at line 91 of file Channel.hpp.
 
 
◆ zeroBasedChannel
The documentation for this class was generated from the following file: