Play magicka with MIDI
Use rtmidi2
Install basic development requirements:
sudo apt install python-pip
pip install tox
pip install pip-tools # This one is optional for update environment only
Create virtual tox environment
make env-create
Requires MobaXterm for XServer and ALSA https://x410.dev/cookbook/wsl/enabling-sound-in-wsl-ubuntu-let-it-sing/
TODO
Each time you are going to develop you need to activate the environment:
source ./.tox/midicka/bin/activate
Check if works with any sample:
python midicka/bin/1_hello_midi.py
- Update the
requirements.in
: Manual edition. - Regenerate
requirements.txt
: Executemake env-compile
- Regenerate
tox environment
: Executemake env-create
---> Not work by now. <----
No MIDI support in WSL AFAIK
Audio: microsoft/WSL#486
- sudo add-apt-repository ppa:therealkenc/wsl-pulseaudio
- sudo apt install pulseaudio
- export PULSE_SERVER=tcp:localhostnumpy ipython
- wget https://www2.cs.uic.edu/~i101/SoundFiles/StarWars3.wav
- aplay StarWars3.wav
- ln -s /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_conf_pulse.so /usr/lib64/alsa-lib/libasound_module_conf_pulse.so