GraphicEqualizerFrame::GraphicEqualizerFrame(QWidget *parent)
  : QWidget(parent)
  ,ui(new Ui::GraphicEqualizerFrame)
  , mpStomp(nullptr)
  , mFXType(None)
{
  ui->setupUi(this);
  setCurrentDisplayPage(QToasterLCD::Page1);
  ui->lowCutDial->setLookUpTable(LookUpTables::getFrequencyValues());
  ui->highCutDial->setLookUpTable(LookUpTables::getFrequencyValues());
}
Ejemplo n.º 2
0
void PhaserOnewayFrame::activate(QObject& stomp)
{
  ui = new Ui::PhaserOnewayFrame();
  ui->setupUi(this);
  setCurrentDisplayPage(mCurrentPage);

  mpStomp = qobject_cast<Stomp*>(&stomp);

  if(mpStomp != nullptr)
  {
    connect(mpStomp, static_cast<void (Stomp::*)(double)>(&Stomp::modulationRateReceived), this, &PhaserOnewayFrame::onRate);
    connect(mpStomp, &Stomp::modulationDepthReceived, this, &PhaserOnewayFrame::onDepth);
    connect(mpStomp, &Stomp::modulationManualReceived, this, &PhaserOnewayFrame::onManual);
    connect(mpStomp, &Stomp::modulationFeedbackReceived, this, &PhaserOnewayFrame::onFeedback);
    connect(mpStomp, &Stomp::modulationPhaserPeakSpreadReceived, this, &PhaserOnewayFrame::onPeakSpread);
    connect(mpStomp, &Stomp::modulationPhaserStagesReceived, this, &PhaserOnewayFrame::onStages);
    connect(mpStomp, &Stomp::mixReceived, this, &PhaserOnewayFrame::onMix);
    connect(mpStomp, &Stomp::duckingReceived, this, &PhaserOnewayFrame::onDucking);
    connect(mpStomp, &Stomp::volumeReceived, this, &PhaserOnewayFrame::onVolume);
    connect(mpStomp, &Stomp::stereoReceived, this, &PhaserOnewayFrame::onStereo);

    ui->lcdDisplay->setStompInstance(LookUpTables::stompInstanceName(mpStomp->getInstance()));
    ui->lcdDisplay->setStompName(LookUpTables::stompFXName(mpStomp->getFXType()));

    mpStomp->requestModulationRate();
    mpStomp->requestModulationDepth();
    mpStomp->requestModulationManual();
    mpStomp->requestModulationFeedback();
    mpStomp->requestModulationPhaserPeakSpread();
    mpStomp->requestModulationPhaserStages();
    mpStomp->requestMix();
    mpStomp->requestDucking();
    mpStomp->requestVolume();
    mpStomp->requestStereo();

    if(mpStomp->getInstance() != StompX && mpStomp->getInstance() != StompMod)
    {
      ui->stereoDial->setIsActive(false);
      ui->lcdDisplay->setValue7("");
      ui->lcdDisplay->setValue7Title("");
    }
    else
    {
      ui->stereoDial->setIsActive(true);
      ui->lcdDisplay->setValue7Title("Stereo");
    }
  }
}
Ejemplo n.º 3
0
void RotarySpeakerFrame::activate(QObject& stomp)
{
  ui = new Ui::RotarySpeakerFrame();
  ui->setupUi(this);
  ui->distanceDial->setLookUpTable(LookUpTables::getRotaryDistanceValues());
  setCurrentDisplayPage(mCurrentPage);

  mpStomp = qobject_cast<Stomp*>(&stomp);

  if(mpStomp != nullptr)
  {
    connect(mpStomp, &Stomp::rotaryDistanceReceived, this, &RotarySpeakerFrame::onDistance);
    connect(mpStomp, &Stomp::rotaryBalanceReceived, this, &RotarySpeakerFrame::onLowHighBalance);
    connect(mpStomp, &Stomp::rotarySpeedReceived, this, &RotarySpeakerFrame::onRotarySpeed);
    connect(mpStomp, &Stomp::volumeReceived, this, &RotarySpeakerFrame::onVolume);
    connect(mpStomp, &Stomp::mixReceived, this, &RotarySpeakerFrame::onMix);
    connect(mpStomp, &Stomp::duckingReceived, this, &RotarySpeakerFrame::onDucking);
    connect(mpStomp, &Stomp::stereoReceived, this, &RotarySpeakerFrame::onStereo);

    ui->lcdDisplay->setStompInstance(LookUpTables::stompInstanceName(mpStomp->getInstance()));
    ui->lcdDisplay->setStompName(LookUpTables::stompFXName(mpStomp->getFXType()));

    mpStomp->requestRotaryDistance();
    mpStomp->requestRotaryBalance();
    mpStomp->requestRotarySpeed();
    mpStomp->requestVolume();
    mpStomp->requestMix();
    mpStomp->requestDucking();


    StompInstance si = mpStomp->getInstance();
    if(si != StompX && si != StompMod && si != StompDelay)
    {
      ui->lcdDisplay->setValue7("");
      ui->lcdDisplay->setValue7Title("");
      ui->stereoDial->setIsActive(false);
    }
    else
    {
      ui->lcdDisplay->setValue7Title("Stereo");
      ui->stereoDial->setIsActive(true);
      mpStomp->requestStereo();
    }
  }
}
Ejemplo n.º 4
0
void GraphicEqualizerFrame::activate(QObject& stomp)
{
  ui = new Ui::GraphicEqualizerFrame();
  ui->setupUi(this);
  ui->lowCutDial->setLookUpTable(LookUpTables::getFrequencyValues());
  ui->highCutDial->setLookUpTable(LookUpTables::getFrequencyValues());
  setCurrentDisplayPage(mCurrentPage);

  mpStomp = qobject_cast<Stomp*>(&stomp);

  if(mpStomp != nullptr)
  {
    connect(mpStomp, &Stomp::mixReceived, this, &GraphicEqualizerFrame::onMix);
    connect(mpStomp, &Stomp::duckingReceived, this, &GraphicEqualizerFrame::onDucking);
    connect(mpStomp, &Stomp::volumeReceived, this, &GraphicEqualizerFrame::onVolume);
    connect(mpStomp, &Stomp::graphicEQBand1Received, this, &GraphicEqualizerFrame::onBand1);
    connect(mpStomp, &Stomp::graphicEQBand2Received, this, &GraphicEqualizerFrame::onBand2);
    connect(mpStomp, &Stomp::graphicEQBand3Received, this, &GraphicEqualizerFrame::onBand3);
    connect(mpStomp, &Stomp::graphicEQBand4Received, this, &GraphicEqualizerFrame::onBand4);
    connect(mpStomp, &Stomp::graphicEQBand5Received, this, &GraphicEqualizerFrame::onBand5);
    connect(mpStomp, &Stomp::graphicEQBand6Received, this, &GraphicEqualizerFrame::onBand6);
    connect(mpStomp, &Stomp::graphicEQBand7Received, this, &GraphicEqualizerFrame::onBand7);
    connect(mpStomp, &Stomp::graphicEQBand8Received, this, &GraphicEqualizerFrame::onBand8);
    connect(mpStomp, &Stomp::lowCutReceived, this, &GraphicEqualizerFrame::onLowCut);
    connect(mpStomp, &Stomp::highCutReceived, this, &GraphicEqualizerFrame::onHighCut);

    mpStomp->requestMix();
    mpStomp->requestDucking();
    mpStomp->requestVolume();
    mpStomp->requestGraphicEQBand1();
    mpStomp->requestGraphicEQBand2();
    mpStomp->requestGraphicEQBand3();
    mpStomp->requestGraphicEQBand4();
    mpStomp->requestGraphicEQBand5();
    mpStomp->requestGraphicEQBand6();
    mpStomp->requestGraphicEQBand7();
    mpStomp->requestGraphicEQBand8();
    mpStomp->requestLowCut();
    mpStomp->requestHighCut();

    ui->lcdDisplay->setStompInstance(LookUpTables::stompInstanceName(mpStomp->getInstance()));
    ui->lcdDisplay->setStompName(LookUpTables::stompFXName(mpStomp->getFXType()));
  }
}
Ejemplo n.º 5
0
void TremoloFrame::activate(QObject& stomp)
{
  ui = new Ui::TremoloFrame();
  ui->setupUi(this);
  ui->crossoverDial->setLookUpTable(LookUpTables::getFrequencyValues());
  ui->rateDial->setLookUpTable(LookUpTables::getTremoloRateValues());
  setCurrentDisplayPage(mCurrentPage);

  mpStomp = qobject_cast<Stomp*>(&stomp);

  if(mpStomp != nullptr)
  {
    connect(mpStomp, static_cast<void (Stomp::*)(int)>(&Stomp::modulationRateReceived), this, &TremoloFrame::onRate);
    connect(mpStomp, &Stomp::modulationDepthReceived, this, &TremoloFrame::onDepth);
    connect(mpStomp, static_cast<void (Stomp::*)(int)>(&Stomp::modulationCrossoverReceived), this, &TremoloFrame::onCrossover);
    connect(mpStomp, &Stomp::volumeReceived, this, &TremoloFrame::onVolume);
    connect(mpStomp, &Stomp::duckingReceived, this, &TremoloFrame::onDucking);
    connect(mpStomp, &Stomp::stereoReceived, this, &TremoloFrame::onStereo);

    ui->lcdDisplay->setStompInstance(LookUpTables::stompInstanceName(mpStomp->getInstance()));
    ui->lcdDisplay->setStompName(LookUpTables::stompFXName(mpStomp->getFXType()));

    mpStomp->requestModulationRate();
    mpStomp->requestModulationDepth();
    mpStomp->requestModulationCrossover();
    mpStomp->requestVolume();
    mpStomp->requestDucking();

    StompInstance si = mpStomp->getInstance();
    if(si != StompX && si != StompMod && si != StompDelay)
    {
      ui->lcdDisplay->setValue4("");
      ui->lcdDisplay->setValue4Title("");
      ui->stereoDial->setIsActive(false);
    }
    else
    {
      ui->lcdDisplay->setValue4Title("Stereo");
      ui->stereoDial->setIsActive(true);
      mpStomp->requestStereo();
    }
  }
}
Ejemplo n.º 6
0
void ToneAndDuckingDSFrame::activate(QObject& stomp)
{
  ui = new Ui::ToneAndDuckingDSFrame();
  ui->setupUi(this);
  setCurrentDisplayPage(mCurrentPage);

  mpStomp = qobject_cast<Stomp*>(&stomp);

  if(mpStomp != nullptr)
  {
    connect(mpStomp, SIGNAL(volumeReceived(double)), this, SLOT(onVolume(double)));
    connect(mpStomp, SIGNAL(distortionBoosterToneReceived(double)), this, SLOT(onTone(double)));
    connect(mpStomp, SIGNAL(duckingReceived(double)), this, SLOT(onDucking(double)));

    mpStomp->requestVolume();
    mpStomp->requestDistortionBoosterTone();
    mpStomp->requestDucking();

    ui->lcdDisplay->setStompInstance(LookUpTables::stompInstanceName(mpStomp->getInstance()));
    ui->lcdDisplay->setStompName(LookUpTables::stompFXName(mpStomp->getFXType()));
  }
Ejemplo n.º 7
0
void OutputFrame::activate(QObject& module)
{
  ui = new Ui::OutputFrame();
  ui->setupUi(this);
  ui->mainVolumeDial->setLookUpTable(LookUpTables::getMainVolumeValues());
  ui->monitorVolumeDial->setLookUpTable(LookUpTables::getMainVolumeValues());
  ui->directVolumeDial->setLookUpTable(LookUpTables::getMainVolumeValues());
  ui->headphoneVolumeDial->setLookUpTable(LookUpTables::getMainVolumeValues());
  ui->spdifVolumeDial->setLookUpTable(LookUpTables::getMainVolumeValues());
  setCurrentDisplayPage(mCurrentPage);

  MasterVolume& mv = MasterVolume::get();
  connect(&mv, &MasterVolume::mainOutputVolumeChanged, this, &OutputFrame::OnMainVolume);
  connect(&mv, &MasterVolume::monitorOutputVolumeChanged, this, &OutputFrame::OnMonitorVolume);
  connect(&mv, &MasterVolume::directOutputVolumeChanged, this, &OutputFrame::OnDirectVolume);
  connect(&mv, &MasterVolume::headphoneOutputVolumeChanged, this, &OutputFrame::OnHeadphoneVolume);
  connect(&mv, &MasterVolume::spdifOutputVolumeChanged, this, &OutputFrame::OnSPDIFVolume);

  mpGlobal = qobject_cast<Global*>(&module);

  if(mpGlobal != nullptr)
  {
    connect(mpGlobal, &Global::mainOutputSourceReceived, this, &OutputFrame::OnMainOutputSource);
    connect(mpGlobal, &Global::monitorOutputSourceReceived, this, &OutputFrame::OnMonitorOutputSource);
    connect(mpGlobal, &Global::directOutputSourceReceived, this, &OutputFrame::OnDirectOutputSource);
    connect(mpGlobal, &Global::spdifOutputSourceReceived, this, &OutputFrame::OnSPDIFOutputSource);
    connect(mpGlobal, &Global::mainOutputVolumeReceived, this, &OutputFrame::OnMainVolume);
    connect(mpGlobal, &Global::monitorOutputVolumeReceived, this, &OutputFrame::OnMonitorVolume);
    connect(mpGlobal, &Global::directOutputVolumeReceived, this, &OutputFrame::OnDirectVolume);
    connect(mpGlobal, &Global::headphoneOutputVolumeReceived, this, &OutputFrame::OnHeadphoneVolume);
    connect(mpGlobal, &Global::monitorOutputEQBassReceived, this, &OutputFrame::OnMonitorOutputEQBass);
    connect(mpGlobal, &Global::monitorOutputEQMiddleReceived, this, &OutputFrame::OnMonitorOutputEQMiddle);
    connect(mpGlobal, &Global::monitorOutputEQTrebleReceived, this, &OutputFrame::OnMonitorOutputEQTreble);
    connect(mpGlobal, &Global::monitorOutputEQPresenceReceived, this, &OutputFrame::OnMonitorOutputEQPresence);
    connect(mpGlobal, &Global::monitorCabOffReceived, this, &OutputFrame::OnMonitorCabOff);
    connect(mpGlobal, &Global::mainOutputEQBassReceived, this, &OutputFrame::OnMainOutputEQBass);
    connect(mpGlobal, &Global::mainOutputEQMiddleReceived, this, &OutputFrame::OnMainOutputEQMiddle);
    connect(mpGlobal, &Global::mainOutputEQTrebleReceived, this, &OutputFrame::OnMainOutputEQTreble);
    connect(mpGlobal, &Global::mainOutputEQPresenceReceived, this, &OutputFrame::OnMainOutputEQPresence);
    connect(mpGlobal, &Global::spdifOutputVolumeReceived, this, &OutputFrame::OnSPDIFVolume);
    connect(mpGlobal, &Global::pureCabReceived, this, &OutputFrame::OnPureCabinet);
    connect(mpGlobal, &Global::spaceReceived, this, &OutputFrame::OnSpace);
    connect(mpGlobal, &Global::pureCabOnOffReceived, this, &OutputFrame::OnPureCabinetOnOff);
    connect(mpGlobal, &Global::headphoneSpaceOnOffReceived, this, &OutputFrame::OnHeadphoneSpace);
    connect(mpGlobal, &Global::auxInToMainReceived, this, &OutputFrame::OnAuxInMain);
    connect(mpGlobal, &Global::auxInToHeadphoneReceived, this, &OutputFrame::OnAuxInHeadphone);
    connect(mpGlobal, &Global::constantLatencyOnOffReceived, this, &OutputFrame::OnConstantLatency);

    mpGlobal->requestMainOutputSource();
    mpGlobal->requestMonitorOutputSource();
    mpGlobal->requestDirectOutputSource();
    mpGlobal->requestSPDIFOutputSource();
    mpGlobal->requestMainOutputVolume();
    mpGlobal->requestMonitorOutputVolume();
    mpGlobal->requestDirectOutputVolume();
    mpGlobal->requestHeadphoneOutputVolume();
    mpGlobal->requestMonitorOutputEQBass();
    mpGlobal->requestMonitorOutputEQMiddle();
    mpGlobal->requestMonitorOutputEQTreble();
    mpGlobal->requestMonitorOutputEQPresence();
    mpGlobal->requestMonitorCabOff();
    mpGlobal->requestMainOutputEQBass();
    mpGlobal->requestMainOutputEQMiddle();
    mpGlobal->requestMainOutputEQTreble();
    mpGlobal->requestMainOutputEQPresence();
    mpGlobal->requestSPDIFOutputVlume();
    mpGlobal->requestPureCab();
    mpGlobal->requestSpace();
    mpGlobal->requestPureCabOnOff();
    mpGlobal->requestHeadphoneSpaceOnOff();
    mpGlobal->requestAuxInToMain();
    mpGlobal->requestAuxInToHeadphone();
    mpGlobal->requestConstantLatencyOnOff();

    ui->monitorOutLinkDial->setValue(MasterVolume::get().getMonitoprOutputLink() ? 1 : 0);
    ui->mainOutLinkDial->setValue(MasterVolume::get().getMainOutputLink() ? 1 : 0);
    ui->directOutLinkDial->setValue(MasterVolume::get().getDirectOutputLink() ? 1 : 0);
    ui->headphoneLinkDial->setValue(MasterVolume::get().getHeadphoneOutputLink() ? 1 : 0);
    ui->spdifOutLinkDial->setValue(MasterVolume::get().getSPDIFOutputLink() ? 1 : 0);
  }
}