Envelope uses ES6 class
changed to es6 class structure
@Ajaya1000 also check the examples if the p5.envelope is runnig fine https://github.com/processing/p5.js-sound/blob/main/examples/envelope/sketch.js and let me know if everything is fine . I wil verify and then we can merge this one
@endurance21 I have made the suggested changes and all examples using envelope classes are working as expected.
Hi @Ajaya1000 can you please look into the merge conflicts, if you are busy I can resolve those conflicts and make a new PR fixing merge conflicts around the same :)
I'm going to close this for organizational purposes since the changes have been merged in as part of @Abhijay007's PR. Thanks for your changes @Ajaya1000!