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
|
/*
* EditorConfig.cs
* Copyright © 2008-2011 kbinani
*
* This file is part of org.kbinani.cadencii.
*
* org.kbinani.cadencii is free software; you can redistribute it and/or
* modify it under the terms of the GPLv3 License.
*
* org.kbinani.cadencii is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#if JAVA
package org.kbinani.cadencii;
import java.awt.*;
import java.util.*;
import java.io.*;
import org.kbinani.*;
import org.kbinani.vsq.*;
import org.kbinani.xml.*;
import org.kbinani.windows.forms.*;
#else
using System;
using org.kbinani;
using org.kbinani.java.awt;
using org.kbinani.java.io;
using org.kbinani.java.util;
using org.kbinani.windows.forms;
using org.kbinani.xml;
using org.kbinani.vsq;
namespace org.kbinani.cadencii
{
using BEventArgs = System.EventArgs;
using BEventHandler = System.EventHandler;
using boolean = System.Boolean;
#endif
/// <summary>
/// Cadenciiの環境設定
/// </summary>
public class EditorConfig
{
/// <summary>
/// デフォルトで使用する歌手の名前
/// </summary>
public String DefaultSingerName = "Miku";
/// <summary>
/// デフォルトの横軸方向のスケール
/// </summary>
public int DefaultXScale = 65;
public String BaseFontName = "MS UI Gothic";
public float BaseFontSize = 9.0f;
public String ScreenFontName = "MS UI Gothic";
public int WheelOrder = 20;
public boolean CursorFixed = false;
/// <summary>
/// RecentFilesに登録することの出来る最大のファイル数
/// </summary>
public int NumRecentFiles = 5;
/// <summary>
/// 最近使用したファイルのリスト
/// </summary>
#if JAVA
@XmlGenericType( String.class )
#endif
public Vector<String> RecentFiles = new Vector<String>();
public int DefaultPMBendDepth = 8;
public int DefaultPMBendLength = 0;
public int DefaultPMbPortamentoUse = 3;
public int DefaultDEMdecGainRate = 50;
public int DefaultDEMaccent = 50;
/// <summary>
/// ピアノロール上に歌詞を表示するかどうか
/// </summary>
public boolean ShowLyric = true;
/// <summary>
/// ピアノロール上に,ビブラートとアタックの概略を表す波線を表示するかどうか
/// </summary>
public boolean ShowExpLine = true;
public DefaultVibratoLengthEnum DefaultVibratoLength = DefaultVibratoLengthEnum.L66;
/// <summary>
/// デフォルトビブラートのRate
/// バージョン3.3で廃止
/// </summary>
#if !JAVA
[Obsolete]
#endif
private int __revoked__DefaultVibratoRate = 64;
/// <summary>
/// デフォルトビブラートのDepth
/// バージョン3.3で廃止
/// </summary>
#if !JAVA
[Obsolete]
#endif
private int __revoked__DefaultVibratoDepth = 64;
/// <summary>
/// ビブラートの自動追加を行うかどうかを決める音符長さの閾値.単位はclock
/// <version>3.3+</version>
/// </summary>
public int AutoVibratoThresholdLength = 480;
/// <summary>
/// VOCALOID1用のデフォルトビブラート設定
/// </summary>
public String AutoVibratoType1 = "$04040001";
/// <summary>
/// VOCALOID2用のデフォルトビブラート設定
/// </summary>
public String AutoVibratoType2 = "$04040001";
/// <summary>
/// カスタムのデフォルトビブラート設定
/// <version>3.3+</version>
/// </summary>
public String AutoVibratoTypeCustom = "$04040001";
/// <summary>
/// ユーザー定義のビブラート設定.
/// <version>3.3+</version>
/// </summary>
#if JAVA
@XmlGenericType( VibratoHandle.class )
#endif
public Vector<VibratoHandle> AutoVibratoCustom = new Vector<VibratoHandle>();
/// <summary>
/// ビブラートの自動追加を行うかどうか
/// </summary>
public boolean EnableAutoVibrato = true;
/// <summary>
/// ピアノロール上での,音符の表示高さ(ピクセル)
/// </summary>
public int PxTrackHeight = 14;
public int MouseDragIncrement = 50;
public int MouseDragMaximumRate = 600;
/// <summary>
/// ミキサーウィンドウが表示された状態かどうか
/// </summary>
public boolean MixerVisible = false;
/// <summary>
/// アイコンパレットが表示された状態かどうか
/// <version>3.3+</version>
/// </summary>
public boolean IconPaletteVisible = false;
public int PreSendTime = 500;
public ClockResolution ControlCurveResolution = ClockResolution.L30;
/// <summary>
/// 言語設定
/// </summary>
public String Language = "";
/// <summary>
/// マウスの操作などの許容範囲。プリメジャーにPxToleranceピクセルめり込んだ入力を行っても、エラーにならない。(補正はされる)
/// </summary>
public int PxTolerance = 10;
/// <summary>
/// マウスホイールでピアノロールを水平方向にスクロールするかどうか。
/// </summary>
public boolean ScrollHorizontalOnWheel = true;
/// <summary>
/// 画面描画の最大フレームレート
/// </summary>
public int MaximumFrameRate = 15;
/// <summary>
/// ユーザー辞書のOn/Offと順序
/// </summary>
#if JAVA
@XmlGenericType( String.class )
#endif
public Vector<String> UserDictionaries = new Vector<String>();
/// <summary>
/// 実行環境
/// </summary>
private PlatformEnum __revoked__Platform = PlatformEnum.Windows;
/// <summary>
/// ウィンドウが最大化された状態かどうか
/// </summary>
public boolean WindowMaximized = false;
/// <summary>
/// ウィンドウの位置とサイズ.
/// 最小化された状態での値は,この変数に代入されない(ことになっている)
/// </summary>
public Rectangle WindowRect = new Rectangle( 0, 0, 970, 718 );
/// <summary>
/// hScrollのスクロールボックスの最小幅(px)
/// </summary>
public int MinimumScrollHandleWidth = 20;
/// <summary>
/// 発音記号入力モードを,維持するかどうか
/// </summary>
public boolean KeepLyricInputMode = false;
/// <summary>
/// ピアノロールの何もないところをクリックした場合、右クリックでもプレビュー音を再生するかどうか
/// </summary>
public boolean PlayPreviewWhenRightClick = false;
/// <summary>
/// ゲームコントローラで、異なるイベントと識別する最小の時間間隔(millisec)
/// </summary>
public int GameControlerMinimumEventInterval = 100;
/// <summary>
/// カーブの選択範囲もクオンタイズするかどうか
/// </summary>
public boolean CurveSelectingQuantized = true;
private QuantizeMode m_position_quantize = QuantizeMode.p32;
private boolean m_position_quantize_triplet = false;
private QuantizeMode m_length_quantize = QuantizeMode.p32;
private boolean m_length_quantize_triplet = false;
private int m_mouse_hover_time = 500;
/// <summary>
/// Button index of "△"
/// </summary>
public int GameControlerTriangle = 0;
/// <summary>
/// Button index of "○"
/// </summary>
public int GameControlerCircle = 1;
/// <summary>
/// Button index of "×"
/// </summary>
public int GameControlerCross = 2;
/// <summary>
/// Button index of "□"
/// </summary>
public int GameControlerRectangle = 3;
/// <summary>
/// Button index of "L1"
/// </summary>
public int GameControlL1 = 4;
/// <summary>
/// Button index of "R1"
/// </summary>
public int GameControlR1 = 5;
/// <summary>
/// Button index of "L2"
/// </summary>
public int GameControlL2 = 6;
/// <summary>
/// Button index of "R2"
/// </summary>
public int GameControlR2 = 7;
/// <summary>
/// Button index of "SELECT"
/// </summary>
public int GameControlSelect = 8;
/// <summary>
/// Button index of "START"
/// </summary>
public int GameControlStart = 9;
/// <summary>
/// Button index of Left Stick
/// </summary>
public int GameControlStirckL = 10;
/// <summary>
/// Button index of Right Stick
/// </summary>
public int GameControlStirckR = 11;
public boolean CurveVisibleVelocity = true;
public boolean CurveVisibleAccent = true;
public boolean CurveVisibleDecay = true;
public boolean CurveVisibleVibratoRate = true;
public boolean CurveVisibleVibratoDepth = true;
public boolean CurveVisibleDynamics = true;
public boolean CurveVisibleBreathiness = true;
public boolean CurveVisibleBrightness = true;
public boolean CurveVisibleClearness = true;
public boolean CurveVisibleOpening = true;
public boolean CurveVisibleGendorfactor = true;
public boolean CurveVisiblePortamento = true;
public boolean CurveVisiblePit = true;
public boolean CurveVisiblePbs = true;
public boolean CurveVisibleHarmonics = false;
public boolean CurveVisibleFx2Depth = false;
public boolean CurveVisibleReso1 = false;
public boolean CurveVisibleReso2 = false;
public boolean CurveVisibleReso3 = false;
public boolean CurveVisibleReso4 = false;
public boolean CurveVisibleEnvelope = false;
public int GameControlPovRight = 9000;
public int GameControlPovLeft = 27000;
public int GameControlPovUp = 0;
public int GameControlPovDown = 18000;
/// <summary>
/// wave波形を表示するかどうか
/// </summary>
public boolean ViewWaveform = false;
/// <summary>
/// スプリットコンテナのディバイダの位置
/// <version>3.3+</version>
/// </summary>
public int SplitContainer2LastDividerLocation = -1;
/// <summary>
/// キーボードからの入力に使用するデバイス
/// </summary>
public MidiPortConfig MidiInPort = new MidiPortConfig();
public boolean ViewAtcualPitch = false;
private boolean __revoked__InvokeUtauCoreWithWine = false;
#if JAVA
@XmlGenericType( SingerConfig.class )
#endif
public Vector<SingerConfig> UtauSingers = new Vector<SingerConfig>();
/// <summary>
/// UTAU互換の合成器のパス(1個目)
/// </summary>
public String PathResampler = "";
/// <summary>
/// UTAU互換の合成器の1個目を,wine経由で呼ぶかどうか
/// version 3.3+
/// </summary>
public boolean ResamplerWithWine = false;
/// <summary>
/// UTAU互換の合成器のパス(2個目以降)
/// </summary>
#if JAVA
@XmlGenericType( String.class )
#endif
public Vector<String> PathResamplers = new Vector<String>();
/// <summary>
/// UTAU互換の合成器を,wine経由で呼ぶかどうか
/// version 3.3+
/// </summary>
#if JAVA
@XmlGenericType( Boolean.class )
#endif
public Vector<Boolean> ResamplersWithWine = new Vector<Boolean>();
/// <summary>
/// UTAU用のwave切り貼りツール
/// </summary>
public String PathWavtool = "";
/// <summary>
/// wavtoolをwine経由で呼ぶかどうか
/// version 3.3+
/// </summary>
public boolean WavtoolWithWine = false;
/// <summary>
/// ベジエ制御点を掴む時の,掴んだと判定する際の誤差.制御点の外輪からPxToleranceBezierピクセルずれていても,掴んだと判定する.
/// </summary>
public int PxToleranceBezier = 10;
/// <summary>
/// 歌詞入力においてローマ字が入力されたとき,Cadencii側でひらがなに変換するかどうか
/// </summary>
public boolean SelfDeRomanization = false;
/// <summary>
/// openMidiDialogで最後に選択された拡張子
/// </summary>
public String LastUsedExtension = ".vsq";
/// <summary>
/// ミキサーダイアログを常に手前に表示するかどうか
/// 3.3で廃止
/// </summary>
private boolean __revoked__MixerTopMost = true;
#if JAVA
@XmlGenericType( ValuePairOfStringArrayOfKeys.class )
#endif
public Vector<ValuePairOfStringArrayOfKeys> ShortcutKeys = new Vector<ValuePairOfStringArrayOfKeys>();
public PropertyPanelState PropertyWindowStatus = new PropertyPanelState();
/// <summary>
/// 概観ペインが表示されているかどうか
/// </summary>
public boolean OverviewEnabled = false;
public int OverviewScaleCount = 5;
public FormMidiImExportConfig MidiImExportConfigExport = new FormMidiImExportConfig();
public FormMidiImExportConfig MidiImExportConfigImport = new FormMidiImExportConfig();
public FormMidiImExportConfig MidiImExportConfigImportVsq = new FormMidiImExportConfig();
/// <summary>
/// 自動バックアップする間隔.単位は分
/// </summary>
public int AutoBackupIntervalMinutes = 10;
/// <summary>
/// 鍵盤の表示幅、ピクセル,AppManager.keyWidthに代入。
/// </summary>
public int KeyWidth = 136;
/// <summary>
/// スペースキーを押しながら左クリックで、中ボタンクリックとみなす動作をさせるかどうか。
/// </summary>
public boolean UseSpaceKeyAsMiddleButtonModifier = false;
/// <summary>
/// AquesToneのVSTi dllへのパス
/// </summary>
public String PathAquesTone = "";
/// <summary>
/// アイコンパレット・ウィンドウの位置
/// </summary>
public XmlPoint FormIconPaletteLocation = new XmlPoint( 0, 0 );
/// <summary>
/// アイコンパレット・ウィンドウを常に手前に表示するかどうか
/// 3.3で廃止
/// </summary>
private boolean __revoked__FormIconTopMost = true;
/// <summary>
/// 最初に戻る、のショートカットキー
/// </summary>
public BKeys[] SpecialShortcutGoToFirst = new BKeys[] { BKeys.Home };
/// <summary>
/// waveファイル出力時のチャンネル数(1または2)
/// 3.3で廃止
/// </summary>
private int __revoked__WaveFileOutputChannel = 2;
/// <summary>
/// waveファイル出力時に、全トラックをmixして出力するかどうか
/// 3.3で廃止
/// </summary>
private boolean __revoked__WaveFileOutputFromMasterTrack = false;
/// <summary>
/// MTCスレーブ動作を行う際使用するMIDI INポートの設定
/// </summary>
public MidiPortConfig MidiInPortMtc = new MidiPortConfig();
/// <summary>
/// プロジェクトごとのキャッシュディレクトリを使うかどうか
/// </summary>
public boolean UseProjectCache = true;
/// <summary>
/// 鍵盤用のキャッシュが無いとき、FormGenerateKeySoundを表示しないかどうか。
/// trueなら表示しない、falseなら表示する(デフォルト)
/// </summary>
public boolean DoNotAskKeySoundGeneration = false;
/// <summary>
/// VOCALOID1 (1.0)のDLLを読み込まない場合true。既定ではfalse
/// 3.3で廃止
/// </summary>
private boolean __revoked__DoNotUseVocaloid100 = false;
/// <summary>
/// VOCALOID1 (1.1)のDLLを読み込まない場合true。既定ではfalse
/// 3.3で廃止
/// </summary>
private boolean __revoked__DoNotUseVocaloid101 = false;
/// <summary>
/// VOCALOID2のDLLを読み込まない場合true。既定ではfalse
/// </summary>
public boolean DoNotUseVocaloid2 = false;
/// <summary>
/// AquesToneのDLLを読み込まない場合true。既定ではfalse
/// </summary>
public boolean DoNotUseAquesTone = false;
/// <summary>
/// 2個目のVOCALOID1 DLLを読み込むかどうか。既定ではfalse
/// 3.3で廃止
/// </summary>
private boolean __revoked__LoadSecondaryVocaloid1Dll = false;
/// <summary>
/// VOALOID1のDLLを読み込まない場合はtrue.既定ではfalse
/// </summary>
public boolean DoNotUseVocaloid1 = false;
/// <summary>
/// WAVE再生時のバッファーサイズ。既定では1000ms。
/// </summary>
public int BufferSizeMilliSeconds = 1000;
/// <summary>
/// トラックを新規作成するときのデフォルトの音声合成システム
/// </summary>
public RendererKind DefaultSynthesizer
#if ENABLE_VOCALOID
= RendererKind.VOCALOID2;
#else
= RendererKind.VCNT;
#endif
/// <summary>
/// 自動ビブラートを作成するとき,ユーザー定義タイプのビブラートを利用するかどうか.デフォルトではfalse
/// </summary>
public boolean UseUserDefinedAutoVibratoType = false;
/// <summary>
/// 再生中に画面を描画するかどうか。デフォルトはfalse
/// <version>3.3+</version>
/// </summary>
public boolean SkipDrawWhilePlaying = false;
/// <summary>
/// ピアノロール画面の縦方向のスケール.
/// <verssion>3.3+</verssion>
/// </summary>
public int PianoRollScaleY = 0;
/// <summary>
/// ファイル・ツールバーのサイズ
/// <version>3.3+</version>
/// </summary>
public int BandSizeFile = 236;
/// <summary>
/// ツール・ツールバーのサイズ
/// <version>3.3+</version>
/// </summary>
public int BandSizeTool = 712;
/// <summary>
/// メジャー・ツールバーのサイズ
/// <version>3.3+</version>
/// </summary>
public int BandSizeMeasure = 714;
/// <summary>
/// ポジション・ツールバーのサイズ
/// <version>3.3+</version>
/// </summary>
public int BandSizePosition = 234;
/// <summary>
/// ファイル・ツールバーを新しい行に追加するかどうか
/// <version>3.3+</version>
/// </summary>
public boolean BandNewRowFile = false;
/// <summary>
/// ツール・ツールバーを新しい行に追加するかどうか
/// <version>3.3+</version>
/// </summary>
public boolean BandNewRowTool = false;
/// <summary>
/// メジャー・ツールバーを新しい行に追加するかどうか
/// <version>3.3+</version>
/// </summary>
public boolean BandNewRowMeasure = false;
/// <summary>
/// ポジション・ツールバーを新しい行に追加するかどうか
/// <version>3.3+</version>
/// </summary>
public boolean BandNewRowPosition = true;
/// <summary>
/// ファイル・ツールバーの順番
/// <remarks>version 3.3+</remarks>
/// </summary>
public int BandOrderFile = 0;
/// <summary>
/// ツール・ツールバーの順番
/// <remarks>version 3.3+</remarks>
/// </summary>
public int BandOrderTool = 1;
/// <summary>
/// メジャー・ツールバーの順番
/// <remarks>version 3.3+</remarks>
/// </summary>
public int BandOrderMeasure = 3;
/// <summary>
/// ポジション・ツールバーの順番
/// <remarks>version 3.3+</remarks>
/// </summary>
public int BandOrderPosition = 2;
/// <summary>
/// ツールバーのChevronの幅.
/// Winodws 7(Aero): 17px
/// <remarks>version 3.3+</remarks>
/// </summary>
public int ChevronWidth = 17;
/// <summary>
/// 最後に入力したファイルパスのリスト
/// リストに入る文字列は,拡張子+タブ文字+パスの形式にする
/// 拡張子はピリオドを含めない
/// <remarks>version 3.3+</remarks>
/// </summary>
#if JAVA
@XmlGenericType( String.class )
#endif
public Vector<String> LastUsedPathIn = new Vector<String>();
/// <summary>
/// 最後に出力したファイルパスのリスト
/// リストに入る文字列は,拡張子+タブ文字+パスの形式にする
/// 拡張子はピリオドを含めない
/// <remarks>version 3.3+</remarks>
/// </summary>
#if JAVA
@XmlGenericType( String.class )
#endif
public Vector<String> LastUsedPathOut = new Vector<String>();
/// <summary>
/// 使用するWINEPREFIX
/// version 3.3+
/// </summary>
public String WinePrefix = "~/Library/Application Support/MikuInstaller/prefix/default";
/// <summary>
/// wineのトップディレクトリ
/// version 3.3+
/// </summary>
public String WineTop = "/Applications/MikuInstaller.app/Contents/Resources/Wine.bundle/Contents/SharedSupport";
/// <summary>
/// Cadencii付属のWineを使う場合にtrue,そうでなければWineTopで指定されたWineが利用される
/// version 3.3+
/// </summary>
public boolean WineTopBuiltin = true;
/// <summary>
/// UTAUのresampler用に,ジャンクション機能を使うかどうか
/// version 3.3+
/// </summary>
public boolean UseWideCharacterWorkaround = false;
/// <summary>
/// バッファーサイズに設定できる最大値
/// </summary>
public const int MAX_BUFFER_MILLISEC = 1000;
/// <summary>
/// バッファーサイズに設定できる最小値
/// </summary>
public const int MIN_BUFFER_MILLIXEC = 100;
/// <summary>
/// ピアノロールの縦軸の拡大率を表す整数値の最大値
/// </summary>
public const int MAX_PIANOROLL_SCALEY = 10;
/// <summary>
/// ピアノロールの縦軸の拡大率を表す整数値の最小値
/// </summary>
public const int MIN_PIANOROLL_SCALEY = -4;
#region static fields
#if JAVA
private static XmlSerializer s_serializer = new XmlSerializer( EditorConfig.class );
#else
private static XmlSerializer s_serializer = new XmlSerializer( typeof( EditorConfig ) );
#endif
#endregion
/// <summary>
/// PositionQuantize, PositionQuantizeTriplet, LengthQuantize, LengthQuantizeTripletの描くプロパティのいずれかが
/// 変更された時発生します
/// </summary>
#if JAVA
public static BEvent<BEventHandler> quantizeModeChangedEvent = new BEvent<BEventHandler>();
#elif QT_VERSION
public: signals: void quantizeModeChanged( QObject sender, QObject e );
#else
public static event BEventHandler QuantizeModeChanged;
#endif
/// <summary>
/// コンストラクタ.起動したOSによって動作を変える場合がある
/// </summary>
public EditorConfig()
{
#if !JAVA
// デフォルトのフォントを,システムのメニューフォントと同じにする
System.Drawing.Font f = System.Windows.Forms.SystemInformation.MenuFont;
if ( f != null ) {
this.BaseFontName = f.Name;
this.ScreenFontName = f.Name;
}
#endif
// 言語設定を,システムのデフォルトの言語を用いる
String lang = "";
#if JAVA
String name = System.getProperty( "user.language" );
if( name != null ){
lang = name;
}
#else
String name = System.Windows.Forms.Application.CurrentCulture.Name;
if ( name.Equals( "ja" ) ||
name.StartsWith( "ja-" ) ) {
lang = "ja";
} else {
lang = name;
}
#endif
this.Language = lang;
}
#region public static method
/// <summary>
/// EditorConfigのインスタンスをxmlシリアライズするためのシリアライザを取得します
/// </summary>
/// <returns></returns>
public static XmlSerializer getSerializer()
{
return s_serializer;
}
#endregion
#region private static method
private static String getLastUsedPathCore( Vector<String> list, String extension )
{
if ( extension == null ) return "";
if ( PortUtil.getStringLength( extension ) <= 0 ) return "";
if ( extension.Equals( "." ) ) return "";
if ( extension.StartsWith( "." ) ) {
extension = str.sub( extension, 1 );
}
int c = list.size();
for ( int i = 0; i < c; i++ ) {
String s = list.get( i );
if ( s.StartsWith( extension ) ) {
String[] spl = PortUtil.splitString( s, '\t' );
if ( spl.Length >= 2 ) {
return spl[1];
}
break;
}
}
return "";
}
private static void setLastUsedPathCore( Vector<String> list, String path, String ext_with_dot )
{
String extension = ext_with_dot;
if ( extension == null ) return;
if ( extension.Equals( "." ) ) return;
if ( extension.StartsWith( "." ) ) {
extension = str.sub( extension, 1 );
}
int c = list.size();
String entry = extension + "\t" + path;
for ( int i = 0; i < c; i++ ) {
String s = list.get( i );
if ( s.StartsWith( extension ) ) {
list.set( i, entry );
return;
}
}
list.add( entry );
}
#endregion
#region public method
/// <summary>
/// 音符イベントに,デフォルトの歌唱スタイルを適用します
/// </summary>
/// <param name="item"></param>
public void applyDefaultSingerStyle( VsqID item )
{
if ( item == null ) return;
item.PMBendDepth = this.DefaultPMBendDepth;
item.PMBendLength = this.DefaultPMBendLength;
item.PMbPortamentoUse = this.DefaultPMbPortamentoUse;
item.DEMdecGainRate = this.DefaultDEMdecGainRate;
item.DEMaccent = this.DefaultDEMaccent;
}
/// <summary>
/// 使用するWineのインストールディレクトリを取得します
/// </summary>
public String getWineTop()
{
if( WineTopBuiltin ){
return getBuiltinWineTop( "Wine.bundle" );
}else{
return WineTop;
}
}
/// <summary>
/// 指定した名前のバンドルの,Wineのインストールディレクトリを取得します
/// </summary>
private String getBuiltinWineTop( String bundle_name )
{
String appstart = PortUtil.getApplicationStartupPath();
// Wine.bundleの場所は../Wine.bundleまたは./Wine.bundleのどちらか
// まず../Wine.bundleがあるかどうかチェック
String parent = PortUtil.getDirectoryName( appstart );
String ret = fsys.combine( parent, bundle_name );
if( !fsys.isDirectoryExists( ret ) ){
// ../Wine.bundleが無い場合
ret = fsys.combine( appstart, bundle_name );
}
ret = fsys.combine( ret, "Contents" );
ret = fsys.combine( ret, "SharedSupport" );
return ret;
}
public String getBuiltinWineMinimumExecutable()
{
String ret = getBuiltinWineTop( "WineMinimum.bundle" );
ret = fsys.combine( ret, "bin" );
ret = fsys.combine( ret, "wine" );
return ret;
}
/// <summary>
/// wineの実行ファイルのパスを取得します
/// </summary>
public String getBuiltinWineExecutable__()
{
String ret = getBuiltinWineTop( "Wine.bundle" );
ret = fsys.combine( ret, "bin" );
ret = fsys.combine( ret, "wine" );
return ret;
}
/// <summary>
/// 登録されているUTAU互換合成器の個数を調べます
/// </summary>
/// <returns></returns>
public int getResamplerCount()
{
int ret = PathResamplers.size();
if ( !PathResampler.Equals( "" ) ) {
ret++;
}
return ret;
}
/// <summary>
/// 登録されているUTAU互換合成器の登録を全て解除します
/// </summary>
public void clearResampler()
{
PathResamplers.clear();
PathResampler = "";
ResamplersWithWine.clear();
}
/// <summary>
/// 第index番目に登録されているresamplerをwine経由で呼ぶかどうかを表す値を取得します
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public boolean isResamplerWithWineAt( int index )
{
if ( index == 0 ) {
return ResamplerWithWine;
} else {
index--;
if ( 0 <= index && index < vec.size( ResamplersWithWine ) ) {
return vec.get( ResamplersWithWine, index );
}
return false;
}
}
/// <summary>
/// 第index番目に登録されているresamplerをwine経由で呼ぶかどうかを設定します
/// </summary>
/// <param name="index"></param>
/// <param name="with_wine"></param>
public void setResamplerWithWineAt( int index, boolean with_wine )
{
if ( index == 0 ) {
ResamplerWithWine = with_wine;
} else {
index--;
if ( 0 <= index && index < vec.size( ResamplersWithWine ) ) {
vec.set( ResamplersWithWine, index, with_wine );
}
}
}
/// <summary>
/// 第index番目に登録されているUTAU互換合成器のパスを取得します
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public String getResamplerAt( int index )
{
if ( index == 0 ) {
return PathResampler;
} else {
index--;
if ( 0 <= index && index < PathResamplers.size() ) {
return PathResamplers.get( index );
}
}
return "";
}
/// <summary>
/// 第index番目のUTAU互換合成器のパスを設定します
/// </summary>
/// <param name="index"></param>
/// <param name="path"></param>
public void setResamplerAt( int index, String path )
{
if ( path == null ) {
return;
}
if ( path.Equals( "" ) ) {
return;
}
if ( index == 0 ) {
PathResampler = path;
} else {
index--;
if ( 0 <= index && index < PathResamplers.size() ) {
PathResamplers.set( index, path );
}
}
}
/// <summary>
/// 第index番目のUTAU互換合成器を登録解除します
/// </summary>
/// <param name="index"></param>
public void removeResamplerAt( int index )
{
int size = PathResamplers.size();
if ( index == 0 ) {
if ( size > 0 ) {
PathResampler = PathResamplers.get( 0 );
ResamplerWithWine = ResamplersWithWine.get( 0 );
for ( int i = 0; i < size - 1; i++ ) {
PathResamplers.set( i, PathResamplers.get( i + 1 ) );
ResamplersWithWine.set( i, ResamplersWithWine.get( i + 1 ) );
}
PathResamplers.removeElementAt( size - 1 );
ResamplersWithWine.removeElementAt( size - 1 );
} else {
PathResampler = "";
}
} else {
index--;
if ( 0 <= index && index < size ) {
for ( int i = 0; i < size - 1; i++ ) {
PathResamplers.set( i, PathResamplers.get( i + 1 ) );
ResamplersWithWine.set( i, ResamplersWithWine.get( i + 1 ) );
}
PathResamplers.removeElementAt( size - 1 );
ResamplersWithWine.removeElementAt( size - 1 );
}
}
}
/// <summary>
/// 新しいUTAU互換合成器のパスを登録します
/// </summary>
/// <param name="path"></param>
public void addResampler( String path, boolean with_wine )
{
int count = getResamplerCount();
if ( count == 0 ) {
PathResampler = path;
ResamplerWithWine = with_wine;
} else {
PathResamplers.add( path );
ResamplersWithWine.add( with_wine );
}
}
/// <summary>
/// 最後に出力したファイルのパスのうち,拡張子が指定したものと同じであるものを取得します
/// </summary>
/// <param name="extension"></param>
/// <returns></returns>
public String getLastUsedPathIn( String extension )
{
String ret = getLastUsedPathCore( LastUsedPathIn, extension );
if ( ret.Equals( "" ) ) {
return getLastUsedPathCore( LastUsedPathOut, extension );
}
/*if ( !ret.Equals( "" ) ) {
ret = PortUtil.getDirectoryName( ret );
}*/
return ret;
}
/// <summary>
/// 最後に出力したファイルのパスを設定します
/// </summary>
/// <param name="path"></param>
public void setLastUsedPathIn( String path, String ext_with_dot )
{
setLastUsedPathCore( LastUsedPathIn, path, ext_with_dot );
}
/// <summary>
/// 最後に入力したファイルのパスのうち,拡張子が指定したものと同じであるものを取得します.
/// </summary>
/// <param name="extension"></param>
/// <returns></returns>
public String getLastUsedPathOut( String extension )
{
String ret = getLastUsedPathCore( LastUsedPathOut, extension );
if ( ret.Equals( "" ) ) {
ret = getLastUsedPathCore( LastUsedPathIn, extension );
}
/*if ( !ret.Equals( "" ) ) {
ret = PortUtil.getDirectoryName( ret );
}*/
return ret;
}
/// <summary>
/// 最後に入力したファイルのパスを設定します
/// </summary>
/// <param name="path"></param>
/// <param name="ext_with_dot">ピリオド付きの拡張子(ex. ".txt")</param>
public void setLastUsedPathOut( String path, String ext_with_dot )
{
setLastUsedPathCore( LastUsedPathOut, path, ext_with_dot );
}
/// <summary>
/// 自動ビブラートを作成します
/// </summary>
/// <param name="type"></param>
/// <param name="vibrato_clocks"></param>
/// <returns></returns>
public VibratoHandle createAutoVibrato( SynthesizerType type, int vibrato_clocks )
{
if ( UseUserDefinedAutoVibratoType ) {
if ( AutoVibratoCustom == null ) {
AutoVibratoCustom = new Vector<VibratoHandle>();
}
// 下4桁からインデックスを取得
int index = 0;
if ( this.AutoVibratoTypeCustom == null ) {
index = 0;
} else {
int trimlen = 4;
int len = PortUtil.getStringLength( this.AutoVibratoTypeCustom );
if ( len < 4 ) {
trimlen = len;
}
if ( trimlen > 0 ) {
String s = str.sub( this.AutoVibratoTypeCustom, len - trimlen, trimlen );
try {
index = (int)PortUtil.fromHexString( s );
index--;
} catch ( Exception ex ) {
serr.println( typeof( EditorConfig ) + ".createAutoVibrato; ex=" + ex + "; AutoVibratoTypeCustom=" + AutoVibratoTypeCustom + "; s=" + s );
index = 0;
}
}
}
#if DEBUG
sout.println( "EditorConfig.createAutoVibrato; AutoVibratoTypeCustom=" + AutoVibratoTypeCustom + "; index=" + index );
#endif
VibratoHandle ret = null;
if ( 0 <= index && index < this.AutoVibratoCustom.size() ) {
ret = this.AutoVibratoCustom.get( index );
if ( ret != null ) {
ret = (VibratoHandle)ret.clone();
}
}
if ( ret == null ) {
ret = new VibratoHandle();
}
ret.IconID = "$0404" + PortUtil.toHexString( index + 1, 4 );
ret.setLength( vibrato_clocks );
return ret;
} else {
String iconid = type == SynthesizerType.VOCALOID1 ? AutoVibratoType1 : AutoVibratoType2;
VibratoHandle ret = VocaloSysUtil.getDefaultVibratoHandle( iconid,
vibrato_clocks,
type );
if ( ret == null ) {
ret = new VibratoHandle();
ret.IconID = "$04040001";
ret.setLength( vibrato_clocks );
}
return ret;
}
}
public int getControlCurveResolutionValue()
{
return ClockResolutionUtility.getValue( ControlCurveResolution );
}
public TreeMap<String, BKeys[]> getShortcutKeysDictionary( Vector<ValuePairOfStringArrayOfKeys> defs )
{
TreeMap<String, BKeys[]> ret = new TreeMap<String, BKeys[]>();
for ( int i = 0; i < ShortcutKeys.size(); i++ ) {
ret.put( ShortcutKeys.get( i ).Key, ShortcutKeys.get( i ).Value );
}
for ( Iterator<ValuePairOfStringArrayOfKeys> itr = defs.iterator(); itr.hasNext(); ) {
ValuePairOfStringArrayOfKeys item = itr.next();
if ( !ret.containsKey( item.Key ) ) {
ret.put( item.Key, item.Value );
}
}
return ret;
}
public Font getBaseFont()
{
return new Font( BaseFontName, Font.PLAIN, (int)BaseFontSize );
}
public int getMouseHoverTime()
{
return m_mouse_hover_time;
}
public void setMouseHoverTime( int value )
{
if ( value < 0 ) {
m_mouse_hover_time = 0;
} else if ( 2000 < m_mouse_hover_time ) {
m_mouse_hover_time = 2000;
} else {
m_mouse_hover_time = value;
}
}
#if !JAVA
// XMLシリアライズ用
/// <summary>
/// ピアノロール上でマウスホバーイベントが発生するまでの時間(millisec)
/// </summary>
public int MouseHoverTime
{
get
{
return getMouseHoverTime();
}
set
{
setMouseHoverTime( value );
}
}
#endif
public QuantizeMode getPositionQuantize()
{
return m_position_quantize;
}
public void setPositionQuantize( QuantizeMode value )
{
if ( m_position_quantize != value ) {
m_position_quantize = value;
try {
invokeQuantizeModeChangedEvent();
} catch ( Exception ex ) {
Logger.write( typeof( EditorConfig ) + ".getPositionQuantize; ex=" + ex + "\n" );
serr.println( "EditorConfig#setPositionQuantize; ex=" + ex );
}
}
}
#if !JAVA
// XMLシリアライズ用
public QuantizeMode PositionQuantize
{
get
{
return getPositionQuantize();
}
set
{
setPositionQuantize( value );
}
}
#endif
public boolean isPositionQuantizeTriplet()
{
return m_position_quantize_triplet;
}
public void setPositionQuantizeTriplet( boolean value )
{
if ( m_position_quantize_triplet != value ) {
m_position_quantize_triplet = value;
try {
invokeQuantizeModeChangedEvent();
} catch ( Exception ex ) {
serr.println( "EditorConfig#setPositionQuantizeTriplet; ex=" + ex );
Logger.write( typeof( EditorConfig ) + ".setPositionQuantizeTriplet; ex=" + ex + "\n" );
}
}
}
#if !JAVA
// XMLシリアライズ用
public boolean PositionQuantizeTriplet
{
get
{
return isPositionQuantizeTriplet();
}
set
{
setPositionQuantizeTriplet( value );
}
}
#endif
public QuantizeMode getLengthQuantize()
{
return m_length_quantize;
}
public void setLengthQuantize( QuantizeMode value )
{
if ( m_length_quantize != value ) {
m_length_quantize = value;
try {
invokeQuantizeModeChangedEvent();
} catch ( Exception ex ) {
serr.println( "EditorConfig#setLengthQuantize; ex=" + ex );
Logger.write( typeof( EditorConfig ) + ".setLengthQuantize; ex=" + ex + "\n" );
}
}
}
#if !JAVA
public QuantizeMode LengthQuantize
{
get
{
return getLengthQuantize();
}
set
{
setLengthQuantize( value );
}
}
#endif
public boolean isLengthQuantizeTriplet()
{
return m_length_quantize_triplet;
}
public void setLengthQuantizeTriplet( boolean value )
{
if ( m_length_quantize_triplet != value ) {
m_length_quantize_triplet = value;
try {
invokeQuantizeModeChangedEvent();
} catch ( Exception ex ) {
serr.println( "EditorConfig#setLengthQuantizeTriplet; ex=" + ex );
Logger.write( typeof( EditorConfig ) + ".setLengthQuantizeTriplet; ex=" + ex + "\n" );
}
}
}
/// <summary>
/// QuantizeModeChangedイベントを発行します
/// </summary>
private void invokeQuantizeModeChangedEvent()
#if JAVA
throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
#endif
{
#if JAVA
quantizeModeChangedEvent.raise( EditorConfig.class, new BEventArgs() );
#elif QT_VERSION
quantizeModeChanged( null, null );
#else
if ( QuantizeModeChanged != null ) {
QuantizeModeChanged.Invoke( typeof( EditorConfig ), new EventArgs() );
}
#endif
}
#if !JAVA
// XMLシリアライズ用
public boolean LengthQuantizeTriplet
{
get
{
return isLengthQuantizeTriplet();
}
set
{
setLengthQuantizeTriplet( value );
}
}
#endif
/// <summary>
/// 「最近使用したファイル」のリストに、アイテムを追加します
/// </summary>
/// <param name="new_file"></param>
public void pushRecentFiles( String new_file )
{
// NumRecentFilesは0以下かも知れない
if ( NumRecentFiles <= 0 ) {
NumRecentFiles = 5;
}
// RecentFilesはnullかもしれない.
if ( RecentFiles == null ) {
RecentFiles = new Vector<String>();
}
// 重複があれば消す
Vector<String> dict = new Vector<String>();
for ( Iterator<String> itr = RecentFiles.iterator(); itr.hasNext(); ) {
String s = itr.next();
boolean found = false;
for ( int i = 0; i < dict.size(); i++ ) {
if ( s.Equals( dict.get( i ) ) ) {
found = true;
}
}
if ( !found ) {
dict.add( s );
}
}
RecentFiles.clear();
for ( Iterator<String> itr = dict.iterator(); itr.hasNext(); ) {
String s = itr.next();
RecentFiles.add( s );
}
// 現在登録されているRecentFilesのサイズが規定より大きければ,下の方から消す
if ( RecentFiles.size() > NumRecentFiles ) {
for ( int i = RecentFiles.size() - 1; i > NumRecentFiles; i-- ) {
RecentFiles.removeElementAt( i );
}
}
// 登録しようとしているファイルは,RecentFilesの中に既に登録されているかs?
int index = -1;
for ( int i = 0; i < RecentFiles.size(); i++ ) {
if ( RecentFiles.get( i ).Equals( new_file ) ) {
index = i;
break;
}
}
if ( index >= 0 ) { // 登録されてる場合
RecentFiles.removeElementAt( index );
}
RecentFiles.insertElementAt( new_file, 0 );
}
#endregion
#region private method
/// <summary>
/// このインスタンスの整合性をチェックします.
/// PathResamplersとPathResamplersWithWineの個数があってるかどうかなどのチェックを行う
/// </summary>
public void check()
{
int count = SymbolTable.getCount();
for ( int i = 0; i < count; i++ ) {
SymbolTable st = SymbolTable.getSymbolTable( i );
boolean found = false;
for ( Iterator<String> itr = UserDictionaries.iterator(); itr.hasNext(); ) {
String s = itr.next();
String[] spl = PortUtil.splitString( s, new char[] { '\t' }, 2 );
if ( st.getName().Equals( spl[0] ) ) {
found = true;
break;
}
}
if ( !found ) {
UserDictionaries.add( st.getName() + "\tT" );
}
}
// key_widthを最大,最小の間に収める
int draft_key_width = this.KeyWidth;
if ( draft_key_width < AppManager.MIN_KEY_WIDTH ) {
draft_key_width = AppManager.MIN_KEY_WIDTH;
} else if ( AppManager.MAX_KEY_WIDTH < draft_key_width ) {
draft_key_width = AppManager.MAX_KEY_WIDTH;
}
// PathResamplersWithWineの個数があってるかどうかチェック
if ( PathResamplers == null ) {
PathResamplers = new Vector<String>();
}
if ( ResamplersWithWine == null ) {
ResamplersWithWine = new Vector<Boolean>();
}
if ( vec.size( PathResamplers ) != vec.size( ResamplersWithWine ) ) {
int delta = vec.size( ResamplersWithWine ) - vec.size( PathResamplers );
if ( delta > 0 ) {
for ( int i = 0; i < delta; i++ ) {
ResamplersWithWine.removeElementAt( vec.size( ResamplersWithWine ) - 1 );
}
} else if ( delta < 0 ) {
for ( int i = 0; i < -delta; i++ ) {
vec.add( ResamplersWithWine, false );
}
}
}
// SynthEngineの違いを識別しないように変更.VOALOID1に縮約する
if ( DefaultSynthesizer == RendererKind.VOCALOID1_100 ||
DefaultSynthesizer == RendererKind.VOCALOID1_101 ) {
DefaultSynthesizer = RendererKind.VOCALOID1;
}
}
#endregion
}
#if !JAVA
}
#endif
|