Skip to content

Reusing code in multiple SynthDefs #496

Discussion options

You must be logged in to vote

You have three two and a half options:

  • Write a "pseudo ugen"
  • Just write a function that returns a UGenOperable
  • Stop using @synthdef and start using SynthDefBuilder so you can re-use it in function calls (more advanced)

There are a handful of pseudo ugens adapted from sclang. You can find them in the codebase by searching for PseudoUGen:

Personally, I think these are awkward and tend to confuse peo…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dayunbao
Comment options

Answer selected by dayunbao
Comment options

You must be logged in to vote
1 reply
@dayunbao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants