Encoding Post Reverb Channel

The postReverb is a less loud sound followed by the main tone, and a data variable is mapped to the length of each post-reverb sound. For example, if the domain is [10, 20] and the range is [0, 2] (unit: seconds), then after the main tone, a 1-second less loud sound is played for a data value of 15.

postReverb usage pattern

JSON

{
  ...
  "encoding" : {
    "postReverb": {
      "field": "weight",
      "type": "quantitative",
      "scale": {
        "doamin": [10, 20], // optional
        "range": [0, 2] // optional (if omitted, [0, 4])
      }
    }
  }
  ...
}

JavaScript

let stream = new Erie.Stream();
...
stream.encoding.postReverb.field("weight", "quantitative");
stream.encoding.postReverb.scale("domain", [10, 20]); // optinal
stream.encoding.postReverb.scale("range", [0, 2]); // optional  (if omitted, [0, 4])
...
© Hyeok Kim