Envelopes (basic)

Example script (scamp): examples/Tutorial/12_envelopes_basic.py

Download: 12_envelopes_basic.py

Create and plot two simple envelopes, one with evenly-spaced linear segments, and one with uneven, curved segments.

Topics: Envelopes › Construction

envelope plot
envelope plot
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")