hydrogen 1.2.6
MixerLine Class Reference

A mixer strip. More...

#include <MixerLine.h>

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

Public Slots

void faderChanged (WidgetWithInput *ref)
 
void knobChanged (WidgetWithInput *ref)
 
void muteBtnClicked ()
 
void nameClicked ()
 
void nameSelected ()
 
void panChanged (WidgetWithInput *ref)
 
void soloBtnClicked ()
 

Signals

void instrumentNameClicked (MixerLine *ref)
 
void instrumentNameSelected (MixerLine *ref)
 
void knobChanged (MixerLine *ref, int nKnob)
 
void muteBtnClicked (MixerLine *ref)
 
void noteOffClicked (MixerLine *ref)
 
void noteOnClicked (MixerLine *ref)
 
void panChanged (MixerLine *ref)
 
void soloBtnClicked (MixerLine *ref)
 
void volumeChanged (MixerLine *ref)
 

Public Member Functions

 MixerLine (QWidget *parent, int nInstr)
 
 ~MixerLine ()
 
int getActivity ()
 
float getFXLevel (uint nFX)
 
QString getName ()
 
float getPan ()
 
float getPeak_L ()
 
float getPeak_R ()
 
float getVolume ()
 
bool isMuteClicked ()
 
bool isSoloClicked ()
 
void setActivity (uint value)
 
void setFXLevel (uint nFX, float fValue)
 
void setMuteClicked (bool isClicked)
 
void setName (QString name)
 
void setPan (float value)
 
void setPeak_L (float peak)
 
void setPeak_R (float peak)
 
void setPlayClicked (bool clicked)
 
void setSelected (bool bIsSelected)
 
void setSoloClicked (bool isClicked)
 
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 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< MixerLine >
 Object ()
 
 Object (const Object< MixerLine > &other)
 

Static Public Attributes

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

Private Attributes

bool m_bIsSelected
 
float m_fMaxPeak
 
uint m_nActivity
 
float m_nFalloff
 
uint m_nHeight
 
uint m_nPeakTimer
 
uint m_nWidth
 
Faderm_pFader
 
Rotarym_pFxRotary [MAX_FX]
 
Buttonm_pMuteBtn
 
InstrumentNameWidgetm_pNameWidget
 
Rotarym_pPanRotary
 
LCDDisplaym_pPeakLCD
 
Buttonm_pPlaySampleBtn
 
LEDm_pSelectionLED
 
Buttonm_pSoloBtn
 
LEDm_pTriggerSampleLED
 

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< MixerLine >
 ~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

A mixer strip.

Definition at line 83 of file MixerLine.h.

Constructor & Destructor Documentation

◆ MixerLine()

MixerLine ( QWidget * parent,
int nInstr )

Definition at line 48 of file MixerLine.cpp.

◆ ~MixerLine()

~MixerLine ( )

Definition at line 169 of file MixerLine.cpp.

Member Function Documentation

◆ faderChanged

void faderChanged ( WidgetWithInput * ref)
slot

Definition at line 203 of file MixerLine.cpp.

◆ getActivity()

int getActivity ( )
inline

Definition at line 115 of file MixerLine.h.

◆ getFXLevel()

float getFXLevel ( uint nFX)

Definition at line 363 of file MixerLine.cpp.

◆ getName()

QString getName ( )
inline

Definition at line 110 of file MixerLine.h.

◆ getPan()

float getPan ( )

Definition at line 321 of file MixerLine.cpp.

◆ getPeak_L()

float getPeak_L ( )

Definition at line 275 of file MixerLine.cpp.

◆ getPeak_R()

float getPeak_R ( )

Definition at line 299 of file MixerLine.cpp.

◆ getVolume()

float getVolume ( )

Definition at line 246 of file MixerLine.cpp.

◆ instrumentNameClicked

void instrumentNameClicked ( MixerLine * ref)
signal

◆ instrumentNameSelected

void instrumentNameSelected ( MixerLine * ref)
signal

◆ isMuteClicked()

bool isMuteClicked ( )

Definition at line 225 of file MixerLine.cpp.

◆ isSoloClicked()

bool isSoloClicked ( )

Definition at line 236 of file MixerLine.cpp.

◆ knobChanged [1/2]

void knobChanged ( MixerLine * ref,
int nKnob )
signal

◆ knobChanged [2/2]

void knobChanged ( WidgetWithInput * ref)
slot

Definition at line 341 of file MixerLine.cpp.

◆ muteBtnClicked [1/2]

void muteBtnClicked ( )
slot

Definition at line 193 of file MixerLine.cpp.

◆ muteBtnClicked [2/2]

