File size: 75,387 Bytes
54c22e4 |
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 |
import platform
#Platform Details
OPERATING_SYSTEM = platform.system()
SYSTEM_ARCH = platform.platform()
SYSTEM_PROC = platform.processor()
ARM = 'arm'
is_macos = False
CPU = 'cpu'
CUDA_DEVICE = 'cuda'
DIRECTML_DEVICE = "privateuseone"
#MAIN_FONT_NAME = "Century Gothic"
OPT_SEPARATOR_SAVE = 'β'*25
BG_COLOR = '#0e0e0f'
FG_COLOR = '#13849f'
#Model Types
VR_ARCH_TYPE = 'VR Arc'
MDX_ARCH_TYPE = 'MDX-Net'
DEMUCS_ARCH_TYPE = 'Demucs'
VR_ARCH_PM = 'VR Architecture'
ENSEMBLE_MODE = 'Ensemble Mode'
ENSEMBLE_STEM_CHECK = 'Ensemble Stem'
SECONDARY_MODEL = 'Secondary Model'
DEMUCS_6_STEM_MODEL = 'htdemucs_6s'
DEFAULT = "Default"
ALIGNMENT_TOOL = 'Alignment Tool Options'
SINGLE_FILE = 'SINGLE_FILE'
MULTIPLE_FILE = 'MULTI_FILE'
MAIN_MULTIPLE_FILE = 'MAIN_MULTI_FILE'
CHOOSE_EXPORT_FIR = 'CHOOSE_EXPORT_FIR'
DUAL = "dual"
FOUR_STEM = "fourstem"
ANY_STEM = "Any Stem"
DEMUCS_V3_ARCH_TYPE = 'Demucs v3'
DEMUCS_V4_ARCH_TYPE = 'Demucs v4'
DEMUCS_NEWER_ARCH_TYPES = [DEMUCS_V3_ARCH_TYPE, DEMUCS_V4_ARCH_TYPE]
DEMUCS_V1 = 'v1'
DEMUCS_V2 = 'v2'
DEMUCS_V3 = 'v3'
DEMUCS_V4 = 'v4'
DEMUCS_V1_TAG = 'v1 | '
DEMUCS_V2_TAG = 'v2 | '
DEMUCS_V3_TAG = 'v3 | '
DEMUCS_V4_TAG = 'v4 | '
DEMUCS_NEWER_TAGS = [DEMUCS_V3_TAG, DEMUCS_V4_TAG]
DEMUCS_VERSION_MAPPER = {
DEMUCS_V1:DEMUCS_V1_TAG,
DEMUCS_V2:DEMUCS_V2_TAG,
DEMUCS_V3:DEMUCS_V3_TAG,
DEMUCS_V4:DEMUCS_V4_TAG}
#Download Center
DOWNLOAD_FAILED = 'Download Failed'
DOWNLOAD_STOPPED = 'Download Stopped'
DOWNLOAD_COMPLETE = 'Download Complete'
DOWNLOAD_UPDATE_COMPLETE = 'Update Download Complete'
SETTINGS_MENU_EXIT = 'exit'
NO_CONNECTION = 'No Internet Connection'
VIP_SELECTION = 'VIP:'
DEVELOPER_SELECTION = 'VIP:'
NO_NEW_MODELS = 'All Available Models Downloaded'
ENSEMBLE_PARTITION = ': '
NO_MODEL = 'No Model Selected'
CHOOSE_MODEL = 'Choose Model'
SINGLE_DOWNLOAD = 'Downloading Item 1/1...'
DOWNLOADING_ITEM = 'Downloading Item'
FILE_EXISTS = 'File already exists!'
DOWNLOADING_UPDATE = 'Downloading Update...'
DOWNLOAD_MORE = 'Download More Models'
IS_KARAOKEE = "is_karaoke"
IS_BV_MODEL = "is_bv_model"
IS_BV_MODEL_REBAL = "is_bv_model_rebalanced"
INPUT_STEM_NAME = 'Input Stem Name'
#Menu Options
AUTO_SELECT = 'Auto'
#LINKS
DOWNLOAD_CHECKS = "https://raw.githubusercontent.com/TRvlvr/application_data/main/filelists/download_checks.json"
MDX_MODEL_DATA_LINK = "https://raw.githubusercontent.com/TRvlvr/application_data/main/mdx_model_data/model_data_new.json"
VR_MODEL_DATA_LINK = "https://raw.githubusercontent.com/TRvlvr/application_data/main/vr_model_data/model_data_new.json"
MDX23_CONFIG_CHECKS = "https://raw.githubusercontent.com/TRvlvr/application_data/main/mdx_model_data/mdx_c_configs/"
BULLETIN_CHECK = "https://raw.githubusercontent.com/TRvlvr/application_data/main/bulletin.txt"
DEMUCS_MODEL_NAME_DATA_LINK = "https://raw.githubusercontent.com/TRvlvr/application_data/main/demucs_model_data/model_name_mapper.json"
MDX_MODEL_NAME_DATA_LINK = "https://raw.githubusercontent.com/TRvlvr/application_data/main/mdx_model_data/model_name_mapper.json"
DONATE_LINK_BMAC = "https://www.buymeacoffee.com/uvr5"
DONATE_LINK_PATREON = "https://www.patreon.com/uvr"
#DOWNLOAD REPOS
NORMAL_REPO = "https://github.com/TRvlvr/model_repo/releases/download/all_public_uvr_models/"
UPDATE_REPO = "https://github.com/TRvlvr/model_repo/releases/download/uvr_update_patches/"
UPDATE_MAC_ARM_REPO = "https://github.com/Anjok07/ultimatevocalremovergui/releases/download/v5.6/Ultimate_Vocal_Remover_v5_6_MacOS_arm64.dmg"
UPDATE_MAC_X86_64_REPO = "https://github.com/Anjok07/ultimatevocalremovergui/releases/download/v5.6/Ultimate_Vocal_Remover_v5_6_MacOS_x86_64.dmg"
UPDATE_LINUX_REPO = "https://github.com/Anjok07/ultimatevocalremovergui#linux-installation"
ISSUE_LINK = 'https://github.com/Anjok07/ultimatevocalremovergui/issues/new'
VIP_REPO = b'\xf3\xc2W\x19\x1foI)\xc2\xa9\xcc\xb67(Z\xf5',\
b'gAAAAABjQAIQ-NpNMMxMedpKHHb7ze_nqB05hw0YhbOy3pFzuzDrfqumn8_qvraxEoUpZC5ZXC0gGvfDxFMqyq9VWbYKlA67SUFI_wZB6QoVyGI581vs7kaGfUqlXHIdDS6tQ_U-BfjbEAK9EU_74-R2zXjz8Xzekw=='
NO_CODE = 'incorrect_code'
#Extensions
ONNX = '.onnx'
CKPT = '.ckpt'
CKPT_C = '.ckptc'
YAML = '.yaml'
PTH = '.pth'
TH_EXT = '.th'
JSON = '.json'
#GUI Buttons
START_PROCESSING = 'Start Processing'
WAIT_PROCESSING = 'Please wait...'
STOP_PROCESSING = 'Halting process, please wait...'
LOADING_MODELS = 'Loading models...'
#---Messages and Logs----
MISSING_MODEL = 'missing'
MODEL_PRESENT = 'present'
ALL_STEMS = 'All Stems'
VOCAL_STEM = 'Vocals'
INST_STEM = 'Instrumental'
OTHER_STEM = 'Other'
BASS_STEM = 'Bass'
DRUM_STEM = 'Drums'
GUITAR_STEM = 'Guitar'
PIANO_STEM = 'Piano'
SYNTH_STEM = 'Synthesizer'
STRINGS_STEM = 'Strings'
WOODWINDS_STEM = 'Woodwinds'
BRASS_STEM = 'Brass'
WIND_INST_STEM = 'Wind Inst'
NO_OTHER_STEM = 'No Other'
NO_BASS_STEM = 'No Bass'
NO_DRUM_STEM = 'No Drums'
NO_GUITAR_STEM = 'No Guitar'
NO_PIANO_STEM = 'No Piano'
NO_SYNTH_STEM = 'No Synthesizer'
NO_STRINGS_STEM = 'No Strings'
NO_WOODWINDS_STEM = 'No Woodwinds'
NO_WIND_INST_STEM = 'No Wind Inst'
NO_BRASS_STEM = 'No Brass'
PRIMARY_STEM = 'Primary Stem'
SECONDARY_STEM = 'Secondary Stem'
LEAD_VOCAL_STEM = 'lead_only'
BV_VOCAL_STEM = 'backing_only'
LEAD_VOCAL_STEM_I = 'with_lead_vocals'
BV_VOCAL_STEM_I = 'with_backing_vocals'
LEAD_VOCAL_STEM_LABEL = 'Lead Vocals'
BV_VOCAL_STEM_LABEL = 'Backing Vocals'
VOCAL_STEM_ONLY = f'{VOCAL_STEM} Only'
INST_STEM_ONLY = f'{INST_STEM} Only'
PRIMARY_STEM_ONLY = f'{PRIMARY_STEM} Only'
IS_SAVE_INST_ONLY = f'save_only_inst'
IS_SAVE_VOC_ONLY = f'save_only_voc'
DEVERB_MAPPER = {'Main Vocals Only':VOCAL_STEM,
'Lead Vocals Only':LEAD_VOCAL_STEM_LABEL,
'Backing Vocals Only':BV_VOCAL_STEM_LABEL,
'All Vocal Types':'ALL'}
BALANCE_VALUES = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
#Other Constants
DEMUCS_2_SOURCE = ["instrumental", "vocals"]
DEMUCS_4_SOURCE = ["drums", "bass", "other", "vocals"]
DEMUCS_2_SOURCE_MAPPER = {
INST_STEM: 0,
VOCAL_STEM: 1}
DEMUCS_4_SOURCE_MAPPER = {
BASS_STEM: 0,
DRUM_STEM: 1,
OTHER_STEM: 2,
VOCAL_STEM: 3}
DEMUCS_6_SOURCE_MAPPER = {
BASS_STEM:0,
DRUM_STEM:1,
OTHER_STEM:2,
VOCAL_STEM:3,
GUITAR_STEM:4,
PIANO_STEM:5}
DEMUCS_4_SOURCE_LIST = [BASS_STEM, DRUM_STEM, OTHER_STEM, VOCAL_STEM]
DEMUCS_6_SOURCE_LIST = [BASS_STEM, DRUM_STEM, OTHER_STEM, VOCAL_STEM, GUITAR_STEM, PIANO_STEM]
DEMUCS_UVR_MODEL = 'UVR_Model'
CHOOSE_STEM_PAIR = 'Choose Stem Pair'
STEM_SET_MENU = (VOCAL_STEM,
INST_STEM,
OTHER_STEM,
BASS_STEM,
DRUM_STEM,
GUITAR_STEM,
PIANO_STEM,
SYNTH_STEM,
STRINGS_STEM,
WOODWINDS_STEM,
BRASS_STEM,
WIND_INST_STEM)
STEM_SET_MENU_ONLY = list(STEM_SET_MENU) + [OPT_SEPARATOR_SAVE, INPUT_STEM_NAME]
STEM_SET_MENU_2 = (
OTHER_STEM,
BASS_STEM,
DRUM_STEM,
GUITAR_STEM,
PIANO_STEM,
SYNTH_STEM,
STRINGS_STEM,
WOODWINDS_STEM,
BRASS_STEM,
WIND_INST_STEM,
"Noise",
"Reverb")
STEM_PAIR_MAPPER = {
VOCAL_STEM: INST_STEM,
INST_STEM: VOCAL_STEM,
LEAD_VOCAL_STEM: BV_VOCAL_STEM,
BV_VOCAL_STEM: LEAD_VOCAL_STEM,
PRIMARY_STEM: SECONDARY_STEM}
STEM_PAIR_MAPPER_FULL = {
VOCAL_STEM: INST_STEM,
INST_STEM: VOCAL_STEM,
OTHER_STEM: NO_OTHER_STEM,
BASS_STEM: NO_BASS_STEM,
DRUM_STEM: NO_DRUM_STEM,
GUITAR_STEM: NO_GUITAR_STEM,
PIANO_STEM: NO_PIANO_STEM,
SYNTH_STEM: NO_SYNTH_STEM,
STRINGS_STEM: NO_STRINGS_STEM,
WOODWINDS_STEM: NO_WOODWINDS_STEM,
BRASS_STEM: NO_BRASS_STEM,
WIND_INST_STEM: NO_WIND_INST_STEM,
NO_OTHER_STEM: OTHER_STEM,
NO_BASS_STEM: BASS_STEM,
NO_DRUM_STEM: DRUM_STEM,
NO_GUITAR_STEM: GUITAR_STEM,
NO_PIANO_STEM: PIANO_STEM,
NO_SYNTH_STEM: SYNTH_STEM,
NO_STRINGS_STEM: STRINGS_STEM,
NO_WOODWINDS_STEM: WOODWINDS_STEM,
NO_BRASS_STEM: BRASS_STEM,
NO_WIND_INST_STEM: WIND_INST_STEM,
PRIMARY_STEM: SECONDARY_STEM}
NO_STEM = "No "
NON_ACCOM_STEMS = (
VOCAL_STEM,
OTHER_STEM,
BASS_STEM,
DRUM_STEM,
GUITAR_STEM,
PIANO_STEM,
SYNTH_STEM,
STRINGS_STEM,
WOODWINDS_STEM,
BRASS_STEM,
WIND_INST_STEM)
MDX_NET_FREQ_CUT = [VOCAL_STEM, INST_STEM]
DEMUCS_4_STEM_OPTIONS = (ALL_STEMS, VOCAL_STEM, OTHER_STEM, BASS_STEM, DRUM_STEM)
DEMUCS_6_STEM_OPTIONS = (ALL_STEMS, VOCAL_STEM, OTHER_STEM, BASS_STEM, DRUM_STEM, GUITAR_STEM, PIANO_STEM)
DEMUCS_2_STEM_OPTIONS = (VOCAL_STEM, INST_STEM)
DEMUCS_4_STEM_CHECK = (OTHER_STEM, BASS_STEM, DRUM_STEM)
#Menu Dropdowns
VOCAL_PAIR = f'{VOCAL_STEM}/{INST_STEM}'
INST_PAIR = f'{INST_STEM}/{VOCAL_STEM}'
OTHER_PAIR = f'{OTHER_STEM}/{NO_OTHER_STEM}'
DRUM_PAIR = f'{DRUM_STEM}/{NO_DRUM_STEM}'
BASS_PAIR = f'{BASS_STEM}/{NO_BASS_STEM}'
FOUR_STEM_ENSEMBLE = '4 Stem Ensemble'
MULTI_STEM_ENSEMBLE = 'Multi-stem Ensemble'
ENSEMBLE_MAIN_STEM = (CHOOSE_STEM_PAIR, VOCAL_PAIR, OTHER_PAIR, DRUM_PAIR, BASS_PAIR, FOUR_STEM_ENSEMBLE, MULTI_STEM_ENSEMBLE)
MIN_SPEC = 'Min Spec'
MAX_SPEC = 'Max Spec'
AUDIO_AVERAGE = 'Average'
MAX_MIN = f'{MAX_SPEC}/{MIN_SPEC}'
MAX_MAX = f'{MAX_SPEC}/{MAX_SPEC}'
MAX_AVE = f'{MAX_SPEC}/{AUDIO_AVERAGE}'
MIN_MAX = f'{MIN_SPEC}/{MAX_SPEC}'
MIN_MIX = f'{MIN_SPEC}/{MIN_SPEC}'
MIN_AVE = f'{MIN_SPEC}/{AUDIO_AVERAGE}'
AVE_MAX = f'{AUDIO_AVERAGE}/{MAX_SPEC}'
AVE_MIN = f'{AUDIO_AVERAGE}/{MIN_SPEC}'
AVE_AVE = f'{AUDIO_AVERAGE}/{AUDIO_AVERAGE}'
ENSEMBLE_TYPE = (MAX_MIN, MAX_MAX, MAX_AVE, MIN_MAX, MIN_MIX, MIN_AVE, AVE_MAX, AVE_MIN, AVE_AVE)
ENSEMBLE_TYPE_4_STEM = (MAX_SPEC, MIN_SPEC, AUDIO_AVERAGE)
BATCH_MODE = 'Batch Mode'
BETA_VERSION = 'BETA'
DEF_OPT = 'Default'
USER_INPUT = "User Input"
OPT_SEPARATOR = 'β'*65
CHUNKS = (AUTO_SELECT, '1', '5', '10', '15', '20',
'25', '30', '35', '40', '45', '50',
'55', '60', '65', '70', '75', '80',
'85', '90', '95', 'Full')
BATCH_SIZE = (DEF_OPT, '2', '3', '4', '5',
'6', '7', '8', '9', '10')
VOL_COMPENSATION = (AUTO_SELECT, '1.035', '1.08')
MARGIN_SIZE = ('44100', '22050', '11025')
AUDIO_TOOLS = 'Audio Tools'
MANUAL_ENSEMBLE = 'Manual Ensemble'
TIME_STRETCH = 'Time Stretch'
CHANGE_PITCH = 'Change Pitch'
ALIGN_INPUTS = 'Align Inputs'
MATCH_INPUTS = 'Matchering'
COMBINE_INPUTS = 'Combine Inputs'
if OPERATING_SYSTEM == 'Windows' or OPERATING_SYSTEM == 'Darwin':
AUDIO_TOOL_OPTIONS = (MANUAL_ENSEMBLE, TIME_STRETCH, CHANGE_PITCH, ALIGN_INPUTS, MATCH_INPUTS)
else:
AUDIO_TOOL_OPTIONS = (MANUAL_ENSEMBLE, ALIGN_INPUTS, MATCH_INPUTS)
MANUAL_ENSEMBLE_OPTIONS = (MIN_SPEC, MAX_SPEC, AUDIO_AVERAGE, COMBINE_INPUTS)
PROCESS_METHODS = (VR_ARCH_PM, MDX_ARCH_TYPE, DEMUCS_ARCH_TYPE, ENSEMBLE_MODE, AUDIO_TOOLS)
DEMUCS_SEGMENTS = (DEF_OPT, '1', '5', '10', '15', '20',
'25', '30', '35', '40', '45', '50',
'55', '60', '65', '70', '75', '80',
'85', '90', '95', '100')
DEMUCS_SHIFTS = (0, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17,
18, 19, 20)
SEMI_DEF = ['0']
SEMITONE_SEL = (-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12)
NOUT_SEL = (8, 16, 32, 48, 64)
NOUT_LSTM_SEL = (64, 128)
DEMUCS_OVERLAP = (0.25, 0.50, 0.75, 0.99)
MDX_OVERLAP = (DEF_OPT, 0.25, 0.50, 0.75, 0.99)
MDX23_OVERLAP = range(2, 51)
VR_AGGRESSION = range(0, 51)
TIME_WINDOW_MAPPER = {
"None": None,
"1": [0.0625],
"2": [0.125],
"3": [0.25],
"4": [0.5],
"5": [0.75],
"6": [1],
"7": [2],
"Shifts: Low": [0.0625, 0.5],
"Shifts: Medium": [0.0625, 0.125, 0.5],
"Shifts: High": [0.0625, 0.125, 0.25, 0.5]
#"Shifts: Very High": [0.0625, 0.125, 0.25, 0.5, 0.75, 1],
}
INTRO_MAPPER = {
"Default": [10],
"1": [8],
"2": [6],
"3": [4],
"4": [2],
"Shifts: Low": [1, 10],
"Shifts: Medium": [1, 10, 8],
"Shifts: High": [1, 10, 8, 6, 4]
}
VOLUME_MAPPER = {
"None": (0, [0]),
"Low": (-4, range(0, 8)),
"Medium": (-6, range(0, 12)),
"High": (-6, [x * 0.5 for x in range(0, 25)]),
"Very High": (-10, [x * 0.5 for x in range(0, 41)])}
#"Max": (-10, [x * 0.3 for x in range(0, int(20 / 0.3) + 1)])}
PHASE_MAPPER = {
"None": [0],
"Shifts Low": [0, 180],
"Shifts Medium": [0],
"Shifts High": [0],
"Shifts Very High": [0],}
NONE_P = "None"
VLOW_P = "Shifts: Very Low"
LOW_P = "Shifts: Low"
MED_P = "Shifts: Medium"
HIGH_P = "Shifts: High"
VHIGH_P = "Shifts: Very High"
VMAX_P = "Shifts: Maximum"
PHASE_SHIFTS_OPT = {
NONE_P:190,
VLOW_P:180,
LOW_P:90,
MED_P:45,
HIGH_P:20,
VHIGH_P:10,
VMAX_P:1,}
VR_WINDOW = ('320', '512','1024')
VR_CROP = ('256', '512', '1024')
POST_PROCESSES_THREASHOLD_VALUES = ('0.1', '0.2', '0.3')
MDX_POP_PRO = ('MDX-NET_Noise_Profile_14_kHz', 'MDX-NET_Noise_Profile_17_kHz', 'MDX-NET_Noise_Profile_Full_Band')
MDX_POP_STEMS = ('Vocals', 'Instrumental', 'Other', 'Drums', 'Bass')
MDX_POP_NFFT = ('4096', '5120', '6144', '7680', '8192', '16384')
MDX_POP_DIMF = ('2048', '3072', '4096')
DENOISE_NONE, DENOISE_S, DENOISE_M = 'None', 'Standard', 'Denoise Model'
MDX_DENOISE_OPTION = [DENOISE_NONE, DENOISE_S, DENOISE_M]
MDX_SEGMENTS = list(range(32, 4000+1, 32))
SAVE_ENSEMBLE = 'Save Ensemble'
CLEAR_ENSEMBLE = 'Clear Selection(s)'
MENU_SEPARATOR = 35*'β’'
CHOOSE_ENSEMBLE_OPTION = 'Choose Option'
ALL_TYPES = 'ALL'
INVALID_ENTRY = 'Invalid Input, Please Try Again'
ENSEMBLE_INPUT_RULE = '1. Only letters, numbers, spaces, and dashes allowed.\n2. No dashes or spaces at the start or end of input.'
STEM_INPUT_RULE = '1. Only words with no spaces are allowed.\n2. No spaces, numbers, or special characters.'
ENSEMBLE_OPTIONS = [OPT_SEPARATOR_SAVE, SAVE_ENSEMBLE, CLEAR_ENSEMBLE]
ENSEMBLE_CHECK = 'ensemble check'
KARAOKEE_CHECK = 'kara check'
AUTO_PHASE = "Automatic"
POSITIVE_PHASE = "Positive Phase"
NEGATIVE_PHASE = "Negative Phase"
OFF_PHASE = "Native Phase"
ALIGN_PHASE_OPTIONS = [AUTO_PHASE, POSITIVE_PHASE, NEGATIVE_PHASE, OFF_PHASE]
SELECT_SAVED_ENSEMBLE = 'Select Saved Ensemble'
SELECT_SAVED_SETTING = 'Select Saved Setting'
ENSEMBLE_OPTION = "Ensemble Customization Options"
MDX_OPTION = "Advanced MDX-Net Options"
DEMUCS_OPTION = "Advanced Demucs Options"
VR_OPTION = "Advanced VR Options"
HELP_OPTION = "Open Information Guide"
ERROR_OPTION = "Open Error Log"
VERIFY_BEGIN = 'Verifying file '
SAMPLE_BEGIN = 'Creating Sample '
MODEL_MISSING_CHECK = 'Model Missing:'
OPTION_LIST = [VR_OPTION, MDX_OPTION, DEMUCS_OPTION, ENSEMBLE_OPTION, ALIGNMENT_TOOL, HELP_OPTION, ERROR_OPTION]
#Menu Strings
VR_MENU ='VR Menu'
DEMUCS_MENU ='Demucs Menu'
MDX_MENU ='MDX-Net Menu'
ENSEMBLE_MENU ='Ensemble Menu'
HELP_MENU ='Help Menu'
ERROR_MENU ='Error Log'
INPUTS_MENU ='Inputs Menu'
ALIGN_MENU ='Align Menu'
# Audio Player
PLAYING_SONG = ": Playing"
PAUSE_SONG = ": Paused"
STOP_SONG = ": Stopped"
SELECTED_VER = 'Selected'
DETECTED_VER = 'Detected'
SAMPLE_MODE_CHECKBOX = lambda v:f'Sample Mode ({v}s)'
REMOVED_FILES = lambda r, e:f'Audio Input Verification Report:\n\nRemoved Files:\n\n{r}\n\nError Details:\n\n{e}'
ADVANCED_SETTINGS = (ENSEMBLE_OPTION, MDX_OPTION, DEMUCS_OPTION, VR_OPTION, HELP_OPTION, ERROR_OPTION)
WAV = 'WAV'
FLAC = 'FLAC'
MP3 = 'MP3'
MP3_BIT_RATES = ('96k', '128k', '160k', '224k', '256k', '320k')
WAV_TYPE = ('PCM_U8', 'PCM_16', 'PCM_24', 'PCM_32', '32-bit Float', '64-bit Float')
GPU_DEVICE_NUM_OPTS = (DEFAULT, '0', '1', '2', '3', '4', '5', '6', '7', '8')
SELECT_SAVED_SET = 'Choose Option'
SAVE_SETTINGS = 'Save Current Settings'
RESET_TO_DEFAULT = 'Reset to Default'
RESET_FULL_TO_DEFAULT = 'Reset to Default'
RESET_PM_TO_DEFAULT = 'Reset All Application Settings to Default'
SAVE_SET_OPTIONS = [OPT_SEPARATOR_SAVE, SAVE_SETTINGS, RESET_TO_DEFAULT]
TIME_PITCH = ('1.0', '2.0', '3.0', '4.0')
TIME_TEXT = '_time_stretched'
PITCH_TEXT = '_pitch_shifted'
#RegEx Input Validation
REG_PITCH = r'^[-+]?(1[0]|[0-9]([.][0-9]*)?)$'
REG_TIME = r'^[+]?(1[0]|[0-9]([.][0-9]*)?)$'
REG_COMPENSATION = r'\b^(1[0]|[0-9]([.][0-9]*)?|Auto|None)$\b'
REG_THES_POSTPORCESS = r'\b^([0]([.][0-9]{0,6})?)$\b'
REG_CHUNKS = r'\b^(200|1[0-9][0-9]|[1-9][0-9]?|Auto|Full)$\b'
REG_CHUNKS_DEMUCS = r'\b^(200|1[0-9][0-9]|[1-9][0-9]?|Auto|Full)$\b'
REG_MARGIN = r'\b^[0-9]*$\b'
REG_SEGMENTS = r'\b^(200|1[0-9][0-9]|[1-9][0-9]?|Default)$\b'
REG_SAVE_INPUT = r'\b^([a-zA-Z0-9 -]{0,25})$\b'
REG_INPUT_STEM_NAME = r'^(Wind Inst|[a-zA-Z]{1,25})$'
REG_SEMITONES = r'^-?(20\.00|[01]?\d(\.\d{1,2})?|20)$'
REG_AGGRESSION = r'^[-+]?[0-9]\d*?$'
REG_WINDOW = r'\b^[0-9]{0,4}$\b'
REG_SHIFTS = r'\b^[0-9]*$\b'
REG_BATCHES = r'\b^([0-9]*?|Default)$\b'
REG_OVERLAP = r'\b^([0]([.][0-9]{0,6})?|Default)$\b'#r"(Default|[0-9]+(\.[0-9]+)?)"#
REG_OVERLAP23 = r'\b^([1][0-9]|[2-9][0-9]*|Default)$\b'#r'\b^([2-9][0-9]*?|Default)$\b'
REG_MDX_SEG = r'\b(?:' + '|'.join([str(num) for num in range(32, 1000001, 32)]) + r')\b'
REG_ALIGN = r'^[-+]?[0-9]\d*?$'
REG_VOL_COMP = r'^\d+\.\d{1,9}$'
# Sub Menu
VR_ARCH_SETTING_LOAD = 'Load for VR Arch'
MDX_SETTING_LOAD = 'Load for MDX-Net'
DEMUCS_SETTING_LOAD = 'Load for Demucs'
ALL_ARCH_SETTING_LOAD = 'Load for Full Application'
# Mappers
DEFAULT_DATA = {
'chosen_process_method': MDX_ARCH_TYPE,
'vr_model': CHOOSE_MODEL,
'aggression_setting': 5,
'window_size': 512,
'mdx_segment_size': 256,
'batch_size': DEF_OPT,
'crop_size': 256,
'is_tta': False,
'is_output_image': False,
'is_post_process': False,
'is_high_end_process': False,
'post_process_threshold': 0.2,
'vr_voc_inst_secondary_model': NO_MODEL,
'vr_other_secondary_model': NO_MODEL,
'vr_bass_secondary_model': NO_MODEL,
'vr_drums_secondary_model': NO_MODEL,
'vr_is_secondary_model_activate': False,
'vr_voc_inst_secondary_model_scale': 0.9,
'vr_other_secondary_model_scale': 0.7,
'vr_bass_secondary_model_scale': 0.5,
'vr_drums_secondary_model_scale': 0.5,
'demucs_model': CHOOSE_MODEL,
'segment': DEMUCS_SEGMENTS[0],
'overlap': DEMUCS_OVERLAP[0],
'overlap_mdx': MDX_OVERLAP[0],
'overlap_mdx23': '8',
'shifts': 2,
'chunks_demucs': CHUNKS[0],
'margin_demucs': 44100,
'is_chunk_demucs': False,
'is_chunk_mdxnet': False,
'is_primary_stem_only_Demucs': False,
'is_secondary_stem_only_Demucs': False,
'is_split_mode': True,
'is_demucs_combine_stems': True,#
'is_mdx23_combine_stems': True,#
'demucs_voc_inst_secondary_model': NO_MODEL,
'demucs_other_secondary_model': NO_MODEL,
'demucs_bass_secondary_model': NO_MODEL,
'demucs_drums_secondary_model': NO_MODEL,
'demucs_is_secondary_model_activate': False,
'demucs_voc_inst_secondary_model_scale': 0.9,
'demucs_other_secondary_model_scale': 0.7,
'demucs_bass_secondary_model_scale': 0.5,
'demucs_drums_secondary_model_scale': 0.5,
'demucs_stems': ALL_STEMS,
'demucs_pre_proc_model': NO_MODEL,
'is_demucs_pre_proc_model_activate': False,
'is_demucs_pre_proc_model_inst_mix': False,
'mdx_net_model': CHOOSE_MODEL,
'chunks': CHUNKS[0],
'margin': 44100,
'compensate': AUTO_SELECT,
'is_denoise': False,#
'denoise_option': 'None',#
'phase_option': AUTO_PHASE,
'phase_shifts': NONE_P,#
'is_save_align': False,#,
'is_match_frequency_pitch': True,#
'is_match_silence': True,#
'is_spec_match': False,#
'is_mdx_c_seg_def': False,
'is_invert_spec': False, #
'is_deverb_vocals': False, #
'deverb_vocal_opt': 'Main Vocals Only', #
'voc_split_save_opt': 'Lead Only', #
'is_mixer_mode': False,
'mdx_batch_size': DEF_OPT,
'mdx_voc_inst_secondary_model': NO_MODEL,
'mdx_other_secondary_model': NO_MODEL,
'mdx_bass_secondary_model': NO_MODEL,
'mdx_drums_secondary_model': NO_MODEL,
'mdx_is_secondary_model_activate': False,
'mdx_voc_inst_secondary_model_scale': 0.9,
'mdx_other_secondary_model_scale': 0.7,
'mdx_bass_secondary_model_scale': 0.5,
'mdx_drums_secondary_model_scale': 0.5,
'mdx_stems': ALL_STEMS,
'is_save_all_outputs_ensemble': True,
'is_append_ensemble_name': False,
'chosen_audio_tool': AUDIO_TOOL_OPTIONS[0],
'choose_algorithm': MANUAL_ENSEMBLE_OPTIONS[0],
'time_stretch_rate': 2.0,
'pitch_rate': 2.0,
'is_time_correction': True,
'is_gpu_conversion': False,
'is_primary_stem_only': False,
'is_secondary_stem_only': False,
'is_testing_audio': False,#
'is_auto_update_model_params': True,#
'is_add_model_name': False,
'is_accept_any_input': False,
'is_task_complete': False,
'is_normalization': False,
'is_use_opencl': False,
'is_wav_ensemble': False,
'is_create_model_folder': False,
'mp3_bit_set': '320k',#
'semitone_shift': '0',#
'save_format': WAV,
'wav_type_set': 'PCM_16',
'device_set': DEFAULT,
'user_code': '',
'export_path': '',
'input_paths': [],
'lastDir': None,
'time_window': "3",
'intro_analysis': DEFAULT,
'db_analysis': "Medium",
'fileOneEntry': '',
'fileOneEntry_Full': '',
'fileTwoEntry': '',
'fileTwoEntry_Full': '',
'DualBatch_inputPaths': [],
'model_hash_table': {},
'help_hints_var': True,
'set_vocal_splitter': NO_MODEL,
'is_set_vocal_splitter': False,#
'is_save_inst_set_vocal_splitter': False,#
'model_sample_mode': False,
'model_sample_mode_duration': 30
}
SETTING_CHECK = ('vr_model',
'aggression_setting',
'window_size',
'mdx_segment_size',
'batch_size',
'crop_size',
'is_tta',
'is_output_image',
'is_post_process',
'is_high_end_process',
'post_process_threshold',
'vr_voc_inst_secondary_model',
'vr_other_secondary_model',
'vr_bass_secondary_model',
'vr_drums_secondary_model',
'vr_is_secondary_model_activate',
'vr_voc_inst_secondary_model_scale',
'vr_other_secondary_model_scale',
'vr_bass_secondary_model_scale',
'vr_drums_secondary_model_scale',
'demucs_model',
'segment',
'overlap',
'overlap_mdx',
'shifts',
'chunks_demucs',
'margin_demucs',
'is_chunk_demucs',
'is_primary_stem_only_Demucs',
'is_secondary_stem_only_Demucs',
'is_split_mode',
'is_demucs_combine_stems',#
'is_mdx23_combine_stems',#
'demucs_voc_inst_secondary_model',
'demucs_other_secondary_model',
'demucs_bass_secondary_model',
'demucs_drums_secondary_model',
'demucs_is_secondary_model_activate',
'demucs_voc_inst_secondary_model_scale',
'demucs_other_secondary_model_scale',
'demucs_bass_secondary_model_scale',
'demucs_drums_secondary_model_scale',
'demucs_stems',
'mdx_net_model',
'chunks',
'margin',
'compensate',
'is_denoise',#
'denoise_option',#
'phase_option',#
'phase_shifts',#
'is_save_align',#,
'is_match_silence',
'is_spec_match',#,
'is_match_frequency_pitch',#
'is_mdx_c_seg_def',
'is_invert_spec',#
'is_deverb_vocals',#
'deverb_vocal_opt',#
'voc_split_save_opt',#
'mdx_batch_size',
'mdx_voc_inst_secondary_model',
'mdx_other_secondary_model',
'mdx_bass_secondary_model',
'mdx_drums_secondary_model',
'mdx_is_secondary_model_activate',
'mdx_voc_inst_secondary_model_scale',
'mdx_other_secondary_model_scale',
'mdx_bass_secondary_model_scale',
'mdx_drums_secondary_model_scale',
'is_save_all_outputs_ensemble',
'is_append_ensemble_name',
'chosen_audio_tool',
'choose_algorithm',
'time_stretch_rate',
'pitch_rate',
'is_time_correction',
'is_primary_stem_only',
'is_secondary_stem_only',
'is_testing_audio',#
'is_auto_update_model_params',#
'is_add_model_name',
"is_accept_any_input",
'is_task_complete',
'is_create_model_folder',
'mp3_bit_set',#
'semitone_shift',#
'save_format',
'wav_type_set',
'device_set',
'user_code',
'is_gpu_conversion',
'is_normalization',
'is_use_opencl',
'is_wav_ensemble',
'help_hints_var',
'set_vocal_splitter',
'is_set_vocal_splitter',#
'is_save_inst_set_vocal_splitter',#
'model_sample_mode',
'model_sample_mode_duration',
'time_window',
'intro_analysis',
'db_analysis',
'fileOneEntry',
'fileOneEntry_Full',
'fileTwoEntry',
'fileTwoEntry_Full',
'DualBatch_inputPaths'
)
NEW_LINES = "\n\n"
NEW_LINE = "\n"
NO_LINE = ''
FFMPEG_EXT = (".aac", ".aiff", ".alac" ,".flac", ".FLAC", ".mov", ".mp4", ".MP4",
".m4a", ".M4A", ".mp2", ".mp3", "MP3", ".mpc", ".mpc8",
".mpeg", ".ogg", ".OGG", ".tta", ".wav", ".wave", ".WAV", ".WAVE", ".wma", ".webm", ".eac3", ".mkv", ".opus", ".OPUS")
FFMPEG_MORE_EXT = (".aa", ".aac", ".ac3", ".aiff", ".alac", ".avi", ".f4v",".flac", ".flic", ".flv",
".m4v",".mlv", ".mov", ".mp4", ".m4a", ".mp2", ".mp3", ".mp4", ".mpc", ".mpc8",
".mpeg", ".ogg", ".tta", ".tty", ".vcd", ".wav", ".wma")
ANY_EXT = ""
# Secondary Menu Constants
VOCAL_PAIR_PLACEMENT = 1, 2, 3, 4
OTHER_PAIR_PLACEMENT = 5, 6, 7, 8
BASS_PAIR_PLACEMENT = 9, 10, 11, 12
DRUMS_PAIR_PLACEMENT = 13, 14, 15, 16
# Drag n Drop String Checks
DOUBLE_BRACKET = "} {"
RIGHT_BRACKET = "}"
LEFT_BRACKET = "{"
#DND CONSTS
MAC_DND_CHECK = ('/Users/',
'/Applications/',
'/Library/',
'/System/')
LINUX_DND_CHECK = ('/home/',
'/usr/')
WINDOWS_DND_CHECK = ('A:', 'B:', 'C:', 'D:', 'E:', 'F:', 'G:', 'H:', 'I:', 'J:', 'K:', 'L:', 'M:', 'N:', 'O:', 'P:', 'Q:', 'R:', 'S:', 'T:', 'U:', 'V:', 'W:', 'X:', 'Y:', 'Z:')
WOOD_INST_MODEL_HASH = '0ec76fd9e65f81d8b4fbd13af4826ed8'
WOOD_INST_PARAMS = {
"vr_model_param": "4band_v3",
"primary_stem": NO_WIND_INST_STEM
}
READ_ONLY = 'readonly'
FILE_1 = 'file1'
FILE_2 = 'file2'
FILE_1_LB = 'file1_lb'
FILE_2_LB = 'file1_2b'
BATCH_MODE_DUAL = " : Batch Mode"
CODEC_DICT = {
'PCM_U8': {"sample_width": 1, "codec": None}, # 8-bit unsigned PCM
'PCM_16': {"sample_width": 2, "codec": None}, # 16-bit signed PCM
'PCM_24': {"sample_width": 3, "codec": None}, # 24-bit signed PCM
'PCM_32': {"sample_width": 4, "codec": None}, # 32-bit signed PCM
'FLOAT32': {"sample_width": None, "codec": "pcm_f32le"}, # 32-bit float
'FLOAT64': {"sample_width": None, "codec": "pcm_f64le"} # 64-bit float
}
# Manual Downloads
VR_PLACEMENT_TEXT = 'Place models in \"models/VR_Models\" directory.'
MDX_PLACEMENT_TEXT = 'Place models in \"models/MDX_Net_Models\" directory.'
DEMUCS_PLACEMENT_TEXT = 'Place models in \"models/Demucs_Models\" directory.'
DEMUCS_V3_V4_PLACEMENT_TEXT = 'Place items in \"models/Demucs_Models/v3_v4_repo\" directory.'
MDX_23_NAME = "MDX23C Model"
# Liscense info
if OPERATING_SYSTEM=="Darwin":
is_macos = True
LICENSE_OS_SPECIFIC_TEXT = 'β’ This application is intended for those running macOS Catalina and above.\n' +\
'β’ Application functionality for systems running macOS Mojave or lower is not guaranteed.\n' +\
'β’ Application functionality for older or budget Mac systems is not guaranteed.\n\n'
elif OPERATING_SYSTEM=="Linux":
LICENSE_OS_SPECIFIC_TEXT = 'β’ This application is intended for those running Linux Ubuntu 18.04+.\n' +\
'β’ Application functionality for systems running other Linux platforms is not guaranteed.\n' +\
'β’ Application functionality for older or budget systems is not guaranteed.\n\n'
elif OPERATING_SYSTEM=="Windows":
LICENSE_OS_SPECIFIC_TEXT = 'β’ This application is intended for those running Windows 10 or higher.\n' +\
'β’ Application functionality for systems running Windows 7 or lower is not guaranteed.\n' +\
'β’ Application functionality for Intel Pentium & Celeron CPUs systems is not guaranteed.\n\n'
LICENSE_TEXT = lambda a, p:f'Current Application Version: Ultimate Vocal Remover {a}\n' +\
f'Current Patch Version: {p}\n\n' +\
'Copyright (c) 2022 Ultimate Vocal Remover\n\n' +\
'UVR is free and open-source, but MIT licensed. Please credit us if you use our\n' +\
f'models or code for projects unrelated to UVR.\n\n{LICENSE_OS_SPECIFIC_TEXT}' +\
'This bundle contains the UVR interface, Python, PyTorch, and other\n' +\
'dependencies needed to run the application effectively.\n\n' +\
'Website Links: This application, System or Service(s) may contain links to\n' +\
'other websites and downloads, and they are solely provided to you as an\n' +\
'additional convenience. You understand and acknowledge that by clicking\n' +\
'or activating such links you are accessing a site or service outside of\n' +\
'this application, and that we do not screen, review, approve, or otherwise\n' +\
'endorse any content or information contained in these linked websites.\n' +\
'You acknowledge and agree that we, our affiliates and partners are not\n' +\
'responsible for the contents of any of these linked websites, including\n' +\
'the accuracy or availability of information provided by the linked websites,\n' +\
'and we make no representations or warranties regarding your use of\n' +\
'the linked websites.\n\n' +\
'This application is MIT Licensed\n\n' +\
'Permission is hereby granted, free of charge, to any person obtaining a copy\n' +\
'of this software and associated documentation files (the "Software"), to deal\n' +\
'in the Software without restriction, including without limitation the rights\n' +\
'to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n' +\
'copies of the Software, and to permit persons to whom the Software is\n' +\
'furnished to do so, subject to the following conditions:\n\n' +\
'The above copyright notice and this permission notice shall be included in all\n' +\
'copies or substantial portions of the Software.\n\n' +\
'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n' +\
'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n' +\
'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n' +\
'AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n' +\
'LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n' +\
'OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n' +\
'SOFTWARE.'
# Message Box Text
INVALID_INPUT = 'Invalid Input', 'The input is invalid.\n\nPlease verify the input still exists or is valid and try again.'
INVALID_EXPORT = 'Invalid Export Directory', 'You have selected an invalid export directory.\n\nPlease make sure the selected directory still exists.'
INVALID_ENSEMBLE = 'Not Enough Models', 'You must select 2 or more models to run ensemble.'
INVALID_MODEL = 'No Model Chosen', 'You must select an model to continue.'
MISSING_MODEL = 'Model Missing', 'The selected model is missing or not valid.'
ERROR_OCCURED = 'Error Occured', '\n\nWould you like to open the error log for more details?\n'
PROCESS_COMPLETE = '\nProcess complete\n'
PROCESS_COMPLETE_2 = 'Process complete\n'
# GUI Text Constants
BACK_TO_MAIN_MENU = 'Back to Main Menu'
# Help Hint Text
INTERNAL_MODEL_ATT = 'This is an internal model setting. \n\n***Avoid changing it unless you\'re certain about it!***'
STOP_HELP = 'Stops ongoing tasks.\nβ’ A confirmation pop-up will appear before stopping.'
SETTINGS_HELP = 'Accesses the main settings and the "Download Center."'
COMMAND_TEXT_HELP = 'Shows the status and progress of ongoing tasks.'
SAVE_CURRENT_SETTINGS_HELP = 'Load or save the app\'s settings.'
PITCH_SHIFT_HELP = ('Choose the pitch for processing tracks:\n\n'
'β’ Whole numbers indicate semitones.\n'
'β’ Using higher pitches may cut the upper bandwidth, even in high-quality models.\n'
'β’ Upping the pitch can be better for tracks with deeper vocals.\n'
'β’ Dropping the pitch may take more processing time but works well for tracks with high-pitched vocals.')
AGGRESSION_SETTING_HELP = ('Adjust the intensity of primary stem extraction:\n\n'
'β’ It ranges from -100 - 100.\n'
'β’ Bigger values mean deeper extractions.\n'
'β’ Typically, it\'s set to 5 for vocals & instrumentals. \n'
'β’ Values beyond 5 might muddy the sound for non-vocal models.')
WINDOW_SIZE_HELP = ('Select window size to balance quality and speed:\n\n'
'β’ 1024 - Quick but lesser quality.\n'
'β’ 512 - Medium speed and quality.\n'
'β’ 320 - Takes longer but may offer better quality.')
MDX_SEGMENT_SIZE_HELP = ('Pick a segment size to balance speed, resource use, and quality:\n'
'β’ Smaller sizes consume less resources.\n'
'β’ Bigger sizes consume more resources, but may provide better results.\n'
'β’ Default size is 256. Quality can change based on your pick.')
DEMUCS_STEMS_HELP = ('Select a stem for extraction with the chosen model:\n\n'
'β’ All Stems - Extracts all available stems.\n'
'β’ Vocals - Only the "vocals" stem.\n'
'β’ Other - Only the "other" stem.\n'
'β’ Bass - Only the "bass" stem.\n'
'β’ Drums - Only the "drums" stem.')
SEGMENT_HELP = ('Adjust segments to manage RAM or V-RAM usage:\n\n'
'β’ Smaller sizes consume less resources.\n'
'β’ Bigger sizes consume more resources, but may provide better results.\n'
'β’ "Default" picks the optimal size.')
ENSEMBLE_MAIN_STEM_HELP = (
'Select the stem type for ensembling:\n\n'
f'β’ {VOCAL_PAIR}:\n'
' - Primary Stem: Vocals\n'
' - Secondary Stem: Instrumental (mixture minus vocals)\n\n'
f'β’ {OTHER_PAIR}:\n'
' - Primary Stem: Other\n'
' - Secondary Stem: No Other (mixture minus "other")\n\n'
f'β’ {BASS_PAIR}:\n'
' - Primary Stem: Bass\n'
' - Secondary Stem: No Bass (mixture minus bass)\n\n'
f'β’ {DRUM_PAIR}:\n'
' - Primary Stem: Drums\n'
' - Secondary Stem: No Drums (mixture minus drums)\n\n'
f'β’ {FOUR_STEM_ENSEMBLE}:\n'
' - Gathers all 4-stem Demucs models and ensembles all outputs.\n\n'
f'β’ {MULTI_STEM_ENSEMBLE}:\n'
' - The "Jungle Ensemble" gathers all models and ensembles any related outputs.'
)
ENSEMBLE_TYPE_HELP = (
'Choose the ensemble algorithm for generating the final output:\n\n'
f'β’ {MAX_MIN}:\n'
' - Primary stem processed with "Max Spec" algorithm.\n'
' - Secondary stem processed with "Min Spec" algorithm.\n\n'
'Note: For the "4 Stem Ensemble" option, only one algorithm will be displayed.\n\n'
'Algorithm Details:\n'
f'β’ {MAX_SPEC}:\n'
' - Produces the highest possible output.\n'
' - Ideal for vocal stems for a fuller sound, but might introduce unwanted artifacts.\n'
' - Works well with instrumental stems, but avoid using VR Arch models in the ensemble.\n\n'
f'β’ {MIN_SPEC}:\n'
' - Produces the lowest possible output.\n'
' - Ideal for instrumental stems for a cleaner result. Might result in a "muddy" sound.\n\n'
f'β’ {AUDIO_AVERAGE}:\n'
' - Averages all results together for the final output.'
)
ENSEMBLE_LISTBOX_HELP = (
'Displays all available models for the chosen main stem pair.'
)
if OPERATING_SYSTEM == 'darwin':
IS_GPU_CONVERSION_HELP = (
'β’ Use GPU for Processing (if available):\n'
' - If checked, the application will attempt to use your GPU for faster processing.\n'
' - If a GPU is not detected, it will default to CPU processing.\n'
' - GPU processing for MacOS only works with VR Arch models.\n\n'
'β’ Please Note:\n'
' - CPU processing is significantly slower than GPU processing.\n'
' - Only Macs with M1 chips can be used for GPU processing.'
)
else:
IS_GPU_CONVERSION_HELP = (
'β’ Use GPU for Processing (if available):\n'
' - If checked, the application will attempt to use your GPU for faster processing.\n'
' - If a GPU is not detected, it will default to CPU processing.\n\n'
'β’ Please Note:\n'
' - CPU processing is significantly slower than GPU processing.\n'
' - Only Nvidia GPUs can be used for GPU processing.'
)
IS_TIME_CORRECTION_HELP = ('When checked, the output will retain the original BPM of the input.')
SAVE_STEM_ONLY_HELP = 'Allows the user to save only the selected stem.'
IS_NORMALIZATION_HELP = 'Normalizes output to prevent clipping.'
IS_CUDA_SELECT_HELP = "If you have more than one GPU, you can pick which one to use for processing."
CROP_SIZE_HELP = '**Only compatible with select models only!**\n\n Setting should match training crop-size value. Leave as is if unsure.'
IS_TTA_HELP = ('This option performs Test-Time-Augmentation to improve the separation quality.\n\n'
'Note: Having this selected will increase the time it takes to complete a conversion')
IS_POST_PROCESS_HELP = ('This option can potentially identify leftover instrumental artifacts within the vocal outputs. \nThis option may improve the separation of some songs.\n\n' +\
'Note: Selecting this option can adversely affect the conversion process, depending on the track. Because of this, it is only recommended as a last resort.')
IS_HIGH_END_PROCESS_HELP = 'The application will mirror the missing frequency range of the output.'
SHIFTS_HELP = ('Performs multiple predictions with random shifts of the input and averages them.\n\n'
'β’ The higher number of shifts, the longer the prediction will take. \n- Not recommended unless you have a GPU.')
OVERLAP_HELP = ('β’ This option controls the amount of overlap between prediction windows.\n'
' - Higher values can provide better results, but will lead to longer processing times.\n'
' - You can choose between 0.001-0.999')
MDX_OVERLAP_HELP = ('β’ This option controls the amount of overlap between prediction windows.\n'
' - Higher values can provide better results, but will lead to longer processing times.\n'
' - For Non-MDX23C models: You can choose between 0.001-0.999')
OVERLAP_23_HELP = ('β’ This option controls the amount of overlap between prediction windows.\n'
' - Higher values can provide better results, but will lead to longer processing times.')
IS_SEGMENT_DEFAULT_HELP = 'β’ The segment size is set based on the value provided in a chosen model\'s associated \nconfig file (yaml).'
IS_SPLIT_MODE_HELP = 'β’ Enables \"Segments\". \nβ’ Deselecting this option is only recommended for those with powerful PCs.'
IS_DEMUCS_COMBINE_STEMS_HELP = 'The application will create the secondary stem by combining the remaining stems \ninstead of inverting the primary stem with the mixture.'
COMPENSATE_HELP = 'Compensates the audio of the primary stems to allow for a better secondary stem.'
IS_DENOISE_HELP = ('β’ Standard: This setting reduces the noise created by MDX-Net models.\n'
' - This option only reduces noise in non-MDX23 models.\n'
'β’ Denoise Model: This setting employs a special denoise model to eliminate noise produced by any MDX-Net model.\n'
' - This option works on all MDX-Net models.\n'
' - You must have the "UVR-DeNoise-Lite" VR Arch model installed to use this option.\n'
'β’ Please Note: Both options will increase separation time.')
VOC_SPLIT_MODEL_SELECT_HELP = 'β’ Select a model from the list of lead and backing vocal models to run through vocal stems automatically.'
IS_VOC_SPLIT_INST_SAVE_SELECT_HELP = 'β’ When activated, you will receive extra instrumental outputs that include: one with just the lead vocals and another with only the backing vocals.'
IS_VOC_SPLIT_MODEL_SELECT_HELP = ('β’ When activated, this option auto-processes generated vocal stems, using either a karaoke model to remove lead vocals or another to remove backing vocals.\n'
' - This option splits the vocal track into two separate parts: lead vocals and backing vocals, providing two extra vocal outputs.\n'
' - The results will be organized in the same way, whether you use a karaoke model or a background vocal model.\n'
' - This option does not work in ensemble mode at this time.')
IS_DEVERB_OPT_HELP = ('β’ Select the vocal type you wish to deverb automatically.\n'
' - Example: Choosing "Lead Vocals Only" will only remove reverb from a lead vocal stem.')
IS_DEVERB_VOC_HELP = ('β’ This option removes reverb from a vocal stem.\n'
' - You must have the "UVR-DeEcho-DeReverb" VR Arch model installed to use this option.\n'
' - This option does not work in ensemble mode at this time.')
IS_FREQUENCY_MATCH_HELP = 'Matches the frequency cut-off of the primary stem to that of the secondary stem.'
CLEAR_CACHE_HELP = 'Clears settings for unrecognized models chosen by the user.'
IS_SAVE_ALL_OUTPUTS_ENSEMBLE_HELP = 'If enabled, all individual ensemble-generated outputs are retained.'
IS_APPEND_ENSEMBLE_NAME_HELP = 'When enabled, the ensemble name is added to the final output.'
IS_WAV_ENSEMBLE_HELP = (
'Processes ensemble algorithms with waveforms instead of spectrograms when activated:\n'
'β’ Might lead to increased distortion.\n'
'β’ Waveform ensembling is faster than spectrogram ensembling.'
)
DONATE_HELP = 'Opens official UVR "Buy Me a Coffee" external link for project donations!'
IS_INVERT_SPEC_HELP = (
'Potentially enhances the secondary stem quality:\n'
'β’ Inverts primary stem using spectrograms, instead of waveforms.\n'
'β’ Slightly slower inversion method.'
)
IS_TESTING_AUDIO_HELP = 'Appends a 10-digit number to saved files to avoid accidental overwrites.'
IS_MODEL_TESTING_AUDIO_HELP = 'Appends the model name to outputs for comparison across different models.'
IS_ACCEPT_ANY_INPUT_HELP = (
'Allows all types of inputs when enabled, even non-audio formats.\n'
'For experimental use only. Not recommended for regular use.'
)
IS_TASK_COMPLETE_HELP = 'Plays a chime upon process completion or failure when activated.'
DELETE_YOUR_SETTINGS_HELP = (
'Contains your saved settings. Confirmation will be requested before deleting a selected setting.'
)
SET_STEM_NAME_HELP = 'Select the primary stem for the given model.'
IS_CREATE_MODEL_FOLDER_HELP = ('Two new directories will be generated for the outputs in the export directory after each conversion.\n\n'
'β’ Example: \n'
'β Export Directory\n'
' βββ First Directory (Named after the model)\n'
' βββ Second Directory (Named after the track)\n'
' βββ Output File(s)')
MDX_DIM_T_SET_HELP = INTERNAL_MODEL_ATT
MDX_DIM_F_SET_HELP = INTERNAL_MODEL_ATT
MDX_N_FFT_SCALE_SET_HELP = 'Specify the N_FFT size used during model training.'
POPUP_COMPENSATE_HELP = (
f'Select the appropriate volume compensation for the chosen model.\n'
f'Reminder: {COMPENSATE_HELP}'
)
VR_MODEL_PARAM_HELP = 'Select the required parameters to run the chosen model.'
CHOSEN_ENSEMBLE_HELP = (
'Default Ensemble Selections:\n'
'β’ Save the current ensemble configuration.\n'
'β’ Clear all selected models.\n'
'Note: You can also select previously saved ensembles.'
)
CHOSEN_PROCESS_METHOD_HELP = (
'Choose a Processing Method:\n'
'Select from various AI networks and algorithms to process your track:\n'
'\n'
'β’ VR Architecture: Uses magnitude spectrograms for source separation.\n'
'β’ MDX-Net: Employs a Hybrid Spectrogram network for source separation.\n'
'β’ Demucs v3: Also utilizes a Hybrid Spectrogram network for source separation.\n'
'β’ Ensemble Mode: Combine results from multiple models and networks for optimal results.\n'
'β’ Audio Tools: Additional utilities for added convenience.'
)
INPUT_FOLDER_ENTRY_HELP = (
'Select Input:\n'
'Choose the audio file(s) you want to process.'
)
INPUT_FOLDER_ENTRY_HELP_2 = (
'Input Option Menu:\n'
'Click to access the input option menu.'
)
OUTPUT_FOLDER_ENTRY_HELP = (
'Select Output:\n'
'Choose the directory where the processed files will be saved.'
)
INPUT_FOLDER_BUTTON_HELP = (
'Open Input Folder Button:\n'
'Open the directory containing the selected input audio file(s).'
)
OUTPUT_FOLDER_BUTTON_HELP = (
'Open Output Folder Button:\n'
'Open the selected output folder.'
)
CHOOSE_MODEL_HELP = (
'Each processing method has its own set of options and models.\n'
'Choose the model associated with the selected processing method here.'
)
FORMAT_SETTING_HELP = 'Save Outputs As: '
SECONDARY_MODEL_ACTIVATE_HELP = (
'When enabled, the application will perform an additional inference using the selected model(s) above.'
)
SECONDARY_MODEL_HELP = (
'Choose the Secondary Model:\n'
'Select the secondary model associated with the stem you want to process with the current method.'
)
INPUT_SEC_FIELDS_HELP = (
'Right click here to choose your inputs!'
)
SECONDARY_MODEL_SCALE_HELP = ('The scale determines how the final audio outputs will be averaged between the primary and secondary models.\n\nFor example:\n\n'
'β’ 10% - 10 percent of the main model result will be factored into the final result.\n'
'β’ 50% - The results from the main and secondary models will be averaged evenly.\n'
'β’ 90% - 90 percent of the main model result will be factored into the final result.')
PRE_PROC_MODEL_ACTIVATE_HELP = (
'When enabled, the application will use the selected model to isolate the instrumental stem.\n'
'Subsequently, all non-vocal stems will be extracted from this generated instrumental.\n'
'\n'
'Key Points:\n'
'β’ This feature can significantly reduce vocal bleed in non-vocal stems.\n'
'β’ Available exclusively in the Demucs tool.\n'
'β’ Compatible only with non-vocal and non-instrumental stem outputs.\n'
'β’ Expect an increase in total processing time.\n'
'β’ Only the VR or MDX-Net Vocal Instrumental/Vocals models can be chosen for this process.'
)
AUDIO_TOOLS_HELP = (
'Select from various audio tools to process your track:\n'
'\n'
'β’ Manual Ensemble: Requires 2 or more selected files as inputs. This allows tracks to be processed using the algorithms from Ensemble Mode.\n'
'β’ Time Stretch: Adjust the playback speed of the selected inputs to be faster or slower.\n'
'β’ Change Pitch: Modify the pitch of the selected inputs.\n'
'β’ Align Inputs: Choose 2 audio file and the application will align them and provide the difference in alignment.\n'
' - This tool provides similar functionality to "Utagoe."\n'
' - Primary Audio: This is usually a mixture.\n'
' - Secondary Audio: This is usually an instrumental.\n'
'β’ Matchering: Choose 2 audio files. The matchering algorithm will master the target audio to have the same RMS, FR, peak amplitude, and stereo width as the reference audio.'
)
PRE_PROC_MODEL_INST_MIX_HELP = 'When enabled, the application will generate a third output without the selected stem and vocals.'
MODEL_SAMPLE_MODE_HELP = ('Allows the user to process only part of a track to sample settings or a model without running a full conversion.\n\nNotes:\n\n'
'β’ The number in the parentheses is the current number of seconds the generated sample will be.\n'
'β’ You can choose the number of seconds to extract from the track in the \"Additional Settings\" menu.')
POST_PROCESS_THREASHOLD_HELP = ('Allows the user to control the intensity of the Post_process option.\n\nNotes:\n\n'
'β’ Higher values potentially remove more artifacts. However, bleed might increase.\n'
'β’ Lower values limit artifact removal.')
BATCH_SIZE_HELP = ('Specify the number of batches to be processed at a time.\n\nNotes:\n\n'
'β’ Higher values mean more RAM usage but slightly faster processing times.\n'
'β’ Lower values mean less RAM usage but slightly longer processing times.\n'
'β’ Batch size value has no effect on output quality.')
VR_MODEL_NOUT_HELP = ""
VR_MODEL_NOUT_LSTM_HELP = ""
IS_PHASE_HELP = 'Select the phase for the secondary audio.\nβ’ Note: Using the "Automatic" option is strongly recommended.'
IS_ALIGN_TRACK_HELP = 'Enable this to save the secondary track once aligned.'
IS_MATCH_SILENCE_HELP = (
'Aligns the initial silence of the secondary audio with the primary audio.\n'
'β’ Note: Avoid using this option if the primary audio begins solely with vocals.'
)
IS_MATCH_SPEC_HELP = 'Align the secondary audio based on the primary audio\'s spectrogram.\nβ’ Note: This may enhance alignment in specific cases.'
TIME_WINDOW_ALIGN_HELP = (
'This setting determines the window size for alignment analysis, especially for pairs with minor timing variations:\n'
'\n'
'β’ None: Disables time window analysis.\n'
'β’ 1: Analyzes pair by 0.0625-second windows.\n'
'β’ 2: Analyzes pair by 0.125-second windows.\n'
'β’ 3: Analyzes pair by 0.25-second windows.\n'
'β’ 4: Analyzes pair by 0.50-second windows.\n'
'β’ 5: Analyzes pair by 0.75-second windows.\n'
'β’ 6: Analyzes pair by 1-second windows.\n'
'β’ 7: Analyzes pair by 2-second windows.\n'
'\n'
'Shifts Options:\n'
'β’ Low: Cycles through 0.0625 and 0.5-second windows to find an optimal match.\n'
'β’ Medium: Cycles through 0.0625, 0.125, and 0.5-second windows to find an optimal match.\n'
'β’ High: Cycles through 0.0625, 0.125, 0.25, and 0.5-second windows to find an optimal match.\n'
'\n'
'Important Points to Consider:\n'
' - Using the "Shifts" option may require more processing time and might not guarantee better results.\n'
' - Opting for smaller analysis windows can increase processing times.\n'
' - The best settings are likely to vary based on the specific tracks being processed.'
)
INTRO_ANALYSIS_ALIGN_HELP = (
'This setting determines the portion of the audio input to be analyzed for initial alignment.\n'
'\n'
'β’ Default: Analyzes 10% (or 1/10th) of the audio\'s total length.\n'
'β’ 1: Analyzes 12.5% (or 1/8th) of the audio\'s total length.\n'
'β’ 2: Analyzes 16.67% (or 1/6th) of the audio\'s total length.\n'
'β’ 3: Analyzes 25% (or 1/4th) of the audio\'s total length.\n'
'β’ 4: Analyzes 50% (or half) of the audio\'s total length.\n'
'\n'
'Shifts Options:\n'
'β’ Low: Cycles through 2 intro analysis values.\n'
'β’ Medium: Cycles through 3 intro analysis values.\n'
'β’ High: Cycles through 5 intro analysis values.\n'
'\n'
'Important Points to Consider:\n'
' - Using the "Shifts" option will require more processing time and might not guarantee better results.\n'
' - Optimal settings may vary depending on the specific tracks being processed.'
)
VOLUME_ANALYSIS_ALIGN_HELP = (
'This setting specifies the volume adjustments to be made on the secondary input:\n'
'\n'
'β’ None: No volume adjustments are made.\n'
'β’ Low: Analyzes the audio within a 4dB range, adjusting in 1dB increments.\n'
'β’ Medium: Analyzes the audio within a 6dB range, adjusting in 1dB increments.\n'
'β’ High: Analyzes the audio within a 6dB range, adjusting in 0.5dB increments.\n'
'β’ Very High: Analyzes the audio within a 10dB range, adjusting in 0.5dB increments.\n'
'\n'
'Important Points to Consider:\n'
' - Selecting more extensive analysis options (e.g., High, Very High) will lead to longer processing times.\n'
' - Optimal settings might vary based on the specific tracks being processed.'
)
PHASE_SHIFTS_ALIGN_HELP = (
'This setting specifies the phase adjustments to be made on the secondary input:\n'
'\n'
'Shifts Options:\n'
'β’ None: No phase adjustments are made.\n'
'β’ Very Low: Analyzes the audio within range of 2 different phase positions.\n'
'β’ Low: Analyzes the audio within range of 4 different phase positions.\n'
'β’ Medium: Analyzes the audio within range of 8 different phase positions.\n'
'β’ High: Analyzes the audio within range of 18 different phase positions.\n'
'β’ Very High: Analyzes the audio within range of 36 different phase positions.\n'
'β’ Maximum: Analyzes the audio in all 360 phase positions.\n'
'\n'
'Important Points to Consider:\n'
' - This option only works with time correction.\n'
' - This option can be helpful if one of the inputs were from an analog source.\n'
' - Selecting more extensive analysis options (e.g., High, Very High) will lead to longer processing times.\n'
' - Selecting "Maximum" can take hours to process.\n'
' - Optimal settings might vary based on the specific tracks being processed.'
)
# Warning Messages
STORAGE_ERROR = 'Insufficient Storage', 'There is not enough storage on main drive to continue. Your main drive must have at least 3 GB\'s of storage in order for this application function properly. \n\nPlease ensure your main drive has at least 3 GB\'s of storage and try again.\n\n'
STORAGE_WARNING = 'Available Storage Low', 'Your main drive is running low on storage. Your main drive must have at least 3 GB\'s of storage in order for this application function properly.\n\n'
CONFIRM_WARNING = '\nAre you sure you wish to continue?'
PROCESS_FAILED = 'Process failed, please see error log\n'
EXIT_PROCESS_ERROR = 'Active Process', 'Please stop the active process or wait for it to complete before you exit.'
EXIT_HALTED_PROCESS_ERROR = 'Halting Process', 'Please wait for the application to finish halting the process before exiting.'
EXIT_DOWNLOAD_ERROR = 'Active Download', 'Please stop the download or wait for it to complete before you exit.'
SET_TO_DEFAULT_PROCESS_ERROR = 'Active Process', 'You cannot reset all of the application settings during an active process.'
SET_TO_ANY_PROCESS_ERROR = 'Active Process', 'You cannot reset the application settings during an active process.'
RESET_ALL_TO_DEFAULT_WARNING = 'Reset Settings Confirmation', 'All application settings will be set to factory default.\n\nAre you sure you wish to continue?'
AUDIO_VERIFICATION_CHECK = lambda i, e:f'++++++++++++++++++++++++++++++++++++++++++++++++++++\n\nBroken File Removed: \n\n{i}\n\nError Details:\n\n{e}\n++++++++++++++++++++++++++++++++++++++++++++++++++++'
INVALID_ONNX_MODEL_ERROR = 'Invalid Model', 'The file selected is not a valid MDX-Net model. Please see the error log for more information.'
INVALID_PARAM_MODEL_ERROR = 'Select Model Param', 'Please choose a model param or click \'Cancel\'.'
UNRECOGNIZED_MODEL = 'Unrecognized Model Detected', ' is an unrecognized model.\n\n' + \
'Would you like to select the correct parameters before continuing?'
STOP_PROCESS_CONFIRM = 'Confirmation', 'You are about to stop all active processes.\n\nAre you sure you wish to continue?'
NO_ENSEMBLE_SELECTED = 'No Models Selected', 'Please select ensemble and try again.'
PICKLE_CORRU = 'File Corrupted', 'Unable to load this ensemble.\n\n' + \
'Would you like to remove this ensemble from your list?'
DELETE_ENS_ENTRY = 'Confirm Removal', 'Are you sure you want to remove this entry?'
# Separation Text
LOADING_MODEL = 'Loading model...'
INFERENCE_STEP_1 = 'Running inference...'
INFERENCE_STEP_1_SEC = 'Running inference (secondary model)...'
INFERENCE_STEP_1_4_STEM = lambda stem:f'Running inference (secondary model for {stem})...'
INFERENCE_STEP_1_PRE = 'Running inference (pre-process model)...'
INFERENCE_STEP_1_VOC_S = 'Splitting vocals...'
INFERENCE_STEP_2_PRE = lambda pm, m:f'Loading pre-process model ({pm}: {m})...'
INFERENCE_STEP_2_SEC = lambda pm, m:f'Loading secondary model ({pm}: {m})...'
INFERENCE_STEP_2_VOC_S = lambda pm, m:f'Loading vocal splitter model ({pm}: {m})...'
INFERENCE_STEP_2_SEC_CACHED_MODOEL = lambda pm, m:f'Secondary model ({pm}: {m}) cache loaded.\n'
INFERENCE_STEP_2_PRE_CACHED_MODOEL = lambda pm, m:f'Pre-process model ({pm}: {m}) cache loaded.\n'
INFERENCE_STEP_2_SEC_CACHED = 'Loading cached secondary model source(s)... Done!\n'
INFERENCE_STEP_2_PRIMARY_CACHED = ' Model cache loaded.\n'
INFERENCE_STEP_2 = 'Inference complete.'
INFERENCE_STEP_DEVERBING = ' Deverbing...'
SAVING_STEM = 'Saving ', ' stem...'
SAVING_ALL_STEMS = 'Saving all stems...'
ENSEMBLING_OUTPUTS = 'Ensembling outputs...'
DONE = ' Done!\n'
ENSEMBLES_SAVED = 'Ensembled outputs saved!\n\n'
#Additional Text
CHOOSE_PROC_METHOD_MAIN_LABEL = 'CHOOSE PROCESS METHOD'
SELECT_SAVED_SETTINGS_MAIN_LABEL = 'SELECT SAVED SETTINGS'
CHOOSE_MDX_MODEL_MAIN_LABEL = 'CHOOSE MDX-NET MODEL'
BATCHES_MDX_MAIN_LABEL = 'BATCH SIZE'
VOL_COMP_MDX_MAIN_LABEL = 'VOLUME COMPENSATION'
SEGMENT_MDX_MAIN_LABEL = 'SEGMENT SIZE'
SELECT_VR_MODEL_MAIN_LABEL = 'CHOOSE VR MODEL'
AGGRESSION_SETTING_MAIN_LABEL = 'AGGRESSION SETTING'
WINDOW_SIZE_MAIN_LABEL = 'WINDOW SIZE'
CHOOSE_DEMUCS_MODEL_MAIN_LABEL = 'CHOOSE DEMUCS MODEL'
CHOOSE_STEMS_MAIN_LABEL = 'CHOOSE STEM(S)'
CHOOSE_SEGMENT_MAIN_LABEL = 'SEGMENT'
ENSEMBLE_OPTIONS_MAIN_LABEL = 'ENSEMBLE OPTIONS'
CHOOSE_MAIN_PAIR_MAIN_LABEL = 'MAIN STEM PAIR'
CHOOSE_ENSEMBLE_ALGORITHM_MAIN_LABEL = 'ENSEMBLE ALGORITHM'
AVAILABLE_MODELS_MAIN_LABEL = 'AVAILABLE MODELS'
CHOOSE_AUDIO_TOOLS_MAIN_LABEL = 'CHOOSE AUDIO TOOL'
CHOOSE_MANUAL_ALGORITHM_MAIN_LABEL = 'CHOOSE ALGORITHM'
CHOOSE_RATE_MAIN_LABEL = 'RATE'
CHOOSE_SEMITONES_MAIN_LABEL = 'SEMITONES'
GPU_CONVERSION_MAIN_LABEL = 'GPU Conversion'
CHANGE_LOG_HEADER = lambda patch:f"Patch Version:\n\n{patch}"
INVALID_INPUT_E = ' Invalid input! '
LB_UP = "Move Selection Up"
LB_DOWN = "Move Selection Down"
LB_CLEAR = "Clear Box"
LB_MOVE_OVER_P = "Move Selection to Secondary List"
LB_MOVE_OVER_S = "Move Selection to Primary List"
FILE_ONE_MAIN_LABEL = "PRIMARY AUDIO"
FILE_TWO_MAIN_LABEL = "SECONDARY AUDIO"
FILE_ONE_MATCH_MAIN_LABEL = "TARGET AUDIO"
FILE_TWO_MATCH_MAIN_LABEL = "REFERENCE AUDIO"
TIME_WINDOW_MAIN_LABEL = "TIME ADJUSTMENT"
INTRO_ANALYSIS_MAIN_LABEL = "INTRO ANALYSIS"
VOLUME_ADJUSTMENT_MAIN_LABEL = "VOLUME ADJUSTMENT"
SELECT_INPUTS = "Select Input(s)"
SELECTED_INPUTS = 'Selected Inputs'
WIDEN_BOX = 'Widen Box'
CONFIRM_ENTRIES = 'Confirm Entries'
CLOSE_WINDOW = 'Close Window'
DUAL_AUDIO_PROCESSING = 'Dual Audio Batch Processing'
CANCEL_TEXT = "Cancel"
CONFIRM_TEXT = "Confirm"
SELECT_MODEL_TEXT = 'Select Model'
NONE_SELECTED = 'None Selected'
SAVE_TEXT = 'Save'
OVERLAP_TEXT = 'Overlap'
ACCEPT_ANY_INPUT_TEXT = 'Accept Any Input'
ACTIVATE_PRE_PROCESS_MODEL_TEXT = 'Activate Pre-process Model'
ACTIVATE_SECONDARY_MODEL_TEXT = 'Activate Secondary Model'
ADDITIONAL_MENUS_INFORMATION_TEXT = 'Additional Menus & Information'
ADDITIONAL_SETTINGS_TEXT = 'Additional Settings'
ADVANCED_ALIGN_TOOL_OPTIONS_TEXT = 'Advanced Align Tool Options'
ADVANCED_DEMUCS_OPTIONS_TEXT = 'Advanced Demucs Options'
ADVANCED_ENSEMBLE_OPTIONS_TEXT = 'Advanced Ensemble Options'
ADVANCED_MDXNET23_OPTIONS_TEXT = 'Advanced MDX-NET23 Options'
ADVANCED_MDXNET_OPTIONS_TEXT = 'Advanced MDX-Net Options'
ADVANCED_OPTION_MENU_TEXT = 'Advanced Option Menu'
ADVANCED_VR_OPTIONS_TEXT = 'Advanced VR Options'
AGGRESSION_SETTING_TEXT = 'Aggression Setting'
APPEND_ENSEMBLE_NAME_TEXT = 'Append Ensemble Name'
APPLICATION_DOWNLOAD_CENTER_TEXT = 'Application Download Center'
APPLICATION_UPDATES_TEXT = 'Application Updates'
AUDIO_FORMAT_SETTINGS_TEXT = 'Audio Format Settings'
BALANCE_VALUE_TEXT = 'Balance Value'
BATCH_SIZE_TEXT = 'Batch Size'
BV_MODEL_TEXT = 'BV Model'
CHANGE_MODEL_DEFAULT_TEXT = 'Change Model Default'
CHANGE_MODEL_DEFAULTS_TEXT = 'Change Model Defaults'
CHANGE_PARAMETERS_TEXT = 'Change Parameters'
CHOOSE_ADVANCED_MENU_TEXT = 'Choose Advanced Menu'
CHOOSE_MODEL_PARAM_TEXT = 'Choose Model Param'
CLEAR_AUTOSET_CACHE_TEXT = 'Clear Auto-Set Cache'
COMBINE_STEMS_TEXT = 'Combine Stems'
CONFIRM_UPDATE_TEXT = 'Confirm Update'
COPIED_TEXT = 'Copied!'
COPY_ALL_TEXT_TEXT = 'Copy All Text'
DEFINED_PARAMETERS_DELETED_TEXT = 'Defined Parameters Deleted'
DELETE_PARAMETERS_TEXT = 'Delete Parameters'
DELETE_USER_SAVED_SETTING_TEXT = 'Delete User Saved Setting'
DEMUCS_TEXT = 'Demucs'
DENOISE_OUTPUT_TEXT = 'Denoise Output'
DEVERB_VOCALS_TEXT = 'Deverb Vocals'
DONE_TEXT = 'Done'
DOWNLOAD_CENTER_TEXT = 'Download Center'
DOWNLOAD_CODE_TEXT = 'Download Code'
DOWNLOAD_LINKS_TEXT = 'Download Link(s)'
DOWNLOAD_UPDATE_IN_APPLICATION_TEXT = 'Download Update in Application'
ENABLE_HELP_HINTS_TEXT = 'Enable Help Hints'
ENABLE_TTA_TEXT = 'Enable TTA'
ENABLE_VOCAL_SPLIT_MODE_TEXT = 'Enable Vocal Split Mode'
ENSEMBLE_NAME_TEXT = 'Ensemble Name'
ENSEMBLE_WAVFORMS_TEXT = 'Ensemble Wavforms'
ERROR_CONSOLE_TEXT = 'Error Console'
GENERAL_MENU_TEXT = 'General Menu'
GENERAL_PROCESS_SETTINGS_TEXT = 'General Process Settings'
GENERATE_MODEL_FOLDER_TEXT = 'Generate Model Folder'
HIGHEND_PROCESS_TEXT = 'High-End Process'
INPUT_CODE_TEXT = 'Input Code'
INPUT_STEM_NAME_TEXT = 'Input Stem Name'
INPUT_UNIQUE_STEM_NAME_TEXT = 'Input Unique Stem Name'
IS_INVERSE_STEM_TEXT = 'Is Inverse Stem'
KARAOKE_MODEL_TEXT = 'Karaoke Model'
MANUAL_DOWNLOADS_TEXT = 'Manual Downloads'
MATCH_FREQ_CUTOFF_TEXT = 'Match Freq Cut-off'
MDXNET_C_MODEL_PARAMETERS_TEXT = 'MDX-Net C Model Parameters'
MDXNET_MODEL_SETTINGS_TEXT = 'MDX-Net Model Settings'
MDXNET_TEXT = 'MDX-Net'
MODEL_PARAMETERS_CHANGED_TEXT = 'Model Parameters Changed'
MODEL_SAMPLE_MODE_SETTINGS_TEXT = 'Model Sample Mode Settings'
MODEL_TEST_MODE_TEXT = 'Model Test Mode'
MP3_BITRATE_TEXT = 'Mp3 Bitrate'
NAME_SETTINGS_TEXT = 'Name Settings'
NO_DEFINED_PARAMETERS_FOUND_TEXT = 'No Defined Parameters Found'
NO_TEXT = 'No'
NORMALIZE_OUTPUT_TEXT = 'Normalize Output'
USE_OPENCL_TEXT = 'Use OpenCL'
NOT_ENOUGH_MODELS_TEXT = 'Not Enough Models'
NOTIFICATION_CHIMES_TEXT = 'Notification Chimes'
OPEN_APPLICATION_DIRECTORY_TEXT = 'Open Application Directory'
OPEN_LINK_TO_MODEL_TEXT = 'Open Link to Model'
OPEN_MODEL_DIRECTORY_TEXT = 'Open Model Directory'
OPEN_MODEL_FOLDER_TEXT = 'Open Model Folder'
OPEN_MODELS_FOLDER_TEXT = 'Open Models Folder'
PHASE_SHIFTS_TEXT = 'Phase Shifts'
POST_PROCESS_TEXT = 'Post-Process'
POST_PROCESS_THRESHOLD_TEXT = 'Post-process Threshold'
PREPROCESS_MODEL_CHOOSE_TEXT = 'Pre-process Model'
PRIMARY_STEM_TEXT = 'Primary Stem'
REFRESH_LIST_TEXT = 'Refresh List'
REMOVE_SAVED_ENSEMBLE_TEXT = 'Remove Saved Ensemble'
REPORT_ISSUE_TEXT = 'Report Issue'
RESET_ALL_SETTINGS_TO_DEFAULT_TEXT = 'Reset All Settings to Default'
RESTART_APPLICATION_TEXT = 'Restart Application'
SAMPLE_CLIP_DURATION_TEXT = 'Sample Clip Duration'
SAVE_ALIGNED_TRACK_TEXT = 'Save Aligned Track'
SAVE_ALL_OUTPUTS_TEXT = 'Save All Outputs'
SAVE_CURRENT_ENSEMBLE_TEXT = 'Save Current Ensemble'
SAVE_CURRENT_SETTINGS_TEXT = 'Save Current Settings'
SAVE_INSTRUMENTAL_MIXTURE_TEXT = 'Save Instrumental Mixture'
SAVE_SPLIT_VOCAL_INSTRUMENTALS_TEXT = 'Save Split Vocal Instrumentals'
SECONDARY_MODEL_TEXT = 'Secondary Model'
SECONDARY_PHASE_TEXT = 'Secondary Phase'
SECONDS_TEXT = 'Seconds'
SEGMENT_DEFAULT_TEXT = 'Segment Default'
SEGMENT_SIZE_TEXT = 'Segment Size'
SEGMENTS_TEXT = 'Segments'
SELECT_DOWNLOAD_TEXT = 'Select Download'
SELECT_MODEL_PARAM_TEXT = 'Select Model Param'
SELECT_VOCAL_TYPE_TO_DEVERB_TEXT = 'Select Vocal Type to Deverb'
SELECTED_MODEL_PLACEMENT_PATH_TEXT = 'Selected Model Placement Path'
SETTINGS_GUIDE_TEXT = 'Settings Guide'
SETTINGS_TEST_MODE_TEXT = 'Settings Test Mode'
SHIFT_CONVERSION_PITCH_TEXT = 'Shift Conversion Pitch'
SHIFTS_TEXT = 'Shifts'
SILENCE_MATCHING_TEXT = 'Silence Matching'
SPECIFY_MDX_NET_MODEL_PARAMETERS_TEXT = 'Specify MDX-Net Model Parameters'
SPECIFY_PARAMETERS_TEXT = 'Specify Parameters'
SPECIFY_VR_MODEL_PARAMETERS_TEXT = 'Specify VR Model Parameters'
SPECTRAL_INVERSION_TEXT = 'Spectral Inversion'
SPECTRAL_MATCHING_TEXT = 'Spectral Matching'
SPLIT_MODE_TEXT = 'Split Mode'
STEM_NAME_TEXT = 'Stem Name'
STOP_DOWNLOAD_TEXT = 'Stop Download'
SUPPORT_UVR_TEXT = 'Support UVR'
TRY_MANUAL_DOWNLOAD_TEXT = 'Try Manual Download'
UPDATE_FOUND_TEXT = 'Update Found'
USER_DOWNLOAD_CODES_TEXT = 'User Download Codes'
UVR_BUY_ME_A_COFFEE_LINK_TEXT = 'UVR \'Buy Me a Coffee\' Link'
UVR_ERROR_LOG_TEXT = 'UVR Error Log'
UVR_PATREON_LINK_TEXT = 'UVR Patreon Link'
VOCAL_DEVERB_OPTIONS_TEXT = 'Vocal Deverb Options'
VOCAL_SPLIT_MODE_OPTIONS_TEXT = 'Vocal Split Mode Options'
VOCAL_SPLIT_OPTIONS_TEXT = 'Vocal Split Options'
VOLUME_COMPENSATION_TEXT = 'Volume Compensation'
VR_51_MODEL_TEXT = 'VR 5.1 Model'
VR_ARCH_TEXT = 'VR Arch'
WAV_TYPE_TEXT = 'Wav Type'
CUDA_NUM_TEXT = 'GPU Device'
WINDOW_SIZE_TEXT = 'Window Size'
YES_TEXT = 'Yes'
VERIFY_INPUTS_TEXT = 'Verify Inputs'
AUDIO_INPUT_TOTAL_TEXT = 'Audio Input Total'
MDX23C_ONLY_OPTIONS_TEXT = 'MDXNET23 Only Options'
PROCESS_STARTING_TEXT = 'Process starting... '
MISSING_MESS_TEXT = 'is missing or currupted.'
SIMILAR_TEXT = "are the same."
LOADING_VERSION_INFO_TEXT = 'Loading version information...'
CHECK_FOR_UPDATES_TEXT = 'Check for Updates'
INFO_UNAVAILABLE_TEXT = "Information unavailable."
UPDATE_CONFIRMATION_TEXT = 'Are you sure you want to continue?\n\nThe application will need to be restarted.\n'
BROKEN_OR_INCOM_TEXT = 'Broken or Incompatible File(s) Removed. Check Error Log for details.'
BMAC_UVR_TEXT = 'UVR \"Buy Me a Coffee\" Link'
MDX_MENU_WAR_TEXT = '(Leave this setting as is if you are unsure.)'
NO_FILES_TEXT = 'No Files'
CHOOSE_INPUT_TEXT = 'Choose Input'
OPEN_INPUT_DIR_TEXT = 'Open Input Directory'
BATCH_PROCESS_MENU_TEXT = 'Batch Process Menu'
TEMP_FILE_DELETION_TEXT = 'Temp File Deletion'
VOCAL_SPLITTER_OPTIONS_TEXT = 'Vocal Splitter Options'
WAVEFORM_ENSEMBLE_TEXT = 'Waveform Ensemble'
SELECT_INPUT_TEXT = 'Select Input'
SELECT_OUTPUT_TEXT = 'Select Output'
TIME_CORRECTION_TEXT = 'Time Correction'
UVR_LIS_INFO_TEXT = 'UVR License Information'
ADDITIONAL_RES_CREDITS_TEXT = 'Additional Resources & Credits'
SAVE_INST_MIXTURE_TEXT = 'Save Instrumental Mixture'
DOWNLOAD_UPDATE_IN_APP_TEXT = 'Download Update in Application'
WAVE_TYPE_TEXT = 'WAVE TYPE'
OPEN_LINK_TO_MODEL_TEXT = "Open Link to Model"
OPEN_MODEL_DIRECTORY = "Open Model Directory"
SELECTED_MODEL_PLACE_PATH_TEXT = 'Selected Model Placement Path'
IS_INVERSE_STEM_TEXT = "Is Inverse Stem"
INPUT_STEM_NAME_TEXT = "Input Stem Name"
INPUT_UNIQUE_STEM_NAME_TEXT = "Input Unique Stem Name"
DONE_MENU_TEXT = "Done"
OK_TEXT = "Ok"
ENSEMBLE_WARNING_NOT_ENOUGH_SHORT_TEXT = "Not Enough Models"
ENSEMBLE_WARNING_NOT_ENOUGH_TEXT = "You must select 2 or more models to save an ensemble."
NOT_ENOUGH_ERROR_TEXT = "Not enough files to process.\n"
INVALID_FOLDER_ERROR_TEXT = 'Invalid Folder', 'Your given export path is not a valid folder!'
GET_DL_VIP_CODE_TEXT = ("Obtain codes by visiting one of the following links below."
"\nFrom there you can donate, pledge, "
"or just obatain the code!\n (Donations are not required to obtain VIP code)")
CONFIRM_RESTART_TEXT = 'Restart Confirmation', 'This will restart the application and halt any running processes. Your current settings will be saved. \n\n Are you sure you wish to continue?'
ERROR_LOADING_FILE_TEXT = 'Error Loading the Following File', 'Raw Error Details'
LOADING_MODEL_TEXT = 'Loading model'
FULL_APP_SET_TEXT = 'Full Application Settings'
PROCESS_STARTING_TEXT = 'Process starting... '
PROCESS_STOPPED_BY_USER = '\n\nProcess stopped by user.'
NEW_UPDATE_FOUND_TEXT = lambda version:f"\n\nNew Update Found: {version}\n\nClick the update button in the \"Settings\" menu to download and install!"
ROLL_BACK_TEXT = 'Click Here to Roll Back'
def secondary_stem(stem:str):
"""Determines secondary stem"""
stem = stem if stem else NO_STEM
if stem in STEM_PAIR_MAPPER.keys():
for key, value in STEM_PAIR_MAPPER.items():
if stem in key:
secondary_stem = value
else:
secondary_stem = stem.replace(NO_STEM, "") if NO_STEM in stem else f"{NO_STEM}{stem}"
return secondary_stem
|