Envelopes (basic) ================= *Example script* (scamp): `examples/Tutorial/12_envelopes_basic.py `__ *Download:* :download:`12_envelopes_basic.py ` Create and plot two simple envelopes, one with evenly-spaced linear segments, and one with uneven, curved segments. *Topics:* :doc:`Envelopes › Construction ` .. raw:: html
envelope plot
envelope plot
.. code-block:: python from scamp import Envelope e = Envelope.from_levels( [60, 72, 66, 70] ) e.show_plot("Evenly Spaced") e = Envelope( [60, 72, 66, 70], [2, 1, 1], curve_shapes=[2, -2, -2] ) e.show_plot("Uneven with Shaping")