Skip to content
HALOWERK

Tonwerk

dynamics attack release envelope

Return an absolute-sample envelope with separate one-pole attack and release constants.

POST https://ton.halowerk.com/v1/dynamics-attack-release-envelope

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
samplesarrayYes
sample_rateintegerYes
attack_msnumberYes
release_msnumberYes
initialnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "samples": {
      "type": "array",
      "items": {
        "type": "number",
        "minimum": -16,
        "maximum": 16
      },
      "maxItems": 1024,
      "minItems": 1
    },
    "sample_rate": {
      "type": "integer",
      "minimum": 1,
      "maximum": 384000
    },
    "attack_ms": {
      "type": "number",
      "minimum": 1e-06,
      "maximum": 1000000
    },
    "release_ms": {
      "type": "number",
      "minimum": 1e-06,
      "maximum": 1000000
    },
    "initial": {
      "type": "number",
      "minimum": 0,
      "maximum": 16
    }
  },
  "required": [
    "samples",
    "sample_rate",
    "attack_ms",
    "release_ms",
    "initial"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "samples": [
    0,
    1,
    0
  ],
  "sample_rate": 1000,
  "attack_ms": 1,
  "release_ms": 2,
  "initial": 0
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’