comparison transform/FeatureExtractionModelTransformer.cpp @ 1090:420fc961c0c4 simple-fft-model

Gut the old code, but don't replace it yet (so nothing will link yet)
author Chris Cannam
date Fri, 12 Jun 2015 14:51:46 +0100
parents 9f4505ac9072
children 4d9816ba0ebe
comparison
equal deleted inserted replaced
1089:655cd4e68e9a 1090:420fc961c0c4
604 (getConformingInput(), 604 (getConformingInput(),
605 channelCount == 1 ? m_input.getChannel() : ch, 605 channelCount == 1 ? m_input.getChannel() : ch,
606 primaryTransform.getWindowType(), 606 primaryTransform.getWindowType(),
607 blockSize, 607 blockSize,
608 stepSize, 608 stepSize,
609 blockSize, 609 blockSize);
610 false,
611 StorageAdviser::PrecisionCritical);
612 if (!model->isOK() || model->getError() != "") { 610 if (!model->isOK() || model->getError() != "") {
613 QString err = model->getError(); 611 QString err = model->getError();
614 delete model; 612 delete model;
615 for (int j = 0; j < (int)m_outputNos.size(); ++j) { 613 for (int j = 0; j < (int)m_outputNos.size(); ++j) {
616 setCompletion(j, 100); 614 setCompletion(j, 100);
617 } 615 }
618 //!!! need a better way to handle this -- previously we were using a QMessageBox but that isn't an appropriate thing to do here either 616 //!!! need a better way to handle this -- previously we were using a QMessageBox but that isn't an appropriate thing to do here either
619 throw AllocationFailed("Failed to create the FFT model for this feature extraction model transformer: error is: " + err); 617 throw AllocationFailed("Failed to create the FFT model for this feature extraction model transformer: error is: " + err);
620 } 618 }
621 model->resume();
622 fftModels.push_back(model); 619 fftModels.push_back(model);
623 cerr << "created model for channel " << ch << endl; 620 cerr << "created model for channel " << ch << endl;
624 } 621 }
625 } 622 }
626 623