Firefly Zero
The official C SDK for making Firefly Zero apps.
Loading...
Searching...
No Matches
AdsrModulator Struct Reference

ADSR envelope. More...

#include <firefly.h>

Collaboration diagram for AdsrModulator:

Public Attributes

AudioTime attack
AudioTime decay
AudioTime sustain
float sustain_level
AudioTime release

Detailed Description

ADSR envelope.

It looks like this: 🭋🭍🬹🬿

  1. Until attack, the value goes from 0 to 1;
  2. Until decay, it goes from 1 to sustain_level;
  3. Until sustain, it holds sustain_level;
  4. Until release, it goes from sustain_level to 0;
  5. After release, it holds 0.

Most commonly used with gain.


The documentation for this struct was generated from the following file: