Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::M2Pad Class Reference

#include <m2_pad.h>

Inheritance diagram for ArdourSurface::M2Pad:
[legend]

Public Member Functions

 M2Pad ()
 
uint16_t value () const
 
float pressure () const
 
void set_color (uint32_t rgba)
 
void color (uint8_t &r, uint8_t &g, uint8_t &b) const
 
void set_value (uint16_t v)
 
- Public Member Functions inherited from ArdourSurface::M2PadInterface
 M2PadInterface ()
 
virtual ~M2PadInterface ()
 

Protected Attributes

bool _pressed
 
float _pressure
 
uint16_t _raw
 
float _last
 
uint16_t hist [4]
 
unsigned int _cnt
 
uint32_t _rgba
 

Additional Inherited Members

- Public Attributes inherited from ArdourSurface::M2PadInterface
PBD::Signal< void(float)> pressed
 
PBD::Signal< void()> released
 
PBD::Signal< void(float)> aftertouch
 
PBD::Signal< void(float, bool)> event
 
PBD::Signal< void(float)> changed
 

Detailed Description

Definition at line 54 of file m2_pad.h.

Constructor & Destructor Documentation

◆ M2Pad()

ArdourSurface::M2Pad::M2Pad ( )
inline

Definition at line 57 of file m2_pad.h.

Member Function Documentation

◆ color()

void ArdourSurface::M2Pad::color ( uint8_t &  r,
uint8_t &  g,
uint8_t &  b 
) const
inlinevirtual

Reimplemented from ArdourSurface::M2PadInterface.

Definition at line 75 of file m2_pad.h.

◆ pressure()

float ArdourSurface::M2Pad::pressure ( ) const
inlinevirtual

Reimplemented from ArdourSurface::M2PadInterface.

Definition at line 71 of file m2_pad.h.

◆ set_color()

void ArdourSurface::M2Pad::set_color ( uint32_t  rgba)
inlinevirtual

Reimplemented from ArdourSurface::M2PadInterface.

Definition at line 73 of file m2_pad.h.

◆ set_value()

void ArdourSurface::M2Pad::set_value ( uint16_t  v)
inlinevirtual

Reimplemented from ArdourSurface::M2PadInterface.

Definition at line 82 of file m2_pad.h.

◆ value()

uint16_t ArdourSurface::M2Pad::value ( ) const
inlinevirtual

Reimplemented from ArdourSurface::M2PadInterface.

Definition at line 70 of file m2_pad.h.

Member Data Documentation

◆ _cnt

unsigned int ArdourSurface::M2Pad::_cnt
protected

Definition at line 142 of file m2_pad.h.

◆ _last

float ArdourSurface::M2Pad::_last
protected

Definition at line 140 of file m2_pad.h.

◆ _pressed

bool ArdourSurface::M2Pad::_pressed
protected

Definition at line 137 of file m2_pad.h.

◆ _pressure

float ArdourSurface::M2Pad::_pressure
protected

Definition at line 138 of file m2_pad.h.

◆ _raw

uint16_t ArdourSurface::M2Pad::_raw
protected

Definition at line 139 of file m2_pad.h.

◆ _rgba

uint32_t ArdourSurface::M2Pad::_rgba
protected

Definition at line 143 of file m2_pad.h.

◆ hist

uint16_t ArdourSurface::M2Pad::hist[4]
protected

Definition at line 141 of file m2_pad.h.


The documentation for this class was generated from the following file: