comparison chromamethods.cpp @ 163:59b26f52550d

Make some more debug output dependent on debug_on
author Chris Cannam
date Fri, 04 Sep 2015 12:22:09 +0100
parents 2cd99c0810f2
children
comparison
equal deleted inserted replaced
162:c585c95f2d86 163:59b26f52550d
371 371
372 bool hasExternalDictinoary = true; 372 bool hasExternalDictinoary = true;
373 int ppathsize = static_cast<int>(ppath.size()); 373 int ppathsize = static_cast<int>(ppath.size());
374 for (int i = 0; i < ppathsize; ++i) { 374 for (int i = 0; i < ppathsize; ++i) {
375 chordDictFilename = ppath[i] + "/" + chordDictBase; 375 chordDictFilename = ppath[i] + "/" + chordDictBase;
376 cerr << "Looking for chord.dict in " << chordDictFilename << "..." ; 376 // cerr << "Looking for chord.dict in " << chordDictFilename << "..." ;
377 fstream fin; 377 fstream fin;
378 fin.open(chordDictFilename.c_str(),ios::in); 378 fin.open(chordDictFilename.c_str(),ios::in);
379 if( fin.is_open() ) 379 if( fin.is_open() )
380 { 380 {
381 fin.close(); 381 fin.close();
382 cerr << " success." << endl; 382 // cerr << " success." << endl;
383 break; 383 break;
384 } else { 384 } else {
385 if (i+1 < ppathsize) cerr << " (not found yet) ..." << endl; 385 if (i+1 < ppathsize) {
386 else { 386 // cerr << " (not found yet) ..." << endl;
387 cerr << "* WARNING: failed to find chord dictionary, using default chord dictionary." << endl; 387 } else {
388 // cerr << "* WARNING: failed to find chord dictionary, using default chord dictionary." << endl;
388 hasExternalDictinoary = false; 389 hasExternalDictinoary = false;
389 } 390 }
390 } 391 }
391 } 392 }
392 393