Skip to main content

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 FoxDotSupriya 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.

Metadata

Release files for FoxDotSupriya 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FoxDotSupriya 0.1.1
File Size Uploaded
foxdotsupriya-0.1.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FoxDotSupriya 0.1.1
File Interpreter ABI Platform
foxdotsupriya-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / foxdotsupriya-0.1.1.tar.gz

Download URL foxdotsupriya-0.1.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a804f25ff56cc7df95d4a9de43a9bcd656456346bb19886203fecfb08c62c79f
BLAKE2b-256 checksum
How to use checksums
e18d67a64f048789b6be0f79a14852cf9d68261ff2f0a47236feb8000dc6c31f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1

Release files / foxdotsupriya-0.1.1-py3-none-any.whl

Download URL foxdotsupriya-0.1.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1d42eae1e9c1718b578865c5170087eb677d2b1403f62b474ae275eaee9589d
BLAKE2b-256 checksum
How to use checksums
bac339725dd99a873665f157da638284564607276878d04a5e42a63675e305ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page