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); }
void Tuner::midiNoteReceived(unsigned short rawVal) { emit noteReceived(raw2Note(rawVal), raw2Octave(rawVal)); }
void Tuner::midiNoteReceived(unsigned short rawVal) { emit noteReceived(LookUpTables::raw2Note(rawVal), Utils::raw2Octave(rawVal)); }