StudioCode.devMIDI applications that run in your browser

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

© StudioCode - Made with 11ty and tailwindcss.