{"repo":"supriya-project/supriya","free":true,"listed":false,"github":"https://github.com/supriya-project/supriya","clone":"git clone https://github.com/supriya-project/supriya.git","description":"A Python API for SuperCollider","language":"Python","stars":405,"topics":["python","supercollider","audio","music","composition","synthesizer","sc","synthesis","dsp"],"license":"MIT","category":"media-processing","readme_excerpt":"Supriya Supriya is a Python API for SuperCollider. Supriya lets you: - Boot and communicate with SuperCollider's synthesis engine in realtime. - Explore nonrealtime composition with scores. - Compile SuperCollider SynthDefs natively in Python code - Build time-agnostic asyncio-aware applications with the context interface. - Schedule patterns and callbacks with tempo- and meter-aware clocks - Integrate with IPython, Sphinx and Graphviz Quickstart 1. Get Supriya Install from PyPI: pip install supriya Or from source: git clone https://github.com/supriya-project/supriya.git cd supriya pip install -e . 2. Get SuperCollider Get SuperCollider from http://supercollider.github.io/. 3. Boot the server Start your Python interpreter and import Supriya: import supriya Boot the SuperCollider server: server = supriya.Server().boot() 4. Build a SynthDef Import some classes: from supriya import Envelope, synthdef from supriya.ugens import EnvGen, Out, SinOsc Make a synthesizer definition: @synthdef() ... def simple sine(frequency=440, amplitude=0.1, gate=1): ... sine = SinOsc.ar(frequency=frequency) amplitude ... envelope = EnvGen.kr(envelope=Envelope.adsr(), gate=gate, done action=2) ... Out.ar(bus=0, source=[sine envelope] 2) ... Visualize the SynthDef (requires Graphviz): supriya.graph(simple sine) Allocate it on the server: = server.add synthdefs(simple sine) ... and then sync the server before proceeding to ensure the SynthDef has been fully parsed by scsynth: = server.sync() 5. Create ","default_branch":null,"files":null,"tree":[],"storefront":"/r/supriya-project","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/supriya-project/supriya/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}