Python's missing algorave module. Simple/hackable live coding tool for modern Python (3.10+)
Discord |
Website |
Examples |
Installation |
Author |
About Live Coding

Sardine is a hacker-friendly Python library tailored for musical improvisation,
algorithmic composition and much more. Sardine is transforming your typical
Python interpreter into a music instrument that allows you to write melodic
and rhythmic patterns of any kind and to map them to any electronic instrument:
MIDI, OSC and/or SuperCollider. Using Sardine, you can:
In order to install Sardine, your system will require a recent version of Python (3.10+). We now support 3.11 versions as well. A more detailed installation guide can be found on Sardine’s website.
python -m pip install --find-links https://thegamecracks.github.io/python-rtmidi-wheels/ sardine-system.
--find-links option is used as a temporary fix to the unavailability of some dependencies in the Pypi repositories for Python 3.10/3.11.sardine-config and configure Sardine to your liking following this guideSardine is currently in the early development phase. We are looking for contributors! Anybody is welcome to contribute with code / documentation / thoughts, etc… You can contact the Sardine community directly on Discord or PM me if you have specific questions.
Sardine is a Python library that you learn to use as a musical instrument. For this reason, documentation is of paramount importance so that others can learn your cool tricks too :). The documentation resides in the docs/ folder. It is a bunch of loosely organised Markdown files. You can contribute by editing these files and adding the missing bit of information you would like to see being updated or added.
Source code is contained to the sardine/ and fishery/ folder. Most functions are already documented but the architecture of Sardine needs some time to get used to. You can contact me directly if you would like to learn more about it. There are no contributions rules for the moment, and I will explore each and every request that you would like to propose!