Envelope
An auxiliary envelope. Control any audioParam of any element by describing a curve for its value. Uses the closest Sampler-based element’s blam event.
- class
- Envelope
- extends
- Handle
- tag
<envelope-blam>
Props
| name | type | default | description |
|---|---|---|---|
| curve | string | Comma separated pairs of numbers representing the envelope. Each pair defines the value and the time. By default, the time is a proportion of the sample’s duration. For example, |
|
| beats | boolean | false | Time (the second value of each |
| value | string | null | Not applicable. Use |
| prop | string | null | The |
| ramp | string | Not applicable. The curve is defined using |
|
| from | string | A CSS selector representing all elements from which events will be listened to. If not set, the node array defaults to the element’s |
|
| to | string | A CSS selector representing all elements to affect in response to the event. If not set, the node array defaults to the element’s |
|
| event | string | blam | The event type to listen for. For many Event-based elements, this is the generic custom event |
| bypass | boolean | false | Whether to stop responding to events as they happen. |
| chance | boolean | 1 | The probability that the |
Examples
Examples that use the Envelope element: