Envelope a.k.a. breakpoint based signal class

Usage no npm install needed!

<script type="module">
  import seymarEnvelope from 'https://cdn.skypack.dev/@seymar/envelope';



A class to represent a signal using an envelope constructed from breakpoints. Inspiration came from automation envelopes found in Digital Audio Workstations such as Ableton. Wikipedia stating:

Commonly DAWs feature some form of automation, often performed through "envelopes". Envelopes are procedural line segment-based or curve-based interactive graphs. The lines and curves of the automation graph are joined by or comprise adjustable points. By creating and adjusting multiple points along a waveform or control events, the user can specify parameters of the output over time`

Includes manipulation functions to add, multiply, invert, subtract envelopes