MacOS
The installation of Sardine on MacOS is pretty straightforward. You shouldn't encounter any particular issue to make it work properly. I am developing Sardine on MacOS Ventura 13.0.1.
- [PLEASE READ THE PRE-INSTALLATION PAGE BEFORE GOING FURTHER]
Preparing your environment
The installation of Sardine takes place in several steps and has some prerequisites. You will have to install all the development environment that will allow you to live code comfortably. You will of course have to install Python but also make sure you have SuperCollider, the audio engine used by the application. You will also have to install some tools that will allow you to compile the application.
-
Install the latest Python version for your OS (currently 3.11).
- Sardine will not work with a Python older than 3.10.
- Be careful with distribution provided Python versions! They might be incomplete!
- Install Pyenv or use virtual environments to keep everything nice and tidy!
-
Install SuperCollider, the default audio backend used by Sardine.
- Once this step is over, open SCIDE (or click on the SuperCollider icon) and type:
Quarks.install("SuperDirt")
- Press Shift + Enter and wait for the installation to be done! Close SuperCollider when done.
- Optional: You can also install sc3plugins to get more audio effects and synthesizers!
- You might have to add
sclang
to your path. To do so, copyalias sclang="/Applications/SuperCollider.app/Contents/MacOS/sclang"
into your.bashrc
or.zshrc
in the$HOME
directory.
- Once this step is over, open SCIDE (or click on the SuperCollider icon) and type:
Installing Sardine
We will now proceed to the installation of Sardine. Sardine is a Python library which is composed of two modules:
- Sardine Core: the Python library for live coding. Contains all the goodies.
- Sardine: an asynchronous Python interpreter AND integrated text editor.
python -m pip install sardine-system
If you want to install the development version, which may have more features than the package on PyPI:
python -m pip install git+https://github.com/Bubobubobubobubo/sardine
Note:
If you get an error when trying to install python-rtmidi
,
you can install the package manually using one of the following commands:
-
python -m pip install git+https://github.com/SpotlightKid/python-rtmidi.git@eb16ab3268b29b94cd2baa6bfc777f5cf5f908ba#egg=python-rtmidi
-
python -m pip install git+https://github.com/SpotlightKid/python-rtmidi.git#eb16ab3268b29b94cd2baa6bfc777f5cf5f908ba
Installing Sardine Web
After Sardine is installed, you may choose to install the sardine web
editor
with the following command:
python -m pip install sardine-web
More details are provided in the Sardine Web section.