PaulStoffregen
Well-known member
Paul, maybe this could be a good (?) practical example for using the Envelope object.
I'd love to include a couple examples with the library, if you'd like to contribute a complete program.
Generally, examples fall into 2 different categories. Most are designed to be simple and have minimal dependency on other stuff. For those "less is more", where simplicity and quickly achieving a known-good result (without dependency on other devices) is the best way to help people learn the particular feature.
The other type of examples are more complex, but fulfill a commonly needed function. Maybe this MIDI controlled sketch could be one of those. Typically, complex examples need more explanation or documentation, so someone unfamiliar with the application can use them effectively.
Examples should also state they're public domain, usually with a simple 1-line message (many currently do not, but should). See Arduino's builtin File > Examples > 01.Basics examples for the ideal way.
If you're willing to contribute example code, please try to design it along one of these 2 paths. Github pull requests are the best way to send the code, but posting here is ok too.