garymooney / qmuvi

qMuVi - A python package that converts quantum circuits into audiovisual experiences, bridging the gap between complex quantum computations and human perception. Render music videos that reveal the evolution of quantum states during algorithm processing, making quantum computing more intuitive and accessible.
https://garymooney.github.io/qmuvi/
GNU Lesser General Public License v2.1
14 stars 4 forks source link

Add Timidity binaries for Linux #17

Closed garymooney closed 1 year ago

garymooney commented 1 year ago

The binaries for Windows and Mac are already included in the package. The binaries should be included for Linux as well.

Get the binaries for the target platforms by finding them online, from a linux timidity package, or compiling the source code. Include them in 'linux' folder in '/third-party/binaries/TiMidity-2.15.0/'. Then in the "timidity_convert_subprocess" method in musical_processing.py, configure the corresponding paths based on platform, as done for Windows and MacOS.

To compile the source code, you could use a docker image, a virtual machine, or a computer with the target operating system. I'm not quite sure whether we need to consider binaries for different versions of Linux.

garymooney commented 1 year ago

Linux users can install timidty using their package manager. To improve ease of use, I've added a test to check whether timidity has been installed and in Path when running on linux. If timidity can't be found then it instructs the user to install it.