Integration with FoxDot and Supriya to white SynthDefs/Effects.
Project description
FoxDotSupriya - Integration with FoxDot and Supriya to white SynthDefs/Effects.
Instalation
pip install FoxDotSupriya
# or
pip install git+https://codeberg.org/FoxDotExtensions/FoxDotSupriya
Usage
Import lib
from FoxDot.lib.Extensions.Supriya import *
Effects
TODO: examples
SynthDef
-
sine: Simples sine oscilator.p1 >> sine()
Your Own SynthDef
See Using Your Own Synthdefs for more details.
Write/modifier your synths
from supriya import Envelope
from supriya.ugens import EnvGen, ReplaceOut, Pan2, In, LFTri, SinOsc, LFSaw, Pulse
@SynthDef
def mysynth(amp=1, sus=1, pan=0, freq=0, bus=0, atk=0.01):
freq = In.kr(bus=bus, channel_count=1) # see https://foxdot.org/docs/using-your-own-synthdefs/
osc = LFTri.ar(frequency=freq) * amp
env = EnvGen.ar(
envelope=Envelope.percussive(attack_time=atk, release_time=sus),
done_action=0 # every doneAction must be 0, see https://foxdot.org/docs/using-your-own-synthdefs/
)
osc = Pan2.ar(source=osc * env, position=pan)
ReplaceOut.ar(bus=bus, source=osc) # ReplaceOut is needed to FoxDot, see https://foxdot.org/docs/using-your-own-synthdefs/
m1 >> mysynth([0,2,4,2], dur=[[1,.5], PDur(7,8)], shape=0.15, chop=2)
You can modify the synth definition in runtime. Try change LFTri for LFSaw or Pulse.
Feel free to submit new synths to the library for others to use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file foxdotsupriya-0.1.0.tar.gz.
File metadata
- Download URL: foxdotsupriya-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6c0169e8aa6fd2734e4c7d905f5a926d784210349ac5274a5b5ea37df5cd1d
|
|
| MD5 |
5fb7ed695b369f4e0783451219aa4f75
|
|
| BLAKE2b-256 |
ca2c96296eff7eaee01199c5e79e620f6d95d1acc9bf4f935b40c38916a7b680
|
File details
Details for the file foxdotsupriya-0.1.0-py3-none-any.whl.
File metadata
- Download URL: foxdotsupriya-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f30d1132d2441dca06fb7c702e5ba67574a96109bf05fed52d8190aa1e940dc6
|
|
| MD5 |
ad150ac7d7ec2dd0995adccbb2a3483f
|
|
| BLAKE2b-256 |
e42124e092d8e61cf31faf59e6ad98e9d6cdd082b653d930c41bf518533b3eec
|