-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.cpp
More file actions
3281 lines (2891 loc) · 92.9 KB
/
Copy pathMenu.cpp
File metadata and controls
3281 lines (2891 loc) · 92.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*---------------------------------------------------------------------------
Dieter Neubacher
Vers. 1.0 06.12.93
Vers. 1.1 19.07.94
Vers. 1.2 29.09.94
Vers. 1.3 28.01.96
Vers. 1.4 22.06.96
Vers. 2.0 01.02.97
-------------------------------------------------------------------------
1.1 convertierung nach C++
1.3 call batch-files
1.4 GS-Fuktionen (Screen,Printer,Tiff,Gif,Pcx)
Neue Edit Funktionen in C++
Neue Output Funktionen : Screen.cpp
2.0 WIN32
menu.c Rameau menu
-----------------------------------------------------------------------------
*/
#ifdef WIN32
#include <windows.h>
#include <io.h>
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
#include <ctype.h>
#include <time.h>
// --------------------------
#include "rameau.h"
#ifdef __MS_DOS__
#include <dos.h>
#include <conio.h>
#include <direct.h>
#else /* __MS_DOS__ */
#define getch(a) getchar()
#endif /* __MS_DOS__ */
#include "debug.h"
#include "global.h"
#include "screen.h"
#include "system.h"
#include "gs.h"
#include "edi.h"
#include "version.h"
#define ESC ('\x1b')
#define RET ('\r')
// #define DEBUG_SCREEN
/*-----------------*/
/* Ú \x218 */
/* ³ \x179 */
/* À \x192 */
/* ¿ \x191 */
/* Ù \x217 */
/* Ä \x196 */
/*-----------------*/
/*---------------------------*/
/* */
/*---------------------------*/
#define IN_ACTIV 0x00
#define ACTIV 0x01
typedef struct field
{
int x;
int y;
int option_flag;
int status_flag;
int key;
char text[40];
}
FIELD;
/*---------------------------*/
/* */
/*---------------------------*/
#define INFO_MAX_EDI 16
#define EDI_DISP 0x01
#define EDI_EDIT 0x02
#define EDI_INIT 0x03
#define EDI_READ_FILE 0x04
#define EDI_WRITE_FILE 0x05
#define EDI_CLOSE 0x06
#define IndexAnalysisNo 0
#define IndexDate 1
#define IndexTitle 2
#define IndexComposer 3
#define IndexOpus 4
#define IndexYear 5
#define IndexEditor 6
#define IndexPublisher 7
#define IndexMovement 8
#define IndexKey 9
#define IndexTimeSignature 10
#define IndexBarNodsfrom 11
#define IndexBarNodsto 12
#define IndexOffbeatValue 13
#define IndexMinimalRhythmValue 14
#define IndexInputBy 15
#define InfoMaxIndex 15
char InfoName[InfoMaxIndex+1][25] =
{
"#AnalysisNo#",
"#Date#",
"#Title#",
"#Composer#",
"#Opus#",
"#Year#",
"#Editor#",
"#Publisher#",
"#Movement#",
"#Key#",
"#TimeSignature#",
"#BarNodsfrom#",
"#BarNodsto#",
"#OffbeatValue#",
"#MinimalRhythmValue#",
"#InputBy#"
};
/*---------------------------*/
/* global variables */
/*---------------------------*/
REMEAU_FLAGS input_flags;
REMEAU_FLAGS rameau_flags;
char rameau_command[MAX_COMMAND_LENGTH];
#ifdef WIN32
#define MAX_NAME_LENGTH MAX_PATH_LENGTH
#else
#define MAX_NAME_LENGTH 8
#endif
edi RameauPath(MAX_PATH_LENGTH, 1, 1, 1, 1, 1);
edi InputName(MAX_NAME_LENGTH, 1, 31, 31 + 24, 3, 3);
edi WorkPath(MAX_PATH_LENGTH, 1, 26, 68, 8, 8);
edi ExternCommand(MAX_COMMAND_LENGTH, 1, 24, 76, 6, 6);
edi PcsCode(MAX_COMMAND_LENGTH, 1, 24, 66, 9, 9);
edi *Info[INFO_MAX_EDI];
char user_company[80];
/*---------------------------*/
/* extern Editor */
/*---------------------------*/
int EditorFlag = 0;
char *EditorName;
/*---------------------------*/
/* function definitions */
/*---------------------------*/
#define INPUT_MODE_RET 0
#define INPUT_MODE_NO_RET 1
int menu_input(FIELD entry[], int entry_count, int mode);
int menu_disp_flags (FIELD entry[], int entry_count, int flag);
int menu_disp(char *menu[], int lines);
int DispError (char *str);
int ExecRameau(void);
int BuildName( void );
int BuildWorkPath( void );
int BuildNamePath (void);
int write_info (char *filename);
int read_info (char *filename);
int edit_info (int mode);
int read_config (void);
int write_config (void);
int PrintFile ( char *FileName );
int show_dir (void);
int DispAsciiFile (char *filename);
int DispFile();
int ConvertGraphic();
int not_implemented (void);
void RameauExit( int err );
int BuildInfoTempFile( char *InFileName, char *TmpFileName, int SpaceFlag );
/*---------------------------*/
/* Rameau Work FileName */
/*---------------------------*/
class rwfn
{
public :
rwfn();
~rwfn();
void Ext( char *ext );
void Ext( int ext );
char *FileName();
private :
char *p;
};
rwfn::rwfn()
{
p = new char[MAX_COMMAND_LENGTH];
}
rwfn::~rwfn()
{
delete p;
}
void rwfn::Ext( char *ext )
{
int len;
BuildNamePath();
WorkPath.GetStr(p, MAX_COMMAND_LENGTH );
len = strlen( p );
InputName.GetStr(p + len,MAX_COMMAND_LENGTH - len );
strcat(p, "." );
strcat(p, ext );
}
void rwfn::Ext( int ext )
{
int len, i, flag;
char Buffer[256];
BuildNamePath();
WorkPath.GetStr(p, MAX_COMMAND_LENGTH );
len = strlen( p );
switch( ext )
{
case GRAPHIC_GIF : // this are multiple files
case GRAPHIC_TIFF:
case GRAPHIC_PCX :
// insert the "%d" (PageNumber) definition
InputName.GetStr(Buffer,MAX_COMMAND_LENGTH - len );
// overread leading blanks
flag = 0;
Buffer[6] = 0;
for( i=0; i<6; i++ )
{
switch( Buffer[i] )
{
case 0:
break;
case ' ' :
if( flag == 0 )
break;
else
Buffer[i] = 0;
break;
default :
flag = 1;
break;
}
}
strcat(p, Buffer );
strcat(p, "%02d" ); // GS-Parameter for multiple files
break;
default :
InputName.GetStr(p + len,MAX_COMMAND_LENGTH - len );
break;
}
strcat(p, "." );
SetRameauExt ( p, ext );
}
char *rwfn::FileName()
{
return p;
}
rwfn RameauWorkFileName;
#define SCREEN_BLUE_WHITE 1
#define SCREEN_WHITE_BLACK 2
/*---------------------------*/
/* */
/*---------------------------*/
char *root_menu[25] =
{
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 00 */ " ",
/* 01 */ " ",
/* 02 */ " ",
/* 03 */ " ",
/* 04 */ " ",
/* 05 */ " ",
/* 06 */ " ",
/* 07 */ " ",
/* 08 */ " ",
/* 09 */ " ",
/* 10 */ " ",
/* 11 */ " ",
/* 12 */ " ",
/* 13 */ " ",
/* 14 */ " ",
/* 15 */ " ",
/* 16 */ " ",
/* 17 */ " ",
/* 18 */ " ",
/* 19 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 20 */ " ³ <A>bout <I>nput <O>utput Op<t>ions <P>rocedures <Q>uit ³ ",
/* 21 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 22 */ " ",
/* 23 */ " ",
/* 24 */ " "
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
};
int root_input_count = 6;
FIELD root_input[6] =
{
{
20, 20, 0, IN_ACTIV, (int) 'I', "<I>nput"
}
,
{
29, 20, 0, IN_ACTIV, (int) 'O', "<O>utput"
}
,
{
50, 20, 0, IN_ACTIV, (int) 'P', "<P>rocedures"
}
,
{
39, 20, 0, IN_ACTIV, (int) 't', "Op<t>ions"
}
,
{
11, 20, 0, IN_ACTIV, (int) 'A', "<A>bout"
}
,
{
64, 20, 0, IN_ACTIV, (int) 'Q', "<Q>uit"
}
};
char *option_menu[25] =
{
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 00 */ " OPTIONS ",
/* 01 */ " ",
/* 02 */ " ",
/* 03 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 04 */ " Company/User ³ ³ ",
/* 05 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 06 */ " ",
/* 07 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 08 */ " <W>ork Path ³ ³ ",
/* 09 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 10 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 11 */ " <P>rinter ³ <E>PSON <D>JET <C>DJET <L>JET2 LJET<3> <P>S ³ ",
/* 12 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 13 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 14 */ " <G>raphics ³ <G>IF <P>CX <T>IFF <N>ONE ³ ",
/* 15 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 16 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 17 */ " Por<t> ³ LPT<1> LPT<2> ³ ",
/* 18 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 19 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 20 */ " <S>creen Color ³ <W>hite <B>lue ³ ",
/* 21 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 22 */ " ",
/* 23 */ " <RETURN> to previous screen, save options <H>elp ",
/* 24 */ " "
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
};
int option_input_count = 7;
FIELD option_input[] =
{
{
3, 8, 0, IN_ACTIV, 'W', "<W>ork Path"
}
,
{
3, 11, 0, IN_ACTIV, 'p', "<P>rinter"
}
,
{
3, 14, 0, IN_ACTIV, 'g', "<G>raphics"
}
,
{
3, 17, 0, IN_ACTIV, 't', "Por<t>"
}
,
{
3, 20, 0, IN_ACTIV, 'S', "<S>creen"
}
,
{
3, 23, 0, IN_ACTIV, RET, "<RETURN>"
}
,
{
70, 23, 0, IN_ACTIV, 'H', "<H>elp"
}
};
int option_printer_input_count = 6;
FIELD option_printer_input[] =
{
{
28, 11, PRINTER_EPSON, IN_ACTIV, 'E', "<E>PSON"
}
,
{
36, 11, PRINTER_DJET , IN_ACTIV, 'D', "<D>JET"
}
,
{
43, 11, PRINTER_CDJET, IN_ACTIV, 'C', "<C>DJET"
}
,
{
51, 11, PRINTER_LJET2, IN_ACTIV, 'L', "<L>JET2"
}
,
{
59, 11, PRINTER_LJET3, IN_ACTIV, '3', "LJET<3>"
}
,
{
67, 11, PRINTER_PS , IN_ACTIV, 'P', "<P>S"
}
,
};
int option_graphic_input_count = 4;
FIELD option_graphic_input[] =
{
{
28, 14, GRAPHIC_GIF, IN_ACTIV, 'G', "<G>IF"
}
,
{
37, 14, GRAPHIC_PCX, IN_ACTIV, 'P', "<P>CX"
}
,
{
45, 14, GRAPHIC_TIFF, IN_ACTIV, 'T', "<T>IFF"
}
,
{
54, 14, GRAPHIC_NONE, IN_ACTIV, 'N', "<N>ONE"
}
,
};
int option_port_input_count = 2;
FIELD option_port_input[] =
{
{
28, 17, 0, IN_ACTIV, '1', "LPT<1>"
}
,
{
43, 17, 1, IN_ACTIV, '2', "LPT<2>"
}
,
};
int option_color_input_count = 2;
FIELD option_color_input[] =
{
{
28, 20, 2, IN_ACTIV, 'W', "<W>hite"
}
,
{
43, 20, 1, IN_ACTIV, 'B', "<B>lue"
}
,
};
char *input_menu[25] =
{
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 00 */ " DATA INPUT ",
/* 01 */ " ",
/* 02 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 03 */ " Input File <N>ame: ³ ³ Show <D>irectory ",
/* 04 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 05 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 06 */ " Input File <F>ormat: ³ PM<X> <M>ID <F>DL <R>DL <V>PS <P>CS VP<L> ³ ",
/* 07 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 08 */ " File Heade<r>: ",
/* 09 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 10 */ " ³ Analysis No.: Date: ³ ",
/* 11 */ " ³ Title: ³ ",
/* 12 */ " ³ Composer: ³ ",
/* 13 */ " ³ Opus: Year: ³ ",
/* 14 */ " ³ Publisher: Editor: ³ ",
/* 15 */ " ³ Movement: ³ ",
/* 16 */ " ³ Key: Time Signature: ³ ",
/* 17 */ " ³ Bar Nos from: to: Offbeat Value: ³ ",
/* 18 */ " ³ Minimal Rhythm Value: ³ ",
/* 19 */ " ³ Input by: ³ ",
/* 20 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 21 */ " ",
/* 22 */ " ",
/* 23 */ " <RETURN> to previous screen, save options <H>elp ",
/* 24 */ " "
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
};
edi AnalysisNo( 6, 1, 21, 21+ 6, 10, 10 );
edi Date( 8, 1, 65, 65+ 8, 10, 10 );
edi Title( 59, 1, 14, 14+59, 11, 11 );
edi Composer( 56, 1, 17, 17+56, 12, 12 );
edi Opus( 44, 1 ,13, 13+44, 13, 13 );
edi Year( 8, 1, 65, 65+ 8, 13, 13 );
edi Editor( 24, 1, 49, 49+24, 14, 14 );
edi Publisher( 21, 1, 18, 18+21, 14, 14 );
edi Movement( 56, 1, 17, 17+56, 15, 15 );
edi Key( 8, 1, 12, 12+ 8, 16, 16 );
edi TimeSignature( 5, 1, 65, 65+ 5, 16, 16 );
edi BarNodsfrom( 4, 1, 21, 21+ 4, 17, 17 );
edi BarNodsto( 4, 1, 30, 30+ 4, 17, 17 );
edi OffbeatValue( 5, 1, 65, 65+ 5, 17, 17 );
edi MinimalRhythmValue( 5, 1, 29, 29+ 5, 18, 18 );
edi InputBy( 56, 1, 17, 17+56, 19, 19 );
int input_input_count = 6;
FIELD input_input[] =
{
{
15, 3, 0, IN_ACTIV, 'N', "<N>ame"
}
,
{
60, 3, 0, IN_ACTIV, 'D', "Show <D>irectory"
}
,
{
15, 6, 0, IN_ACTIV, 'F', "<F>ormat"
}
,
{
4, 8, 0, IN_ACTIV, 'r', "File Heade<r>"
}
,
{
4, 23, 0, IN_ACTIV, RET, "<RETURN>"
}
,
{
70, 23, 0, IN_ACTIV, 'H', "<H>elp"
}
};
int input_format_input_count = 7;
FIELD input_format_input[] =
{
{
32, 6, PMX, IN_ACTIV, 'X', "PM<X>"
}
,
{
38, 6, MID, IN_ACTIV, 'M', "<M>ID"
}
,
{
44, 6, ATV, IN_ACTIV, 'T', "A<T>V"
}
,
{
50, 6, RDL, IN_ACTIV, 'R', "<R>DL"
}
,
{
56, 6, VPS, IN_ACTIV, 'V', "<V>PS"
}
,
{
62, 6, PCS, IN_ACTIV, 'P', "<P>CS"
}
,
{
68, 6, MVP, IN_ACTIV, 'L', "VP<L>"
}
,
};
char *output_menu[25] =
{
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 00 */ " DATA OUTPUT ",
/* 01 */ " ",
/* 02 */ " Output Data <F>ile: ",
/* 03 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 04 */ " ³ <R>DL Reduced data listing ³ ",
/* 05 */ " ³ RD<A> Reduced data analysis ³ ",
/* 06 */ " ³ A<T>V Average tone value ³ ",
/* 07 */ " ³ <V>PS Successive vertical pitch sets ³ ",
/* 08 */ " ³ <P>CS Pitch class set numbers ³ ",
/* 09 */ " ³ <M>AP Scatter diagram for successive vps resp. pcs ³ ",
/* 10 */ " ³ VP<L> Multiple voice pairs listing ³ ",
/* 11 */ " ³ VP<G> Multiple voice pairs graphic ³ ",
/* 12 */ " ³ I<C>V Intervall Class Vector ³ ",
/* 13 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 14 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 15 */ " <V>oice number ³ <2> <3> <4> <5> <6> ³ ",
/* 16 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 17 */ " ",
/* 18 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 19 */ " <M>ap Options ³ Max. Cardinality <3> <4> <5> <6> ³ ",
/* 20 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 21 */ " ",
/* 22 */ " ",
/* 23 */ " <RETURN> to previous screen, save options <H>elp ",
/* 24 */ " "
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
};
int output_input_count = 5;
FIELD output_input[] =
{
{
15, 2, 0, IN_ACTIV, 'F', "<F>ile"
}
,
{
3, 15, 0, IN_ACTIV, 'V', "<V>oice"
}
,
{
3, 19, 0, IN_ACTIV, 'M', "<M>ap"
}
,
{
3, 23, 0, IN_ACTIV, RET, "<RETURN>"
}
,
{
71, 23, 0, IN_ACTIV, 'H', "<H>elp"
}
,
};
int output_file_input_count = 9;
FIELD output_file_input[] =
{
{
5, 4, RDL, IN_ACTIV, 'R', "<R>DL"
}
,
{
5, 5, RDA, IN_ACTIV, 'A', "RD<A>"
}
,
{
5, 6, ATV, IN_ACTIV, 'T', "A<T>V"
}
,
{
5, 7, VPS, IN_ACTIV, 'V', "<V>PS"
}
,
{
5, 8, PCS, IN_ACTIV, 'P', "<P>CS"
}
,
{
5, 9, MAP, IN_ACTIV, 'M', "<M>AP"
}
,
{
5,10, MVP, IN_ACTIV, 'L', "VP<L>"
}
,
{
5,11, MPS, IN_ACTIV, 'G', "VP<G>"
}
,
{
5,12, ICV, IN_ACTIV, 'C', "I<C>V"
}
,
};
int output_voice_input_count = 5;
FIELD output_voice_input[] =
{
{
39, 15, 2, IN_ACTIV, '2', "<2>"
}
,
{
45, 15, 3, IN_ACTIV, '3', "<3>"
}
,
{
51, 15, 4, IN_ACTIV, '4', "<4>"
}
,
{
57, 15, 5, IN_ACTIV, '5', "<5>"
}
,
{
63, 15, 6, IN_ACTIV, '6', "<6>"
}
,
};
int output_max_input_count = 4;
FIELD output_max_input[] =
{
{
45, 19, 3, IN_ACTIV, '3', "<3>"
}
,
{
51, 19, 4, IN_ACTIV, '4', "<4>"
}
,
{
57, 19, 5, IN_ACTIV, '5', "<5>"
}
,
{
63, 19, 6, IN_ACTIV, '6', "<6>"
}
,
};
char *procedures_menu[25] =
{
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 00 */ " PROCEDURES ",
/* 01 */ " ",
/* 02 */ " ",
/* 03 */ " <R>un Procedures according to Options ",
/* 04 */ " ",
/* 05 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 06 */ " Dos<S>hell Command ³ ³ ",
/* 07 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 08 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄ¿ ",
/* 09 */ " Pcs <C>ode ³ ³ ³ ³ ",
/* 10 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÙ ",
/* 11 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 12 */ " <D>isplay ³I<c>V <I>NF <R>DL A<T>V <V>PS <P>CS <M>AP VP<L> VP<G>³ ",
/* 13 */ " [after procedures] ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 14 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 15 */ " <P>rint ³ <I>NF <R>DL <F>DL <V>PS <P>CS VP<L> ³ ",
/* 16 */ " [after procedures] ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 17 */ " ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ",
/* 18 */ " Or<i>entation ³ <L>andscape <P>ortrait ³ <F>ormat ³ A<3> A<4> A<5> ³ ",
/* 19 */ " ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ",
/* 20 */ " ",
/* 21 */ " Pr<o>cess Protocol ",
/* 22 */ " ",
/* 23 */ " <RETURN> to previous screen <H>elp ",
/* 24 */ " "
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* 1 2 3 4 5 6 7 */
/* 01234567890123456789012345678901234567890123456789012345678901234567890123456789 */
};
#define PCS_OUTPUT_X 70
#define PCS_OUTPUT_Y 9
char PcsOutputBuffer[11];
int procedures_input_count = 10;
FIELD procedures_input[] =
{
{
3, 3, 0, IN_ACTIV, 'R', "<R>un"
}
,
{
3, 6, 0, IN_ACTIV, 'S', "Dos<S>hell Command"
}
,
{
3, 9, 0, IN_ACTIV, 'C', "Pcs <C>ode"
}
,
{
3, 12, 0, IN_ACTIV, 'D', "<D>isplay"
}
,
{
3, 15, 0, IN_ACTIV, 'P', "<P>rint"
}
,
{
3, 18, 0, IN_ACTIV, 'i', "Or<i>entation"
}
,
{
51, 18, 0, IN_ACTIV, 'F', "<F>ormat"
}
,
{
3, 21, 0, IN_ACTIV, 'o', "Pr<o>cess Protocol"
}
,
{
3, 23, 0, IN_ACTIV, RET, "<RETURN>"
}
,
{
71, 23, 0, IN_ACTIV, 'H', "<H>elp"
}
};
int procedures_display_count = 9;
FIELD procedures_display[] =
{
{
24, 12, ICV, IN_ACTIV, 'C', "I<C>V"
}
,
{
30, 12, INF, IN_ACTIV, 'I', "<I>NF"
}
,
{
36, 12, RDL, IN_ACTIV, 'R', "<R>DL"
}
,
{
42, 12, ATV, IN_ACTIV, 'T', "A<T>V"
}
,
{
48, 12, VPS, IN_ACTIV, 'V', "<V>PS"
}
,
{
54, 12, PCS, IN_ACTIV, 'P', "<P>CS"
}
,
{
60, 12, MAP, IN_ACTIV, 'M', "<M>AP"
}
,
{
66, 12, MVP, IN_ACTIV, 'L', "VP<L>"
}
,
{
72, 12, MPS, IN_ACTIV, 'G', "VP<G>"
}
};
int procedures_printfile_count = 6;
FIELD procedures_printfile[] =
{
{
29, 15, INF, IN_ACTIV, 'I', "<I>NF"
}
,
{
35, 15, RDL, IN_ACTIV, 'R', "<R>DL"
}
,
{
41, 15, ATV, IN_ACTIV, 'T', "A<T>V"
}
,
{
47, 15, VPS, IN_ACTIV, 'V', "<V>PS"
}
,
{
53, 15, PCS, IN_ACTIV, 'P', "<P>CS"
}
,
{
65, 15, MVP, IN_ACTIV, 'L', "VP<L>"
}
};
int ProcedureGraphicOrientationCount = 2;
FIELD ProcedureGraphicOrientation[] =
{
{
25, 18, LANDSCAPE, IN_ACTIV, 'L', "<L>andscape"
}
,
{
37, 18, PORTRAIT, IN_ACTIV, 'P', "<P>ortrait"
}
};
int ProcedureGraphicFormatCount = 3;
FIELD ProcedureGraphicFormat[] =
{
{
62, 18, 3, IN_ACTIV, '3', "A<3>"
}