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

#include <m2controls.h>

Inheritance diagram for ArdourSurface::M2Contols:
[legend]

Public Types

enum  Modifier { ModNone = 0 , ModShift }
 
enum  PhysicalButtonId {
  BtnRestart , BtnStepLeft , BtnStepRight , BtnGrid ,
  BtnPlay , BtnRec , BtnErase , BtnShift ,
  BtnScene , BtnPattern , BtnPadMode , BtnNavigate ,
  BtnDuplicate , BtnSelect , BtnSolo , BtnMute ,
  BtnControl , BtnStep , BtnBrowse , BtnSampling ,
  BtnSelLeft , BtnSelRight , BtnAll , BtnAuto ,
  BtnVolume , BtnSwing , BtnTempo , BtnNavLeft ,
  BtnNavRight , BtnEnter , BtnNoteRepeat , BtnWheel ,
  BtnTop0 , BtnTop1 , BtnTop2 , BtnTop3 ,
  BtnTop4 , BtnTop5 , BtnTop6 , BtnTop7 ,
  BtnGroupA , BtnGroupB , BtnGroupC , BtnGroupD ,
  BtnGroupE , BtnGroupF , BtnGroupG , BtnGroupH ,
  BtnCopy , BtnPaste , BtnNote , BtnNudge ,
  BtnUndo , BtnRedo , BtnQuantize , BtnClear ,
  BtnIn1 , BtnIn2 , BtnIn3 , BtnIn4 ,
  BtnMst , BtnGrp , BtnSnd , BtnCue
}
 
enum  SemanticButtonId {
  Play , Rec , Loop , Metronom ,
  GotoStart , GotoEnd , JumpBackward , JumpForward ,
  FastRewind , FastForward , Grid , Delete ,
  Undo , Redo , Save , EncoderWheel ,
  MasterVolume , MasterTempo , Scene , Pattern ,
  PadMode , Navigate , Duplicate , Select ,
  Solo , Mute , Panic
}
 
typedef std::map< PhysicalButtonId, M2ButtonInterface * > PhysicalMap
 
typedef std::map< SemanticButtonId, M2ButtonInterface * > SematicMap
 

Public Member Functions

 M2Contols ()
 
virtual ~M2Contols ()
 
virtual M2ButtonInterfacebutton (PhysicalButtonId id, Modifier m)
 
virtual M2ButtonInterfacebutton (SemanticButtonId id)
 
virtual M2EncoderInterfaceencoder (unsigned int id)
 
virtual M2PadInterfacepad (unsigned int id)
 

Protected Attributes

M2ButtonInterface _dummy_button
 
M2EncoderInterface _dummy_encoder
 
M2PadInterface _dummy_pad
 
M2ToggleHoldButton _shift
 

Detailed Description

Abstraction for various variants:

  • NI Maschine Mikro
  • NI Maschine
  • NI Maschine Studio

Definition at line 36 of file m2controls.h.

Member Typedef Documentation

◆ PhysicalMap

◆ SematicMap

Member Enumeration Documentation

◆ Modifier

Enumerator
ModNone 
ModShift 

Definition at line 42 of file m2controls.h.

◆ PhysicalButtonId

Enumerator
BtnRestart 
BtnStepLeft 
BtnStepRight 
BtnGrid 
BtnPlay 
BtnRec 
BtnErase 
BtnShift 
BtnScene 
BtnPattern 
BtnPadMode 
BtnNavigate 
BtnDuplicate 
BtnSelect 
BtnSolo 
BtnMute 
BtnControl 
BtnStep 
BtnBrowse 
BtnSampling 
BtnSelLeft 
BtnSelRight 
BtnAll 
BtnAuto 
BtnVolume 
BtnSwing 
BtnTempo 
BtnNavLeft 
BtnNavRight 
BtnEnter 
BtnNoteRepeat 
BtnWheel 
BtnTop0 
BtnTop1 
BtnTop2 
BtnTop3 
BtnTop4 
BtnTop5 
BtnTop6 
BtnTop7 
BtnGroupA 
BtnGroupB 
BtnGroupC 
BtnGroupD 
BtnGroupE 
BtnGroupF 
BtnGroupG 
BtnGroupH 
BtnCopy 
BtnPaste 
BtnNote 
BtnNudge 
BtnUndo 
BtnRedo 
BtnQuantize 
BtnClear 
BtnIn1 
BtnIn2 
BtnIn3 
BtnIn4 
BtnMst 
BtnGrp 
BtnSnd 
BtnCue 

Definition at line 47 of file m2controls.h.

◆ SemanticButtonId

Enumerator
Play 
Rec 
Loop 
Metronom 
GotoStart 
GotoEnd 
JumpBackward 
JumpForward 
FastRewind 
FastForward 
Grid 
Delete 
Undo 
Redo 
Save 
EncoderWheel 
MasterVolume 
MasterTempo 
Scene 
Pattern 
PadMode 
Navigate 
Duplicate 
Select 
Solo 
Mute 
Panic 

Definition at line 116 of file m2controls.h.

Constructor & Destructor Documentation

◆ M2Contols()

ArdourSurface::M2Contols::M2Contols ( )
inline

Definition at line 39 of file m2controls.h.

◆ ~M2Contols()

virtual ArdourSurface::M2Contols::~M2Contols ( )
inlinevirtual

Definition at line 40 of file m2controls.h.

Member Function Documentation

◆ button() [1/2]

virtual M2ButtonInterface* ArdourSurface::M2Contols::button ( PhysicalButtonId  id,
Modifier  m 
)
inlinevirtual

Reimplemented in ArdourSurface::M2MapMk2, and ArdourSurface::M2MapMikro.

Definition at line 148 of file m2controls.h.

◆ button() [2/2]

virtual M2ButtonInterface* ArdourSurface::M2Contols::button ( SemanticButtonId  id)
inlinevirtual

Reimplemented in ArdourSurface::M2MapMk2, and ArdourSurface::M2MapMikro.

Definition at line 155 of file m2controls.h.

◆ encoder()

virtual M2EncoderInterface* ArdourSurface::M2Contols::encoder ( unsigned int  id)
inlinevirtual

Reimplemented in ArdourSurface::M2MapMk2, and ArdourSurface::M2MapMikro.

Definition at line 159 of file m2controls.h.

◆ pad()

virtual M2PadInterface* ArdourSurface::M2Contols::pad ( unsigned int  id)
inlinevirtual

Reimplemented in ArdourSurface::M2MapMk2, and ArdourSurface::M2MapMikro.

Definition at line 163 of file m2controls.h.

Member Data Documentation

◆ _dummy_button

M2ButtonInterface ArdourSurface::M2Contols::_dummy_button
protected

Definition at line 168 of file m2controls.h.

◆ _dummy_encoder

M2EncoderInterface ArdourSurface::M2Contols::_dummy_encoder
protected

Definition at line 169 of file m2controls.h.

◆ _dummy_pad

M2PadInterface ArdourSurface::M2Contols::_dummy_pad
protected

Definition at line 170 of file m2controls.h.

◆ _shift

M2ToggleHoldButton ArdourSurface::M2Contols::_shift
protected

Definition at line 172 of file m2controls.h.


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