void muteBtnClicked ( MixerLine * ref)
signal

◆ nameClicked

void nameClicked ( )
slot

Definition at line 303 of file MixerLine.cpp.

◆ nameSelected

void nameSelected ( )
slot

Definition at line 307 of file MixerLine.cpp.

◆ noteOffClicked

void noteOffClicked ( MixerLine * ref)
signal

◆ noteOnClicked

void noteOnClicked ( MixerLine * ref)
signal

◆ panChanged [1/2]

void panChanged ( MixerLine * ref)
signal

◆ panChanged [2/2]

void panChanged ( WidgetWithInput * ref)
slot

Definition at line 311 of file MixerLine.cpp.

◆ setActivity()

void setActivity ( uint value)
inline

Definition at line 116 of file MixerLine.h.

◆ setFXLevel()

void setFXLevel ( uint nFX,
float fValue )

Definition at line 354 of file MixerLine.cpp.

◆ setMuteClicked()

void setMuteClicked ( bool isClicked)

Definition at line 230 of file MixerLine.cpp.

◆ setName()

void setName ( QString name)
inline

Definition at line 109 of file MixerLine.h.

◆ setPan()

void setPan ( float value)

Definition at line 326 of file MixerLine.cpp.

◆ setPeak_L()

void setPeak_L ( float peak)

Definition at line 255 of file MixerLine.cpp.

◆ setPeak_R()

void setPeak_R ( float peak)

Definition at line 279 of file MixerLine.cpp.

◆ setPlayClicked()

void setPlayClicked ( bool clicked)

Definition at line 337 of file MixerLine.cpp.

◆ setSelected()

void setSelected ( bool bIsSelected)

Definition at line 372 of file MixerLine.cpp.

◆ setSoloClicked()

void setSoloClicked ( bool isClicked)

Definition at line 240 of file MixerLine.cpp.

◆ setVolume()

void setVolume ( float value)

Definition at line 251 of file MixerLine.cpp.

◆ soloBtnClicked [1/2]

void soloBtnClicked ( )
slot

Definition at line 198 of file MixerLine.cpp.

◆ soloBtnClicked [2/2]

void soloBtnClicked ( MixerLine * ref)
signal

◆ updateMixerLine()

void updateMixerLine ( )

Definition at line 172 of file MixerLine.cpp.

◆ volumeChanged

void volumeChanged ( MixerLine * ref)
signal

Field Documentation

◆ m_bIsSelected

bool m_bIsSelected
private

Definition at line 151 of file MixerLine.h.

◆ m_fMaxPeak

float m_fMaxPeak
private

Definition at line 155 of file MixerLine.h.

◆ m_nActivity

uint m_nActivity
private

Definition at line 153 of file MixerLine.h.

◆ m_nFalloff

float m_nFalloff
private

Definition at line 156 of file MixerLine.h.

◆ m_nHeight

uint m_nHeight
private

Definition at line 150 of file MixerLine.h.

◆ m_nPeakTimer

uint m_nPeakTimer
private

Definition at line 154 of file MixerLine.h.

◆ m_nWidth

uint m_nWidth
private

Definition at line 149 of file MixerLine.h.

◆ m_pFader

Fader* m_pFader
private

Definition at line 158 of file MixerLine.h.

◆ m_pFxRotary

Rotary* m_pFxRotary[MAX_FX]
private

Definition at line 166 of file MixerLine.h.

◆ m_pMuteBtn

Button* m_pMuteBtn
private

Definition at line 161 of file MixerLine.h.

◆ m_pNameWidget

InstrumentNameWidget* m_pNameWidget
private

Definition at line 160 of file MixerLine.h.

◆ m_pPanRotary

Rotary* m_pPanRotary
private

Definition at line 159 of file MixerLine.h.

◆ m_pPeakLCD

LCDDisplay* m_pPeakLCD
private

Definition at line 168 of file MixerLine.h.

◆ m_pPlaySampleBtn

Button* m_pPlaySampleBtn
private

Definition at line 163 of file MixerLine.h.

◆ m_pSelectionLED

LED* m_pSelectionLED
private

Definition at line 165 of file MixerLine.h.

◆ m_pSoloBtn

Button* m_pSoloBtn
private

Definition at line 162 of file MixerLine.h.

◆ m_pTriggerSampleLED

LED* m_pTriggerSampleLED
private

Definition at line 164 of file MixerLine.h.

◆ nHeight

int nHeight = 254
staticconstexpr

Definition at line 126 of file MixerLine.h.

◆ nWidth

int nWidth = 56
staticconstexpr

Definition at line 125 of file MixerLine.h.