This website is being rebuilt. The content on this page may not be up-to-date during that period. Check the Github project for the latest information.

svg-envelope

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

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