comparison src/main.cpp @ 366:6439ca6e7de1

switching of sonification and spectrogram via command line argument
author matthiasm
date Tue, 15 Jul 2014 18:12:48 +0100
parents fec4dafd9093
children 08769d8e46f0 0649ac148bf7
comparison
equal deleted inserted replaced
365:fec4dafd9093 366:6439ca6e7de1
151 bool sonification = true; 151 bool sonification = true;
152 bool spectrogram = true; 152 bool spectrogram = true;
153 153
154 if (args.contains("--help") || args.contains("-h") || args.contains("-?")) { 154 if (args.contains("--help") || args.contains("-h") || args.contains("-?")) {
155 std::cerr << QApplication::tr( 155 std::cerr << QApplication::tr(
156 "\nTony is a program for interactive note and pitch analysis and annotation.\n\nUsage:\n\n %1 [--no-audio] [--no-sonification] [--no-spectrogram] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n <file>: One or more Tony (.ton) and audio files may be provided.\n --no-sonification: Disable and hide sonification of pitch tracks and notes.\n --no-spectrogram: Disable spectrogram.").arg(argv[0]).toStdString() << std::endl; 156 "\nTony is a program for interactive note and pitch analysis and annotation.\n\nUsage:\n\n %1 [--no-audio] [--no-sonification] [--no-spectrogram] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n --no-sonification: Disable sonification of pitch tracks and notes and hide their toggles.\n --no-spectrogram: Disable spectrogram.\n <file>: One or more Tony (.ton) and audio files may be provided.").arg(argv[0]).toStdString() << std::endl;
157 exit(2); 157 exit(2);
158 } 158 }
159 159
160 if (args.contains("--no-audio")) audioOutput = false; 160 if (args.contains("--no-audio")) audioOutput = false;
161 161