Ardour  9.0-pre0-427-gd2a3450e2f
ArdourSurface::Push2::Pad Struct Reference

#include <push2.h>

Inheritance diagram for ArdourSurface::Push2::Pad:
[legend]

Public Types

enum  WhenPressed { Nothing , FlashOn , FlashOff }
 
- Public Types inherited from ArdourSurface::Push2::LED
enum  State {
  NoTransition , OneShot24th , OneShot16th , OneShot8th ,
  OneShot4th , OneShot2th , Pulsing24th , Pulsing16th ,
  Pulsing8th , Pulsing4th , Pulsing2th , Blinking24th ,
  Blinking16th , Blinking8th , Blinking4th , Blinking2th
}
 
enum  Colors {
  Black = 0 , Red = 127 , Green = 126 , Blue = 125 ,
  DarkGray = 124 , LightGray = 123 , White = 122
}
 

Public Member Functions

 Pad (int xx, int yy, uint8_t ex)
 
MidiByteArray state_msg () const
 
int coord () const
 
int note_number () const
 
- Public Member Functions inherited from ArdourSurface::Push2::LED
 LED (uint8_t e)
 
virtual ~LED ()
 
uint8_t extra () const
 
uint8_t color_index () const
 
State state () const
 
void set_color (uint8_t color_index)
 
void set_state (State state)
 

Public Attributes

int x
 
int y
 
int do_when_pressed
 
int filtered
 
int perma_color
 

Additional Inherited Members

- Protected Attributes inherited from ArdourSurface::Push2::LED
uint8_t _extra
 
uint8_t _color_index
 
State _state
 

Detailed Description

Definition at line 169 of file push2.h.

Member Enumeration Documentation

◆ WhenPressed

Enumerator
Nothing 
FlashOn 
FlashOff 

Definition at line 170 of file push2.h.

Constructor & Destructor Documentation

◆ Pad()

ArdourSurface::Push2::Pad::Pad ( int  xx,
int  yy,
uint8_t  ex 
)
inline

Definition at line 176 of file push2.h.

Member Function Documentation

◆ coord()

int ArdourSurface::Push2::Pad::coord ( ) const
inline

Definition at line 187 of file push2.h.

◆ note_number()

int ArdourSurface::Push2::Pad::note_number ( ) const
inline

Definition at line 188 of file push2.h.

◆ state_msg()

MidiByteArray ArdourSurface::Push2::Pad::state_msg ( ) const
inlinevirtual

Implements ArdourSurface::Push2::LED.

Definition at line 185 of file push2.h.

Member Data Documentation

◆ do_when_pressed

int ArdourSurface::Push2::Pad::do_when_pressed

Definition at line 192 of file push2.h.

◆ filtered

int ArdourSurface::Push2::Pad::filtered

Definition at line 193 of file push2.h.

◆ perma_color

int ArdourSurface::Push2::Pad::perma_color

Definition at line 194 of file push2.h.

◆ x

int ArdourSurface::Push2::Pad::x

Definition at line 190 of file push2.h.

◆ y

int ArdourSurface::Push2::Pad::y

Definition at line 191 of file push2.h.


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