00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 void open_score_cb(Fl_Widget*,void*)
00021 {
00022 dataScore = 0;
00023 editor_win();
00024 open();
00025 }
00026
00027 void open_data_cb(Fl_Widget*,void*)
00028 {
00029 dataScore = 1;
00030 editor_win();
00031 open();
00032 }
00033
00034 void open_orc_cb(Fl_Widget*,void*)
00035 {
00036 dataScore = 2;
00037 editor_win();
00038 open();
00039 }
00040
00041
00042 Fl_Shared_Image *img;
00043 Fl_Box *b;
00044
00045
00046 static char name[1024];
00047
00048 void load_file(const char *n) {
00049 if (img) img->release();
00050
00051 img = Fl_Shared_Image::get(n);
00052 if (!img) {
00053 fl_alert("Image file format not recognized!");
00054 return;
00055 }
00056 if (img->w() > b->w() || img->h() > b->h()) {
00057 Fl_Image *temp;
00058 if (img->w() > img->h()) temp = img->copy(b->w(), b->h() * img->h() / img->w());
00059 else temp = img->copy(b->w() * img->w() / img->h(), b->h());
00060
00061 img->release();
00062 img = (Fl_Shared_Image *)temp;
00063 }
00064 b->label(name);
00065 b->image(img);
00066 b->redraw();
00067 }
00068
00069 void file_cb(const char *n) {
00070 if (!strcmp(name,n)) return;
00071
00072 strcpy(name,n);
00073 scoPath->value(name);
00074 }
00075
00076 void fileOrc_cb(const char *n) {
00077 if (!strcmp(name,n)) return;
00078
00079 strcpy(name,n);
00080 orcPath->value(name);
00081 }
00082
00083 void fileData_cb(const char *n) {
00084 if (!strcmp(name,n)) return;
00085
00086 strcpy(name,n);
00087 outData->value(name);
00088 }
00089
00090 void fileGroup_cb(const char *n) {
00091 if (!strcmp(name,n)) return;
00092
00093 strcpy(name,n);
00094 dataPath->value(name);
00095 }
00096
00097 void fileHelp_cb(const char *n) {
00098 if (!strcmp(name,n)) return;
00099
00100 strcpy(name,n);
00101 helpPath->value(name);
00102 }
00103
00104 void btload_cb(Fl_Widget *,void *)
00105 {
00106 fl_file_chooser_callback(file_cb);
00107 fl_file_chooser("Sco file?","*.{sco}", name);
00108 fl_file_chooser_callback(0);
00109 }
00110
00111 void btloadOrc_cb(Fl_Widget *,void *)
00112 {
00113 fl_file_chooser_callback(fileOrc_cb);
00114 fl_file_chooser("Orc file?","*orc|*csd", name);
00115 fl_file_chooser_callback(0);
00116 }
00117
00118 void btloadData_cb(Fl_Widget *,void *)
00119 {
00120 fl_file_chooser_callback(fileData_cb);
00121 fl_file_chooser("Text file?","*.{txt}", name);
00122 fl_file_chooser_callback(0);
00123 }
00124
00125 void btloadGroup_cb(Fl_Widget *,void *)
00126 {
00127 fl_file_chooser_callback(fileGroup_cb);
00128 fl_file_chooser("GDir","", name);
00129 fl_file_chooser_callback(0);
00130 }
00131
00132 void btloadHelp_cb(Fl_Widget *,void *)
00133 {
00134 fl_file_chooser_callback(fileHelp_cb);
00135 fl_file_chooser("html file?","*.{html}", name);
00136 fl_file_chooser_callback(0);
00137 }
00138
00139
00140
00141 void clearsco_cb(Fl_Widget*,void*)
00142 {
00143 if (!fl_ask("Delete all contents of the current score file?")) return;
00144 ofstream out1(scoPath->value(), ios::trunc);
00145 out1.close();
00146
00147 ofstream out2(outData->value(), ios::trunc);
00148 out2.close();
00149
00150 actVal->value(0);
00151 nserie->value(0);
00152 act = 0;
00153 if ( bt_enable_act->value() == 0)
00154 {
00155 def_act();
00156 }
00157 }
00158
00159 void readPrefs_cb(Fl_Widget*,void*)
00160 {
00161 if (out_File->value() >= 1)
00162 {
00163 readPrefs();
00164 readPrefsSerie();
00165 ini_act();
00166 if (bt_enable_act->value() == 0)
00167 {
00168 def_act();
00169 }
00170 }
00171 else
00172 {
00173 (fl_message("Load before an already existing data group and series"));
00174 }
00175 }
00176
00177 void writePrefs_cb(Fl_Widget*,void*)
00178 {
00179 if (out_File->value() >= 1)
00180 {
00181 if (!fl_ask("Do you want really save this setting?")) return;
00182 writePrefs();
00183 if (loadMoreParams == 1) {
00184 writePrefsSerieParams();
00185 }
00186 if (loadMoreParams2 == 1) {
00187 writePrefsSerieParams2();
00188 }
00189 }
00190 else
00191 {
00192 (fl_message("Load before an already existing data group and series"));
00193 }
00194
00195 }
00196
00197 void init_all_series()
00198 {
00199 ini_pitch();
00200 ini_db();
00201 ini_instr();
00202 ini_dur();
00203 ini_act();
00204 if (loadMoreParams == 1)
00205 {
00206 if (bt_enable_p6->value() == 1)
00207 {
00208 ini_p6();
00209 }
00210 if (bt_enable_p7->value() == 1)
00211 {
00212 ini_p7();
00213 }
00214 if (bt_enable_p8->value() == 1)
00215 {
00216 ini_p8();
00217 }
00218 if (bt_enable_p9->value() == 1)
00219 {
00220 ini_p9();
00221 }
00222 if (bt_enable_p10->value() == 1)
00223 {
00224 ini_p10();
00225 }
00226 if (bt_enable_p11->value() == 1)
00227 {
00228 ini_p11();
00229 }
00230 if (bt_enable_p12->value() == 1)
00231 {
00232 ini_p12();
00233 }
00234 if (bt_enable_p13->value() == 1)
00235 {
00236 ini_p13();
00237 }
00238 if (bt_enable_p14->value() == 1)
00239 {
00240 ini_p14();
00241 }
00242 if (bt_enable_p15->value() == 1)
00243 {
00244 ini_p15();
00245 }
00246 }
00247
00248 if (loadMoreParams2 == 1)
00249 {
00250 if (bt_enable_p6b->value() == 1)
00251 {
00252 ini_p6b();
00253 }
00254 if (bt_enable_p7b->value() == 1)
00255 {
00256 ini_p7b();
00257 }
00258 if (bt_enable_p8b->value() == 1)
00259 {
00260 ini_p8b();
00261 }
00262 if (bt_enable_p9b->value() == 1)
00263 {
00264 ini_p9b();
00265 }
00266 if (bt_enable_p10b->value() == 1)
00267 {
00268 ini_p10b();
00269 }
00270 if (bt_enable_p11b->value() == 1)
00271 {
00272 ini_p11b();
00273 }
00274 if (bt_enable_p12b->value() == 1)
00275 {
00276 ini_p12b();
00277 }
00278 if (bt_enable_p13b->value() == 1)
00279 {
00280 ini_p13b();
00281 }
00282 if (bt_enable_p14b->value() == 1)
00283 {
00284 ini_p14b();
00285 }
00286 if (bt_enable_p15b->value() == 1)
00287 {
00288 ini_p15b();
00289 }
00290 }
00291 }
00292
00293
00294
00295 void select_comb()
00296 {
00297 if (autoCounterpoint == 1)
00298 {
00299 outAutoCroce();
00300 }
00301 else if (autoCounterpoint == 2)
00302 {
00303 outAutoRetro();
00304 }
00305 else if (autoCounterpoint == 3)
00306 {
00307 outAutoSlide();
00308 }
00309 else if (autoCounterpoint == 4)
00310 {
00311 outAutoJumpone();
00312 }
00313 }
00314
00315 void score_out()
00316 {
00317 out_setting();
00318 formula formula;
00319 formula.trp_seq();
00320 window->redraw();
00321 if (loadMoreParams == 1) {
00322 winParamn->redraw();
00323 }
00324 if (loadMoreParams2 == 1) {
00325 winParamnb->redraw();
00326 }
00327 init_all_series();
00328 window->redraw();
00329 if (loadMoreParams == 1) {
00330 winParamn->redraw();
00331 }
00332 if (loadMoreParams2 == 1) {
00333 winParamnb->redraw();
00334 }
00335 int i;
00336 ofstream out(scoPath->value(), ios::app);
00337 out.setf(ios::left);
00338
00339 struct tm *ptr;
00340 time_t lt;
00341 lt = time('\0');
00342 ptr = localtime(<);
00343
00344 out << ";>>>csmusgen INPUT session: " << asctime(ptr) << "\n\n";
00345
00346 if (bt_enable_act->value() == 0)
00347 {
00348 actVal->value(act_12->value() + dur_12->value());
00349 act_1->value(actVal->value());
00350 }
00351 out << setw(11) << ";p1" << setw(20) << ";p2" << setw(20) << ";p3";
00352 out << setw(20) << ";p4" << setw(20) << ";p5";
00353 if ( loadMoreParams == 1 ) {
00354 if (bt_enable_p6->value() == 1)
00355 {
00356 out << setw(20) << ";p6";
00357 }
00358 if (bt_enable_p7->value() == 1)
00359 {
00360 out << setw(20) << ";p7";
00361 }
00362 if (bt_enable_p8->value() == 1)
00363 {
00364 out << setw(20) << ";p8";
00365 }
00366 if (bt_enable_p9->value() == 1)
00367 {
00368 out << setw(20) << ";p9";
00369 }
00370 if (bt_enable_p10->value() == 1)
00371 {
00372 out << setw(20) << ";p10";
00373 }
00374 if (bt_enable_p11->value() == 1)
00375 {
00376 out << setw(20) << ";p11";
00377 }
00378 if (bt_enable_p12->value() == 1)
00379 {
00380 out << setw(20) << ";p12";
00381 }
00382 if (bt_enable_p13->value() == 1)
00383 {
00384 out << setw(20) << ";p13";
00385 }
00386 if (bt_enable_p14->value() == 1)
00387 {
00388 out << setw(20) << ";p14";
00389 }
00390 if (bt_enable_p15->value() == 1)
00391 {
00392 out << setw(20) << ";p15";
00393 }
00394 }
00395
00396 if ( loadMoreParams2 == 1 ) {
00397 if (bt_enable_p6b->value() == 1)
00398 {
00399 out << setw(20) << ";p16";
00400 }
00401 if (bt_enable_p7b->value() == 1)
00402 {
00403 out << setw(20) << ";p17";
00404 }
00405 if (bt_enable_p8b->value() == 1)
00406 {
00407 out << setw(20) << ";p18";
00408 }
00409 if (bt_enable_p9b->value() == 1)
00410 {
00411 out << setw(20) << ";p19";
00412 }
00413 if (bt_enable_p10b->value() == 1)
00414 {
00415 out << setw(20) << ";p20";
00416 }
00417 if (bt_enable_p11b->value() == 1)
00418 {
00419 out << setw(20) << ";p21";
00420 }
00421 if (bt_enable_p12b->value() == 1)
00422 {
00423 out << setw(20) << ";p22";
00424 }
00425 if (bt_enable_p13b->value() == 1)
00426 {
00427 out << setw(20) << ";p23";
00428 }
00429 if (bt_enable_p14b->value() == 1)
00430 {
00431 out << setw(20) << ";p24";
00432 }
00433 if (bt_enable_p15b->value() == 1)
00434 {
00435 out << setw(20) << ";p25";
00436 }
00437 }
00438
00439 out << "\n";
00440 for (i=0;i<12;i++)
00441 {
00442 out << "i" << setw(10) << init_instr[i];
00443 out << setw(20);
00444 out << init_act[i];
00445 act = act + init_dur[i];
00446 out << setw(20);
00447 out << init_dur[i];
00448 out << setw(20);
00449 out << init_db[i];
00450 out << setw(20);
00451 out << init_pitch[i];
00452 if (loadMoreParams == 1) {
00453 if (bt_enable_p6->value() == 1)
00454 {
00455 out << setw(20);
00456 out << init_p6[i];
00457 }
00458 if (bt_enable_p7->value() == 1)
00459 {
00460 out << setw(20);
00461 out << init_p7[i];
00462 }
00463 if (bt_enable_p8->value() == 1)
00464 {
00465 out << setw(20);
00466 out << init_p8[i];
00467 }
00468 if (bt_enable_p9->value() == 1)
00469 {
00470 out << setw(20);
00471 out << init_p9[i];
00472 }
00473 if (bt_enable_p10->value() == 1)
00474 {
00475 out << setw(20);
00476 out << init_p10[i];
00477 }
00478 if (bt_enable_p11->value() == 1)
00479 {
00480 out << setw(20);
00481 out << init_p11[i];
00482 }
00483 if (bt_enable_p12->value() == 1)
00484 {
00485 out << setw(20);
00486 out << init_p12[i];
00487 }
00488 if (bt_enable_p13->value() == 1)
00489 {
00490 out << setw(20);
00491 out << init_p13[i];
00492 }
00493 if (bt_enable_p14->value() == 1)
00494 {
00495 out << setw(20);
00496 out << init_p14[i];
00497 }
00498 if (bt_enable_p15->value() == 1)
00499 {
00500 out << setw(20);
00501 out << init_p15[i];
00502 }
00503 }
00504 if (loadMoreParams2 == 1) {
00505 if (bt_enable_p6b->value() == 1)
00506 {
00507 out << setw(20);
00508 out << init_p6b[i];
00509 }
00510 if (bt_enable_p7b->value() == 1)
00511 {
00512 out << setw(20);
00513 out << init_p7b[i];
00514 }
00515 if (bt_enable_p8b->value() == 1)
00516 {
00517 out << setw(20);
00518 out << init_p8b[i];
00519 }
00520 if (bt_enable_p9b->value() == 1)
00521 {
00522 out << setw(20);
00523 out << init_p9b[i];
00524 }
00525 if (bt_enable_p10b->value() == 1)
00526 {
00527 out << setw(20);
00528 out << init_p10b[i];
00529 }
00530 if (bt_enable_p11b->value() == 1)
00531 {
00532 out << setw(20);
00533 out << init_p11b[i];
00534 }
00535 if (bt_enable_p12b->value() == 1)
00536 {
00537 out << setw(20);
00538 out << init_p12b[i];
00539 }
00540 if (bt_enable_p13b->value() == 1)
00541 {
00542 out << setw(20);
00543 out << init_p13b[i];
00544 }
00545 if (bt_enable_p14b->value() == 1)
00546 {
00547 out << setw(20);
00548 out << init_p14b[i];
00549 }
00550 if (bt_enable_p15b->value() == 1)
00551 {
00552 out << setw(20);
00553 out << init_p15b[i];
00554 }
00555 }
00556
00557 out << '\n';
00558 }
00559 out << '\n';
00560
00561 out.close();
00562 subset();
00563 select_comb();
00564 window->redraw();
00565 if (loadMoreParams == 1) {
00566 winParamn->redraw();
00567 }
00568 if (loadMoreParams2 == 1) {
00569 winParamnb->redraw();
00570 }
00571
00572 if (bt_enable_act->value() == 0)
00573 {
00574 actVal->value(act_12->value() + dur_12->value());
00575 actTime();
00576 }
00577 else if (bt_enable_act->value() == 1)
00578 {
00579 def_act();
00580 }
00581 nserie->value(nserie->value() + 1);
00582 }
00583
00584 void out_setting()
00585 {
00586 ofstream out(outData->value(), ios::app);
00587
00588 struct tm *ptr;
00589 time_t lt;
00590 lt = time('\0');
00591 ptr = localtime(<);
00592
00593 out << ";>>>csmusgen INPUT session: " << asctime(ptr) << "\n\n";
00594 out << setw(25) << "orc file:" << setw(5) << "[" << orcPath->value() << "]" << "\n";
00595 out << setw(25) << "sco file:" << setw(5) << "[" << scoPath->value() << "]" << "\n";
00596 out << setw(25) << "group:" << setw(5) << "[" << dataPath->value() << "]" << "\n";
00597 out << setw(25) << "serie number:" << setw(5) << "[" << out_File->text() << "]" << "\n";
00598 out << setw(25) << "serie name:" << setw(5) << "[" << serieName->value() << "]" << "\n";
00599 out << setw(25) << "Action time:" << setw(5) << "[" << actVal->value() << "]" << "\n";
00600 out << setw(25) << "Formula:" << setw(5) << "[" << logic_a->value() << " " << logic_b->value() << " " << logic_c->value() << "]"<< "\n";
00601
00602 if (outSeriePitch->value() == 1) {
00603 out << setw(25) << "INPUT pitch series:";
00604 out << setw(5) << "[" << pch_1->value() << " " << pch_2->value() << " " << pch_3->value() << " " << pch_4->value() << " " ;
00605 out << pch_5->value() << " " << pch_6->value() << " " << pch_7->value() << " " << pch_8->value() << " " ;
00606 out << pch_9->value() << " " << pch_10->value() << " " << pch_11->value() << " " << pch_12->value() << "]" << "\n" ;
00607 }
00608
00609 if (outSerieDur->value() == 1) {
00610 out << setw(25) << "INPUT durations series:";
00611 out << setw(5) << "[" << dur_1->value() << " " << dur_2->value() << " " << dur_3->value() << " " << dur_4->value() << " " ;
00612 out << dur_5->value() << " " << dur_6->value() << " " << dur_7->value() << " " << dur_8->value() << " " ;
00613 out << dur_9->value() << " " << dur_10->value() << " " << dur_11->value() << " " << dur_12->value() << "]" << "\n" ;
00614 }
00615
00616 if (outSerieDb->value() == 1) {
00617 out << setw(25) << "INPUT db series:";
00618 out << setw(5) << "[" << db_1->value() << " " << db_2->value() << " " << db_3->value() << " " << db_4->value() << " " ;
00619 out << db_5->value() << " " << db_6->value() << " " << db_7->value() << " " << db_8->value() << " " ;
00620 out << db_9->value() << " " << db_10->value() << " " << db_11->value() << " " << db_12->value() << "]" << "\n" ;
00621 }
00622
00623 if (outSerieInstr->value() == 1) {
00624 out << setw(25) << "INPUT instr series:";
00625 out << setw(5) << "[" << instr_1->value() << " " << instr_2->value() << " " << instr_3->value() << " " << instr_4->value() << " " ;
00626 out << instr_5->value() << " " << instr_6->value() << " " << instr_7->value() << " " << instr_8->value() << " " ;
00627 out << instr_9->value() << " " << instr_10->value() << " " << instr_11->value() << " " << instr_12->value() << "]" << "\n" ;
00628 }
00629
00630 if (loadMoreParams == 1) {
00631 if (outP6->value() == 1) {
00632 out << setw(25) << "INPUT p6 series:";
00633 out << setw(5) << "[" << p6_1->value() << " " << p6_2->value() << " " << p6_3->value() << " " << p6_4->value() << " " ;
00634 out << p6_5->value() << " " << p6_6->value() << " " << p6_7->value() << " " << p6_8->value() << " " ;
00635 out << p6_9->value() << " " << p6_10->value() << " " << p6_11->value() << " " << p6_12->value() << "]" << "\n" ;
00636 }
00637
00638 if (outP7->value() == 1) {
00639 out << setw(25) << "INPUT p7 series:";
00640 out << setw(5) << "[" << p7_1->value() << " " << p7_2->value() << " " << p7_3->value() << " " << p7_4->value() << " " ;
00641 out << p7_5->value() << " " << p7_6->value() << " " << p7_7->value() << " " << p7_8->value() << " " ;
00642 out << p7_9->value() << " " << p7_10->value() << " " << p7_11->value() << " " << p7_12->value() << "]" << "\n" ;
00643 }
00644
00645 if (outP8->value() == 1) {
00646 out << setw(25) << "INPUT p8 series:";
00647 out << setw(5) << "[" << p8_1->value() << " " << p8_2->value() << " " << p8_3->value() << " " << p8_4->value() << " " ;
00648 out << p8_5->value() << " " << p8_6->value() << " " << p8_7->value() << " " << p8_8->value() << " " ;
00649 out << p8_9->value() << " " << p8_10->value() << " " << p8_11->value() << " " << p8_12->value() << "]" << "\n" ;
00650 }
00651
00652 if (outP9->value() == 1) {
00653 out << setw(25) << "INPUT p9 series:";
00654 out << setw(5) << "[" << p9_1->value() << " " << p9_2->value() << " " << p9_3->value() << " " << p9_4->value() << " " ;
00655 out << p9_5->value() << " " << p9_6->value() << " " << p9_7->value() << " " << p9_8->value() << " " ;
00656 out << p9_9->value() << " " << p9_10->value() << " " << p9_11->value() << " " << p9_12->value() << "]" << "\n" ;
00657 }
00658
00659 if (outP10->value() == 1) {
00660 out << setw(25) << "INPUT p10 series:";
00661 out << setw(5) << "[" << p10_1->value() << " " << p10_2->value() << " " << p10_3->value() << " " << p10_4->value() << " " ;
00662 out << p10_5->value() << " " << p10_6->value() << " " << p10_7->value() << " " << p10_8->value() << " " ;
00663 out << p10_9->value() << " " << p10_10->value() << " " << p10_11->value() << " " << p10_12->value() << "]" << "\n" ;
00664 }
00665
00666 if (outP11->value() == 1) {
00667 out << setw(25) << "INPUT p11 series:";
00668 out << setw(5) << "[" << p11_1->value() << " " << p11_2->value() << " " << p11_3->value() << " " << p11_4->value() << " " ;
00669 out << p11_5->value() << " " << p11_6->value() << " " << p11_7->value() << " " << p11_8->value() << " " ;
00670 out << p11_9->value() << " " << p11_10->value() << " " << p11_11->value() << " " << p11_12->value() << "]" << "\n" ;
00671 }
00672
00673 if (outP12->value() == 1) {
00674 out << setw(25) << "INPUT p12 series:";
00675 out << setw(5) << "[" << p12_1->value() << " " << p12_2->value() << " " << p12_3->value() << " " << p12_4->value() << " " ;
00676 out << p12_5->value() << " " << p12_6->value() << " " << p12_7->value() << " " << p12_8->value() << " " ;
00677 out << p12_9->value() << " " << p12_10->value() << " " << p12_11->value() << " " << p12_12->value() << "]" << "\n" ;
00678 }
00679
00680 if (outP13->value() == 1) {
00681 out << setw(25) << "INPUT p13 series:";
00682 out << setw(5) << "[" << p13_1->value() << " " << p13_2->value() << " " << p13_3->value() << " " << p13_4->value() << " " ;
00683 out << p13_5->value() << " " << p13_6->value() << " " << p13_7->value() << " " << p13_8->value() << " " ;
00684 out << p13_9->value() << " " << p13_10->value() << " " << p13_11->value() << " " << p13_12->value() << "]" << "\n" ;
00685 }
00686
00687 if (outP14->value() == 1) {
00688 out << setw(25) << "INPUT p14 series:";
00689 out << setw(5) << "[" << p14_1->value() << " " << p14_2->value() << " " << p14_3->value() << " " << p14_4->value() << " " ;
00690 out << p14_5->value() << " " << p14_6->value() << " " << p14_7->value() << " " << p14_8->value() << " " ;
00691 out << p14_9->value() << " " << p14_10->value() << " " << p14_11->value() << " " << p14_12->value() << "]" << "\n" ;
00692 }
00693
00694 if (outP15->value() == 1) {
00695 out << setw(25) << "INPUT p15 series:";
00696 out << setw(5) << "[" << p15_1->value() << " " << p15_2->value() << " " << p15_3->value() << " " << p15_4->value() << " " ;
00697 out << p15_5->value() << " " << p15_6->value() << " " << p15_7->value() << " " << p15_8->value() << " " ;
00698 out << p15_9->value() << " " << p15_10->value() << " " << p15_11->value() << " " << p15_12->value() << "]" << "\n" ;
00699 }
00700 }
00701
00702
00703 if (loadMoreParams2 == 1)
00704 {
00705 if (outP6b->value() == 1) {
00706 out << setw(25) << "INPUT p16 series:";
00707 out << setw(5) << "[" << p6_1b->value() << " " << p6_2b->value() << " " << p6_3b->value() << " " << p6_4b->value() << " " ;
00708 out << p6_5b->value() << " " << p6_6b->value() << " " << p6_7b->value() << " " << p6_8b->value() << " " ;
00709 out << p6_9b->value() << " " << p6_10b->value() << " " << p6_11b->value() << " " << p6_12b->value() << "]" << "\n" ;
00710 }
00711
00712 if (outP7b->value() == 1) {
00713 out << setw(25) << "INPUT p17 series:";
00714 out << setw(5) << "[" << p7_1b->value() << " " << p7_2b->value() << " " << p7_3b->value() << " " << p7_4b->value() << " " ;
00715 out << p7_5b->value() << " " << p7_6b->value() << " " << p7_7b->value() << " " << p7_8b->value() << " " ;
00716 out << p7_9b->value() << " " << p7_10b->value() << " " << p7_11b->value() << " " << p7_12b->value() << "]" << "\n" ;
00717 }
00718
00719 if (outP8b->value() == 1) {
00720 out << setw(25) << "INPUT p18 series:";
00721 out << setw(5) << "[" << p8_1b->value() << " " << p8_2b->value() << " " << p8_3b->value() << " " << p8_4b->value() << " " ;
00722 out << p8_5b->value() << " " << p8_6b->value() << " " << p8_7b->value() << " " << p8_8b->value() << " " ;
00723 out << p8_9b->value() << " " << p8_10b->value() << " " << p8_11b->value() << " " << p8_12b->value() << "]" << "\n" ;
00724 }
00725
00726 if (outP9b->value() == 1) {
00727 out << setw(25) << "INPUT p19 series:";
00728 out << setw(5) << "[" << p9_1b->value() << " " << p9_2b->value() << " " << p9_3b->value() << " " << p9_4b->value() << " " ;
00729 out << p9_5b->value() << " " << p9_6b->value() << " " << p9_7b->value() << " " << p9_8b->value() << " " ;
00730 out << p9_9b->value() << " " << p9_10b->value() << " " << p9_11b->value() << " " << p9_12b->value() << "]" << "\n" ;
00731 }
00732
00733 if (outP10b->value() == 1) {
00734 out << setw(25) << "INPUT p20 series:";
00735 out << setw(5) << "[" << p10_1b->value() << " " << p10_2b->value() << " " << p10_3b->value() << " " << p10_4b->value() << " " ;
00736 out << p10_5b->value() << " " << p10_6b->value() << " " << p10_7b->value() << " " << p10_8b->value() << " " ;
00737 out << p10_9b->value() << " " << p10_10b->value() << " " << p10_11b->value() << " " << p10_12b->value() << "]" << "\n" ;
00738 }
00739
00740 if (outP11b->value() == 1) {
00741 out << setw(25) << "INPUT p21 series:";
00742 out << setw(5) << "[" << p11_1b->value() << " " << p11_2b->value() << " " << p11_3b->value() << " " << p11_4b->value() << " " ;
00743 out << p11_5b->value() << " " << p11_6b->value() << " " << p11_7b->value() << " " << p11_8b->value() << " " ;
00744 out << p11_9b->value() << " " << p11_10b->value() << " " << p11_11b->value() << " " << p11_12b->value() << "]" << "\n" ;
00745 }
00746
00747 if (outP12b->value() == 1) {
00748 out << setw(25) << "INPUT p22 series:";
00749 out << setw(5) << "[" << p12_1b->value() << " " << p12_2b->value() << " " << p12_3b->value() << " " << p12_4b->value() << " " ;
00750 out << p12_5b->value() << " " << p12_6b->value() << " " << p12_7b->value() << " " << p12_8b->value() << " " ;
00751 out << p12_9b->value() << " " << p12_10b->value() << " " << p12_11b->value() << " " << p12_12b->value() << "]" << "\n" ;
00752 }
00753
00754 if (outP13b->value() == 1) {
00755 out << setw(25) << "INPUT p23 series:";
00756 out << setw(5) << "[" << p13_1b->value() << " " << p13_2b->value() << " " << p13_3b->value() << " " << p13_4b->value() << " " ;
00757 out << p13_5b->value() << " " << p13_6b->value() << " " << p13_7b->value() << " " << p13_8b->value() << " " ;
00758 out << p13_9b->value() << " " << p13_10b->value() << " " << p13_11b->value() << " " << p13_12b->value() << "]" << "\n" ;
00759 }
00760
00761 if (outP14b->value() == 1) {
00762 out << setw(25) << "INPUT p24 series:";
00763 out << setw(5) << "[" << p14_1b->value() << " " << p14_2b->value() << " " << p14_3b->value() << " " << p14_4b->value() << " " ;
00764 out << p14_5b->value() << " " << p14_6b->value() << " " << p14_7b->value() << " " << p14_8b->value() << " " ;
00765 out << p14_9b->value() << " " << p14_10b->value() << " " << p14_11b->value() << " " << p14_12b->value() << "]" << "\n" ;
00766 }
00767
00768 if (outP15b->value() == 1) {
00769 out << setw(25) << "INPUT p25 series:";
00770 out << setw(5) << "[" << p15_1b->value() << " " << p15_2b->value() << " " << p15_3b->value() << " " << p15_4b->value() << " " ;
00771 out << p15_5b->value() << " " << p15_6b->value() << " " << p15_7b->value() << " " << p15_8b->value() << " " ;
00772 out << p15_9b->value() << " " << p15_10b->value() << " " << p15_11b->value() << " " << p15_12b->value() << "]" << "\n" ;
00773 }
00774 }
00775
00776
00777 if (outMinMaxPitch->value() == 1) {
00778 out << setw(25) << "min / max pitch value:" << setw(5) << "[" << min_pch->text() << "] " << "[" << max_pch->text() << "]" << "\n";
00779 }
00780
00781 if (outMinMaxDur->value() == 1) {
00782 out << setw(25) << "min / max dur value:" << setw(5) << "[" << min_dur->text() << "] " << "[" << max_dur->text() << "]" << "\n";
00783 }
00784
00785 if (outMinMaxDb->value() == 1) {
00786 out << setw(25) << "min / max db value:" << setw(5) << "[" << min_db->text() << "] " << "[" << max_db->text() << "]" << "\n";
00787 }
00788
00789 if (outMinMaxInstr->value() == 1) {
00790 out << setw(25) << "min / max instr value:" << setw(5) << "[" << min_instr->text() << "] " << "[" << max_instr->text() << "]" << "\n";
00791 }
00792
00793
00794 if (outMinMaxPitch->value() == 1) {
00795 if (bt_enable_pch->value() == 1 )
00796 {
00797 out << setw(25) << "PITCH SERIE STATUS:" << setw(5) << "[" << "ACTIVE" << "]" << "\n";
00798 out << setw(25) << "pitch combination:" << setw(5) << "[" << auto_ctp->text() << "]" << "\n";
00799 }
00800 else if (bt_enable_pch->value() == 0 )
00801 {
00802 out << setw(25) << "PITCH SERIE STATUS:" << setw(5) << "[" << "INACTIVE" << "]" << "\n";
00803 out << setw(25) << "pitch combination:" << setw(5) << "[" << counterpointPitch->text() << "]" << "\n";
00804 }
00805 }
00806
00807 if (outMinMaxDur->value() == 1) {
00808 if (bt_enable_dur->value() == 1 )
00809 {
00810 out << setw(25) << "DUR SERIE STATUS:" << setw(5) << "[" << "ACTIVE" << "]" << "\n";
00811 out << setw(25) << "dur combination:" << setw(5) << "[" << auto_ctp->text() << "]" << "\n";
00812 }
00813 else if (bt_enable_dur->value() == 0 )
00814 {
00815 out << setw(25) << "DUR SERIE STATUS:" << setw(5) << "[" << "INACTIVE" << "]" << "\n";
00816 out << setw(25) << "dur combination:" << setw(5) << "[" << counterpointDur->text() << "\n";
00817 }
00818 }
00819
00820
00821 if (outMinMaxDb->value() == 1) {
00822 if (bt_enable_db->value() == 1 )
00823 {
00824 out << setw(25) << "DB SERIE STATUS:" << setw(5) << "[" << "ACTIVE" << "]" << "\n";
00825 out << setw(25) << "db combination:" << setw(5) << "[" << auto_ctp->text() << "]" << "\n";
00826 }
00827 else if (bt_enable_db->value() == 0 )
00828 {
00829 out << setw(25) << "DB SERIE STATUS:" << setw(5) << "[" << "INACTIVE" << "]" << "\n";
00830 out << setw(25) << "db combination:" << setw(5) << "[" << counterpointDb->text() << "]" << "\n";
00831 }
00832 }
00833
00834 if (outMinMaxInstr->value() == 1) {
00835 if (bt_enable_instr->value() == 1 )
00836 {
00837 out << setw(25) << "INSTR SERIE STATUS:" << setw(5) << "[" << "ACTIVE" << "]" << "\n";
00838 out << setw(25) << "instr combination:" << setw(5) << "[" << auto_ctp->text() << "]" << "\n";
00839 }
00840 else if (bt_enable_instr->value() == 0 )
00841 {
00842 out << setw(25) << "INSTR SERIE STATUS:" << setw(5) << "[" << "INACTIVE" << "]" << "\n";
00843 out << setw(25) << "instr combination:" << setw(5) << "[" << counterpointInstr->text() << "[" << "\n";
00844 }
00845 }
00846
00847 if (outMinMaxAct->value() == 1) {
00848 if (bt_enable_act->value() == 1 )
00849 {
00850 out << setw(25) << "using act serie:" << setw(5) << "[" << "YES" << "]" << "\n";
00851 out << setw(25) << "INPUT act series:";
00852 out << setw(5) << "[" << act_1->value() << " " << act_2->value() << " " << act_3->value() << " " << act_4->value() << " " ;
00853 out << act_5->value() << " " << act_6->value() << " " << act_7->value() << " " << act_8->value() << " " ;
00854 out << act_9->value() << " " << act_10->value() << " " << act_11->value() << " " << act_12->value() << "]" << "\n" ;
00855 }
00856 else if (bt_enable_act->value() == 0 )
00857 {
00858 out <<setw(25) << "using act serie:" << setw(5) << "[" << "NO" << "]" << "\n";
00859 }
00860
00861 if (bt_calc_act->value() == 1 )
00862 {
00863 out << setw(25) << "ACT SERIE STATUS:" << setw(5) << "[" << "ACTIVE" << "]" << "\n";
00864 out << setw(25) << "act combination:" << setw(5) << "[" << auto_ctp->text() << "]" << "\n";
00865 }
00866 else if (bt_calc_act->value() == 0 )
00867 {
00868 out << setw(25) << "ACT SERIE STATUS:" << setw(5) << "[" << "INACTIVE" << "]" << "\n";
00869 out << setw(25) << "act combination:" << setw(5) << "[" << counterpointAct->text() << "]" << "\n";
00870 }
00871 }
00872
00873 out << "SERIES N. " << nserie->value() << " HAS BEEN GENERATED\n\n\n";
00874 out.close();
00875
00876 }
00877
00878 void scoreout_cb(Fl_Widget*,void*)
00879 {
00880 out_setting();
00881 score_out();
00882 }
00883
00884