Exemple #1
0
TunerFrame::TunerFrame(QWidget *parent) :
  QWidget(parent),
  ui(new Ui::TunerFrame)
{
  ui->setupUi(this);
  connect(&tunerObj, SIGNAL(noteReceived(QString, QString)), this, SLOT(onTunerNote(QString, QString)));
  connect(&mTunerIndex, SIGNAL(indexReceived(int)), this, SLOT(onTunerIndex(int)));
  connect(&globalObj, &Global::masterTuneReceived, this, &TunerFrame::onMasterTune);
  connect(&tunerObj, &Tuner::muteSignalReceived, this, &TunerFrame::onMute);
}
Exemple #2
0
void Tuner::midiNoteReceived(unsigned short rawVal)
{
  emit noteReceived(raw2Note(rawVal), raw2Octave(rawVal));
}
Exemple #3
0
void Tuner::midiNoteReceived(unsigned short rawVal)
{
  emit noteReceived(LookUpTables::raw2Note(rawVal), Utils::raw2Octave(rawVal));
}