Skip to content

Updating and correcting SonicPI Synths#275

Open
taconi wants to merge 1 commit intoQirky:masterfrom
taconi:update-pisynth
Open

Updating and correcting SonicPI Synths#275
taconi wants to merge 1 commit intoQirky:masterfrom
taconi:update-pisynth

Conversation

@taconi
Copy link

@taconi taconi commented Jun 8, 2025

How to test

from FoxDot.lib.Extensions.SonicPi import LoadSonicPiSynths, pisynth

# load the SonicPi synths
LoadSonicPiSynths()  # >> It takes a while on the first run, because the sonic-pi synth files

# See what new Synths are available
print(sorted(pisynth))


# Usage

s1 >> pisynth.sine()     # as an attribute
s2 >> pisynth['zawa']()  # as a key

# or update namespace with new synths
FoxDotCode.namespace.update(pisynth)
SynthDefs.update(pisynth)

# and use like any other synth
s1 >> sine()
s2 >> zawa()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant