File: manual.1.txt

package info (click to toggle)
cadencii 3.3.9%2Bsvn20110818.r1732-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 35,880 kB
  • sloc: cs: 160,836; java: 42,449; cpp: 7,605; ansic: 1,728; perl: 1,087; makefile: 236; php: 142; xml: 117; sh: 21
file content (2066 lines) | stat: -rw-r--r-- 76,676 bytes parent folder | download | duplicates (6)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
Cadencii000000_(u



S0S0g0o0B00z^0bcW0f0D00ek0fk0oD0Cadenciin0O(uel09}NW0~0Y00



%0000000000k0f0n0pe_eQR

0000000000n000000
00\{
00b
00Tick
00wU0
0n0vk00

s(Wn0$Pk0N[n0$P0RnWNdg0M000F0k0j0c0f0D0~0Y00



~0Z001Pn0&{n0MOn0480clockZ00Y0O0:yW0~0Y00

&{0xbY00h00s(Wn0&{n0MOn0000=7680	L00000000000k0h:yU00~0Y00

0000=7680n0_0k0480h0eQRW00Enter000bY0h0007680+480
0n0$PL0{U000&{L0_0k0yRW0~0Y00

pen0&{k0d0D0f000Tin0d\OL0Sg0Y00pen0&{0xbY00h0000000
0n0$PL0UF0n0g00000000000o0zz}vk0j00~0Y00 

i0Z0k00480
0h0eQRW0f00Enter000bY0h00]00^00n0&{n000000
0$Pk0+480L0R{U000pen0&{L0~0h00f0yRW0~0Y00 

S0S0g0o0W0{n0OW0K0	[0~0[00g0W0_0L00RnWNdD0Z000Sg0Y00 

~0_00eQRW0_0eW[Rk0"x"0+T0`0pe_0eQRY00h00xk0s(Wn0$PL0NeQU00f0UOU00~0Y00 

_0h0H0p00gRn0O`0h007680+480
0h0eQRY004XTh00x+480
0h0eQRY004XTn0P}go0TX0k0j00~0Y00 



%UTAU(un0000000O(uY00k0o0

UTAU(un0000000OF0k0o0~0Z0UTAU(u00000h0Cadenciin00S0cd0000000\Ob000000	Y00_L0B00~0Y00

0Lk^0#}k0Y00
0000000Ok0000000Kb0fW0~0Y00



~0Z00 000000
00000n00UTAU(u000000000000
00xs0~0Y00!kk000000L0Qf0M0~0Y00 

!kk0000000W0_0D000000n00plugin.txt
0n04X@b0c[W0~0Y000000n00R
00000bW0f00000xb00000g0

plugin.txt0xbW0f0O0`0U0D0

xbg0M0_00000k000000n0
TMRh00plugin.txt
0x0n000L0RU00f0D00h0`D0~0Y00

0N
00000bY0h000000L0X0000000L0L00~0Y00



000;ubk0;bc0f0000000
000000xbY00h0000000W0_000000n0
TMRL0RU00~0Y00

N
Ng0000000o0B}00g0Y00!ko0OD0eg0Y00

~0Z0s(Wn00000L0UTAU000k0j0c0f0D00K00xW0~0Y0000000
00000!0LkXTb0000
0!0UTAU
0	 

UTAUn0nL0a000h0{v2U00f0D00K0xW0~0Y000-[
00000!00000000
0Qf0O0000000n00UTAUn
000	



!kk0000000g0}ƖW0_0D0&{0{VxbW00000000
00000n0-NK00OD0_0D0000000x0g0wRY00p0'YN+Yg0Y00



%000000000n00000pe$PeQRY000

00000000g0000p00000000Y00h0pe$PeQR(un000000L0Q~0Y00

pe$P0eQRW0f00i(u
00000bY0h0S fU00~0Y00



; 
Nk0B000000<10
00<5
00<
0o0]00^0010P5P1P]n0000p0xbW0j0J0W0~0Y000>
005>
0010>
0o0Sn0000p0xbW0j0J0W0~0Y00

0undo
00redo
0000o000000000n00CQk0;bY0
0000vW0
0h0TX0RgL0B00~0Y00



%VOCALOID1n0Synthesize Engine 1.0h01.10TBfk0OF0el0

; Windows Vista~0_0o0Windows 7k0J0D0f0Synthesize Engine 1.0h01.10TBfk0O(uY00_00k0o00000000006R_(UAC)0!qRk0Y00_L0B00~0Y0 



0-[
00000!00000000
0h0_0i00-[000000QY00

00000000
0000xb0TbDLLn0)R(u
0k0B00000000VOCALOID1 DLL000
0k000000eQ000

]0n0Nk0B000VOCALOID1 [1.0]
0h00VOCALOID1 [1.1]
0n0!Nek00000L0eQc0f0D00n00xY000

0N
00000bY0Cadencii0QwRY000



N
Ng0Synthesize Engine 1.0h01.1n0!Ne0OH000F0k0j00~0Y00_0`0W0SD0VOCALOID1n00L0000000U00f0D004XT

1.1L0]00]00X[(WW0j0D0n0g0S_6qj0L00!NeOF0n0o0
NSg0Y00




" 00000g0o0i0a00K0Gren0Synthesize Enginen00L00~00~0Y00~000n0o0VOCALOID1 Editorg0-[W0_00n0k0j00~0Y00

" XVSQ0000k0o01.0h01.1n0i0a00L0c[U00_0K0L0OX[U00~0Y0wQSOvk0o0<VsqTrack> }n0vNk0B00<Tag> }Qk0

0org.kbinani.cadencii.RendererKind:VOCALOID1_100
0I{h02U00~0Y00

" XVSQh0TBfQRU000VSQ0000k0o01.0h01.1n0i0a00L0c[U00_0K0o0OX[U00~0[000

" 2Pn0Synthesize Engine000n0ND}0k0d0D0f0o00VOCALOID1n0Synthesize Engine 1.0h01.1n0TBfwR
00T0O0`0U0D00



%L0Qj0D0000000L0F0~0O0D0K0j0D0 

VOCALOID1/2n000Hr0O(uW0f0D00 

00Hrg0o0OH0j0D00F0k0W0f0B00~0Y0k_j0L00zlV{o0B00~0[00

 

Windowsn0000000-[k00000000n0000Yn0[L0000n0wRL06RPU00f0D00 

Windows VistaWindows 7g0o0{t)jPg0Cadencii0[LY000F0k0W0f0O0`0U0D0

 

NBf000000n0zzM0[ϑL0{0|00k0j0c0f0D00 

NBf000000n0zzM0[ϑL0gnW0f0D00h0yrk0MR扌00!qO0L0Qj0O0j00~0Y0zzM0[ϑ0xOW0f0K00Q^[LW0f00f0O0`0U0D0 

[Cadenciin0000000000000]PlaySound.dllL0X[(WW0j0D0 

[Cadenciin0000000000000]pluginsNNn0dllL0X[(WW0j0D0 

[Cadenciin0000000000000]vConnect.exeL0X[(WW0j0D0 

0000L0X[(WW0f0D00K0i0F0K00xW0f0O0`0U0D00000L0!qK0c0_04XTo0Cadencii0Q000000W0f0O0`0U0D0 



Visual C++ 00000DLLL0000000U00f0D0j0D0 

Straight x UTAUn0_j0O(uY00k0o0Visual C++00000DLLL0000000U00f0D00_L0B00~0Y00

eQKbHQhttp://www.microsoft.com/downloads/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=ja



000W[n0Lk^n0~0~000]0F0h0W0f0D00 

UTAU000h0Straight x UTAU000g0o00000W[n0Lk^n00g0o0bQ0L0zvuW0~0Y0

00000-[k000000W[j0i0n00000000k00L0000U00f0D004XTo0%Rh0W0f0	0

_0h0H0p00B0
0h0Lk0[00F0h0W0f00a
0h0eQRW0_04XT0[k0nK00i"}U000n0o00a.wav
0j0n0g00S00L0!qD04XTbQ0L0zvuY00S0h0k0j00~0Y00



%00000n0fM0e 

ieh0_j0[

 ieo0C#h0hQO0TX0g0Y00

http://www9.atwiki.jp/boare/pages/32.html0!k0B000F0k0000n0[0W0f0O0`0U0D00000k0o0pen0F0a0i00K0Nd000_k0_X0f0[ňW0f0O0`0U0D00



" public static bool Edit( Boare.Lib.Vsq.VsqFile vsq );

" public static bool Edit( Boare.Cadencii.VsqFileEx vsq );

" public static ScriptReturnStatus Edit( Boare.Lib.Vsq.VsqFile vsq );

" public static ScriptReturnStatus Edit( Boare.Cadencii.VsqFileEx vsq );



boolL0;b0$Pn00n0o0000000n0[LL0bRW0_0h0M0true00]0F0g0j0D0h0M0false0ԏY00F0k0[ňW0f0O0`0U0D00 

ScriptReturnStatusL0;b0$Pn00n0o00 



" 00000n0[LL0bRW00}ƖL0L00_0h0M0ScriptReturnStatus.EDITED00

" 00000n0[LL0bRW0_0L00}Ɩo0L00j0K0c0_0h0M0ScriptReturnStatus.NOT_EDITED00

" 00000n0[LL01YWeW0_0K00~0_0o0-NeU00_0h0M0ScriptReturnStatus.ERROR

0]00^00ԏY00F0k0[ňW0f0O0`0U0D00

 

~0_00usingSo0!kn0000n00n0000000n0HQ-k0+T00S0h0L0g0M0~0Y00 

" using System;

" using System.IO;

" using Boare.Lib.Vsq;

" using Boare.Cadencii;

" using bocoree;

" using Boare.Lib.Media;

" using Boare.Lib.AppUtil;

" using System.Windows.Forms;

" using System.Collections.Generic;

" using System.Drawing;

" using System.Text;

" using System.Xml.Serialization



00000n0Mn

 Cadenciin0,gSOL0OX[U00f0D00000000k00script
0h0D0F00000000\ObW00]0n0-Nk0000000OX[W0f0O0`0U0D00b5_P[o0.txt~0_0o0.csL0	gRg0Y00

00000000k0d0D0f0o002000eW[0+T04XTUTF-8BOMn0	g!qo0OU0j0D0	g0OX[W0j0D0h0eW[SQ0W0~0Y00 



%STRAIGHT x UTAUn0_j0OF04XT0



STRAIGHTXTb(un0㉐g00000\ObY000

STRAIGHTXTb0LF0k0o0B00K0X00nn0X00000㉐gY00_L0B00~0Y00㉐gP}go0Tn0000vNn00analyzed
0h0D0F00000k0OX[U00~0Y00

b5_P[o0.stfg0Y00Thn000000000EditOtoIni.exe
00Oc0f0STF00000\ObW0f0O0`0U0D00



0UTAUn-[0000000

UTAUn(un0-[0000oto.ini0}ƖW00STRAIGHT(u㉐g0000n0{t0LF00000000g0Y00 

O(uY00k0o00Cadencii,gSOn00-[
0!0UTAUn
000000_0i00K00vc0EditOtoIni.exe
000000000W0f0wRW0~0Y00 



;ubo03d0n0000k0RK00f0D0~0Y00]00^000]
NL00oto.ini
0k0{v2U00_0nh0]0n0-[$Pn00000

S
NL0xbW0_0nk0[W0f0}Ɩ0LF0_00n0d\O0No0xbW0_0nn0lb_0h:yY00R0h0j0c0f0D0~0Y00 



n0000n0000

TRo0Rn00000n0h:yn0h0J0000FRQ
0n0Ro00UTAUn0resamplerL0SgqY00*.frq0000L0nPn0K0i0F0K00hW00

0STF
0n0Ro00STRAIGHTTbk0_j0㉐g0000b5_P[.stf	L0nPn0K0i0F0K00hW0~0Y00]00^000nPn0n04XTo00%
00]0F0g0j0D04XTo0zzkh0j00~0Y00 



d\O

]n0000g0xbW0_0nn0-[$P0}ƖW0~0Y0000000000k0eQRW0_0$Po00sS000k0S fU00~0Y00

_0`0W0000000
0!0OX[
0~0_0o00
TMR0d0Q0f0OX[
00xp0j0D0P0oto.inix0n0OX[o0L00~0[000 



0STF0fe
00000bY0h00xbW0_0n0CQk0STRAIGHT(un0㉐g00000\ObW0~0Y00ek0STFL0\Obn0n04XT00


NfM0U00~0Y00Y0y0f0n0nn0STF00000#}g0\ObW0_0D04XT00}Ɩ
0!0STF00000\Ob
00xy0p0OKg0Y00 



lb_h:y

lb_0h:yW0f0D0~0Y00BfeTn0b'Yso0SNn00
00

0000g0	Yfg0M0~0Y00lb_L0;ubk0S~00j0D04XTo00

0000000g0h:yMOn0*jeTk0yRg0M0~0Y00~0_00000n0-N000g0;ub0c0g0yRU0[00S0h00Sg0Y00 



S0n0;ub
Ng000000I{n0-[0}ƖY00S0h0L0g0M0~0Y00000000
000HQLzv
0I{h0fK00_0ern00n00c0g0yRU0[00h00}ƖP}gL0sSS fU00~0Y00 

lb_h:yn0UO0!qD0h0S00g0000n0]0000M0Y0h000000M0W0_0MOnK00n0000L0QuU00~0Y00i0n0R~0g0L0P[vK00y00h0M0I{k0O)RK00W00~0[000



00000
00000

 0O0
00OX[
00
TMR0d0Q0f0OX[
00B}N
0n000vL0B00~0Y00



0}Ɩ
00000

00v0STF00000\Ob
0h00FRQ00000\Ob
0L0B00~0Y00]00^00STF0000h0FRQ00000#}vk0Rg0\ObY00_00n0vg0Y00

ek0STF0000~0_0o0FRQ0000L0X[(WY004XTo0
NfM0o0L00Z00QtL00000U00~0Y00P%Rn0nk0d0D0f0r0h0d0e0d0STF0000FRQ00000\ObW0_0D04XTo00

[an0n0000g0xbW0_0F0H0g00d\On00STF0fe
0000~0_0o00FRQ0fe
00b[0p0OKg0Y00 



0XTb000000STRAIGHT x UTAU
0000k0Y000

Tb0000n0000o0T0000kk0-[W0~0Y0-[Y00k0o000000
00000!0XTb0000
00000!0STRAIGHT x UTAU
0h0xbW0f0O0`0U0D00

;ubNn00000n00000S0000W00000000000n00XTb0000
0!0STRAIGHT x UTAU
00xbY00S0h0g00-[Sg0Y00



%uv(unub0000000 

uv0bW0_0h0M0k0QuU000X000000Rg0\ObY0000000000GenerateKeySound.exe
0k0d0D0f00 

GenerateKeySoundo00000000000h0W0f000GUI00000000NM0n0000h0W0f00O(ug0M000F0k0j0c0f0D0~0Y000000000_peo00

0GenerateKeySound -h
0h0eQRW0f0xW0f0O0`0U0D00S0S0g0o00GUIn0d\Ok0d0D0f0fW0~0Y00 



Singing Synth. System

LkXTb0000n0.z^0xbW0~0Y000VOCALOID1
000VOCALOID2
0J00s00UTAU
0n0F0a00O(ug0M000n0L0000k0RcU00f0D0~0Y00



Singer

uv(un0X0bS_Y00LkKb0xbW0~0Y00
Ng0xbW0_0LkXTb0000n0F0a00O(uSj0LkKbL0000k0RcU00f0D0~0Y00



Ignore Existing WAVs

S0S0k000000eQ00h00ek0\Obn0n0n00000!qW0f0
NfM0W0~0Y0000000eQ0j0D04XT0\ObL0*g`0n00n0n000ubW0~0Y00



Output Path

n00000OX[Y00000c[W0~0Y00Y0P0Sn00...
00000bW0f0000xbY00K0000000000k0vc000eQRW0f0O0`0U0D0000000g0o00

0Cadenciin00000000000cache
0h0j0c0f0D0~0Y00S0n000000n000g0o0j0D04X@bk0n00000OX[Y00S0h0o0Qeg~0Y0L00Cadencii,gSOk0o0XU00~0[000

CadenciiL0XY00n0o00
N00000n000n00g0Y00



Close000

000000X0~0Y00n0000n0ub-No00Cancel
0h0hL0	Y000S0n00000bY0h0n0000n0ubL0-NeU00~0Y00



Execute000

n0000n0ub0YW0~0Y00



%R000000_j 

N[BfJ0M0k0}Ɩ-Nn00000OX[Y00_jg0Y00 



S0n0_j0OF0k0o000-[
0!00000000
0!00000
000n00R000000
0n000000ONk0W0f0O0`0U0D00

OX[o0Y0P0*jn00
0n0h0S00g01R;R0g0-[g0M0~0Y00 

S0n0_jL0ONk0j0c0f0D00h0M00s(W}Ɩ-Nn00000h0TX00000k002d0n000000000000~$0000
T.xvsq
0h00~$0000
T.vsq
0L0OX[U00~0Y00 



; 00000_n0R_0^_jo0B00~0[00n0g0laO0`0U0D00 



%񂞊h!e,ghk0Y00el0

0Setting
000000!00Preference
00000h0_0i00h0-[00000L0g0~0Y00 

S0n000000n00Appearnce
0000xs0-N{0i0n00UI Language
000Default
0K000ja
0k0	YfW0_0_ 

0OK
00b[0p0h:yL0e,gk0	YfU00~0Y00



%000f}n0}Ɩ

000f}n0}Ɩ0Y004XT0}Ɩ00000000
0000k0Y00_L0B00~0Y00S0n0000k0R0fH00k0o00

S00000000n00000
000000Y00K00}Ɩ00n00000
0000000000W0f0O0`0U0D00000o0

,g[k0o0j0D0tYj0n0g0Y0P0k00K00h0`D0~0Y0	0000000k0j0c0f0D0j0D04XT0,g[h0Tik0[F{0000h0mW000n0

T0000Oc0f0vcf}0}ƖY00000h0j00~0Y00 



}Ɩk0o00[F{000
0h000000000
00OD0~0Y00[F{000o0000p0RY00Bfk0O(uW0~0Y0000000000[0Z0k0XSk00000W0_04XT0

6R_pn0ND0f0D0j0D0000pL0\ObU00~0Y00



0000000o00000p}r	h06R_pChr	n0MOn0	YfY00Bfk0O(uW0~0Y00000pn0V҉0000g00000Y00h00pL0yRW0~0Y00

0000RK0W0f0D00-Ng0pL0yRW0j0O0j00S0h0L0B00~0Y0L00S00o0f}L0LY000F0j0000po0eQRg0M0j0D0_00g0Y00 



000p0JRdW0_0D04XT0000p0S0000Y00h0Qf0O000000n00JRd
000000W0~0Y00 



000pn0^j0pe$PeQRW0_0D04XT0000p00000000Y00h0pe$PeQR(un000000L0Q~0Y00 



gRo0b0}h0W0f00000eQRW0_0L00-Ng06R_p0d0Q0f0n0K0k0W0_0D04XT00]0n0n04XT0

pe$PeQR(u00000n00n0K0k0Y00
0n000000On/OffY00S0h0g006R_p0NQ00NQ0j0D00R0fH00S0h0L0Qeg~0Y00 



0000f}0Oc0f0}ƖY00h0M001,gn0000f}g0o0j0O002,gN
Nk0RQ0f0}ƖY004XT0

00000000Macn04XTCommand00	0bW0j0L00p0Sbc0f0O0`0U0D00vMRn0f}h0c}U00Z00en0000f}L0\ObU00~0Y00 



%00000n00000

}ƖRS00000n00000



00000n0|Ts0QW0Nij0i0L0x[W0f0D0j0D0n0g0Nn00000o0u<O000g0Y00



0fW0f00_0D0eo00]00^00n000000n0000000h0`W0M0R000000000k0000W0f0 UTF-8 g0OX[W00

0Cadencii.exen0nD0f0B000000vNn00script
0h0D0F00000k0eQ0f0O0`0U0D00



00000n0Q[0UTAUn00resampler*.exe
0h00wavtool.exe
00Oc0f0000000Y0000000

; " 0000000o0X00h0W0_0T.z00000o0-[0S fU00~0[000



0UTAUng0000000



// Render As UTAU.cs for Cadencii

// written by kbinani & 88

using System;

using System.Collections.Generic;

using System.IO;

using System.Windows.Forms;

using Boare.Lib.Vsq;

using Boare.Lib.AppUtil;

using bocoree;

 

public class RenderAsUtau : Form {

    private System.ComponentModel.IContainer components = null;

    public static string Resampler = "";

    public static string WavTool = "";

    public static string Singer = "";

    public static string LastWave = "";

    public static bool InvokeWithWine = false;

    private Label lblResampler;

    private TextBox txtSinger;

    private Button btnSinger;

    private GroupBox groupConfig;

    private Button btnWavtool;

    private Button btnResampler;

    private TextBox txtWavtool;

    private TextBox txtResampler;

    private Label lblWavtool;

    private Button btnOk;

    private FolderBrowserDialog folderBrowserDialog;

    private OpenFileDialog openFileDialog;

    private PictureBox pictSumbnail;

    private TextBox txtProf;

    private GroupBox groupSinger;

    private Label lblName;

    private static SaveFileDialog saveFileDialog;

    private CheckBox chkInvokeWithWine;

    private Label lblDirectory;

    private Button btnCancel;

 

    struct Phon {

        public string Lyric;

        public string FileName;

        public int ClockLength;

        public float Tempo;

        public bool ModeR;

        public Phon( string lyric, string file_name, int clock_length, float tempo, bool mode_r ) {

            Lyric = lyric;

            FileName = file_name;

            ClockLength = clock_length;

            Tempo = tempo;

            ModeR = mode_r;

        }

    }

 

    /// <summary>

    /// S-[n0_pe

    /// </summary>

    struct OtoArgs {

        /// <summary>

        /// ,{1_pezzeW[j0n0g0O0j0D0

        /// </summary>

        public int A1;

        public int A2;

        public int A3;

        public int A4;

        public int A5;

        public int A6;

    }

 

    public RenderAsUtau() {

        InitializeComponent();

        txtResampler.Text = Resampler;

        txtWavtool.Text = WavTool;

        txtSinger.Text = Singer;

        folderBrowserDialog.SelectedPath = Singer;

        chkInvokeWithWine.Checked = InvokeWithWine;

        saveFileDialog = new SaveFileDialog();

        if ( LastWave != "" ) {

            try {

                saveFileDialog.InitialDirectory = Path.GetDirectoryName( LastWave );

            } catch {

            }

        }

        saveFileDialog.Filter = "Wave File(*.wav)|*.wav|All Files(*.*)|*.*";

 

        bool entered = false;

        if ( txtResampler.Text != "" ) {

            try {

                string dir = Path.GetDirectoryName( txtResampler.Text );

                openFileDialog.InitialDirectory = dir;

                entered = true;

            } catch {

            }

        }

        if ( !entered && txtWavtool.Text != "" ) {

            try {

                string dir = Path.GetDirectoryName( txtWavtool.Text );

                openFileDialog.InitialDirectory = dir;

                entered = true;

            } catch {

            }

        }

        CheckOkButtonAvailable();

        UpdateProfile();

        ApplyLanguage();

    }

 

    void ApplyLanguage() {

        if ( Messaging.Language == "ja" ) {

            groupSinger.Text = "n";

            groupConfig.Text = "-[";

            btnCancel.Text = "Sm";

            btnOk.Text = "N";

            btnSinger.Text = "cY0";

            btnResampler.Text = "cY0";

            btnWavtool.Text = "cY0";

            chkInvokeWithWine.Text = "wineL}1ug0UTAU000wR";

            lblDirectory.Text = "n0000";

        }

    }

 

    void UpdateProfile() {

        if ( Singer == "" || !Directory.Exists( Singer ) ) {

            pictSumbnail.Image = null;

            lblName.Text = "(Unknown)";

            return;

        }

        string character = Path.Combine( Singer, "character.txt" );

        if ( File.Exists( character ) ) {

            using ( cp932reader sr = new cp932reader( character ) ) {

                string line = "";

                while ( (line = sr.ReadLine()) != null ) {

                    string[] spl = line.Split( "=".ToCharArray(), 2 );

                    if ( spl.Length >= 2 ) {

                        if ( spl[0].ToLower() == "name" ) {

                            lblName.Text = spl[1];

                        } else if ( spl[0].ToLower() == "image" ) {

                            string image = Path.Combine( Singer, spl[1] );

                            if ( File.Exists( image ) ) {

                                try {

                                    pictSumbnail.Image = System.Drawing.Bitmap.FromFile( image );

                                } catch {

                                }

                            }

                        }

                    }

                }

            }

        }

 

        string readme = Path.Combine( Singer, "readme.txt" );

        if ( File.Exists( readme ) ) {

            using ( cp932reader sr = new cp932reader( readme ) ) {

                txtProf.Text = sr.ReadToEnd();

            }

        } else {

            txtProf.Text = "";

        }

    }

 

    public static bool Edit( VsqFile vsq ) {

        using ( RenderAsUtau dlg = new RenderAsUtau() ) {

            if ( dlg.ShowDialog() == DialogResult.OK ) {

                Singer = dlg.txtSinger.Text;

                Resampler = dlg.txtResampler.Text;

                WavTool = dlg.txtWavtool.Text;

                string script = Path.Combine( Application.StartupPath, Path.Combine( "script", "Render As UTAU.cs" ) );//Script.ScriptPath;

                string temp_dir = Path.Combine( Path.GetDirectoryName( script ), Path.GetFileNameWithoutExtension( script ) );

 

#if DEBUG

                StreamWriter sw = new StreamWriter( Path.Combine( temp_dir, "log.txt" ) );

#endif

                // S-[000

                Dictionary<string, OtoArgs> config = new Dictionary<string, OtoArgs>();

                string singer_name = Path.GetFileName( Singer );

                string config_file = Path.Combine( Singer, "oto.ini" );

#if DEBUG

                sw.WriteLine( "Singer=" + Singer );

                sw.WriteLine( "singer_name=" + singer_name );

                sw.WriteLine( "config_file=" + config_file );

#endif

                if ( File.Exists( config_file ) ) {

                    using ( cp932reader sr = new cp932reader( config_file ) ) {

                        string line;

                        while ( sr.Peek() >= 0 ) {

                            line = sr.ReadLine();

                            string[] spl = line.Split( '=' );

                            string a1 = spl[0];

                            string a2 = spl[1];

                            int index = a1.IndexOf( ".wav" );

                            a1 = a1.Substring( 0, index );

                            spl = a2.Split( ',' );

                            OtoArgs oa = new OtoArgs();

                            oa.A1 = 0;

                            oa.A2 = int.Parse( spl[1] );

                            oa.A3 = int.Parse( spl[2] );

                            oa.A4 = int.Parse( spl[3] );

                            oa.A5 = int.Parse( spl[4] );

                            oa.A6 = int.Parse( spl[5] );

                            config.Add( a1, oa );

                        }

                    }

                }

 

                int track = Script.Manager.Selected;

                List<Phon> phons = new List<Phon>();

                if ( !Directory.Exists( temp_dir ) ) {

                    Directory.CreateDirectory( temp_dir );

                }

                int count = -1;

                double sec_end = 0;

                double sec_end_old = 0;

                foreach ( VsqEvent item in vsq.Tracks[track].GetNoteEventEnumerator() ) {

                    count++;

                    double sec_start = vsq.SecFromClock( item.Clock );

                    sec_end_old = sec_end;

                    sec_end = vsq.SecFromClock( item.Clock + item.ID.Length );

                    float t_temp = (float)(item.ID.Length / (sec_end - sec_start) / 8.0);

                    if ( (count == 0 && sec_start > 0.0) || (sec_start > sec_end_old) ) {

                        double sec_start2 = sec_end_old;

                        double sec_end2 = sec_start;

                        float t_temp2 = (float)(item.Clock / (sec_end2 - sec_start2) / 8.0);

                        phons.Add( new Phon( "R", Path.Combine( Singer, "R.wav" ), item.Clock, t_temp2, true ) );

                        count++;

                    }

                    string lyric = item.ID.LyricHandle.L0.Phrase;

                    string note = NoteStringFromNoteNumber( item.ID.Note );

#if DEBUG

                    sw.WriteLine( "note=" + note );

#endif

                    string millisec = ((int)((sec_end - sec_start) * 1000) + 50).ToString();

 

                    //4_B0_C#4_550.wav

                    string filename = Path.Combine( temp_dir, count + "_" + item.ID.Note + "_" + millisec + ".wav" );

#if DEBUG

                    sw.WriteLine( "filename=" + filename );

                    sw.WriteLine();

#endif

                    if ( File.Exists( filename ) ) {

                        File.Delete( filename );

                    }

 

                    phons.Add( new Phon( lyric, filename, item.ID.Length, t_temp, false ) );

 

                    OtoArgs oa = new OtoArgs();

                    if ( config.ContainsKey( lyric ) ) {

                        oa = config[lyric];

                    }

                    string arg = "\"" + Path.Combine( Singer, lyric + ".wav" ) + "\" \"" + filename + "\" \"" + note + "\" 100 L " + oa.A2 + " " + millisec + " " + oa.A3 + " " + oa.A4 + " 100 100";

 

                    using ( System.Diagnostics.Process p = new System.Diagnostics.Process() ) {

                        p.StartInfo.FileName = (InvokeWithWine ? "wine \"" : "\"") + Resampler + "\"";

                        p.StartInfo.Arguments = arg;

                        p.StartInfo.WorkingDirectory = temp_dir;

                        p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

                        p.Start();

                        p.WaitForExit();

                    }

                }

#if DEBUG

                sw.Close();

#endif

 

                string filebase = "temp.wav";

                string file = Path.Combine( temp_dir, filebase );

                if ( File.Exists( file ) ) {

                    File.Delete( file );

                }

                string file_whd = Path.Combine( temp_dir, filebase + ".whd" );

                if ( File.Exists( file_whd ) ) {

                    File.Delete( file_whd );

                }

                string file_dat = Path.Combine( temp_dir, filebase + ".dat" );

                if ( File.Exists( file_dat ) ) {

                    File.Delete( file_dat );

                }

 

                // wavtool0|Ts0QY0

                for ( int i = 0; i < phons.Count; i++ ) {

                    OtoArgs oa = new OtoArgs();

                    if ( config.ContainsKey( phons[i].Lyric ) ) {

                        oa = config[phons[i].Lyric];

                    }

                    // !kn0&{n0HQLzvXh000000000S_

                    OtoArgs oa_next = new OtoArgs();

                    if ( i + 1 < phons.Count ) {

                        if ( config.ContainsKey( phons[i + 1].Lyric ) ) {

                            oa_next = config[phons[i + 1].Lyric];

                        }

                    }

                    int mten = oa.A5 + oa_next.A6 - oa_next.A5;

                    string arg = filebase + " \"" + phons[i].FileName + "\" 0 " + phons[i].ClockLength + "@" + string.Format( "{0:f2}", phons[i].Tempo ) + mten.ToString( "+#;-#;0" );

                    if ( phons[i].ModeR ) {

                        arg += " 0 0";

                    } else {

                        arg += " 0 5 35 0 100 100 100 " + oa.A6; // 000000

                    }

 

                    using ( System.Diagnostics.Process p = new System.Diagnostics.Process() ) {

                        p.StartInfo.FileName = (InvokeWithWine ? "wine \"" : "\"") + WavTool + "\"";

                        p.StartInfo.Arguments = arg;

                        p.StartInfo.WorkingDirectory = temp_dir;

                        p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

                        p.Start();

                        p.WaitForExit();

                    }

                }

 

                // lb_h00000P}T

                using ( FileStream fs = new FileStream( file, FileMode.Create ) ) {

                    string[] files = new string[] { file_whd, file_dat };

                    int buflen = 512;

                    byte[] buff = new byte[buflen];

                    for ( int i = 0; i < files.Length; i++ ) {

                        using ( FileStream fs2 = new FileStream( files[i], FileMode.Open ) ) {

                            int len = fs2.Read( buff, 0, buflen );

                            while ( len > 0 ) {

                                fs.Write( buff, 0, len );

                                len = fs2.Read( buff, 0, buflen );

                            }

                        }

                    }

                }

 

                // _GrNQ0

                foreach ( Phon ph in phons ) {

                    if ( !ph.ModeR ) {

                        if ( File.Exists( ph.FileName ) ) {

                            File.Delete( ph.FileName );

                        }

                    }

                }

                if ( File.Exists( file_whd ) ) {

                    File.Delete( file_whd );

                }

                if ( File.Exists( file_dat ) ) {

                    File.Delete( file_dat );

                }

 

                if ( saveFileDialog.ShowDialog() == DialogResult.OK ) {

                    if ( File.Exists( saveFileDialog.FileName ) ) {

                        File.Delete( saveFileDialog.FileName );

                    }

                    LastWave = saveFileDialog.FileName;

                    File.Move( file, saveFileDialog.FileName );

                } else {

                    File.Delete( file );

                }

                return true;

            } else {

                return false;

            }

        }

    }

 

    private static string NoteStringFromNoteNumber( int note_number ) {

        int odd = note_number % 12;

        string head = (new string[] { "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" })[odd];

        return head + (note_number / 12 - 1);

    }

 

    protected override void Dispose( bool disposing ) {

        if ( disposing && (components != null) ) {

            components.Dispose();

        }

        base.Dispose( disposing );

    }

 

    private void InitializeComponent() {

        this.lblResampler = new System.Windows.Forms.Label();

        this.txtSinger = new System.Windows.Forms.TextBox();

        this.btnSinger = new System.Windows.Forms.Button();

        this.groupConfig = new System.Windows.Forms.GroupBox();

        this.chkInvokeWithWine = new System.Windows.Forms.CheckBox();

        this.btnWavtool = new System.Windows.Forms.Button();

        this.btnResampler = new System.Windows.Forms.Button();

        this.txtWavtool = new System.Windows.Forms.TextBox();

        this.txtResampler = new System.Windows.Forms.TextBox();

        this.lblWavtool = new System.Windows.Forms.Label();

        this.btnOk = new System.Windows.Forms.Button();

        this.btnCancel = new System.Windows.Forms.Button();

        this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();

        this.openFileDialog = new System.Windows.Forms.OpenFileDialog();

        this.pictSumbnail = new System.Windows.Forms.PictureBox();

        this.txtProf = new System.Windows.Forms.TextBox();

        this.groupSinger = new System.Windows.Forms.GroupBox();

        this.lblName = new System.Windows.Forms.Label();

        this.lblDirectory = new System.Windows.Forms.Label();

        this.groupConfig.SuspendLayout();

        ((System.ComponentModel.ISupportInitialize)(this.pictSumbnail)).BeginInit();

        this.groupSinger.SuspendLayout();

        this.SuspendLayout();

        // 

        // lblResampler

        // 

        this.lblResampler.AutoSize = true;

        this.lblResampler.Location = new System.Drawing.Point( 11, 29 );

        this.lblResampler.Name = "lblResampler";

        this.lblResampler.Size = new System.Drawing.Size( 55, 12 );

        this.lblResampler.TabIndex = 0;

        this.lblResampler.Text = "resampler";

        // 

        // txtSinger

        // 

        this.txtSinger.Location = new System.Drawing.Point( 98, 176 );

        this.txtSinger.Name = "txtSinger";

        this.txtSinger.Size = new System.Drawing.Size( 215, 19 );

        this.txtSinger.TabIndex = 2;

        this.txtSinger.TextChanged += new System.EventHandler( this.txtSinger_TextChanged );

        // 

        // btnSinger

        // 

        this.btnSinger.Location = new System.Drawing.Point( 319, 174 );

        this.btnSinger.Name = "btnSinger";

        this.btnSinger.Size = new System.Drawing.Size( 56, 23 );

        this.btnSinger.TabIndex = 3;

        this.btnSinger.Text = "Browse";

        this.btnSinger.UseVisualStyleBackColor = true;

        this.btnSinger.Click += new System.EventHandler( this.btnSinger_Click );

        // 

        // groupConfig

        // 

        this.groupConfig.Controls.Add( this.chkInvokeWithWine );

        this.groupConfig.Controls.Add( this.btnWavtool );

        this.groupConfig.Controls.Add( this.btnResampler );

        this.groupConfig.Controls.Add( this.txtWavtool );

        this.groupConfig.Controls.Add( this.txtResampler );

        this.groupConfig.Controls.Add( this.lblWavtool );

        this.groupConfig.Controls.Add( this.lblResampler );

        this.groupConfig.Location = new System.Drawing.Point( 14, 236 );

        this.groupConfig.Name = "groupConfig";

        this.groupConfig.Size = new System.Drawing.Size( 394, 106 );

        this.groupConfig.TabIndex = 4;

        this.groupConfig.TabStop = false;

        this.groupConfig.Text = "Configuration";

        // 

        // chkInvokeWithWine

        // 

        this.chkInvokeWithWine.AutoSize = true;

        this.chkInvokeWithWine.Location = new System.Drawing.Point( 13, 76 );

        this.chkInvokeWithWine.Name = "chkInvokeWithWine";

        this.chkInvokeWithWine.Size = new System.Drawing.Size( 110, 16 );

        this.chkInvokeWithWine.TabIndex = 8;

        this.chkInvokeWithWine.Text = "Invoke with Wine";

        this.chkInvokeWithWine.UseVisualStyleBackColor = true;

        this.chkInvokeWithWine.CheckedChanged += new System.EventHandler( this.chkInvokeWithWine_CheckedChanged );

        // 

        // btnWavtool

        // 

        this.btnWavtool.Location = new System.Drawing.Point( 319, 49 );

        this.btnWavtool.Name = "btnWavtool";

        this.btnWavtool.Size = new System.Drawing.Size( 56, 23 );

        this.btnWavtool.TabIndex = 7;

        this.btnWavtool.Text = "Browse";

        this.btnWavtool.UseVisualStyleBackColor = true;

        this.btnWavtool.Click += new System.EventHandler( this.btnWavtool_Click );

        // 

        // btnResampler

        // 

        this.btnResampler.Location = new System.Drawing.Point( 319, 24 );

        this.btnResampler.Name = "btnResampler";

        this.btnResampler.Size = new System.Drawing.Size( 56, 23 );

        this.btnResampler.TabIndex = 5;

        this.btnResampler.Text = "Browse";

        this.btnResampler.UseVisualStyleBackColor = true;

        this.btnResampler.Click += new System.EventHandler( this.btnResampler_Click );

        // 

        // txtWavtool

        // 

        this.txtWavtool.Location = new System.Drawing.Point( 77, 51 );

        this.txtWavtool.Name = "txtWavtool";

        this.txtWavtool.Size = new System.Drawing.Size( 236, 19 );

        this.txtWavtool.TabIndex = 6;

        this.txtWavtool.TextChanged += new System.EventHandler( this.txtWavtool_TextChanged );

        // 

        // txtResampler

        // 

        this.txtResampler.Location = new System.Drawing.Point( 77, 26 );

        this.txtResampler.Name = "txtResampler";

        this.txtResampler.Size = new System.Drawing.Size( 236, 19 );

        this.txtResampler.TabIndex = 5;

        this.txtResampler.TextChanged += new System.EventHandler( this.txtResampler_TextChanged );

        // 

        // lblWavtool

        // 

        this.lblWavtool.AutoSize = true;

        this.lblWavtool.Location = new System.Drawing.Point( 11, 54 );

        this.lblWavtool.Name = "lblWavtool";

        this.lblWavtool.Size = new System.Drawing.Size( 44, 12 );

        this.lblWavtool.TabIndex = 1;

        this.lblWavtool.Text = "wavtool";

        // 

        // btnOk

        // 

        this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;

        this.btnOk.Location = new System.Drawing.Point( 252, 356 );

        this.btnOk.Name = "btnOk";

        this.btnOk.Size = new System.Drawing.Size( 75, 23 );

        this.btnOk.TabIndex = 6;

        this.btnOk.Text = "OK";

        this.btnOk.UseVisualStyleBackColor = true;

        // 

        // btnCancel

        // 

        this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;

        this.btnCancel.Location = new System.Drawing.Point( 333, 356 );

        this.btnCancel.Name = "btnCancel";

        this.btnCancel.Size = new System.Drawing.Size( 75, 23 );

        this.btnCancel.TabIndex = 7;

        this.btnCancel.Text = "Cancel";

        this.btnCancel.UseVisualStyleBackColor = true;

        // 

        // openFileDialog

        // 

        this.openFileDialog.FileName = "openFileDialog1";

        // 

        // pictSumbnail

        // 

        this.pictSumbnail.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;

        this.pictSumbnail.Location = new System.Drawing.Point( 18, 52 );

        this.pictSumbnail.Name = "pictSumbnail";

        this.pictSumbnail.Size = new System.Drawing.Size( 100, 100 );

        this.pictSumbnail.TabIndex = 8;

        this.pictSumbnail.TabStop = false;

        // 

        // txtProf

        // 

        this.txtProf.BackColor = System.Drawing.SystemColors.Window;

        this.txtProf.Location = new System.Drawing.Point( 131, 47 );

        this.txtProf.Multiline = true;

        this.txtProf.Name = "txtProf";

        this.txtProf.ReadOnly = true;

        this.txtProf.ScrollBars = System.Windows.Forms.ScrollBars.Both;

        this.txtProf.Size = new System.Drawing.Size( 247, 111 );

        this.txtProf.TabIndex = 9;

        this.txtProf.WordWrap = false;

        // 

        // groupSinger

        // 

        this.groupSinger.Controls.Add( this.lblDirectory );

        this.groupSinger.Controls.Add( this.lblName );

        this.groupSinger.Controls.Add( this.pictSumbnail );

        this.groupSinger.Controls.Add( this.txtProf );

        this.groupSinger.Controls.Add( this.txtSinger );

        this.groupSinger.Controls.Add( this.btnSinger );

        this.groupSinger.Location = new System.Drawing.Point( 14, 12 );

        this.groupSinger.Name = "groupSinger";

        this.groupSinger.Size = new System.Drawing.Size( 394, 218 );

        this.groupSinger.TabIndex = 10;

        this.groupSinger.TabStop = false;

        this.groupSinger.Text = "Singer";

        // 

        // lblName

        // 

        this.lblName.AutoSize = true;

        this.lblName.Font = new System.Drawing.Font( "MS UI Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)) );

        this.lblName.Location = new System.Drawing.Point( 21, 23 );

        this.lblName.Name = "lblName";

        this.lblName.Size = new System.Drawing.Size( 74, 13 );

        this.lblName.TabIndex = 10;

        this.lblName.Text = "(Unknown)";

        // 

        // lblDirectory

        // 

        this.lblDirectory.AutoSize = true;

        this.lblDirectory.Location = new System.Drawing.Point( 11, 179 );

        this.lblDirectory.Name = "lblDirectory";

        this.lblDirectory.Size = new System.Drawing.Size( 81, 12 );

        this.lblDirectory.TabIndex = 11;

        this.lblDirectory.Text = "voice directory";

        // 

        // RenderAsUtau

        // 

        this.AcceptButton = this.btnOk;

        this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 12F );

        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

        this.CancelButton = this.btnCancel;

        this.ClientSize = new System.Drawing.Size( 420, 393 );

        this.Controls.Add( this.groupSinger );

        this.Controls.Add( this.btnCancel );

        this.Controls.Add( this.btnOk );

        this.Controls.Add( this.groupConfig );

        this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;

        this.MaximizeBox = false;

        this.MinimizeBox = false;

        this.Name = "RenderAsUtau";

        this.ShowIcon = false;

        this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

        this.Text = "Render As UTAU";

        this.groupConfig.ResumeLayout( false );

        this.groupConfig.PerformLayout();

        ((System.ComponentModel.ISupportInitialize)(this.pictSumbnail)).EndInit();

        this.groupSinger.ResumeLayout( false );

        this.groupSinger.PerformLayout();

        this.ResumeLayout( false );

 

    }

 

    private void btnSinger_Click( object sender, EventArgs e ) {

        if ( folderBrowserDialog.ShowDialog() == DialogResult.OK ) {

            txtSinger.Text = folderBrowserDialog.SelectedPath;

            UpdateProfile();

        }

    }

 

    private void CheckOkButtonAvailable() {

        if ( !File.Exists( Resampler ) || !File.Exists( WavTool ) || !Directory.Exists( Singer ) ) {

            btnOk.Enabled = false;

        } else {

            btnOk.Enabled = true;

        }

    }

 

    private void btnResampler_Click( object sender, EventArgs e ) {

        if ( openFileDialog.ShowDialog() == DialogResult.OK ) {

            txtResampler.Text = openFileDialog.FileName;

        }

    }

 

    private void btnWavtool_Click( object sender, EventArgs e ) {

        if ( openFileDialog.ShowDialog() == DialogResult.OK ) {

            txtWavtool.Text = openFileDialog.FileName;

        }

    }

 

    private void txtResampler_TextChanged( object sender, EventArgs e ) {

        Resampler = txtResampler.Text;

        CheckOkButtonAvailable();

    }

 

    private void txtWavtool_TextChanged( object sender, EventArgs e ) {

        WavTool = txtWavtool.Text;

        CheckOkButtonAvailable();

    }

 

    private void txtSinger_TextChanged( object sender, EventArgs e ) {

        Singer = txtSinger.Text;

        CheckOkButtonAvailable();

        UpdateProfile();

    }

 

    private void chkInvokeWithWine_CheckedChanged( object sender, EventArgs e ) {

        InvokeWithWine = chkInvokeWithWine.Checked;

    }

}

 

0000000n0Q[00000k0OX[Y00



public static class SaveMetaText {

    public static bool Edit( Boare.Lib.Vsq.VsqFile vsq ) {

        vsq.Track[1].printMetaText( @"c:\meta_text.txt" );

        return true;

    }

}



0Lk^`1X0S_W000000k0OX[Y00



public static class PrintLyric {

    public static bool Edit( Boare.Lib.Vsq.VsqFile Vsq ) {

        System.IO.StreamWriter sw = null;

        try {

            sw = new System.IO.StreamWriter( @"c:\lyrics.txt" );

            for ( Boare.Lib.Vsq.Iterator itr = Vsq.Track[1].getNoteEventIterator(); itr.hasNext(); ) {

                Boare.Lib.Vsq.VsqEvent item = (Boare.Lib.Vsq.VsqEvent)itr.next();

                int clStart = item.Clock;

                int clEnd = clStart + item.ID.Length;

                double secStart = Vsq.getSecFromClock( clStart );

                double secEnd = Vsq.getSecFromClock( clEnd );

                sw.WriteLine( secStart + "\t" + secEnd + "\t" + item.ID.LyricHandle.L0.Phrase + "\t" + item.ID.LyricHandle.L0.PhoneticSymbol );

            }

        } catch {

            return false;

        } finally {

            if ( sw != null ) {

                sw.Close();

            }

        }

        return true;

    }

}



0hQf0n0&{0JS
NR00



public static class UpHalfStep {

    public static bool Edit( Boare.Lib.Vsq.VsqFile Vsq ) {

        for ( int i = 1; i < Vsq.Track.Count; i++ ) {

            for ( Boare.Lib.Vsq.Iterator itr = Vsq.Track[i].getNoteEventIterator(); itr.hasNext(); ) {

                Boare.Lib.Vsq.VsqEvent item = (Boare.Lib.Vsq.VsqEvent)itr.next();

                if ( item.ID.Note < 127 ) {

                    item.ID.Note++;

                }

            }

        }

        return true;

    }

}



0hQf0n0&{n0wU0032R&{R`0Q0wO0Y00



public static class Trim32 {

    public static bool Edit( Boare.Lib.Vsq.VsqFile Vsq ) {

        for ( int i = 1; i < Vsq.Track.Count; i++ ) {

            for ( Boare.Lib.Vsq.Iterator itr = Vsq.Track[i].getNoteEventIterator(); itr.hasNext(); ) {

                Boare.Lib.Vsq.VsqEvent item = (Boare.Lib.Vsq.VsqEvent)itr.next();

                // 32R&{n0wU0o00000pek0vY0h0600000

                if ( item.ID.Length > 60 ) {

                    item.ID.Length -= 60;

                }

            }

        }

        return true;

    }

}