本文整理汇总了C++中Preferences::getFftFrameSize方法的典型用法代码示例。如果您正苦于以下问题:C++ Preferences::getFftFrameSize方法的具体用法?C++ Preferences::getFftFrameSize怎么用?C++ Preferences::getFftFrameSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Preferences
的用法示例。
在下文中一共展示了Preferences::getFftFrameSize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QDialog
PrefsDialog::PrefsDialog(QWidget *parent): QDialog(parent),ui(new Ui::PrefsDialog){
// map dropdown values to indices
listTagFormat << TAG_FORMAT_KEYS;
listTagFormat << TAG_FORMAT_CUSTOM;
listTagFormat << TAG_FORMAT_BOTH;
listStartingFreq << 27.5;
listStartingFreq << 55;
listStartingFreq << 110;
listStartingFreq << 220;
listStartingFreq << 440;
listStartingFreq << 880;
listHopSize << 128;
listHopSize << 256;
listHopSize << 512;
listHopSize << 1024;
listHopSize << 2048;
listHopSize << 4096;
listHopSize << 8192;
listHopSize << 16384;
listHopSize << 32768;
listHopSize << 65536;
listTemporalWindow << KeyFinder::WINDOW_BLACKMAN;
listTemporalWindow << KeyFinder::WINDOW_HAMMING;
listTemporalWindow << KeyFinder::WINDOW_HANN;
listFftFrameSize << 512;
listFftFrameSize << 1024;
listFftFrameSize << 2048;
listFftFrameSize << 4096;
listFftFrameSize << 8192;
listFftFrameSize << 16384;
listFftFrameSize << 32768;
listFftFrameSize << 65536;
listFftFrameSize << 131072;
listFftFrameSize << 262144;
listTuningMethod << KeyFinder::TUNING_HARTE;
listTuningMethod << KeyFinder::TUNING_BIN_ADAPTIVE;
listSegmentation << KeyFinder::SEGMENTATION_NONE;
listSegmentation << KeyFinder::SEGMENTATION_HARTE;
listSegmentation << KeyFinder::SEGMENTATION_COSINE;
listSegmentation << KeyFinder::SEGMENTATION_ARBITRARY;
listToneProfile << KeyFinder::TONE_PROFILE_KRUMHANSL;
listToneProfile << KeyFinder::TONE_PROFILE_TEMPERLEY;
listToneProfile << KeyFinder::TONE_PROFILE_GOMEZ;
listToneProfile << KeyFinder::TONE_PROFILE_SHAATH;
listToneProfile << KeyFinder::TONE_PROFILE_CUSTOM;
listSimilarityMeasure << KeyFinder::SIMILARITY_COSINE;
listSimilarityMeasure << KeyFinder::SIMILARITY_CORRELATION;
// UI
ui->setupUi(this);
this->setWindowFlags(Qt::WindowTitleHint | Qt::CustomizeWindowHint);
// get values from preferences
Preferences p;
ui->writeToFilesAutomatically->setChecked(p.getWriteToFilesAutomatically());
ui->parallelBatchJobs->setChecked(p.getParallelBatchJobs());
ui->writeToTagComment->setChecked(p.getWriteToTagComment());
ui->writeToTagGrouping->setChecked(p.getWriteToTagGrouping());
ui->writeToTagKey->setChecked(p.getWriteToTagKey());
ui->writeToFilePrefix->setChecked(p.getWriteToFilePrefix());
ui->writeToFileSuffix->setChecked(p.getWriteToFileSuffix());
ui->filenameDelimiter->setText(p.getFilenameDelimiter());
ui->skipFilesWithExistingTags->setChecked(p.getSkipFilesWithExistingTags());
ui->temporalWindow->setCurrentIndex(listTemporalWindow.indexOf(p.getTemporalWindow()));
ui->segmentation->setCurrentIndex(listSegmentation.indexOf(p.getSegmentation()));
ui->similarityMeasure->setCurrentIndex(listSimilarityMeasure.indexOf(p.getSimilarityMeasure()));
ui->tagFormat->setCurrentIndex(listTagFormat.indexOf(p.getTagFormat()));
ui->hopSize->setCurrentIndex(listHopSize.indexOf(p.getHopSize()));
ui->fftFrameSize->setCurrentIndex(listFftFrameSize.indexOf(p.getFftFrameSize()));
ui->octaves->setValue(p.getOctaves());
ui->bps->setValue(p.getBpo()/12);
ui->octaveOffset->setChecked(p.getOffsetToC());
ui->dFactor->setValue(p.getDFactor());
ui->toneProfile->setCurrentIndex(listToneProfile.indexOf(p.getToneProfile()));
ui->hcdfPeakPickingNeighbours->setValue(p.getHcdfPeakPickingNeighbours());
ui->arbitrarySegments->setValue(p.getArbitrarySegments());
ui->hcdfGaussianSize->setValue(p.getHcdfGaussianSize());
ui->tuningMethod->setCurrentIndex(listTuningMethod.indexOf(p.getTuningMethod()));
ui->hcdfGaussianSigma->setValue(p.getHcdfGaussianSigma());
ui->stFreq->setCurrentIndex(listStartingFreq.indexOf(p.getStartingFreqA()));
ui->directSkStretch->setValue(p.getDirectSkStretch());
ui->detunedBandWeight->setValue(p.getDetunedBandWeight());
ui->iTunesLibraryPath->setText(p.getITunesLibraryPath());
ui->traktorLibraryPath->setText(p.getTraktorLibraryPath());
ui->seratoLibraryPath->setText(p.getSeratoLibraryPath());
std::vector<float> ctp = p.getCustomToneProfile();
ui->maj0->setValue(ctp[0]);
ui->maj1->setValue(ctp[1]);
ui->maj2->setValue(ctp[2]);
ui->maj3->setValue(ctp[3]);
ui->maj4->setValue(ctp[4]);
ui->maj5->setValue(ctp[5]);
ui->maj6->setValue(ctp[6]);
ui->maj7->setValue(ctp[7]);
ui->maj8->setValue(ctp[8]);
ui->maj9->setValue(ctp[9]);
ui->maj10->setValue(ctp[10]);
ui->maj11->setValue(ctp[11]);
ui->min0->setValue(ctp[12]);
//.........这里部分代码省略.........