1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 2008 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Low Level MIDI Commands</TITLE>
<META NAME="description" CONTENT="Low Level MIDI Commands">
<META NAME="keywords" CONTENT="mma">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="mma.css">
<LINK REL="next" HREF="node25.html">
<LINK REL="previous" HREF="node23.html">
<LINK REL="up" HREF="mma.html">
<LINK REL="next" HREF="node25.html">
</HEAD>
<BODY bgcolor="#ffffff">
<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html842"
HREF="node25.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html840"
HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html834"
HREF="node23.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html843"
HREF="node25.html">Patch Management</A>
<B> Up:</B> <A NAME="tex2html841"
HREF="mma.html">Reference Manual</A>
<B> Previous:</B> <A NAME="tex2html835"
HREF="node23.html">Plugins</A>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
<UL CLASS="ChildLinks">
<LI><A NAME="tex2html844"
HREF="node24.html#SECTION002410000000000000000">Channel</A>
<LI><A NAME="tex2html845"
HREF="node24.html#SECTION002420000000000000000">ChannelPref</A>
<LI><A NAME="tex2html846"
HREF="node24.html#SECTION002430000000000000000">ChShare</A>
<LI><A NAME="tex2html847"
HREF="node24.html#SECTION002440000000000000000">ChannelInit</A>
<LI><A NAME="tex2html848"
HREF="node24.html#SECTION002450000000000000000">ForceOut</A>
<LI><A NAME="tex2html849"
HREF="node24.html#SECTION002460000000000000000">MIDI</A>
<LI><A NAME="tex2html850"
HREF="node24.html#SECTION002470000000000000000">MIDIClear</A>
<LI><A NAME="tex2html851"
HREF="node24.html#SECTION002480000000000000000">MIDICue</A>
<LI><A NAME="tex2html852"
HREF="node24.html#SECTION002490000000000000000">MIDICopyright</A>
<LI><A NAME="tex2html853"
HREF="node24.html#SECTION0024100000000000000000">MIDIDef</A>
<LI><A NAME="tex2html854"
HREF="node24.html#SECTION0024110000000000000000">MIDICresc and MIDIDecresc</A>
<LI><A NAME="tex2html855"
HREF="node24.html#SECTION0024120000000000000000">MIDIFile</A>
<LI><A NAME="tex2html856"
HREF="node24.html#SECTION0024130000000000000000">MIDIGlis</A>
<LI><A NAME="tex2html857"
HREF="node24.html#SECTION0024140000000000000000">MIDIWheel</A>
<LI><A NAME="tex2html858"
HREF="node24.html#SECTION0024150000000000000000">MIDIInc</A>
<LI><A NAME="tex2html859"
HREF="node24.html#SECTION0024160000000000000000">MIDIMark</A>
<LI><A NAME="tex2html860"
HREF="node24.html#SECTION0024170000000000000000">MIDINote</A>
<UL>
<LI><A NAME="tex2html861"
HREF="node24.html#SECTION0024171000000000000000">Setting Options</A>
<LI><A NAME="tex2html862"
HREF="node24.html#SECTION0024172000000000000000">Note Events</A>
<LI><A NAME="tex2html863"
HREF="node24.html#SECTION0024173000000000000000">Controller Events</A>
<LI><A NAME="tex2html864"
HREF="node24.html#SECTION0024174000000000000000">Pitch Bend</A>
<LI><A NAME="tex2html865"
HREF="node24.html#SECTION0024175000000000000000">Pitch Bend Range</A>
<LI><A NAME="tex2html866"
HREF="node24.html#SECTION0024176000000000000000">Channel Aftertouch</A>
<LI><A NAME="tex2html867"
HREF="node24.html#SECTION0024177000000000000000">Channel Aftertouch Range</A>
</UL>
<BR>
<LI><A NAME="tex2html868"
HREF="node24.html#SECTION0024180000000000000000">MIDIPan</A>
<LI><A NAME="tex2html869"
HREF="node24.html#SECTION0024190000000000000000">MIDISeq</A>
<LI><A NAME="tex2html870"
HREF="node24.html#SECTION0024200000000000000000">MIDISplit</A>
<LI><A NAME="tex2html871"
HREF="node24.html#SECTION0024210000000000000000">MIDIText</A>
<LI><A NAME="tex2html872"
HREF="node24.html#SECTION0024220000000000000000">MIDITname</A>
<LI><A NAME="tex2html873"
HREF="node24.html#SECTION0024230000000000000000">MIDIVoice</A>
<LI><A NAME="tex2html874"
HREF="node24.html#SECTION0024240000000000000000">MIDIVolume</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<H1><A NAME="SECTION002400000000000000000"></A>
<A NAME="sec-mididirectives"></A>
<BR>
Low Level MIDI Commands
</H1>
<P>
The commands discussed in this chapter directly effect your MIDI
output devices.
<P>
Not all MIDI devices are equal. Many of the effects in this chapter
may be ignored by your devices. Sorry, but that's just the way MIDI
is.
<P>
<H1><A NAME="SECTION002410000000000000000"></A> <A NAME="set-channel"></A>
<BR>
Channel
</H1>
<P>
As noted in <A HREF="node3.html#sec-tracks">Tracks and Channels</A>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> assigns MIDI channels
dynamically as it creates tracks. In most cases this works fine;
however, you can if you wish force the assignment of a specific MIDI
channel to a track with the C<SMALL>HANNEL</SMALL> command.
<P>
You cannot assign a channel number to a track if it already defined
(well, see the section C<SMALL>H</SMALL>S<SMALL>HARE</SMALL>, below, for the inevitable
exception), nor can you change the channel assignments for any of the
D<SMALL>RUM</SMALL> tracks.
<P>
Let us assume that you want the <SPAN CLASS="textit">Bass</SPAN> track assigned to MIDI
channel 8. Simply use:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass Channel 8 </B>
</td></tr>
</Table>
<P>
Caution: If the selected channel is already in use an error will be
generated. Due to the way
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> allocates tracks, if you really need
to manually assign track it is recommended that you do this in a
MMA<SMALL>RC</SMALL> file.
<P>
<A NAME="channel0"></A>
<P>
You can disable a channel at any time by using a channel number of 0:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Arpeggio-1 Channel 0 </B>
</td></tr>
</Table>
<P>
will disable the Arpeggio-1 channel, freeing it for use by other
tracks. A warning message is generated. Disabling a track without a
valid channel is fine. When you set a channel to 0 the track is also
disabled. You can restart the track with the O<SMALL>N</SMALL> command
(<A HREF="node29.html#set-on">here</A>).
<P>
You don't need to have a valid MIDI channel assigned to a track to do
things like: MIDIP<SMALL>AN</SMALL>, MIDIG<SMALL>LIS</SMALL>, MIDIV<SMALL>OLUME</SMALL> or
even the assignment of any music to a track. MIDI data is created in
tracks and then sent out to the MIDI buffers. Channel assignment is
checked and allocated at this point, and an error will be generated if
no channels are available.
<P>
It's quite acceptable to do channel reassignments in the middle of a
song. Just assign channel 0 to the unneeded track first.
<P>
MIDI channel settings are <SPAN CLASS="textit">not</SPAN> saved in G<SMALL>ROOVE</SMALL>s.
<P>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> inserts a MIDI ``track name'' meta event when the channel
buffers are first assigned at a MIDI offset of 0. If the MIDI channel
is reassigned, a new ``track name'' is inserted at the current song
offset.
<P>
A more general method is to use C<SMALL>HANNEL</SMALL>P<SMALL>REF</SMALL> detailed below.
<P>
You can access the currently assigned channel with the
$_TRACK_C<SMALL>HANNEL</SMALL> macro.
<P>
<H1><A NAME="SECTION002420000000000000000">
ChannelPref</A>
</H1>
<P>
If you prefer to have certain tracks assigned to certain channels you
can use the C<SMALL>HANNEL</SMALL>P<SMALL>REF</SMALL> command to create a custom set of
preferences. By default,
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> assigns channels starting at 16 and
working down to 1 (with the expectation of drum tracks which are all
assigned channel 10). If, for example, you would like the <SPAN CLASS="textit">Bass</SPAN>
track to be on channel 9, sustained bass on channel 3, and
<SPAN CLASS="textit">Arpeggio</SPAN> on channel 5, you can have a command like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>ChannelPref Bass=9 Arpeggio=5 Bass-Sus=3 </B>
</td></tr>
</Table>
<P>
Most likely this will be in your <SMALL>MMARC</SMALL> file.
<P>
You can use multiple command lines, or have multiple assignments on a
single line. Just make sure that each item consists of a trackname, an
``='' and a channel number in the range 1 to 16.
<P>
If a channel has already been assigned this command will probably be
ignored. It should be used <SPAN CLASS="textit">before</SPAN> any MIDI data is generated.
<P>
<H1><A NAME="SECTION002430000000000000000"></A> <A NAME="set-chshare"></A>
<BR>
ChShare
</H1>
<P>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> is fairly conservative in its use of MIDI tracks. ``Out of the
box'' it demands a separate MIDI channel for each of its tracks, but
only as they are actually used. In most cases, this works just fine.
<P>
However, there are times when you might need more tracks than the
available MIDI channels or you may want to free up some channels for
other programs.
<P>
If you have different tracks with the same voicing, it's quite simple.
For example, you might have an arpeggio and scale track:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Arpeggio Sequence A16 z
<BR>
Arpeggio Voice Piano1
<BR>
Scale Sequence z S8
<BR>
Scale Voice Piano1 </B>
</td></tr>
</Table>
<P>
In this example,
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> will use different MIDI channels for the
<SPAN CLASS="textit">Arpeggio</SPAN> and the <SPAN CLASS="textit">Scale</SPAN>. Now, if you force channel
sharing:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Scale ChShare Arpeggio </B>
</td></tr>
</Table>
<P>
both tracks will use the same MIDI channel.
<P>
This is really foolproof in the above example, especially since the
same voice is being used for both. Now, what if you wanted to use a
different voice for the tracks?
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Arpeggio Sequence A16 z
<BR>
Arpeggio Voice Piano1 Strings
<BR>
Scale Sequence z S8
<BR>
Scale ChShare Arpeggio </B>
</td></tr>
</Table>
<P>
You might think that this would work, but it doesn't.
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> ignores
voice changes for bars which don't have a sequence, so it will set
``Piano1'' for the first bar, then ``Strings'' for the second (so far,
so good). But, when it does the third bar (an A<SMALL>RPEGGIO</SMALL>) it will
not know that the voice has been changed to ``Strings'' by the
<SPAN CLASS="textit">Scale</SPAN> track.
<P>
So, the general rule for track channel sharing is to use only one
voice.
<P>
One more example which doesn't work:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Arpeggio Sequence A8
<BR>
Scale Sequence S4
<BR>
Arpeggio Voice Piano1
<BR>
Scale Voice Piano1
<BR>
Scale ChShare Arpeggio </B>
</td></tr>
</Table>
<P>
This example has an active scale and arpeggio sequence in each bar.
Since both use the same voice, you may think that it will work just
fine ... but it may not. The problem here is that
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> will
generate MIDI on and off events which may overlap each other. One or
the other will be truncated. If you are using a different octave, it
will work much better. It may sound okay, but you should probably find
a better way to do this.
<P>
When a C<SMALL>H</SMALL>S<SMALL>HARE</SMALL> directive is parsed the ``shared'' channel is
first checked to ensure that it has been assigned. If not currently
assigned, the assignment is first done. What this means is that you
are subverting
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> 's normal dynamic channel allocation scheme. This
may cause is a depletion of available channels.
<P>
Please note that that the use of the C<SMALL>H</SMALL>S<SMALL>HARE</SMALL> command is
probably never really needed, so it might have more problems than
outlined here. If you want to see how much a bother channel sharing
becomes, have a look at the standard library file
<TT><SPAN CLASS="textbf">frenchwaltz.mma</SPAN></TT>. All this so the accordion bass can use one
channel instead of 6. If I were to write it again I'd just let it suck
up the MIDI channels.
<P>
For another, simpler, way of reassigning MIDI tracks and letting
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT>
do most of the work for you, refer to the
<A HREF="node29.html#sec-delete">D<SMALL>ELETE</SMALL> command</A>.
<P>
<H1><A NAME="SECTION002440000000000000000">
ChannelInit</A>
</H1>
<P>
In order to properly configure a MIDI device, it is often convenient
to send arbitrary commands to selected tracks before any musical data
is played. One way to do this in
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> is with the
<A HREF="#sec-midi">M<SMALL>IDI</SMALL> command</A>. One problem with using M<SMALL>IDI</SMALL> is that you
really don't know track assignments until after the compilation is
completed ... so you end up sending data to the meta track and
effect all the tracks in your file.
<P>
The C<SMALL>HANNEL</SMALL>I<SMALL>NIT</SMALL> command delays any action until the specified
MIDI channel is assigned to a track. A simple example is to set the
drum set pan:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>ChannelInit Channels=10 MidiPan 20 </B>
</td></tr>
</Table>
<P>
In this case we know that all the drum channels are assigned to
channel 10. When the first note data is written to any of the drum
tracks, the M<SMALL>IDI</SMALL>P<SMALL>AN</SMALL> command is inserted. The action is only
preformed one time.
<P>
The author likes to set all channels, with the exception of the
keyboard channel 1, to a volume of 80.
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>ChannelInit channels=2-16 MidiVolume m </B>
</td></tr>
</Table>
<P>
If the C<SMALL>HANNELS</SMALL> option is not specified all channels (1-16)
will be effected.
<P>
The command will be processed only when the channel is assigned to a
track ... if the channel is not used the data is discarded.
<P>
The C<SMALL>HANNELS</SMALL> option takes a list of channels, each with a
single comma separator (3,4,5) and/or a range separated by a single
hyphen (2-6). Duplicate channels are ignored.
<P>
<H1><A NAME="SECTION002450000000000000000">
ForceOut</A>
</H1>
<P>
Under normal conditions
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> only generates the MIDI tracks it thinks
are valid or relevant. So, if you create a track but insert no note
data into that track it will not be generated. An easy way to verify
this is by creating file and running
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> with the -c command line
option. Lets start off by creating a file you might think will set the
keyboard channel on your synth to a TenorSax voice:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Begin Solo-Keyboard
<BR> Channel 1
<BR> Voice TenorSax
<BR> MIDIVolume 100
<BR>
End </B>
</td></tr>
</Table>
<P>
If you test this you should get:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>$ mma test -c
<BR>
<BR>
File 'test' parsed, but no MIDI file produced!
<BR>
<BR>
Tracks allocated:
<BR> SOLO-KEYBOARD
<BR>
<BR>
Channel assignments:
<BR>
1 SOLO-KEYBOARD
<BR> </B>
</td></tr>
</Table>
<P>
So, a
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> track will be created. But if you compile this file and
examine the resulting MIDI file you will find that the voice <SPAN CLASS="textit">has
not</SPAN> been set.<A NAME="tex2html93"
HREF="#foot13262"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A>
<P>
To overcome this, insert the F<SMALL>ORCE</SMALL>O<SMALL>UT</SMALL> command at the end of the
track setup.
<P>
For example, here is a more complete file which will set the keyboard
track (MIDI channel 1) to TenorSax with a volume of 100, play a bar of
accompaniment, set a Trumpet voice with a louder volume, play another
bar, and finally reset the keyboard to the default Piano voice. A cool
way to program your keyboard for different voicing changes so you can
have more fun doing play-a-longs.
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Groove BossaNova
<BR>
<BR>
Begin Solo
<BR> Channel 1
<BR> Voice TenorSax
<BR> MIDIVolume 100
<BR> ForceOut
<BR>
End
<BR>
<BR>
1 C
<BR>
<BR>
Begin Solo
<BR> Voice Trumpet
<BR> MIDIVolume 120
<BR> ForceOut
<BR>
End
<BR>
<BR>
2 G
<BR>
<BR>
Begin Solo
<BR> Voice Piano1
<BR> MIDIVolume 127
<BR> ForceOut
<BR>
End
<BR> </B>
</td></tr>
</Table>
<P>
Note: The same or similar results could be accomplished with the
MIDI command; however, it's a bit harder to use and the
commands would be in the Meta track.
<P>
<H1><A NAME="SECTION002460000000000000000"></A>
<A NAME="sec-midi"></A>
<BR>
MIDI
</H1>
<P>
The complete set of MIDI commands is not limitless--but from this end
it seems that adding commands to suit every possible configuration is
never-ending. So, in an attempt to satisfy everyone, a command which
will place any arbitrary MIDI stream in your tracks has been
implemented. In most cases this will be a MIDI ``Sysex'' or ``Meta''
event.
<P>
For example, you might want to start a song off with a MIDI reset:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDI 0xF0 0x05 0x7e 0x7f 0x09 0x01 0xf7 </B>
</td></tr>
</Table>
<P>
The values passed to the MIDI command are normal integers; however,
they must all be in the range of 0x00 to 0xff. In most cases it is
easiest to use hexadecimal numbers by using the ``0x'' prefix. But,
you can use plain decimal integers if you prefer.
<P>
In the above example:
<P>
<DL COMPACT>
<DT> 0xF0</DT>
<DD>Designates a SYSEX message
<P>
</DD>
<DT> 0x05</DT>
<DD>The length of the message
<P>
</DD>
<DT> 0x7e</DT>
<DD>... The actual message
<P>
</DD>
</DL>
<P>
Another example places the key signature of F major (1 flat) in the
meta track:<A NAME="tex2html94"
HREF="#foot13894"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">2</SPAN></SUP></A>
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDI 0xff 0x59 0x02 0xff 0x00 </B>
</td></tr>
</Table>
<P>
Some <SPAN CLASS="textit">cautions:</SPAN>
<UL>
<LI>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> makes no attempt to verify the validity of the data!
<P>
</LI>
<LI>The ``Length'' field must be manually calculated.
<P>
</LI>
<LI>Malformed sequences can create non-playable MIDI files. In
extreme situations, these might even damage your synth. You are on
your own with this command ... be careful.
<P>
</LI>
<LI>The M<SMALL>IDI</SMALL> directive always places data in the <SPAN CLASS="textit">Meta</SPAN>
track at the current time offset into the file. This should not be a
problem.
<P>
</LI>
</UL>
<P>
Cautions aside, <TT><SPAN CLASS="textbf">includes/init.mma</SPAN></TT> has been included in this
distribution. I use this without apparent problems; to use it add the
command line:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MMAstart init </B>
</td></tr>
</Table>
<P>
in your <SMALL>MMARC</SMALL> file. The file is pretty well commented and it
sets a synth up to something reasonably sane.
<P>
If you need a brief delay after a raw MIDI command, it is possible to
insert a silent beat with the <A HREF="node17.html#beatadjust">B<SMALL>EAT</SMALL>A<SMALL>DJUST</SMALL>
command</A>. See
the file <TT><SPAN CLASS="textbf">includes/reset.mma</SPAN></TT> for an example.
<P>
<H1><A NAME="SECTION002470000000000000000"></A> <A NAME="sec-midiclear"></A>
<BR>
MIDIClear
</H1>
<P>
As noted earlier in this manual you should be very careful in
programming MIDI sequences into your song and/or library files. Doing
damage to a synthesizer is probably a remote possibility ... but
leaving it in a unexpected mode is likely. For this reason the
MIDIC<SMALL>LEAR</SMALL> command has been added as a companion to the
MIDIV<SMALL>OICE</SMALL> and MIDIS<SMALL>EQ</SMALL> commands.
<P>
Each time a MIDI track (not necessary the same as a
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> track) is
ended or a new G<SMALL>ROOVE</SMALL> is started, a check is done to see if any
MIDI data has been inserted in the track with a MIDIV<SMALL>OICE</SMALL> or
MIDIS<SMALL>EQ</SMALL> command. If it has, a further check is done to see if
there is an ``undo'' sequence defined via a MIDIC<SMALL>LEAR</SMALL> command.
That data is then sent; or, if data has not be defined for the track,
a warning message is displayed.
<P>
The MIDIC<SMALL>LEAR</SMALL> command uses the same syntax as MIDIV<SMALL>OICE</SMALL>
and MIDIS<SMALL>EQ</SMALL>; however, you cannot specify different sequence
for different bars in the sequence:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass-Funky MIDIClear 1 Modulation 0; 1 ReleaseTime 0 </B>
</td></tr>
</Table>
<P>
As in MIDIV<SMALL>OICE</SMALL> and MIDIS<SMALL>EQ</SMALL> you can include sequences
defined in a MIDID<SMALL>EF</SMALL> (see below). The
<beat>offsets are required, but ignored.
<P>
<H1><A NAME="SECTION002480000000000000000"></A> <A NAME="midicue"></A>
<BR>
MIDICue
</H1>
<P>
MIDI files can contain ``cue points'' to be used as pointers to
sections of the file. In
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> you can insert these in the meta-track:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiCue Begin slow portion of song </B>
</td></tr>
</Table>
<P>
or in a specified track:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord MidiCue Chords get louder here </B>
</td></tr>
</Table>
<P>
Not all MIDI sequencers or editors recognize this event.
<P>
The text for this command is queued until the track is created. If the
specified track is never created the text is discarded.
<P>
<H1><A NAME="SECTION002490000000000000000"></A> <A NAME="midicopyright"></A>
<BR>
MIDICopyright
</H1>
<P>
Inserting a copyright message into a MIDI file may be a good idea, and
it's simple enough to do.
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiCopyright (C) Bob van der Poel 2044 </B>
</td></tr>
</Table>
<P>
will insert the message ``(C)..'' as the first item in the first track
of the generated file.<A NAME="tex2html95"
HREF="#foot13897"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">3</SPAN></SUP></A>You can have any number of M<SMALL>IDI</SMALL>C<SMALL>OPYRIGHT</SMALL> messages in your file.
They will be inserted sequentially at the head of the file. Command
placement in your input file has no effect on the positioning.
<P>
<H1><A NAME="SECTION0024100000000000000000"></A> <A NAME="mididef"></A>
<BR>
MIDIDef
</H1>
<P>
To make it easier to create long sets of commands for MIDIS<SMALL>EQ</SMALL>
and MIDIC<SMALL>LEAR</SMALL> you can create special macros. Each definition
consists of a symbolic name, a beat offset, a controller name and a
value. For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDIdef Rel1 1 ReleaseTime 50; 3 ReleaseTime 0 </B>
</td></tr>
</Table>
<P>
creates a definition called ``Rel1'' with two controller events. The
controller names can be a single value or a permitted symbolic name
<A HREF="node35.html#sec-controllers">(here)</A>.
<P>
You can have multiple controller events. Just list them with ``;''
delimiters.
<P>
<H1><A NAME="SECTION0024110000000000000000"></A> <A NAME="midicresc"></A>
<BR>
MIDICresc and MIDIDecresc
</H1>
<P>
Much like the C<SMALL>RESC</SMALL> and D<SMALL>ECRESC</SMALL>
<A HREF="node19.html#track-cresc">(here)</A> commands, these
commands change volume over a set number of bars. However, unlike the
previously mentioned commands, these commands utilize the MIDI Channel
Volume settings <A HREF="#channelvol">(here)</A> or, if
used in a non-track area, the MIDI device's master volume.
<P>
The two commands are identical, with the exception that
MIDIC<SMALL>RESC</SMALL> prints a warning if the second argument is smaller
than the first and MIDID<SMALL>ECRESC</SMALL> prints a warning if the second
argument is larger than the first.
<P>
For tracks, the first two arguments are MIDI values in the range 0 to
127. The third argument is the number of bars to apply the command
over.
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> distributes the needed values evenly over the bar range.
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> assumes that your song will be long enough for the specifed bar
count; if the song is too short you will end up with volume settings
past the end of the song (the MIDI file will be expanded for this).
<P>
To change the MIDI channel volume of the Bass track over three and a
half bars:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass MidiCresc 50 100 3.5 </B>
</td></tr>
</Table>
<P>
The volume arguments for this command can also be set using the
standard volume mnemonics ``m'', ``p'', etc. (see
<A HREF="node19.html#volume-table">here</A>).
<P>
For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord MidiDecresc mf pp 2 </B>
</td></tr>
</Table>
<P>
When used in a non-track area the values for volumes range from 0 to
16383<A NAME="tex2html96"
HREF="#foot13361"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">4</SPAN></SUP></A> and can be set as a
value or via the standard ``m'', ``mp'', etc. mnemonics.
<P>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> keeps track of channel settings, so you can skip the initial
volume:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass MidiCresc ffff 1 </B>
</td></tr>
</Table>
<P>
For non-track usage the volume range is from 0 to 16383. In addition,
the command takes an optional S<SMALL>TEP</SMALL> setting. By default a step
rate of ``10'' is used, but this might be too course or fine for your
song. Setting a larger value will generate fewer commands.
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT>
tracks the master volume so the initial setting is optional (it is
assumed to be set to the maximum value at startup). Examples:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiCresc mp mf 3 </B>
</td></tr>
</Table>
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiDecresc p 2 Step=5 </B>
</td></tr>
</Table>
<P>
Please read the discussion for MIDIV<SMALL>OLUME</SMALL>
<A HREF="#channelvol">(here)</A> for more details.
<P>
<H1><A NAME="SECTION0024120000000000000000"></A> <A NAME="midismf"></A>
<BR>
MIDIFile
</H1>
<P>
This option controls some fine points of the generated MIDI file. The
command is issued with a series of parameters in the form
``MODE=VALUE''. You can have multiple settings in a single
MIDIF<SMALL>ILE</SMALL> command.
<P>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> can generate two types of SMF (Standard MIDI Files):
<DL COMPACT>
<DT>0.</DT>
<DD>This file contains only one track into which the data for
all the different channel tracks has been merged. A number of synths
which accept SMF (Casio, Yamaha and others) only accept type 0
files.
<P>
</DD>
<DT>1.</DT>
<DD>This file has the data for each MIDI channel in its own
track. This is the default file generated by
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> .
<P>
</DD>
</DL>
<P>
You can set the filetype in an RC file (or, for that matter, in any
file processed by
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> ) with the command:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiFile SMF=0 </B>
</td></tr>
</Table>
<P>
or
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiFile SMF=1 </B>
</td></tr>
</Table>
<P>
You can also set it on the command line with the -M option. Using the
command line option will override the M<SMALL>IDI</SMALL>SMF command if it is
in a RC file.
<P>
By default
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> uses ``running status'' when generating MIDI files.
This can be disabled with the command:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiFile Running=0 </B>
</td></tr>
</Table>
<P>
or enabled (but this is the default) with:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiFile Running=1 </B>
</td></tr>
</Table>
<P>
Files generated without running status will be about 20 to 30% larger
than their compressed counterparts. They may be useful for use with
brain-dead sequencers and in debugging generated code. There is no
command line equivalent for this option.
<P>
<H1><A NAME="SECTION0024130000000000000000">
MIDIGlis</A>
</H1>
<P>
This sets the MIDI portamento<A NAME="tex2html97"
HREF="#foot13390"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">5</SPAN></SUP></A> (in case you're new to all this, portamento is like
glissando between notes--wonderful, if you like trombones! To enable
portamento:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Arpeggio MIDIGlis 30 </B>
</td></tr>
</Table>
<P>
The parameter can be any value between 1 and 127. To turn the sliding
off:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Arpeggio MIDIGlis 0 </B>
</td></tr>
</Table>
<P>
This command will work with any track (including drum tracks).
However, the results may be somewhat ``interesting'' or
``disappointing'', and many MIDI devices don't support portamento at
all. So, be cautious. The data generated is not sent into the MIDI
stream until musical data is created for the relevant MIDI channel.
<P>
<H1><A NAME="SECTION0024140000000000000000">
MIDIWheel</A>
</H1>
<P>
Many MIDI synths have a nice little knob or wheel on one side which is
used to adjust the pitch.<A NAME="tex2html98"
HREF="#foot13899"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">6</SPAN></SUP></A> The
effect is known as ``pitch bend''.
<P>
When a MIDI controller is in default mode this controller is set to a
a value of 0x2000 (decimal 8192). Increasing the value raises the
pitch; lowering does the opposite.
<P>
In
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> the command effects only one track at time. A number of
settings are generated depending on the various parameters. The
command is used in a command like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiWheel Duration=4 Offset=2 Start=1000 End=9000 </B>
</td></tr>
</Table>
<P>
The following options, all are in option=value pairs, are recognized:
<P>
<DL>
<DT><STRONG>CYCLE</STRONG></DT>
<DD>If you use the S<SMALL>TART</SMALL>/E<SMALL>ND</SMALL> options below the
wheel will be adjusted from one value to the other over the D<SMALL>URATION</SMALL> period of
time. If you enable C<SMALL>YCLE</SMALL> it runs from S<SMALL>TART</SMALL> to
E<SMALL>ND</SMALL> and then back to S<SMALL>TART</SMALL> .... To enable this
option use ``C<SMALL>YCLE=</SMALL>O<SMALL>N</SMALL>'' and ``C<SMALL>YCLE=</SMALL>O<SMALL>FF</SMALL>'' to disable (probably never needed).
<P>
</DD>
<DT><STRONG>DURATION</STRONG></DT>
<DD>The duration for the effect in beats. This value must
be greater than 0. You can append a single ``m'' or ``M'' to the end
of the value to specify bars. So ``D<SMALL>URATION=8</SMALL>'' and ``D<SMALL>URATION=2M</SMALL>''
would be the same (assuming <SPAN CLASS="textbf">4/4</SPAN> time.
<P>
</DD>
<DT><STRONG>END</STRONG></DT>
<DD>The last value to use. This must be an integer between 0
and 16383.<A NAME="tex2html99"
HREF="#foot13413"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">7</SPAN></SUP></A> If you set an E<SMALL>ND</SMALL>
value, you must also set the S<SMALL>TART</SMALL>, below.
<P>
</DD>
<DT><STRONG>OFFSET</STRONG></DT>
<DD>An optional offset (in beats) to start the operation. By
default this is set to ``0'' (the current song position). You can
use any value (include negative values which will cause the
operation to take place before the current position). Partial beats
can be set using a decimal number (eg 1.5). You can specify the
offset in measures (or partial measures) by appending a single ``m''
or ``M'' to the value.
<P>
</DD>
<DT><STRONG>RATE</STRONG></DT>
<DD>The duration of each plus specified as a note duration.
If, for example, you have have D<SMALL>URATION</SMALL> of ``1'' and a
R<SMALL>ATE</SMALL> of 8 (an eighth note), the effect will pulse 4 times.
(See <A HREF="node4.html#notelength">here</A> for details on how
to specify a note duration). Using smaller note durations will give
a faster pulse. Use this in conjunction with the C<SMALL>YCLE</SMALL>
option, above.
<P>
</DD>
<DT><STRONG>RESET</STRONG></DT>
<DD>By default a value of 0x2000 is sent at the conclusion of
the commands. This resets the controller to the default state. You
can override this by using the option ``Reset=No''; you can also use
``Reset=Yes'' to match the default.
<P>
You can also use a R<SMALL>ESET</SMALL> without an option to force an
immediate controller reset. In this case the command is translated
to S<SMALL>ET=</SMALL>C<SMALL>ENTER</SMALL>. It can be useful to use this at the start or
end of a song which may be in an unknown pitch bend.
<P>
</DD>
<DT><STRONG>SET</STRONG></DT>
<DD>This option takes a single value in the range 0 ... 16383
and sets the pitch bend controller to that value. You can use the
O<SMALL>FFSET</SMALL> setting in combination with this. Any other options
will be parsed, but ignored (a warning is issued).
<P>
</DD>
<DT><STRONG>START</STRONG></DT>
<DD>The first value to use. Like E<SMALL>ND</SMALL>, the range is 0
to 16383. If you use a S<SMALL>TART</SMALL> value, you must also use an
E<SMALL>ND</SMALL>, above.
<P>
</DD>
<DT><STRONG>STEP</STRONG></DT>
<DD>An optional step rate. By default, a step rate of 10 is
used. For very short or long effect durations or ranges you may wish
to change this. Small values (ie, 1, 2, 3) will generate more
commands and, in theory, will give a more gradual change; large
values will generate less commands and a courser change. In our
testing we find very little difference in different settings. Note:
you can use a large setting to force only one value being written
into the MIDI file--an instant pitch change.
<P>
</DD>
</DL>
<P>
When setting S<SMALL>TART</SMALL>, E<SMALL>ND</SMALL> or S<SMALL>ET</SMALL> you can use the
special value ``Center'' as a mnemonic for ``0x2000''. This value
represents the controller in the centered or default position.
<P>
A short example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Begin Solo
<BR> Octave 6
<BR> Articulate 100 // force full value of the note
<BR> Voice Strings
<BR> Riff 1+1e ;
<BR>
End
<BR>
<BR>
Solo MidiWheel Duration=1b offset=2 cycle=on \
<BR> Start=9000 End=7000 Step=2 Rate=8
<BR>
z * 2 // 2 bars for the solo note
<BR></B>
</td></tr>
</Table>
<P>
Not all MIDI devices support this option. The actual results are
highly controller dependent.
<P>
<H1><A NAME="SECTION0024150000000000000000"></A>
<A NAME="midi-inc"></A>
<BR>
MIDIInc
</H1>
<P>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> has the ability to include a user supplied MIDI file at any
point of its generated files. These included files can be used to play
a melodic solo over a
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> pattern or to fill a section of a song
with something like a drum solo.
<P>
When the MIDI<SMALL>INC</SMALL> command is encountered the current line is
parsed for options, the file is inserted into the stored MIDI stream,
and processing continues. The include has no effect on any song
pointers, etc. Optionally, the MIDI data can be pushed into a
S<SMALL>OLO</SMALL> or M<SMALL>ELODY</SMALL> track and further processed by that
track's optional settings (see the file
<TT><SPAN CLASS="textbf">egs/midi-inc/README-riffs</SPAN></TT> for a detailed tutorial on this
option).
<P>
MIDI<SMALL>INC</SMALL> has a number of options, all set in the form
OPTION=VALUE. Following are the recognized options:
<P>
<DL>
<DT><STRONG>FILE</STRONG></DT>
<DD>The filename of the file to be included. This must be a
complete filename. The filename will be expanded by the Python
os.path.expanduser() function for tilde expansion. No prefixes or
extensions are added by
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> . Examples:
F<SMALL>ILE</SMALL>=<TT><SPAN CLASS="textbf">/home/bob/midi/myfile.mid</SPAN></TT>. or
F<SMALL>ILE</SMALL>=<TT><SPAN CLASS="textbf">~/sounds/myfile.mid</SPAN></TT>.
<P>
</DD>
<DT><STRONG>VOLUME</STRONG></DT>
<DD>An adjustment for the volume of all the note on events
in the included MIDI file. The adjustment is specified as a
percentage with values under 100 decreasing the volume and over 100
increasing it. If the resultant volume (velocity) is less than 1 a
velocity of 1 will be used; if it is over 127, 127 will be used.
Example: V<SMALL>OLUME=80</SMALL>.
<P>
</DD>
<DT><STRONG>STRETCH</STRONG></DT>
<DD>This option is used to ``stretch'' or ``compress'' a
file to match the timing of the
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> track. Values in the range of
1 to 500 are accepted. They specify, in percentage terms, the size
of adjustment. For example, S<SMALL>TRETCH=200</SMALL> will double the
duration of the imported file. This is useful when the time
signature of the current
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> file and the imported file differ.
See the discussion for a similar S<SMALL>OLO</SMALL> command
<A HREF="node10.html#solo-stretch">here</A>.
<P>
</DD>
<DT><STRONG>OCTAVE</STRONG></DT>
<DD>Octave adjustment for all notes in the file. Values in
the range -4 to 4 are permitted. Notes in drum tracks (channel 10)
will not be effected. Example: O<SMALL>CTAVE=2</SMALL>. Note: specifying an
octave does not set the selected track to that octave; it just
adjusts notes by 12 (or 24, etc) pitches up or down.
<P>
</DD>
<DT><STRONG>TRANSPOSE</STRONG></DT>
<DD>Transposition adjustment settings in the range -24 to
24 are permitted. If you do not set a value for this, the global
transpose setting will be applied (excepting channel 10, drum,
notes). Example: T<SMALL>RANSPOSE=-2</SMALL>. Having different values for
the global and import T<SMALL>RANSPOSE</SMALL> is fine and should work as
expected.
<P>
You should note that when you are using the T<SMALL>RACK </SMALL>R<SMALL>IFF</SMALL> (see
below) and T<SMALL>RANSPOSE</SMALL> options together you will end up with
two levels of tranposition: one from the M<SMALL>IDI</SMALL>I<SMALL>NC</SMALL> and a second
when the S<SMALL>OLO</SMALL> or M<SMALL>ELODY</SMALL> data generated is parsed. This
may <SPAN CLASS="textit">not</SPAN> be what you want.
<P>
</DD>
<DT><STRONG>LYRIC</STRONG></DT>
<DD>This option will copy any <SPAN CLASS="textit">Lyric</SPAN> events to the
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> meta track. The valid settings are ``On'' or ``Off''. By
default this is set to ``Off''. Example: L<SMALL>YRIC=</SMALL>O<SMALL>N</SMALL>.
<P>
</DD>
<DT><STRONG>TEXT</STRONG></DT>
<DD>This option will copy any <SPAN CLASS="textit">Text</SPAN> events to the
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT>
meta track. The valid settings are ``On'' or ``Off''. By default
this is set to ``Off''. Example: T<SMALL>EXT=</SMALL>O<SMALL>N</SMALL>.
<P>
</DD>
<DT><STRONG>START</STRONG></DT>
<DD>Specifies the start point <SPAN CLASS="textit">of the file to be
included</SPAN> in beats. For example, S<SMALL>TART=22</SMALL> would start the
include process 22 beats into the file. The data will be inserted at
the current song position in your MMA file. The value used must be
greater or equal to 0.
<P>
</DD>
<DT><STRONG>END</STRONG></DT>
<DD>Specifies the end point <SPAN CLASS="textit">of the file to be included</SPAN>
in beats. For example, E<SMALL>ND=100</SMALL> would discard all data after
100 beats in the file. The value used must be greater than the
S<SMALL>TART</SMALL> position.
<P>
</DD>
<DT><STRONG><SPAN CLASS="textit">Time Values</SPAN></STRONG></DT>
<DD>For S<SMALL>TART</SMALL> and E<SMALL>ND</SMALL> (above)
the offsets can be specified as a number representing the number of
the <SPAN CLASS="textit">beat</SPAN> to start or end the import; a number with a ``m'' or
``M'' appended for the number of the measure; or a number with a
``t'' or ``T'' to specify the number of MIDI ticks. Assuming a
``T<SMALL>IME</SMALL> 4'' setting, ``5'', ``1M'' and ``768t'' are identical.
In all cases you can use a fractional value: the middle of bar 2 is
2.5m.
<P>
</DD>
<DT><STRONG>Verbose</STRONG></DT>
<DD>Print additional debugging information about the
operation. To enable use V<SMALL>ERBOSE=</SMALL>O<SMALL>N</SMALL>; to duplicate the default
use V<SMALL>ERBOSE=</SMALL>O<SMALL>FF</SMALL>
<P>
</DD>
<DT><STRONG>REPORT</STRONG></DT>
<DD>Parse the MIDI file and print a summary report on the
terminal. The MIDI data is note inserted, nor is an output MIDI file
created. To enable, include R<SMALL>EPORT=</SMALL>O<SMALL>N</SMALL>; to duplicate the
default use R<SMALL>EPORT=</SMALL>O<SMALL>FF</SMALL>. The most useful information generated
are the note start data which you can use with S<SMALL>TRIP</SMALL>S<SMALL>ILENCE</SMALL>.
<P>
</DD>
<DT><STRONG>STRIPSILENCE</STRONG></DT>
<DD>By default,
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> will strip off any silence at
the start of an imported MIDI track. You can avoid this behaviour by
setting S<SMALL>TRIP</SMALL>S<SMALL>ILENCE=</SMALL>O<SMALL>FF</SMALL>, or set a specific amount to strip
with the S<SMALL>TRIP</SMALL>S<SMALL>ILENCE=</SMALL>V<SMALL>ALUE</SMALL> option. To duplicate the default,
use S<SMALL>TRIP</SMALL>S<SMALL>ILENCE=</SMALL>O<SMALL>N</SMALL>.
<P>
A problem with deleting silence is that different tracks in your
file may have different ``start'' points. If you are having a
problem with included data not starting where you think it should,
examine the file with the R<SMALL>EPORT</SMALL> or V<SMALL>ERBOSE</SMALL> option(s),
above, and set the S<SMALL>TRIP</SMALL>S<SMALL>ILENCE</SMALL> factor manually. Eg:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiInc File=myfile.mid Solo=1 StripSilence=2345 </B>
</td></tr>
</Table>
<P>
</DD>
<DT><STRONG>IGNOREPC</STRONG></DT>
<DD>A MIDI file being imported may contain Program Change
commands (voice changes). By default
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> will strip these out so
that the voices set in the
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> track are used. However, you can
override this by setting I<SMALL>GNORE</SMALL>PC=F<SMALL>ALSE</SMALL>. To duplicate the
default, use I<SMALL>GNORE</SMALL>PC=T<SMALL>RUE</SMALL>.<A NAME="tex2html100"
HREF="#foot13502"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">8</SPAN></SUP></A>
<P>
</DD>
<DT><STRONG><SPAN CLASS="textit">TRACK</SPAN></STRONG></DT>
<DD>A trackname <SPAN CLASS="textit">must be set</SPAN> into which notes
are inserted. You can set more than one track/channel if you wish.
For example, if you have the option DRUM=10 any notes in the
MIDI file with a channel 10 setting would be inserted into the
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT>
D<SMALL>RUM</SMALL> track. Similarity, S<SMALL>OLO-</SMALL>T<SMALL>ENOR=1</SMALL> will copy notes
from channel 1 into the S<SMALL>OLO-</SMALL>T<SMALL>ENOR</SMALL> track. If the track
doesn't exist, it will be created. Note: this means that the channel
assignment in your included file and the new
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> generated file
will most likely be different.
<P>
<DL>
<DT><STRONG>Riff</STRONG></DT>
<DD>To convert the data in the imported track into data that
a S<SMALL>OLO</SMALL> or M<SMALL>ELODY</SMALL> track can process append the
keyword R<SMALL>IFF</SMALL> to the channel number with a comma. The note
on/off data will be converted into R<SMALL>IFF</SMALL> commands and pushed
into the specified track. An imported R<SMALL>IFF</SMALL> will inherit
V<SMALL>OICE</SMALL>, H<SMALL>ARMONY</SMALL> and other track parameters.
<P>
</DD>
<DT><STRONG>Sequence</STRONG></DT>
<DD>Imported data can also be converted into a
S<SMALL>EQUENCE</SMALL> for a S<SMALL>OLO</SMALL> or M<SMALL>ELODY</SMALL> track. Simply
append the keyword S<SMALL>EQUENCE</SMALL> to the channel number with a
comma (just like R<SMALL>IFF</SMALL>, above). This can be useful in
importing drum tracks from existing MIDI files. You will need to
play with the S<SMALL>TART</SMALL> and E<SMALL>ND</SMALL> settings to limit the
size of the imported section so that it matches your sequence
size.
<P>
Because the MIDI data is converted to numeric pitch values (not
mnuemoic values like ``a'', ``b'', etc.), data imported into a
M<SMALL>ELODY</SMALL> or S<SMALL>OLO</SMALL> track as a R<SMALL>IFF</SMALL> or
S<SMALL>EQUENCE</SMALL> is not be effected by the track's O<SMALL>CTAVE</SMALL>
setting.
<P>
</DD>
<DT><STRONG>Print</STRONG></DT>
<DD>Further, you can append the keyword P<SMALL>RINT</SMALL>. The
generated R<SMALL>IFF</SMALL>s or S<SMALL>EQUENCE</SMALL>s will not be inserted
into the track but displayed on your computer monitor. This can be
useful for debugging or to generate lines which can be edited and
inserted into a song file.
<P>
</DD>
<DT></DT>
<DD>It is recommended that you <SPAN CLASS="textit">not</SPAN> use the R<SMALL>IFF</SMALL> and
S<SMALL>EQUENCE</SMALL> options in production code. With the P<SMALL>RINT</SMALL>
option you can easily capture data and incorporate that directly
into your files without concern for missing or changing include
files.
<P>
</DD>
</DL>
<P>
<SPAN CLASS="textit">At least one T<SMALL>RACK</SMALL> option is required to include a MIDI
file. It is up to the user to examine existing MIDI files to
determine the tracks being used and which to include into
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> 's
output.</SPAN>
<P>
</DD>
</DL>
<P>
A short example which you could insert into a
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> file is really
this simple:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDIinc File=test.mid Solo-Piano=1 Drum=10 Volume=70 </B>
</td></tr>
</Table>
<P>
This will include the MIDI file ``test.mid'' at the current position
and assign all notes in channel 1 to the <SPAN CLASS="textit">Solo-Piano</SPAN> track and
the notes from channel 10 to the <SPAN CLASS="textit">Drum</SPAN> track. The volumes for
all the notes will be adjusted to 70% of that in the original.
<P>
Slighty more complicated (and probably silly):
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiInc File=test.mid Lyric=On Solo-Piano=1,Riff
Solo-harmony=1,riff Drum=10 Solo-Guitar=3 </B>
</td></tr>
</Table>
<P>
<P>
<BLOCKQUOTE>Will import the existing file ``test.mid'' and:
<BR></BLOCKQUOTE>
<P><DL>
<DT><STRONG>Lyrics</STRONG></DT>
<DD>will be read and inserted into the meta track,
</DD>
<DT><STRONG>Solo-Piano</STRONG></DT>
<DD>Data from channel 1 will be converted and inserted
into the S<SMALL>OLO-</SMALL>P<SMALL>IANO</SMALL> track as a series of R<SMALL>IFF</SMALL>s.
</DD>
<DT><STRONG>Solo-Harmony</STRONG></DT>
<DD>Data from channel 1 (again!) will be converted
and inserted into the S<SMALL>OLO-</SMALL>H<SMALL>ARMONY</SMALL> track as a series of
R<SMALL>IFF</SMALL>s.
</DD>
<DT><STRONG>Drum</STRONG></DT>
<DD>Channel 10 data will be copied into the D<SMALL>RUM</SMALL>
track.
</DD>
<DT><STRONG>Solo-Guitar</STRONG></DT>
<DD>Channel 3 data will be copied into the
S<SMALL>OLO-</SMALL>G<SMALL>UITAR</SMALL> track. Track settings (ie, Articulate, Harmony)
will <SPAN CLASS="textit">not</SPAN> be applied.
<P>
</DD>
</DL>
<P>
More complete examples of usage are shown in the directory
<TT><SPAN CLASS="textbf">egs/midi-inc</SPAN></TT> in the distribution.
<P>
A few notes:
<P>
<UL>
<LI>The import ignores the tempo setting in the MIDI header. Simply,
this means that the MIDI files to be included do not have to have
the same tempo.
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> assumes a beat division of 192 (this is set in
bytes 12 and 13 of the MIDI file). If the included file differs a
warning is printed and
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> will attempt to adjust the timings, but
there may be some (usually not noticeable) drift due to rounding.
<P>
The conversion from the imported file's beat divisions to
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> 's
are done as part of the read process. This means that any reported
information about offsets, etc. will be in
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> values, not the
values a different program or synth would report.
<P>
</LI>
<LI>The included MIDI file is parsed to find the offset of the first
note-on event. Notes to be included are set with their offsets
compensated by that time. This means that any silence at the start
of the included file is skipped (this may surprise you if you have
used the optional <SPAN CLASS="textit">Start</SPAN> setting). Please note the
S<SMALL>TRIP</SMALL>S<SMALL>ILENCE</SMALL> option, above, for one work-a-round.
<P>
</LI>
<LI>If you want the data from the included MIDI file to start
somewhere besides the start of the current bar you can use a
B<SMALL>EATADJUST</SMALL> before the M<SMALL>IDI</SMALL>I<SMALL>NC</SMALL>--use another to move
the pointer back right after the include to keep the song pointer
correct.
<P>
</LI>
<LI>Not all events in the included files are transferred: notably,
all system and meta events (other than text and lyric, see above)
are ignored.
<P>
</LI>
<LI>If you want to apply different V<SMALL>OLUME</SMALL> or other options to
different tracks, just do multiple includes of the same file (with
each include using a different track and options).
<P>
</LI>
<LI>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> assumes that all the option pairs are valid. If an option
pair isn't a real directive, it is assumed that the option is a
valid track name. So, a line like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiInc Files=test.mid Solo-Piano=1 Drum=10 Volume=70 </B>
</td></tr>
</Table>
<P>
will generate an error like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiInc: FILES is not a valid MMA track. </B>
</td></tr>
</Table>
<P>
Sorry, but we're not the best guessers or parsers in the world.
<P>
</LI>
</UL>
<P>
For short snippets of MIDI you can insert individual events using the
MIDIN<SMALL>OTE</SMALL> command <A HREF="#midi-note">(here)</A>.
<P>
<H1><A NAME="SECTION0024160000000000000000">
MIDIMark</A>
</H1>
<P>
You can insert a MIDI Marker event into the Meta track with this
command. The mark can be useful in debugging your MIDI output with a
sequencer or editor which supports Mark events (most do).
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiMark Label </B>
</td></tr>
</Table>
<P>
will insert the text ``Label'' at the current position. You can add an
optional negative or positive offset in beats:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiMark 2 Label4 </B>
</td></tr>
</Table>
<P>
will insert ``Label4'' 2 beats into the next bar.
<P>
Note: the ``mark'' inserted can only be a single word. If you need a
longer message see <A HREF="#midicue">M<SMALL>IDI</SMALL>C<SMALL>UE</SMALL></A> or
<A HREF="#miditext">M<SMALL>IDI</SMALL>T<SMALL>EXT</SMALL></A>.
<P>
<H1><A NAME="SECTION0024170000000000000000"></A>
<A NAME="midi-note"></A>
<BR>
MIDINote
</H1>
<P>
It is relatively easy to insert various melody and harmony notes into
a song with S<SMALL>OLO</SMALL> and other tracks. However, there are times
when you may wish to insert a set of notes complete with MIDI timing
and velocities. These values can be hand generated or created by an
external program.
<P>
The MIDIN<SMALL>OTE</SMALL> command is used to insert one or more MIDI note
on/off, controller or pitch bend events directly into a track. If you
have a large segment of MIDI data to insert you will probably want to
generate a MIDI file and insert it into your song with the
MIDII<SMALL>NC</SMALL> command <A HREF="#midi-inc">(here)</A>.
M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> is more suited for short segments.
<P>
<H2><A NAME="SECTION0024171000000000000000">
Setting Options</A>
</H2>
<P>
M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> has a number of settings which modify its behavior.
These options can be different for each track and are set on a
track-by-track basis. Options are reset to their defaults with the
S<SMALL>EQ</SMALL>C<SMALL>LEAR</SMALL> command (except for S<SMALL>OLO</SMALL> tracks). They are
<SPAN CLASS="textit">not</SPAN> saved or modified by G<SMALL>ROOVE</SMALL> commands.
<P>
M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> takes various options in the OPTION=VALUE notation.
Please note that options can appear on a line by themselves, or can be
mixed into a data/command line. The order is not important--all
option pairs are parsed out of an input line <SPAN CLASS="textit">before</SPAN> the actual
data is read. The following options are supported:
<P>
<DL>
<DT><STRONG>Transpose=On/Off</STRONG></DT>
<DD>By default MIDIN<SMALL>OTE</SMALL> ignores the global
T<SMALL>RANSPOSE</SMALL> setting. If enabled, each note will be adjusted by
the global setting. Careful with this: T<SMALL>RANSPOSE</SMALL> is a global
setting which effects <SPAN CLASS="textit">all</SPAN> tracks; M<SMALL>IDI</SMALL>N<SMALL>OTE </SMALL>T<SMALL>RANSPOSE</SMALL>
effects only the specified track.
<P>
</DD>
<DT><STRONG>Offsets=Beats/Ticks</STRONG></DT>
<DD>By default a MIDI tick offset into the
current position in the file is used. However, you can change this
to ``Beats'' so that conventional
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> beat offset are used (see
example below).
<P>
</DD>
<DT><STRONG>Duration=Notes/Ticks</STRONG></DT>
<DD>By default the note duration is specified
using MIDI ticks. Setting the value to ``Notes'' enables the use of
conventional
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> note durations (which are converted, internally,
to MIDI ticks.
<P>
</DD>
<DT><STRONG>Articulate=On/Off</STRONG></DT>
<DD>This option is OFF by default. If enabled the
current A<SMALL>RTICULATE</SMALL> <A HREF="node29.html#articulate">(details
here)</A> setting is applied to each event if
the duration is set to <SPAN CLASS="textit">Notes</SPAN>. Setting this option to ``off''
causes each note to have its full value. If using ``ticks'' (the
default) for the duration this command is ignored.
<P>
</DD>
<DT><STRONG>Octave=Value</STRONG></DT>
<DD>Octave adjustment will increase/decrease by the
set number of octaves for each note entered in a N<SMALL>OTE</SMALL>
command. Values in the range -4 to 4 are permitted. Notes in drum
tracks (channel 10) will not be effected. This has no effect on the
underlying track's octave. Any generated notes outside of the valid
MIDI range of 0 to 127 will be adjusted to fit the range.
<P>
</DD>
<DT><STRONG>Volume=Value</STRONG></DT>
<DD>Use this option to adjust the volume (velocity) of
the notes set with a N<SMALL>OTE</SMALL> command (useful if you have played
a melody on a keyboard and it is too loud/soft). The value is a
percentage adjustment factor and, by default, is set to 100. Values
greater than 100 will make notes louder and values less than 100
will make them softer. Using very large factors will cause all notes
to have maximum velocity (127); small factors will cause minimum
velocity. Generated values less than 1 are magically set to 1;
values greater than 127 are set to 127. The adjustment factor must
be greater than 0.
<P>
</DD>
<DT><STRONG>Adjust=Value</STRONG></DT>
<DD>This option is set to 0 by default. If a value is
set all future <SPAN CLASS="textit">Tick Offsets</SPAN> in M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> directives
will be adjusted by that value. This can be quite useful if you have
a set of note on/off events parsed from an existing MIDI file. Using
the A<SMALL>DJUST</SMALL> value can shift the series back and forth in your
song file. The setting has no effect when using Beat offsets.
<P>
</DD>
</DL>
<P>
To duplicate the default settings you might use a line like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord-Piano MidiNote Offsets=Ticks Duration=Ticks Articulate=Off
Transpose=Off Adjust=0 Volume=100 Octave=0 </B>
</td></tr>
</Table>
<P>
You can insert MIDI events directly into any track with a command line
like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote Note 1 c#+ 100 4 </B>
</td></tr>
</Table>
<P>
The valid commands are N<SMALL>OTE</SMALL> (note on/off event), C<SMALL>TRL</SMALL>
(controller event) and PB (pitch bend event), PBR
(series/range of pitch bend events), C<SMALL>H</SMALL>AT (a channel aftertouch
event) and C<SMALL>H</SMALL>ATR (series/range of channel aftertouch events).
Following is a detailed command set for each option:
<P>
<H2><A NAME="SECTION0024172000000000000000">
Note Events</A>
</H2>
<P>
A M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> N<SMALL>OTE</SMALL> event is specified with the ``Note''
keyword; however, the keyword doesn't need to be used. So:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote 1 65 100 4 </B>
</td></tr>
</Table>
<P>
and
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote Note 1 65 100 4 </B>
</td></tr>
</Table>
<P>
are equivalent.
<P>
After the command you need to specify the offset, pitch, velocity and
duration of the desired note.
<P>
<DL>
<DT><STRONG>Offset</STRONG></DT>
<DD>The offset into the current bar. The exact format
depends of the global setting use (Ticks or Beats). When using Ticks
(the default) the offset is simply inserted into the current bar at
the given offset. To insert an event at the start of the current bar
use ``0''. If using Beats, you can use any valid offset used in
defining patterns <A HREF="node4.html#beat-offset">(here)</A>.
Values less than 1 will place the event before the current bar.
Note: when using Tick offsets they will be adjusted by the global
A<SMALL>DJUST</SMALL> setting.
<P>
<UL>
<LI>The value for the offset can be negative. This will generate
an event before the start of the current bar and a warning message
will be displayed.
</LI>
<LI>Offsets can be fractional if using ``beats''. Fractional
values when using ``ticks'' will cause an error.
</LI>
</UL>
<P>
</DD>
<DT><STRONG>Note</STRONG></DT>
<DD>The next field represents the MIDI note or pitch or a set
of notes (a chord). Notes can be specified with their MIDI value (0
to 127) or using standard notation pitch mnemonics.
<P>
A single note is specified with a MIDI value or mnemonic; a chord
(multiple notes) is specified by appending each desired note with a
single comma. For example, to insert a C Major chord you could use
the line:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote Note 1 c,e,g 90 192 </B>
</td></tr>
</Table>
<P>
Pitch names are used just like you would in a S<SMALL>OLO</SMALL> or
M<SMALL>ELODY</SMALL> track <A HREF="node10.html#solo-pitch">(here)</A>.
The permitted syntax is limited to the letters 'a', 'b', 'c', 'd',
'e', 'f' or 'g' followed by an optional '&', '#' or 'n' and a
number of '-'s or '+'s. When a note pitch is specified by name the
O<SMALL>CTAVE</SMALL> setting for the track is honored. The current
K<SMALL>EY</SMALL>S<SMALL>IG</SMALL> is applied to <SPAN CLASS="textit">each</SPAN> chord. Accidentals, whether
set explicitly or from a key signature, <SPAN CLASS="textit">do not</SPAN> apply to
successive chords.<A NAME="tex2html101"
HREF="#foot13907"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">9</SPAN></SUP></A>They <SPAN CLASS="textit">do</SPAN> apply to successive notes in a chord, irrespective of
octave. So, the chord ``a#,a+,a++'' would have all three ``a''s
sharp.
<P>
For D<SMALL>RUM</SMALL> tracks and S<SMALL>OLO</SMALL> or M<SMALL>ELODY</SMALL> tracks which
have the ``DrumType'' attribute set, you can use drum tone mnemonics
<A HREF="node35.html#sec-drumnames">(here)</A>. The special tone
``*'' can be used to select the tone. In the case of M<SMALL>ELODY</SMALL>
and S<SMALL>OLO</SMALL> tracks the current default tone is used
<A HREF="node10.html#solo-default-tone">(here)</A>; for
D<SMALL>RUM</SMALL> tracks the currently selected T<SMALL>ONE</SMALL>
<A HREF="node4.html#drum-tone">(here)</A>. Use of the special
``*'' is useful when you have a series of drum events--changing
only the T<SMALL>ONE</SMALL> is much easier than changing a number of
M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> commands.
<P>
</DD>
<DT><STRONG>Velocity</STRONG></DT>
<DD>The ``volume'' of the note is set with a MIDI velocity
in the range 0 to 127. Notes with the velocity of 0 will, probably,
not sound.
<P>
</DD>
<DT><STRONG>Duration</STRONG></DT>
<DD>The length of the note is set in either MIDI ticks for
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> note durations, depending on the global ``Duration'' setting.
When using Ticks remember that 192 MIDI ticks equals a quarter note.
If you have enabled the Articulate setting and are using Note
durations the duration will be adjusted.
</DD>
</DL>
<P>
<UL>
<LI>When using ``note'' for the duration any valid
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> note length
is permitted. For example, using a duration of ``8+8'' would
generate the same duration as ``4''.
</LI>
<LI>The MIDIN<SMALL>OTE</SMALL> directive does not check for overlapping
notes of the same pitch. These are easy to create if long durations
are specified and may not give the desired results.
</LI>
<LI>The S<SMALL>WING</SMALL> setting is ignored.
</LI>
</UL>
<P>
<H2><A NAME="SECTION0024173000000000000000">
Controller Events</A>
</H2>
<P>
A MIDI controller event can be directly inserted at any point in our
song using a M<SMALL>IDI</SMALL>N<SMALL>OTE </SMALL>C<SMALL>ONTROLLER</SMALL> command. For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote Ctrl 3 Modulation 90 </B>
</td></tr>
</Table>
<P>
will insert a <SPAN CLASS="textit">Modulation</SPAN> control event. The necessary values
are:
<P>
<DL>
<DT><STRONG>Offset</STRONG></DT>
<DD>Same as for <SPAN CLASS="textit">Note</SPAN>. See above for details.
<P>
</DD>
<DT><STRONG>Controller</STRONG></DT>
<DD>This can be a value in the range 0 to 127 specifying
the MIDI controller or a symbolic name. See the appendix
<A HREF="node35.html#sec-controllers">, here,</A> for a list of
defined names.
<P>
</DD>
<DT><STRONG>Datum</STRONG></DT>
<DD>The ``parameter'' value for the controller. Must be in
the range 0 to 127.
<P>
</DD>
</DL>
<P>
<H2><A NAME="SECTION0024174000000000000000">
Pitch Bend</A>
</H2>
<P>
A MIDI Pitch Bend event can be directly inserted at any point in our
song using a M<SMALL>IDI</SMALL>N<SMALL>OTE </SMALL>PB command. For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote PB 3 934 </B>
</td></tr>
</Table>
<P>
<DL>
<DT><STRONG>Offset</STRONG></DT>
<DD>Same as for <SPAN CLASS="textit">Note</SPAN>. See above for details.
<P>
</DD>
<DT><STRONG>Value</STRONG></DT>
<DD>The value for a pitch bend event must be in the range
-8191 to +8192.<A NAME="tex2html102"
HREF="#foot13908"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">10</SPAN></SUP></A> The
exact effect of different values is device dependant; however, -8191
sets the pitch bend to ``as low as possible'', 8192 sets it ``as
high as possible'', and 0 resets the pitch to neutral.
<P>
</DD>
</DL>
<P>
<H2><A NAME="SECTION0024175000000000000000">
Pitch Bend Range</A>
</H2>
<P>
This command is just like P<SMALL>ITCH </SMALL>B<SMALL>END</SMALL>, described above, with the
added feature of creating a series of events over a period of time.
This makes it easy to create various ``swoops'' and ``slides'' in your
song. As always, the example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote PBR 20 3,4 0,1000 </B>
</td></tr>
</Table>
<P>
<DL>
<DT><STRONG>Count</STRONG></DT>
<DD>This sets the total number of events to insert. Each
event will be distributed over the specifed <SPAN CLASS="textit">offset range</SPAN>.
<P>
</DD>
<DT><STRONG>Offset Range</STRONG></DT>
<DD>Two values joined with a single comma. Both values
and the comma must be present. The first value is the first event
offset to use, the second is the last. Events will be evently
distributed over the two offsets. Each offset has the same format as
as for <SPAN CLASS="textit">Note</SPAN>.
<P>
</DD>
<DT><STRONG>Value Range</STRONG></DT>
<DD>Two values joined with a single comma. Both values
and the comma must be present. The first value is the initial pitch
bend setting; the second is the final. The values will be
incremented (or decremented) for each event offset according to the
<SPAN CLASS="textit">count</SPAN> value. See P<SMALL>ITCH </SMALL>B<SMALL>END</SMALL>, above, for the range
rules.
<P>
</DD>
</DL>
<P>
<H2><A NAME="SECTION0024176000000000000000">
Channel Aftertouch</A>
</H2>
<P>
MIDI channel aftertouch events can be directly inserted in a
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT>
song using the M<SMALL>IDI</SMALL>N<SMALL>OTE </SMALL>C<SMALL>H</SMALL>AT command. For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote ChAT 3 50 </B>
</td></tr>
</Table>
<P>
<DL>
<DT><STRONG>Offset</STRONG></DT>
<DD>Same as for <SPAN CLASS="textit">Note</SPAN>. See above for details.
<P>
</DD>
<DT><STRONG>Value</STRONG></DT>
<DD>The value for a channel aftertouch event must be in the
range 0 to 127. The exact effect of this command is highly specific
to different synths; however, it applies to all currently sounding
note events on the specified channel. On some hardware (or software)
the command is ignored; on others it effects the volume or vibrato.
<P>
</DD>
</DL>
<P>
<H2><A NAME="SECTION0024177000000000000000">
Channel Aftertouch Range</A>
</H2>
<P>
Just like C<SMALL>HANNEL </SMALL>A<SMALL>FTERTOUCH</SMALL>, described above, with the added
feature of creating a series of events over a period of time. Example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiNote ChATR 20 3,4 0,100 </B>
</td></tr>
</Table>
<P>
<DL>
<DT><STRONG>Count</STRONG></DT>
<DD>This sets the total number of events to insert. Each
event will be distributed over the specifed <SPAN CLASS="textit">offset range</SPAN>.
<P>
</DD>
<DT><STRONG>Offset Range</STRONG></DT>
<DD>Two values joined with a single comma. Both values
and the comma must be present. The first value is the first event
offset to use, the second is the last. Events will be evently
distributed over the two offsets. Each offset has the same format as
as for <SPAN CLASS="textit">Note</SPAN>.
<P>
</DD>
<DT><STRONG>Value Range</STRONG></DT>
<DD>Two values joined with a single comma. Both values
and the comma must be present. The first value is the initial pitch
bend setting; the second is the final. The values will be
incremented (or decremented) for each event offset according to the
<SPAN CLASS="textit">count</SPAN> value. See C<SMALL>HANNEL </SMALL>A<SMALL>FTERTOUCH</SMALL>, above, for the
range rules.
<P>
</DD>
</DL>
<P>
<DIV ALIGN="CENTER">
------------
</DIV>
<P>
<UL>
<LI>Remember that you can use hexadecimal notation for any of the
above commands. A hex value is one preceded by a ``0x'' ... the
decimal value 20 would be 0x14.
<P>
</LI>
<LI>M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> is unaffected by G<SMALL>ROOVE</SMALL> commands.
<P>
</LI>
<LI>Bar measure pointers are <SPAN CLASS="textit">not</SPAN> updated or affected.
<P>
</LI>
<LI>For an alternate method of including a complete MIDI file
directly into a track please see the MIDII<SMALL>NC</SMALL> command
<A HREF="#midi-inc">(here)</A>.
<P>
</LI>
<LI>Yet an another alternate method to be aware of is MIDI
<A HREF="#sec-midi">(here)</A> which places events
directly into the Meta track.
<P>
</LI>
</UL>
<P>
<H1><A NAME="SECTION0024180000000000000000">
MIDIPan</A>
</H1>
<P>
In MIDI-speak ``pan'' is the same as ``balance'' on a stereo. By
adjusting the MIDIP<SMALL>AN</SMALL> for a track you can direct the output to
the left, right or both speakers. Example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass MIDIPan 4 </B>
</td></tr>
</Table>
<P>
This command is only available in track mode. The data generated is
not sent into the MIDI stream until musical data is created for the
relevant MIDI channel.
<P>
The value specified must be in the range 0 to 127 (or a mnemonic list below), and must be an
integer.
<P>
A variation for this command is to have the pan value change over a
range of beats or measures:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo MidiPan 10 120 4 </B>
</td></tr>
</Table>
<P>
in this case you must give exactly 3 arguments:
<P>
<OL>
<LI>The initial pan value (0 to 127),
</LI>
<LI>The final pan value (0 to 127),
</LI>
<LI>The number of beats to apply the pan over. By appending a ``M''
to the beat count
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> will calculate the pan over a number of measures.
</LI>
</OL>
<P>
Using a beat count you can create interesting effects with different
instruments moving between the left and right channels.
<P>
MIDIP<SMALL>AN</SMALL> is not saved or restored by G<SMALL>ROOVE</SMALL> commands, nor
is it effected by S<SMALL>EQ</SMALL>C<SMALL>LEAR</SMALL>. A MIDIP<SMALL>AN</SMALL> is inserted
directly into the MIDI track at the point at which it is encountered
in the music file. This means that the effect of MIDIP<SMALL>AN</SMALL> will
be in use until another MIDIP<SMALL>AN</SMALL> is encountered.
<P>
MIDIP<SMALL>AN</SMALL> can be used in MIDI compositions to emulate the sound
of an orchestra. By assigning different values to different groups of
instruments, you can get the feeling of strings, horns, etc. all
placed in the ``correct'' position on the stage.
<P>
MIDIP<SMALL>AN</SMALL> can be used for much cruder purposes. When creating
accompaniment tracks for a mythical jazz group, you might set all the
bass tracks (Bass, Walk, Bass-1, etc) set to aMIDIP<SMALL>AN</SMALL> 0. Now,
when practicing at home you have a ``full band''; and the bass player
can practice without the generated bass lines simply by turning off
the left speaker.
<P>
Because most MIDI keyboard do not reset between tunes, there should be
a MIDIP<SMALL>AN</SMALL> to undo the effects at the end of the file.
Example:<A NAME="tex2html103"
HREF="#foot13909"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">11</SPAN></SUP></A>
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Include swing
<BR>
Groove Swing
<BR>
Bass MIDIPan 0
<BR>
Walk MIDIPan 0
<BR>
1 C
<BR>
2 C
<BR> ...
<BR>
123 C
<BR>
Bass MIDIPan 64
<BR>
Walk MIDIPan 64 </B>
</td></tr>
</Table>
<P>
To make setting easier and more consistent the following mnemonic
values may be used (case can be upper, lower or mixed):
<P>
<DIV ALIGN="CENTER">
<Table CellSpacing=0 Width="80%" Align="Center" CellPadding=10 BGColor="#dddddd" Border=3>
<tr> <td>
<TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="LEFT"><SPAN CLASS="textit">Symbolic Name</SPAN></TD>
<TD ALIGN="LEFT"><SPAN CLASS="textit">Actual Value</SPAN></TD>
</TR>
<TR><TD ALIGN="LEFT">Left100</TD>
<TD ALIGN="LEFT">0</TD>
</TR>
<TR><TD ALIGN="LEFT">Left90</TD>
<TD ALIGN="LEFT">6</TD>
</TR>
<TR><TD ALIGN="LEFT">Left80</TD>
<TD ALIGN="LEFT">13</TD>
</TR>
<TR><TD ALIGN="LEFT">Left70</TD>
<TD ALIGN="LEFT">19</TD>
</TR>
<TR><TD ALIGN="LEFT">Left60</TD>
<TD ALIGN="LEFT">25</TD>
</TR>
<TR><TD ALIGN="LEFT">Left50</TD>
<TD ALIGN="LEFT">31</TD>
</TR>
<TR><TD ALIGN="LEFT">Left40</TD>
<TD ALIGN="LEFT">39</TD>
</TR>
<TR><TD ALIGN="LEFT">Left30</TD>
<TD ALIGN="LEFT">44</TD>
</TR>
<TR><TD ALIGN="LEFT">Left20</TD>
<TD ALIGN="LEFT">50</TD>
</TR>
<TR><TD ALIGN="LEFT">Left10</TD>
<TD ALIGN="LEFT">57</TD>
</TR>
<TR><TD ALIGN="LEFT">Center</TD>
<TD ALIGN="LEFT">64</TD>
</TR>
<TR><TD ALIGN="LEFT">Right10</TD>
<TD ALIGN="LEFT">70</TD>
</TR>
<TR><TD ALIGN="LEFT">Right20</TD>
<TD ALIGN="LEFT">77</TD>
</TR>
<TR><TD ALIGN="LEFT">Right30</TD>
<TD ALIGN="LEFT">83</TD>
</TR>
<TR><TD ALIGN="LEFT">Right40</TD>
<TD ALIGN="LEFT">88</TD>
</TR>
<TR><TD ALIGN="LEFT">Right50</TD>
<TD ALIGN="LEFT">96</TD>
</TR>
<TR><TD ALIGN="LEFT">Right60</TD>
<TD ALIGN="LEFT">102</TD>
</TR>
<TR><TD ALIGN="LEFT">Right70</TD>
<TD ALIGN="LEFT">108</TD>
</TR>
<TR><TD ALIGN="LEFT">Right80</TD>
<TD ALIGN="LEFT">114</TD>
</TR>
<TR><TD ALIGN="LEFT">Right90</TD>
<TD ALIGN="LEFT">121</TD>
</TR>
<TR><TD ALIGN="LEFT">Right100</TD>
<TD ALIGN="LEFT">127</TD>
</TR>
</TABLE>
</td></tr>
</Table>
</DIV>
<P>
<H1><A NAME="SECTION0024190000000000000000">
MIDISeq</A>
</H1>
<P>
It is possible to associate a set of MIDI controller messages with
certain beats in a sequence. For example, you might want to have the
Modulation Wheel set for the first beats in a bar, but not for the
third. The following example shows how:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Seqsize 4
<BR>
Begin Bass-2
<BR>
Voice NylonGuitar
<BR>
Octave 4
<BR>
Sequence { 1 4 1 90; 2 4 3 90; 3 4 5 90; 4 4 1+ 90}
<BR>
MIDIDef WheelStuff 1 1 0x7f ; 2 1 0x50; 3 1 0
<BR>
MidiSeq WheelStuff
<BR>
Articulate 90
<BR>
End
<BR>
<BR>
C <SPAN CLASS="MATH">*</SPAN> 4 </B>
</td></tr>
</Table>
<P>
The M<SMALL>IDI</SMALL>S<SMALL>EQ</SMALL> command is specific to a track and is saved as part
of the G<SMALL>ROOVE</SMALL> definition. This lets style file writers use
enhanced MIDI features to dress up their sounds.
<P>
The command has the following syntax:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>TrackName MidiSeq <Beat> <Controller> <Datum> [ ; ...] </B>
</td></tr>
</Table>
<P>
where:
<DL>
<DT><STRONG>Beat</STRONG></DT>
<DD>is the Beat in the bar. This can be an integer (1,2, etc.)
or a floating point value (1.2, 2.25, etc.). It must be 1 or greater
and less than the end of bar (in <SPAN CLASS="textbf">4/4</SPAN> it must be less than
5).
<P>
</DD>
<DT><STRONG>Controller</STRONG></DT>
<DD>A valid MIDI controller. This can be a value in the
range 0x00 to 0x7f or a symbolic name. See the appendix
<A HREF="node35.html#sec-controllers">, here,</A> for a list of
defined names.
<P>
</DD>
<DT><STRONG>Datum</STRONG></DT>
<DD>All controller messages use a single byte ``parameter''
in the range 0x00 to 0x7f.
<P>
</DD>
</DL>
<P>
You can enter the values in either standard decimal notation or in
hexadecimal with the prefixed ``0x''. In most cases, your code will be
clearer if you use values like ``0x7f'' rather than the equivalent
``127''.
<P>
The MIDI sequences specified can take several forms:
<P>
<OL>
<LI>A simple series like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDISeq 1 ReleaseTime 50; 3 ReleaseTime 0 </B>
</td></tr>
</Table>
<P>
in this case the commands are applied to beats 1 and 3 in each bar
of the sequence.
<P>
</LI>
<LI>As a set of names predefined in an MIDID<SMALL>EF</SMALL> command:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDISeq Rel1 Rel2 </B>
</td></tr>
</Table>
<P>
Here, the commands defined in ``Rel1'' are applied to the first bar
in the sequence, ``Rel2'' to the second. And, if there are more bars
in the sequence than definitions in the line, the series will be
repeated for each bar.
<P>
</LI>
<LI>A set of series enclosed in { } braces. Each braced series is
applied to a different bar in the sequence. The example above could
have been does as:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDISeq { 1 ReleaseTime 50; 3 ReleaseTime 0 } \
<BR> { 2 ReleaseTime 50; 4 ReleaseTime 0 } </B>
</td></tr>
</Table>
<P>
</LI>
<LI>Finally, you can combine the above into different combinations.
For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDIDef Rel1 1 ReleaseTime 50
<BR>
MIDIDef Rel2 2 ReleaseTime 50
<BR>
MIDISeq { Rel1; 3 ReleaseTime 0 } { Rel2; 4 ReleaseTime 0 } </B>
</td></tr>
</Table>
<P>
</LI>
</OL>
<P>
You can have specify different messages for different beats (or
different messages/controllers for the same beat) by listing them on
the same M<SMALL>IDI</SMALL>S<SMALL>EQ</SMALL> line separated by ``;''s.
<P>
If you need to repeat a sequence for a measure in a sequence you can
use the special notation ``/'' to force the use of the previous line.
The special symbol ``z'' or ''-'' can be used to disable a bar (or
number of bars). For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass-Dumb MIDISeq 1 ReleaseTime 20 z / FOOBAR </B>
</td></tr>
</Table>
<P>
would set the ``ReleaseTime'' sequence for the first bar of the
sequence, no MIDISeq events for the second and third, and the contents
of ``FOOBAR'' for the fourth.
<P>
To disable the sending of messages just use a single ``-'':
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass-2 MidiSeq - // disable controllers </B>
</td></tr>
</Table>
<P>
<H1><A NAME="SECTION0024200000000000000000">
MIDISplit</A>
</H1>
<P>
For certain post-processing effects it is convenient to have each
different drum tone in a separate MIDI track. This makes it easier to
apply an effect to, for example, the snare drum. Just to make this a
bit more fun you can split any track created by
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> .
<P>
To use this feature:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDISplit <list of channels> </B>
</td></tr>
</Table>
<P>
So, to split out just the drum channel<A NAME="tex2html104"
HREF="#foot13912"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">12</SPAN></SUP></A> you would have the command:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDISplit 10 </B>
</td></tr>
</Table>
<P>
somewhere in your song file.
<P>
Alternately, you can use a track name. In this case the track, if not
already extant, will be created and the MIDI channel will be assigned.
So, rather than using a channel number, you can do something like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MIDISplit Drum </B>
</td></tr>
</Table>
<P>
When processing
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> creates an internal list of MIDI note-on events
for each tone or pitch in the track. It then creates a separate MIDI
track for each list. Any other events are written to another track.
<P>
Notes:
<UL>
<LI>This option is quite useful with drum tracks. By creating a
different track for each drum instrument you can easily modify them
in post production using a MIDI sequencer or editor. We're not sure
how useful a split piano track would be.
<P>
</LI>
<LI>Using multiple track names with the same channel assignment has
no effect. So,
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiSplit Drum Drum-HighHat Drum-Snare </B>
</td></tr>
</Table>
<P>
is the same as simply using ``Drum'' since all the drum track share
channel 10.
<P>
</LI>
<LI>Using this option with a type 0 SMF file (using the -M0 or the
M<SMALL>IDI</SMALL>F<SMALL>ILE </SMALL>SMF=0 option) will have no effect since the tracks
are collapsed.
</LI>
</UL>
<P>
<H1><A NAME="SECTION0024210000000000000000"></A>
<A NAME="miditext"></A>
<BR>
MIDIText
</H1>
<P>
This command inserts an arbitrary text string into a MIDI track at the
current file position:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord-Sus MidiText I just love violins. </B>
</td></tr>
</Table>
<P>
will insert the text event<A NAME="tex2html105"
HREF="#foot13913"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">13</SPAN></SUP></A> ``I just love violins.'' into the
C<SMALL>HORD-</SMALL>S<SMALL>US</SMALL> track.
<P>
Please note that if the specified track does not exist the text will
be queued. If the track is never created, the command is ignored.
<P>
You can also insert text into the Meta track:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiText A message in the Meta Track </B>
</td></tr>
</Table>
<P>
Since the Meta track always exists, no queueing is done.
<P>
<H1><A NAME="SECTION0024220000000000000000">
MIDITname</A>
</H1>
<P>
When creating a MIDI track,
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> inserts a MIDI Track Name event at
the start of the track. By default, this name is the same as the
associated
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> track name. You can change this by issuing the
MIDI<SMALL>T</SMALL>N<SMALL>AME</SMALL> command. For example, to change the C<SMALL>HORD</SMALL>
track name you might do something like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord MidiTname Piano </B>
</td></tr>
</Table>
<P>
Please note that this <SPAN CLASS="textit">only</SPAN> effects the tracks in the generated
MIDI file. You still refer to the track in your file as C<SMALL>HORD</SMALL>.
<P>
You can also use this command to rename the automatic name inserted
into the Meta track. When
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> starts it inserts a Track Name event
based on the filename at offset 0 in the Meta Track. For example, if
you have a
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> input file ``dwr.mma'' the a ``Meta SeqName'' event
``dwr'' will be inserted. A command like:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>MidiTName My version of ``Dancing with Roses'' </B>
</td></tr>
</Table>
<P>
anywhere in the input file will remove the original text and insert a
new event in its place.<A NAME="tex2html106"
HREF="#foot13914"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">14</SPAN></SUP></A>
<P>
<H1><A NAME="SECTION0024230000000000000000">
MIDIVoice</A>
</H1>
<P>
Similar to the MIDIS<SMALL>EQ</SMALL> command discussed in the previous
section, the MIDIV<SMALL>OICE</SMALL> command is used to insert MIDI
controller messages into your files. Instead of sending the data for
each bar as MIDIS<SMALL>EQ</SMALL> does, this command just sends the listed
control events at the start of a track and then, if needed, at the
start of each bar.
<P>
Again, a short example. Let us assume that you want to use the
``Release Time'' controller to sustain notes in a bass line:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Seqsize 4
<BR>
Begin Bass-2
<BR>
Voice NylonGuitar
<BR>
MidiVoice 1 ReleaseTime 50
<BR>
Octave 4
<BR>
Sequence { 1 4 1 90; 2 4 3 90; 3 4 5 90; 4 4 1+ 90 }
<BR>
Articulate 60
<BR>
End
<BR>
<BR>
C <SPAN CLASS="MATH">*</SPAN> 4 </B>
</td></tr>
</Table>
<P>
should give an interesting effect.
<P>
The syntax for the command is:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Track MIDIVoice <beat> <controller> <Datum> [; ...] </B>
</td></tr>
</Table>
<P>
This syntax is identical to that discussed in the section for
MIDIS<SMALL>EQ</SMALL>, above. The <beat>value is
required for the command--it determines if the data is sent before or
after the V<SMALL>OICE</SMALL> command is sent. Some controllers are reset by
a voice, others not. My experiments show that B<SMALL>ANK</SMALL> should be
sent before, most others after. Using a ``beat'' of ``0'' forces the
MidiVoice data to be sent before the Voice control; any other ``beat''
value causes the data to be sent after the Voice control. In this
silly example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Voice Piano1
<BR>
MidiVoice {0 Bank 5; 1 ReleaseTime 100} </B>
</td></tr>
</Table>
<P>
the MIDI data is created in an order like:
<P>
<P>
<BLOCKQUOTE>0 Param Ch=xx Con=00 val=05
<BR>
0 ProgCh Ch=xx Prog=00
<BR>
0 Param Ch=xx Con=72 val=80
</BLOCKQUOTE>
<P>
All the MIDI events occur at the same offset, but the order is (may
be) important.
<P>
By default
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> assumes that the MIDIVoice data is to be used only
for the first bar in the sequence. But, it's possible to have a
different sequence for each bar in the sequence (just like you can
have a different V<SMALL>OICE</SMALL> for each bar). In this case, group the
different data groups with {} brackets:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass-1 MIDIVoice {1 ReleaseTime 50} {1 ReleaseTime 20} </B>
</td></tr>
</Table>
<P>
This list is stored with other G<SMALL>ROOVE</SMALL> data, so is ideal for
inclusion in a style file.
<P>
If you want to disable this command after it has been issued you can
use the form:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Track MIDIVoice - // disable </B>
</td></tr>
</Table>
<P>
Some technical notes:
<P>
<UL>
<LI>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> tracks the events sent for each bar and will not duplicate
sequences.
<P>
</LI>
<LI>Be cautious in using this command to switch voice banks. If you
don't switch the voice bank back to a sane value you'll be playing
the wrong instruments!
<P>
</LI>
<LI>Do use the MIDIC<SMALL>LEAR</SMALL> command
(<A HREF="#sec-midiclear">details)</A> to
``undo'' anything you've done via a MIDIV<SMALL>OICE</SMALL> command.
<P>
</LI>
</UL>
<P>
<H1><A NAME="SECTION0024240000000000000000"></A> <A NAME="channelvol"></A>
<BR>
MIDIVolume
</H1>
<P>
MIDI devices equipped with mixer settings can make use of the
``Channel'' or ``Master'' volume settings.<A NAME="tex2html107"
HREF="#foot13870"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">15</SPAN></SUP></A>
<P>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> doesn't set any channel volumes without your knowledge. If you
want to use a set of reasonable defaults, look at the file
<TT><SPAN CLASS="textbf">includes/init.mma</SPAN></TT> which sets all channels other than ``1'' to
``100''. Channel ``1'' is assumed to be a solo/keyboard track and is
set to the maximum volume of ``127''.
<P>
You can set selected MIDIV<SMALL>OLUME</SMALL>s:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord MIDIVolume 55 </B>
</td></tr>
</Table>
<P>
will set the Chord track channel. For most users, the use of this
command is <SPAN CLASS="textit">not</SPAN> recommended since it will upset the balance of
the library grooves. If you need a track softer or louder you should
use the V<SMALL>OLUME</SMALL> setting (which changes the MIDI velocities of
each note) for the track.
<P>
The data generated is not sent into the MIDI stream until musical data
is created for the relevant MIDI channel.
<P>
More sophisticated MIDI programs use MIDI volume changes in
combination with velocity settings. If you are going to do a ``fancy
arrangement'' you'll probably be better of using a dedicated
sequencer/editor to make the track-by-track volume changes. On the
other hand, you may find that using MIDIV<SMALL>OLUME</SMALL>,
MIDIC<SMALL>RESC</SMALL> and MIDID<SMALL>ECRESC</SMALL>
<A HREF="#midicresc">(here)</A> works just fine.
<P>
The volume arguments for this command can also be set using the
standard volume mnemonics ``m'', ``p'', etc. (see
<A HREF="node19.html#volume-table">here</A>).
<P>
Caution: If you use the command with A<SMALL>LL</SMALL>T<SMALL>RACKS</SMALL> you should note
that only existing
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> tracks will be effected.
<P>
This command can be used in a non-track setting as well. In this case
the MIDI Master Volume is used and the volumes are in the range 0 to
16383.
<P>
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot13262">... set.</A><A
HREF="node24.html#tex2html93"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A></DT>
<DD>Depending on your initialization files,
there may be other information MIDI in the track which is inserted
into the output file.
</DD>
<DT><A NAME="foot13894">... track:</A><A
HREF="node24.html#tex2html94"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">2</SPAN></SUP></A></DT>
<DD>This is much easier to do with the KeySig
command, <A HREF="node29.html#keysig">here</A>
</DD>
<DT><A NAME="foot13897">... file.</A><A
HREF="node24.html#tex2html95"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">3</SPAN></SUP></A></DT>
<DD>A copyright message is set as a
meta-event with the coding <FF 02 Len Text>.
</DD>
<DT><A NAME="foot13361">...
16383</A><A
HREF="node24.html#tex2html96"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">4</SPAN></SUP></A></DT>
<DD>A 14 bit MIDI number, 0 to 0x3fff.
</DD>
<DT><A NAME="foot13390">... portamento</A><A
HREF="node24.html#tex2html97"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">5</SPAN></SUP></A></DT>
<DD>The name ``Glis'' is used
because ``MIDIPortamento'' gets to be a bit long to type and
``MIDIPort'' might be interpreted as something to do with
``ports''.
</DD>
<DT><A NAME="foot13899">... pitch.</A><A
HREF="node24.html#tex2html98"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">6</SPAN></SUP></A></DT>
<DD>Most of the time it sounds awful,
especially when the author of
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> is doing the twiddling.
</DD>
<DT><A NAME="foot13413">... 16383.</A><A
HREF="node24.html#tex2html99"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">7</SPAN></SUP></A></DT>
<DD>The values for the pitch bend are a 14 bit
integer, hence the range 0 ... 0x3fff.
</DD>
<DT><A NAME="foot13502">...I<SMALL>GNORE</SMALL>PC=T<SMALL>RUE</SMALL>.</A><A
HREF="node24.html#tex2html100"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">8</SPAN></SUP></A></DT>
<DD>``On'' and ``1'' can be
used instead of ``True''; ``Off'' and ``0'' can be used instead of
``False''.
</DD>
<DT><A NAME="foot13907">... chords.</A><A
HREF="node24.html#tex2html101"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">9</SPAN></SUP></A></DT>
<DD>The reason for this is that
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT>
doesn't really know when to stop applying an accidental in a set
of M<SMALL>IDI</SMALL>N<SMALL>OTE</SMALL> commands since they can easily span the current
bar. It is thought best to honor a key signature, but to reset it
for each chord. Not quite standard musical notation; but then
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> isn't notation.
</DD>
<DT><A NAME="foot13908">... +8192.</A><A
HREF="node24.html#tex2html102"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">10</SPAN></SUP></A></DT>
<DD>The number is a 14 bit value over 2 bytes.
Internally
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> converts the argument to a value 0 to 16383.
</DD>
<DT><A NAME="foot13909">...
Example:</A><A
HREF="node24.html#tex2html103"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">11</SPAN></SUP></A></DT>
<DD>This is much easier to do with the MMAStart and
MMAEnd options (<A HREF="node32.html#sec-paths">details)</A>.
</DD>
<DT><A NAME="foot13912">... channel</A><A
HREF="node24.html#tex2html104"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">12</SPAN></SUP></A></DT>
<DD>In
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> this will
always be channel 10.
</DD>
<DT><A NAME="foot13913">... event</A><A
HREF="node24.html#tex2html105"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">13</SPAN></SUP></A></DT>
<DD>This is a meta-event <FF
01 len msg>
</DD>
<DT><A NAME="foot13914">... place.</A><A
HREF="node24.html#tex2html106"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">14</SPAN></SUP></A></DT>
<DD>A Track Name (SeqName) message is set
as a meta-event with the coding <FF 03 Len
Text>.
</DD>
<DT><A NAME="foot13870">... settings.</A><A
HREF="node24.html#tex2html107"><SUP><SPAN CLASS="arabic">24</SPAN>.<SPAN CLASS="arabic">15</SPAN></SUP></A></DT>
<DD>I discovered this
on my keyboard after many frustrating hours attempting to balance
the volumes in the library. Other programs would change the keyboard
settings, and not being aware of the changes, I'd end up scratching
my head.
</DD>
</DL>
<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<A NAME="tex2html842"
HREF="node25.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html840"
HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html834"
HREF="node23.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html843"
HREF="node25.html">Patch Management</A>
<B> Up:</B> <A NAME="tex2html841"
HREF="mma.html">Reference Manual</A>
<B> Previous:</B> <A NAME="tex2html835"
HREF="node23.html">Plugins</A></DIV>
<!--End of Navigation Panel-->
<ADDRESS>
Bob van der Poel
2016-06-11
</ADDRESS>
</BODY>
</HTML>
|