Skip to main content

Piecewise-exponential curves designed for musical expressiveness.

Project description

expenvelope

expenvelope is a python library for managing piecewise exponential curves, original intended as a tool for algorithmic music composition. Curves are simple to make, expressive, and useful for controlling dynamics, tempo, and other higher-level parameters.

The central Envelope class bears some relation to SuperCollider's Env object, and is represented behind the scenes as a contiguous set of EnvelopeSegments. There are a number of different class methods available for constructing envelopes, including:

Envelope.from_levels
Envelope.from_levels_and_durations
Envelope.from_points
Envelope.release
Envelope.ar
Envelope.asr
Envelope.adsr
Envelope.from_function

In addition to the central value_at function, utilities have been included to append and insert new points, insert a new interpolated control point without changing the curve, integrate over intervals, find the maximum slope reached, and find the average value, among other things. Envelopes (and EnvelopeSegments) can be added, subtracted, multiplied and divided, with these operations yielding new Envelopes that are close approximations to the resulting function using piecewise exponential curves.

expenvelope is a key dependency of clockblocks, a package for for controlling the flow of musical time, and scamp, a Suite for Computer-Assisted Music in Python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

expenvelope-0.7.3.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

expenvelope-0.7.3-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file expenvelope-0.7.3.tar.gz.

File metadata

  • Download URL: expenvelope-0.7.3.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for expenvelope-0.7.3.tar.gz
Algorithm Hash digest
SHA256 a4ce6dea21ed3eb5f3387ce34c4967564378c4d8dc8ce6eb2a036f65c6df8e0c
MD5 80e3b992ef1f2774eef1dea4d7da7fe9
BLAKE2b-256 19c40bcd910f1ae922ea056e7fa1738afc851d38838dc1936c0e8280525afbbf

See more details on using hashes here.

File details

Details for the file expenvelope-0.7.3-py3-none-any.whl.

File metadata

  • Download URL: expenvelope-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for expenvelope-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b6395cc445d1e810eabbf06779d8582b26989943c609615a7ddca1240c06e73
MD5 e1c75a7b1913a0145867e01753b62907
BLAKE2b-256 dd1945cb82025919224d04469d4efd1effbee04a10830f04d661aacf1b6dc2fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page