lawless-legends/Platform/Apple/tools/ConvertMidi/README.md

26 lines
949 B
Markdown
Raw Normal View History

Converting MIDI files to internal music secquencer files:
2017-11-04 16:38:17 +00:00
cvtmid.py, the MIDI file converter, uses Python and the mido package: https://mido.readthedocs.io/en/latest/
2017-11-04 16:38:17 +00:00
Linux and OSX/macOS already have Python installed. Windows will need to install Python 7.2.xx from:
https://www.python.org/downloads/windows/
2017-11-01 23:08:38 +00:00
2017-11-04 16:38:17 +00:00
To install mido, use pip. If you are on OSX/macOS, you first need to install pip with:
```
sudo easy_install pip
```
Then, install mido with:
```
sudo pip install mido
```
2017-11-04 16:38:17 +00:00
To convert a MIDI file, simply put a MIDI file in the same directory as ctvmid.py and type:
```
./cvtmid.py midifile.mid > midifile.seq
```
The midifile.seq output file is an ACME assembly file that can be included in another assembly file, a PLASMA file, or assembled into a binary file which can be loaded later. Simply type:
2017-11-04 16:38:17 +00:00
```
acme --setpc 0x1000 -o seqfile.bin midifile.seq
```
The starting address is irrelevant, but ACME requires one to assemble properly.