hydrogen 1.2.3
MasterMixerLine Class Reference

#include <MixerLine.h>

Inheritance diagram for MasterMixerLine:
PixmapWidget Object< MasterMixerLine > Object< PixmapWidget > Base Base

Public Slots

void faderChanged (WidgetWithInput *pRef)
 
void muteClicked ()
 
void rotaryChanged (WidgetWithInput *pRef)
 

Signals

void volumeChanged (MasterMixerLine *ref)
 

Public Member Functions

 MasterMixerLine (QWidget *parent)
 
 ~MasterMixerLine ()
 
float getPeak_L ()
 
float getPeak_R ()
 
float getVolume ()
 
void setPeak_L (float peak)
 
void setPeak_R (float peak)
 
void setVolume (float value)
 
void updateMixerLine ()
 
- Public Member Functions inherited from PixmapWidget
 PixmapWidget (QWidget *pParent)
 
 ~PixmapWidget ()
 
void setColor (const QColor &color)
 
void setPixmap (QString sPixmapPath, bool expand_horiz=false)
 
- Public Member Functions inherited from Object< PixmapWidget >
 Object ()
 
 Object (const Object< PixmapWidget > &other)
 
- Public Member Functions inherited from Base
 Base ()
 
 Base (const Base &other)
 
virtual const char * class_name () const
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG.
 
virtual QString toQString (const QString &sPrefix="", bool bShort=true) const
 Formatted string version for debugging purposes.
 
- Public Member Functions inherited from Object< MasterMixerLine >
 Object ()
 
 Object (const Object< MasterMixerLine > &other)
 

Private Attributes

float m_fMaxPeak
 
float m_nFalloff
 
uint m_nHeight
 
uint m_nPeakTimer
 
uint m_nWidth
 
ClickableLabelm_pHumanizeLbl
 
Rotarym_pHumanizeTimeRotary
 
Rotarym_pHumanizeVelocityRotary
 
Faderm_pMasterFader
 
ClickableLabelm_pMasterLbl
 
Buttonm_pMuteBtn
 
LCDDisplaym_pPeakLCD
 
ClickableLabelm_pSwingLbl
 
Rotarym_pSwingRotary
 
ClickableLabelm_pTimingLbl
 
ClickableLabelm_pVelocityLbl
 

Additional Inherited Members

- Static Public Member Functions inherited from Base
static const char * _class_name ()
 return the class name
 
static QString base_clock (const QString &sMsg)
 Measures the current time and stores it in __last_clock.
 
static QString base_clock_in (const QString &sMsg)
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation !
 
static bool count_active ()
 
static int getAliveObjectCount ()
 
static object_map_t getObjectMap ()
 
static Loggerlogger ()
 return the logger instance
 
static int objects_count ()
 
static void printObjectMapDiff (object_map_t map)
 Creates the difference between a snapshot of the object map and its current state and prints it to std::cout.
 
static void set_count (bool flag)
 enable/disable class instances counting
 
static void write_objects_map_to (std::ostream &out, object_map_t *map=nullptr)
 output the full objects map to a given ostream
 
static void write_objects_map_to_cerr ()
 output objects map to stderr
 
- Static Public Attributes inherited from Base
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes.
 
- Protected Member Functions inherited from PixmapWidget
virtual void paintEvent (QPaintEvent *ev) override
 
- Protected Member Functions inherited from Object< PixmapWidget >
 ~Object ()
 
- Protected Member Functions inherited from Base
 ~Base ()
 
- Protected Member Functions inherited from Object< MasterMixerLine >
 ~Object ()
 
- Static Protected Member Functions inherited from Base
static void registerClass (const char *name, const atomic_obj_cpt_t *counters)
 
- Protected Attributes inherited from PixmapWidget
QColor __color
 
bool __expand_horiz
 
QPixmap m_pixmap
 
QString m_sPixmapPath
 
- Static Protected Attributes inherited from Base
static bool __count = false
 should we count class instances
 
static timeval __last_clock = { 0, 0 }
 
static Logger__logger = nullptr
 

Detailed Description

Definition at line 231 of file MixerLine.h.

Constructor & Destructor Documentation

◆ MasterMixerLine()

MasterMixerLine ( QWidget * parent)
explicit

Definition at line 597 of file MixerLine.cpp.

◆ ~MasterMixerLine()

Definition at line 668 of file MixerLine.cpp.

Member Function Documentation

◆ faderChanged

void faderChanged ( WidgetWithInput * pRef)
slot

Definition at line 678 of file MixerLine.cpp.

◆ getPeak_L()

float getPeak_L ( )

Definition at line 727 of file MixerLine.cpp.

◆ getPeak_R()

float getPeak_R ( )

Definition at line 751 of file MixerLine.cpp.

◆ getVolume()

float getVolume ( )

Definition at line 697 of file MixerLine.cpp.

◆ muteClicked

void muteClicked ( )
slot

Definition at line 673 of file MixerLine.cpp.

◆ rotaryChanged

void rotaryChanged ( WidgetWithInput * pRef)
slot

Definition at line 790 of file MixerLine.cpp.

◆ setPeak_L()

void setPeak_L ( float peak)

Definition at line 706 of file MixerLine.cpp.

◆ setPeak_R()

void setPeak_R ( float peak)

Definition at line 731 of file MixerLine.cpp.

◆ setVolume()

void setVolume ( float value)

Definition at line 702 of file MixerLine.cpp.

◆ updateMixerLine()

void updateMixerLine ( )

Definition at line 755 of file MixerLine.cpp.

◆ volumeChanged

void volumeChanged ( MasterMixerLine * ref)
signal

Field Documentation

◆ m_fMaxPeak

float m_fMaxPeak
private

Definition at line 265 of file MixerLine.h.

◆ m_nFalloff

float m_nFalloff
private

Definition at line 266 of file MixerLine.h.

◆ m_nHeight

uint m_nHeight
private

Definition at line 262 of file MixerLine.h.

◆ m_nPeakTimer

uint m_nPeakTimer
private

Definition at line 264 of file MixerLine.h.

◆ m_nWidth

uint m_nWidth
private

Definition at line 261 of file MixerLine.h.

◆ m_pHumanizeLbl

ClickableLabel* m_pHumanizeLbl
private

Definition at line 271 of file MixerLine.h.

◆ m_pHumanizeTimeRotary

Rotary* m_pHumanizeTimeRotary
private

Definition at line 279 of file MixerLine.h.

◆ m_pHumanizeVelocityRotary

Rotary* m_pHumanizeVelocityRotary
private

Definition at line 280 of file MixerLine.h.

◆ m_pMasterFader

Fader* m_pMasterFader
private

Definition at line 268 of file MixerLine.h.

◆ m_pMasterLbl

ClickableLabel* m_pMasterLbl
private

Definition at line 270 of file MixerLine.h.

◆ m_pMuteBtn

Button* m_pMuteBtn
private

Definition at line 282 of file MixerLine.h.

◆ m_pPeakLCD

LCDDisplay* m_pPeakLCD
private

Definition at line 276 of file MixerLine.h.

◆ m_pSwingLbl

ClickableLabel* m_pSwingLbl
private

Definition at line 272 of file MixerLine.h.

◆ m_pSwingRotary

Rotary* m_pSwingRotary
private

Definition at line 278 of file MixerLine.h.

◆ m_pTimingLbl

ClickableLabel* m_pTimingLbl
private

Definition at line 273 of file MixerLine.h.

◆ m_pVelocityLbl

ClickableLabel* m_pVelocityLbl
private

Definition at line 274 of file MixerLine.h.