a Python library for LiveCoding.
Alternative is a LiveCoding library implemented by Python. Alternative controls the rhythm and actual sound generation is done by OSC communication with SuperCollider. Alternative uses L-system to generate rhythm, performer can change the rule of L-system in real time.
- python-osc
First of all run synthdefs.scd on SuperCollider. Below is an example to execute a .scd file on the command line (it is necessary to pass through the path of sclang):
sclang synthdefs.scdYou can use synthdefs which you defined by yourself.
Import Alternative:
from Alternative import *Then, when you start global_clock, you hear a sound:
global_clock.start()If you want to change bpm, execute the following method:
global_clock.bpm = 120for more information, see example.
