Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foxdotsupriya-0.1.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foxdotsupriya-0.1.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file foxdotsupriya-0.1.1.tar.gz.

File metadata

  • Download URL: foxdotsupriya-0.1.1.tar.gz
  • Upload date:
  • Size: 7.3 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

Hashes for foxdotsupriya-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a804f25ff56cc7df95d4a9de43a9bcd656456346bb19886203fecfb08c62c79f
MD5 f637b2130810dd43a0ef6d3661dbce11
BLAKE2b-256 e18d67a64f048789b6be0f79a14852cf9d68261ff2f0a47236feb8000dc6c31f

See more details on using hashes here.

File details

Details for the file foxdotsupriya-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: foxdotsupriya-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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

Hashes for foxdotsupriya-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1d42eae1e9c1718b578865c5170087eb677d2b1403f62b474ae275eaee9589d
MD5 575858ec51b663b2fba5c117a500c2c3
BLAKE2b-256 bac339725dd99a873665f157da638284564607276878d04a5e42a63675e305ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page