Schemas / Synth

rig.synth.amplifier

v1.4.0 · stable maturity: draft 2 fields 0 required

Fields

FieldTypeMeaning
gain number0 – 1 optional Optional. 0-1 linear gain at no modulation. Absent = 1. A closed voice writes 0
input entity optional Optional. Entity whose audio this stage reads. Absent = unset

Level stage in a voice. Format when present.

rig.audio.bus is the mix this stage may feed. gain is the same linear 0-1 number the bus uses. A decibel law on a jack stays rig.modular.port decibelsPerVolt.

An envelope opens the stage with a rig.mod.binding onto gain. Write gain 0 when the voice should sit silent until that envelope moves.

input is one source. A filter into this stage points input at that rig.synth.filter.

Fulfillment

Hosts apply gain in Update. The sample stays a runtime cache.

JSON Schema

Resolves at https://rig.works/schemas/rig.synth.amplifier.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.synth.amplifier.schema.json",
  "title": "rig.synth.amplifier",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "gain": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "input": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    }
  },
  "x-rig-maturity": "draft"
}

Seen in

synth-voice.json