hydrogen 1.2.5
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 ()
Public Member Functions inherited from Base
 Base ()
 Base (const Base &other)
virtual const char * class_name () const
void logBacktrace () const
 Print the current stack at point into the debug log.
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 ()

Static Public Attributes

static constexpr int nHeight = 284
static constexpr int nWidth = 126
Static Public Attributes inherited from Base
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes.

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
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
static bool bLogColors = true

Detailed Description

Definition at line 237 of file MixerLine.h.

Constructor & Destructor Documentation

◆ MasterMixerLine()

MasterMixerLine ( QWidget * parent)
explicit

Definition at line 585 of file MixerLine.cpp.

◆ ~MasterMixerLine()

Definition at line 654 of file MixerLine.cpp.

Member Function Documentation

◆ faderChanged

void faderChanged ( WidgetWithInput * pRef)
slot

Definition at line 664 of file MixerLine.cpp.

◆ getPeak_L()

float getPeak_L ( )

Definition at line 713 of file MixerLine.cpp.

◆ getPeak_R()

float getPeak_R ( )

Definition at line 737 of file MixerLine.cpp.

◆ getVolume()

float getVolume ( )

Definition at line 683 of file MixerLine.cpp.

◆ muteClicked

void muteClicked ( )
slot

Definition at line 659 of file MixerLine.cpp.

◆ rotaryChanged

void rotaryChanged ( WidgetWithInput * pRef)
slot

Definition at line 776 of file MixerLine.cpp.

◆ setPeak_L()

void setPeak_L ( float peak)

Definition at line 692 of file MixerLine.cpp.

◆ setPeak_R()

void setPeak_R ( float peak)

Definition at line 717 of file MixerLine.cpp.

◆ setVolume()

void setVolume ( float value)

Definition at line 688 of file MixerLine.cpp.

◆ updateMixerLine()

void updateMixerLine ( )

Definition at line 741 of file MixerLine.cpp.

◆ volumeChanged

void volumeChanged ( MasterMixerLine * ref)
signal

Field Documentation

◆ m_fMaxPeak

float m_fMaxPeak
private

Definition at line 274 of file MixerLine.h.

◆ m_nFalloff

float m_nFalloff
private

Definition at line 275 of file MixerLine.h.

◆ m_nHeight

uint m_nHeight
private

Definition at line 271 of file MixerLine.h.

◆ m_nPeakTimer

uint m_nPeakTimer
private

Definition at line 273 of file MixerLine.h.

◆ m_nWidth

uint m_nWidth
private

Definition at line 270 of file MixerLine.h.

◆ m_pHumanizeLbl

ClickableLabel* m_pHumanizeLbl
private

Definition at line 280 of file MixerLine.h.

◆ m_pHumanizeTimeRotary

Rotary* m_pHumanizeTimeRotary
private

Definition at line 288 of file MixerLine.h.

◆ m_pHumanizeVelocityRotary

Rotary* m_pHumanizeVelocityRotary
private

Definition at line 289 of file MixerLine.h.

◆ m_pMasterFader

Fader* m_pMasterFader
private

Definition at line 277 of file MixerLine.h.

◆ m_pMasterLbl

ClickableLabel* m_pMasterLbl
private

Definition at line 279 of file MixerLine.h.

◆ m_pMuteBtn

Button* m_pMuteBtn
private

Definition at line 291 of file MixerLine.h.

◆ m_pPeakLCD

LCDDisplay* m_pPeakLCD
private

Definition at line 285 of file MixerLine.h.

◆ m_pSwingLbl

ClickableLabel* m_pSwingLbl
private

Definition at line 281 of file MixerLine.h.

◆ m_pSwingRotary

Rotary* m_pSwingRotary
private

Definition at line 287 of file MixerLine.h.

◆ m_pTimingLbl

ClickableLabel* m_pTimingLbl
private

Definition at line 282 of file MixerLine.h.

◆ m_pVelocityLbl

ClickableLabel* m_pVelocityLbl
private

Definition at line 283 of file MixerLine.h.

◆ nHeight

int nHeight = 284
staticconstexpr

Definition at line 258 of file MixerLine.h.

◆ nWidth

int nWidth = 126
staticconstexpr

Definition at line 257 of file MixerLine.h.