Copy and paste the objects in the adsr~ help file to another patcher. (never save changes to the help file!)
Delete scope~ (that graphy thing) and connect adsr~’s left output to a *~ object whose other input is your oscillator.
A filter envelope will be the same but different.
Even better in my opinion is look into [function] and [line~]