x68000:mxdrv_mml_mdx_tutorial
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
x68000:mxdrv_mml_mdx_tutorial [2016/01/24 12:55] – [x68k Music: MXDRV MML/MDX Tutorial and Documentation] exodusmodules | x68000:mxdrv_mml_mdx_tutorial [2016/11/14 13:09] – [Making a PDX File] exodusmodules | ||
---|---|---|---|
Line 27: | Line 27: | ||
Kidding about the money part, although that doesn' | Kidding about the money part, although that doesn' | ||
- | LOL JK | + | LOL |
===== x68k Sound Information ===== | ===== x68k Sound Information ===== | ||
Line 36: | Line 36: | ||
The early models of the x68k have 8 channels of FM and 1 channel of ADPCM. | The early models of the x68k have 8 channels of FM and 1 channel of ADPCM. | ||
Later Sharp decided to expand the ADPCM audio, and added 7 extra channels of ADPCM, | Later Sharp decided to expand the ADPCM audio, and added 7 extra channels of ADPCM, | ||
- | dubbing the new ADPCM system the PCM8 expansion | + | dubbing the new ADPCM expansion |
which uses software mixing to add more ADPCM channels, but from what I've tested of it, it's a | which uses software mixing to add more ADPCM channels, but from what I've tested of it, it's a | ||
CPU cycle thief. There are other software mixing ADPCM TSR drivers, but I haven' | CPU cycle thief. There are other software mixing ADPCM TSR drivers, but I haven' | ||
- | MXDRV allows you to use PCM8 in addition to the normal FM Synthesis and ADPCM. | + | MXDRV allows you to use PCM8/Mercury expansion |
====== Required/ | ====== Required/ | ||
Line 129: | Line 129: | ||
http:// | http:// | ||
This page has a great deal of MML editors and compilers (though none for the x68k). | This page has a great deal of MML editors and compilers (though none for the x68k). | ||
- | It MML bundles | + | It has MML syntax highlighters |
- | Notepad++), | + | Notepad++), |
====== General MML Information ====== | ====== General MML Information ====== | ||
Line 419: | Line 419: | ||
0 < # < 255 | 0 < # < 255 | ||
- | | + | @v# |
| | ||
- | | + | Set fine volume (for a single channel) |
- | 0 < # < 255 | + | 0 < # < 255 |
- | This allows more precise control over the volume. For effects like fade-ins or | + | This allows more precise control over the volume. For effects like fade-ins or |
- | fade outs, you can use coarse volume instead (unless you find pain pleasurable) | + | fade outs, you can use coarse volume instead (unless you find pain pleasurable) |
- | A-H, P-W | + | A-H, P-W |
| | ||
- | Set channel | + | Set channel |
- | This macro must always appear at the very beginning of a line in which | + | This macro must always appear at the very beginning of a line in which |
- | you intend to sequence notes and macros. The exceptions are voice definitions, | + | you intend to sequence notes and macros. The exceptions are voice definitions, |
- | comments, and metadata definitions. | + | comments, and metadata definitions. |
Ex. A | Ex. A | ||
sets channel to A (FM channel 1) | sets channel to A (FM channel 1) | ||
Line 561: | Line 561: | ||
If you have all the required tools, you will need the following for compilation: | If you have all the required tools, you will need the following for compilation: | ||
+ | |||
1. A Sharp x68000 emulator - run68k is easy as it emulates human68k, although you | 1. A Sharp x68000 emulator - run68k is easy as it emulates human68k, although you | ||
could use a full Sharp x68k emulator | could use a full Sharp x68k emulator | ||
+ | |||
2. A Sharp x68k MDX compiler - mxc.x from MDX_TOOL is the one I use | 2. A Sharp x68k MDX compiler - mxc.x from MDX_TOOL is the one I use | ||
+ | |||
3. Your MML source code (go figure) as a .mml plain text file | 3. Your MML source code (go figure) as a .mml plain text file | ||
Line 612: | Line 615: | ||
After you finish your PDL file, you'll need to make your PDX. | After you finish your PDL file, you'll need to make your PDX. | ||
- | Run the following in CMD (or just drag and drop your pdx on mkpdx): | + | Run the following in CMD (or just drag and drop your pdl on mkpdx): |
- | mkpdx \directory\to\mypdl.pdl | + | < |
The mkpdx binary I provided is for Win32, so you don't need to use DOSBox for it. | The mkpdx binary I provided is for Win32, so you don't need to use DOSBox for it. | ||
Line 621: | Line 624: | ||
Now you can use your PDX in your MML tunes by defining the following at the top: | Now you can use your PDX in your MML tunes by defining the following at the top: | ||
- | < | + | < |
To use PCM in a MML tune, use channels P-W. It's easier to use the numerical | To use PCM in a MML tune, use channels P-W. It's easier to use the numerical |
x68000/mxdrv_mml_mdx_tutorial.txt · Last modified: 2019/08/27 20:45 by 127.0.0.1