Skip to content

Using Envelope.adsr seems to crash server #419

Closed Answered by dayunbao
dayunbao asked this question in Q&A
Discussion options

You must be logged in to vote

See https://doc.sccode.org/Classes/EnvGen.html

An Env instance, or an Array of Controls. (See Control and the example below for how to use this.)

The envelope is polled when the EnvGen is triggered, and at the start of a new envelope segment. The Env inputs can be other UGens.

Sounds like the args to Envelope should support modulation. Will need to write a test comparing how sclang compiles a modulable envelope vs how supriya does it.

See the More examples at the bottom of https://doc.sccode.org/Classes/EnvGen.html. I think the sclang ones are super unwieldy, but you can see how they're doing it.

After a bit of playing around, I've found something that works:

@synthdef()
def multi_o…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@josephine-wolf-oberholtzer
Comment options

@josephine-wolf-oberholtzer
Comment options

@dayunbao
Comment options

@dayunbao
Comment options

Answer selected by dayunbao
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