studiocode.dev is moving to homestudio.app

This site is progressively migrating to its new home at homestudio.app. All content is already available there.
Please update your bookmarks. Automatic redirects will be enabled in the coming weeks.

SVG Envelope

This project is not maintained anymore.

A flexible and customizable ADSR-like envelope for your web audio applications.

npm package

https://www.npmjs.com/package/svg-envelope

Usage

.envelope {
    width: 100px;
}

<svg class="envelope" id="envelope"></svg>

Without ES6 module support:

<script src="dist/svg-envelope.umd.js"></script>
<script>
    var s = new svgEnvelope('#envelope', { /* config... */ });   
</script>

With ES6 module support:

import Envelope from './svg-envelope.js';
var e = new Envelope(document.getElementById('envelope'), { /* config... */ });        

License

This project is licensed under the MIT License - see the LICENSE file for details

Source code
External links
© StudioCode.dev - Made with 11ty and tailwindcss.