To get a local copy up and running follow these simple example steps.
-
Install Python 3.11.8 (64 bits) https://www.python.org/ftp/python/3.11.8/python-3.11.8-amd64.exe. Run .exe program. When you run the installer YOU MUST CHECK "Install launcher for all users" AND "Add Python 3.11 to PATH". Then run "Install Now"
-
Install Pip (Python's package management system) using the Command Shell (terminal):
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Edit the environment variables and add the Pip´s PATH, copying it from the command prompt.
-
Install Git (64-bit Git for Windows Setup) accepting all the default options: https://github.com/git-for-windows/git/releases/download/v2.44.0.windows.1/Git-2.44.0-64-bit.exe
-
Install Fluidsynth installer (will need to open PowerShell as administrator)
- Go to the FluidSynth releases page https://github.com/FluidSynth/fluidsynth/releases
- Download the latest 64-bit release for Windows (e.g. fluidsynth-2.1.0-win64.zip). Extract this zip file into some directory, e.g. c:\Users\me\install\fluidsynth.
- Move the 'bin' folder from 'fluidsynth' into 'install' folder.
- Add the
C:\Users\me\install\bin
subdirectory to your PATH. To do this, click in the search box on the task bar, run the command 'Edit the system environment variables', click 'Environment Variables…', select Path in the 'User variables' section, click 'Edit…', click New, then enter the path of the bin subdirectory, e.g. c:\Users\me\install\bin . NB It may have automatically done this.
-
Install Poetry (will need to open PowerShell as administrator or use the same PowerShell window from step 4)
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
Add the
%APPDATA%\Python\Scripts
directory to your PATH, following the same instructions above.
- Install HomeBrew. Follow instructions at: https://brew.sh/
- Install Fluidsynth in HomeBrew
brew install fluidsynth
-
Open a Terminal window (Mac & Linux) or a Command Prompt (Windows: in the toolbar search type 'command prompt', and open as user).
-
Clone the repo
git clone https://github.com/DigiScore/machAInst.git
-
Navigate to the folder
cd machAInst
-
Install the dependencies
poetry shell
poetry install
- Enter the main APP folder
cd machainst
- Execute the code
poetry run python main.py