int main(int argc, char* argv[]) { Gtk::Main mainDoc(argc, argv); Bakery::init(); qtgtk_init(0); GYzis* pApp = new GYzis("test"); GYzis::set_command_line_args(argc, argv); pApp->init(); //Sets it up and shows it. mainDoc.run(); return 0; }
// This is the first method that is called after main in created for CsPlayerApplication void initialise (const String& commandLine) { XmlDocument mainDoc(File(File::getCurrentWorkingDirectory().getFullPathName() + File::separatorString + "csProp.scp")); mainElement = mainDoc.getDocumentElement(); if(mainElement == 0) { Logger::outputDebugString("No Cs Setting file avaialble"); GUI::clientSettingDialogWindow clientSettingWindow(new GUI::ClientSettingComponent(true)); clientSettingWindow.runModalLoop(); } File check(File::getCurrentWorkingDirectory().getFullPathName() + File::separatorString + "csProp.scp"); if(check.exists()) appWindow = new GUI::MainAppWindow(); // Do your application's initialisation code here.. }
void dumpConfigDoc () { printf( "Instrument Properties:\n" " Below is a list of available property-value pairs and their default\n" " values. The default value is omitted \"(-)\" for properties which\n" " contain an array of values.\n" " \n" " The type identifiers are:\n" " 'S': text-string, 'I': integer, 'F': float, 'D': double-precision float.\n" " \n" " Properties marked with an asterisk (*), are available as MIDI CC\n" " functions. When used as CC, the values 0-127 (MIDI data) is mapped\n" " to a range of values appropriate to the function.\n" " In config-files or on the command-line you must you the type as\n" " specified e.g. \"osc.temperament=gear60 osc.wiring-crosstalk=0.2\"\n" "\n" ); formatDoc("Main", mainDoc()); formatDoc("MIDI Parser", midiDoc()); formatDoc("MIDI Program Parser", pgmDoc()); formatDoc("Tone Generator", oscDoc()); formatDoc("Vibrato Effect", scannerDoc()); formatDoc("Preamp/Overdrive Effect", ampDoc()); formatDoc("Leslie Cabinet Effect", whirlDoc()); formatDoc("Reverb Effect", reverbDoc()); #ifdef HAVE_ZITACONVOLVE formatDoc("Convolution Reverb Effect", convolutionDoc()); #endif printf("Filter Types (for Leslie):\n"); int i; for (i=0;i<9;i++) { printf(" %d %s\n", i, filterTypeNames[i]); } printf("Note that the gain parameter does not apply to type 0 Low-Pass-Filters.\n\n"); printf( "Additional MIDI Control-Command Functions:\n" " These properties can not be modified directly, but are meant to be mapped\n" " to MIDI-controllers (see \"General Information\" above)\n" " e.g. \"midi.controller.upper.70=upper.drawbar16\".\n" ); printf( " {upper|lower|pedal}.drawbar<NUM> I* (-)\n" " where <NUM> is one of [16, 513, 8, 4, 223, 2, 135 , 113, 1].\n" " Set MIDI-Controller IDs to adjust given drawbar. --\n" " The range is inversely mapped to the position of the drawbar, so that fader-like controllers work in reverse, like real drawbars. Note that the MIDI controller values are quantized into 0 ... 8 to correspond to the nine discrete positions of the original drawbar system:\n" " 0:8 (loudest), 1-15:7, 16-31:6, 32-47:5, 48-63:4, 64-79:3, 80-92:2, 96-110:1, 111-127:0(off)\n" " rotary.speed-preset I* (-)\n" " set horn and drum speed; 0-stop, 1:slow, 2:fast\n" " rotary.speed-toggle I* (-)\n" " toggle rotary.speed-preset between 1/2\n" " rotary.speed-select I* (-)\n" " low-level access function 0..8 (3^2 combinations) [stop/slow/fast]^[horn|drum]\n" " swellpedal1 D* (0.7)\n" " set swell pedal gain\n" " swellpedal2 D* (0.7)\n" " identical to swellpedal1\n" " vibrato.knob I* (0)\n" " <22:vibrato1, <44:chorus1, <66:vibrato2, <88:chorus2, <110vibrato3, >=110:chorus3\n" " vibrato.routing I* (0)\n" " <32:off, <64:lower, <96:upper, >=96:both\n" " vibrato.upper I* (0)\n" " <64:off, >=64 on \n" " vibrato.lower I* (0)\n" " <64:off, >=64 on \n" " percussion.enable I* (0)\n" " <16:off, <63:normal, <112:soft, >=112:off\n" " percussion.decay I* (0)\n" " <64: fast-decay, >=64 slow decay\n" " percussion.harmonic I* (0)\n" " <64: third harmonic, >=64 second harmonic\n" " overdrive.enable I* (0)\n" " <64: disable overdrive, >=64 enable overdrive\n" ); printf("\n"); }