A class for potentiometers and faders that send MIDI events and that can be added to a Bank.  
 More...
#include <MIDI_Outputs/Bankable/Abstract/MIDIFilteredAnalog.hpp>
 | 
| void  | begin () override | 
|   | Initialize this updatable.  More...
  | 
|   | 
| void  | update () override | 
|   | Update this updatable.  More...
  | 
|   | 
| void  | map (MappingFunction fn) | 
|   | Specify a mapping function that is applied to the raw analog value before sending.  More...
  | 
|   | 
| void  | invert () | 
|   | Invert the analog value.  More...
  | 
|   | 
| analog_t  | getRawValue () const | 
|   | Get the raw value of the analog input (this is the value without applying the filter or the mapping function first).  More...
  | 
|   | 
| analog_t  | getValue () const | 
|   | Get the value of the analog input (this is the value after first applying the mapping function).  More...
  | 
|   | 
| void  | enable () | 
|   | Enable this updatable: insert it into the linked list of instances, so it gets updated automatically.  More...
  | 
|   | 
| void  | disable () | 
|   | Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically.  More...
  | 
|   | 
| bool  | isEnabled () | 
|   | Check if this updatable is enabled.  More...
  | 
|   | 
template<class BankAddress, class Sender>
class Bankable::MIDIFilteredAnalogAddressable< BankAddress, Sender >
A class for potentiometers and faders that send MIDI events and that can be added to a Bank. 
The analog input is filtered and hysteresis is applied.
- See also
 - FilteredAnalog 
 
Definition at line 21 of file Bankable/Abstract/MIDIFilteredAnalog.hpp.
 
◆ MIDIFilteredAnalogAddressable()
◆ begin()
◆ update()
◆ map()
Specify a mapping function that is applied to the raw analog value before sending. 
- Parameters
 - 
  
    | fn | A function pointer to the mapping function. This function should take the filtered analog value of \( 16 - \mathrm{ANALOG\_FILTER\_SHIFT\_FACTOR} \) bits as a parameter, and should return a value in the same range. | 
  
   
- See also
 - FilteredAnalog::map 
  
Definition at line 57 of file Bankable/Abstract/MIDIFilteredAnalog.hpp.
 
 
◆ invert()
◆ getRawValue()
  
  
      
        
          | analog_t getRawValue  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getValue()
  
  
      
        
          | analog_t getValue  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ enable() [1/4]
Enable this updatable: insert it into the linked list of instances, so it gets updated automatically. 
Definition at line 45 of file Updatable.hpp.
 
 
◆ enable() [2/4]
◆ enable() [3/4]
◆ enable() [4/4]
  
  
      
        
          | static void enable  | 
          ( | 
          U(&)  | 
          array[N] | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
 
◆ disable() [1/4]
Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically. 
Definition at line 55 of file Updatable.hpp.
 
 
◆ disable() [2/4]
◆ disable() [3/4]
◆ disable() [4/4]
  
  
      
        
          | static void disable  | 
          ( | 
          U(&)  | 
          array[N] | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
 
◆ isEnabled()
Check if this updatable is enabled. 
- Note
 - Assumes that the updatable is not added to a different linked list by the user. 
 
Definition at line 69 of file Updatable.hpp.
 
 
◆ beginAll()
◆ updateAll()
  
  
      
        
          | static void updateAll  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
 
◆ address
◆ filteredAnalog
◆ sender
◆ updatables
◆ next
◆ previous
The documentation for this class was generated from the following file: