A Python script that generates images compatible with the Musical-Images extension for MakeCode Arcade!
- Download an executable (only have binaries for 64-bit Windows currently) for your platform from the releases page.
- Open a terminal at where you downloaded the binary.
- Instead of running
python main.py <arguments>
run the binary instead. (If the binary is namedmusical-images-generator.exe
then you can just runmusical-images-generator <arguments>
)
- Install Python 3.9 or newer.
- Download the code, either via
git clone
(You'll needgit
for that obviously) or download via ZIP and extract to somewhere. - Install the dependencies needed in
requirements.txt
.
Run python main.py
or the binary in the terminal and pass in a path to a
MIDI file. A text file with MakeCode Arcade images should be in the same
directory as the MIDI file. Open it using your favorite text editor and copy
all the images into image blocks or an animation block in the MakeCode Arcade
editor. The images will be limited to 512x88 (88 keys on piano) so you should
make your animation/images that big. The last image will usually be smaller,
which you can trim down to save space when compiling.