57 std::shared_ptr<Action> pAction;
62 setPixmap(
"/mixerPanel/mixerline_background.png" );
87 m_pMuteBtn->setObjectName(
"MixerMuteButton" );
89 pAction = std::make_shared<Action>(
"STRIP_MUTE_TOGGLE");
90 pAction->setParameter1( QString::number(nInstr ));
96 m_pSoloBtn->setObjectName(
"MixerSoloButton" );
98 pAction = std::make_shared<Action>(
"STRIP_SOLO_TOGGLE");
99 pAction->setParameter1( QString::number(nInstr ));
107 pAction = std::make_shared<Action>(
"PAN_ABSOLUTE");
108 pAction->setParameter1( QString::number(nInstr ));
109 pAction->setValue( QString::number( 0 ));
114 for ( uint i = 0; i <
MAX_FX; i++ ) {
117 pAction = std::make_shared<Action>(
"EFFECT_LEVEL_ABSOLUTE" );
118 pAction->setParameter1( QString::number( nInstr ) );
119 pAction->setParameter2( QString::number( i ) );
121 if ( (i % 2) == 0 ) {
134 fFalloffTemp = (fFalloffTemp * 20) - 2;
137 QPixmap textBackground;
138 bool ok = textBackground.load(
Skin::getImagePath() +
"/mixerPanel/mixerline_text_background.png" );
155 pAction = std::make_shared<Action>(
"STRIP_VOLUME_ABSOLUTE");
156 pAction->setParameter1( QString::number(nInstr) );
165 lcdPalette.setColor( QPalette::Window, QColor( 49, 53, 61 ) );
212 double value = (double) pFader->
getValue();
214 QString sMessage = tr(
"Set volume [%1] of instrument" )
215 .arg( value, 0,
'f', 2 );
216 sMessage.append( QString(
" [%1]" )
218 QString sCaller = QString(
"%1:faderChanged:%2" )
222 showStatusBarMessage( sMessage, sCaller );
262 m_pPeakLCD->setText( QString(
"%1" ).arg( peak, 0,
'f', 2 ) );
286 m_pPeakLCD->setText( QString(
"%1" ).arg( peak, 0,
'f', 2 ) );
346 for ( uint i = 0; i <
MAX_FX; i++ ) {
357 ERRORLOG( QString(
"[setFXLevel] nFX >= MAX_FX (nFX=%1)").arg(nFX) );
366 ERRORLOG( QString(
"[setFXLevel] nFX >= MAX_FX (nFX=%1)").arg(nFX) );
400 setPixmap(
"/mixerPanel/componentmixerline_background.png" );
415 fFalloffTemp = (fFalloffTemp * 20) - 2;
418 QPixmap textBackground;
419 bool ok = textBackground.load(
Skin::getImagePath() +
"/mixerPanel/mixerline_text_background.png" );
445 lcdPalette.setColor( QPalette::Window, QColor( 49, 53, 61 ) );
491 double value = (double) pFader->
getValue();
493 QString sMessage = tr(
"Set volume [%1] of component" )
494 .arg( value, 0,
'f', 2 );
495 sMessage.append( QString(
" [%1]" )
497 QString sCaller = QString(
"%1:faderChanged:%2" )
501 showStatusBarMessage( sMessage, sCaller );
541 m_pPeakLCD->setText( QString(
"%1" ).arg( peak, 0,
'f', 2 ) );
565 m_pPeakLCD->setText( QString(
"%1" ).arg( peak, 0,
'f', 2 ) );
594 QPalette defaultPalette;
595 defaultPalette.setColor( QPalette::Window, QColor( 58, 62, 72 ) );
596 this->setPalette( defaultPalette );
599 setPixmap(
"/mixerPanel/masterMixerline_background.png" );
604 fFalloffTemp = (fFalloffTemp * 20) - 2;
611 std::shared_ptr<Action> pAction = std::make_shared<Action>(
"MASTER_VOLUME_ABSOLUTE");
619 lcdPalette.setColor( QPalette::Window, QColor( 49, 53, 61 ) );
636 m_pMuteBtn->setObjectName(
"MixerMasterMuteButton" );
639 pAction = std::make_shared<Action>(
"MUTE_TOGGLE");
675 double value = (double) pFader->
getValue();
677 showStatusBarMessage( tr(
"Set master volume [%1]" )
678 .arg( value, 0,
'f', 2 ),
679 QString(
"%1:faderChanged" )
724 m_pPeakLCD->setText( QString(
"%1" ).arg( peak, 0,
'f', 2 ) );
768 m_pMuteBtn->setChecked( pSong->getIsMuted() );
783 QString sCaller = QString(
"%1:rotaryChanged" ).arg(
class_name() );
784 double fVal = (double) pRotary->
getValue();
790 pHydrogen->
getSong()->setHumanizeTimeValue( fVal );
791 sMsg = tr(
"Set humanize time param [%1]" ).arg( fVal, 0,
'f', 2 );
792 sCaller.append(
":humanizeTime" );
795 pHydrogen->
getSong()->setHumanizeVelocityValue( fVal );
796 sMsg = tr(
"Set humanize vel. param [%1]" ).arg( fVal, 0,
'f', 2 );
797 sCaller.append(
":humanizeVelocity" );
800 pHydrogen->
getSong()->setSwingFactor( fVal );
801 sMsg = tr(
"Set swing factor [%1]").arg( fVal, 0,
'f', 2 );
802 sCaller.append(
":humanizeSwing" );
805 ERRORLOG(
"[knobChanged] Unhandled knob" );
825 setPixmap(
"/mixerPanel/mixerline_label_background.png" );
846 QFont font( pPref->getApplicationFontFamily(),
getPointSize( pPref->getFontSize() ) );
848 p.setPen( QColor(230, 230, 230) );
893 setMinimumSize( width(), height() );
894 setMaximumSize( width(), height() );
896 setPixmap(
"/mixerPanel/fxline_background.png" );
907 m_pEditBtn->setObjectName(
"MixerFXEditButton" );
915 m_pNameLCD->setToolTip( tr(
"Ladspa FX name" ) );
#define RIGHT_HERE
Macro intended to be used for the logging of the locking of the H2Core::AudioEngine.
Custom QLabel that emits a signal when clicked.
void setMuteClicked(bool isClicked)
void setSoloClicked(bool isClicked)
void setVolume(float value)
void faderChanged(WidgetWithInput *ref)
void setPeak_R(float peak)
ComponentMixerLine(QWidget *parent, int CompoID)
void volumeChanged(ComponentMixerLine *ref)
static constexpr int nWidth
InstrumentNameWidget * m_pNameWidget
void setPeak_L(float peak)
static constexpr int nHeight
void unlock()
Mutex unlocking of the AudioEngine.
void lock(const char *file, unsigned int line, const char *function)
Mutex locking of the AudioEngine.
virtual const char * class_name() const
bool setMasterIsMuted(bool isMuted)
std::shared_ptr< Song > getSong() const
Get the current song.
static Hydrogen * get_instance()
Returns the current Hydrogen instance __instance.
AudioEngine * getAudioEngine() const
void setIsModified(bool bIsModified)
Wrapper around Song::setIsModified() that checks whether a song is set.
CoreActionController * getCoreActionController() const
Manager for User Preferences File (singleton)
float getMixerFalloffSpeed()
static Preferences * get_instance()
Returns a pointer to the current Preferences singleton stored in __instance.
Changes
Bitwise or-able options showing which part of the Preferences were altered using the PreferencesDialo...
@ Font
Either the font size or font family have changed.
static HydrogenApp * get_instance()
Returns the instance of HydrogenApp class.
void preferencesChanged(H2Core::Preferences::Changes changes)
Propagates a change in the Preferences through the GUI.
Non-interactive display used for both numerical values and the status display.
LED identicating a user selection.
ClickableLabel * m_pReturnLbl
void setPeaks(float fPeak_L, float fPeak_R)
void volumeChanged(LadspaFXMixerLine *ref)
void setVolume(float value)
void setName(QString name)
void setFxBypassed(bool active)
void getPeaks(float *fPeak_L, float *fPeak_R)
LadspaFXMixerLine(QWidget *parent)
void rotaryChanged(WidgetWithInput *ref)
ClickableLabel * m_pSwingLbl
void volumeChanged(MasterMixerLine *ref)
void faderChanged(WidgetWithInput *pRef)
ClickableLabel * m_pTimingLbl
void setVolume(float value)
Rotary * m_pHumanizeTimeRotary
void setPeak_R(float peak)
ClickableLabel * m_pVelocityLbl
void rotaryChanged(WidgetWithInput *pRef)
ClickableLabel * m_pMasterLbl
MasterMixerLine(QWidget *parent)
static constexpr int nWidth
Rotary * m_pHumanizeVelocityRotary
void setPeak_L(float peak)
static constexpr int nHeight
ClickableLabel * m_pHumanizeLbl
void instrumentNameSelected(MixerLine *ref)
void setMuteClicked(bool isClicked)
Button * m_pPlaySampleBtn
void instrumentNameClicked(MixerLine *ref)
void setSelected(bool bIsSelected)
void setSoloClicked(bool isClicked)
void setPlayClicked(bool clicked)
void panChanged(MixerLine *ref)
void setFXLevel(uint nFX, float fValue)
void noteOffClicked(MixerLine *ref)
void noteOnClicked(MixerLine *ref)
void setVolume(float value)
void faderChanged(WidgetWithInput *ref)
MixerLine(QWidget *parent, int nInstr)
float getFXLevel(uint nFX)
void setPeak_R(float peak)
Rotary * m_pFxRotary[MAX_FX]
LED * m_pTriggerSampleLED
void knobChanged(MixerLine *ref, int nKnob)
static constexpr int nWidth
InstrumentNameWidget * m_pNameWidget
void setPeak_L(float peak)
static constexpr int nHeight
void volumeChanged(MixerLine *ref)
@ Small
No arc will be drawn.
@ Center
The arc features a point at its upmost position.
@ Normal
The arc is of solid red color.
static QString getImagePath()
#define MAX_FX
Maximum number of effects.