VibroSonics  v1.0.2-mozzi-implementation-309-gf5440e1
Arduino Library for Translating Audio into Vibrations
Loading...
Searching...
No Matches
AmpEnv Struct Reference

#include <Grain.h>

Public Attributes

float attackAmplitude = 0.5
 
int attackDuration = 1
 
float decayAmplitude = 0.5
 
int decayDuration = 1
 
float sustainAmplitude = 0.5
 
int sustainDuration = 1
 
float releaseAmplitude = 0.0
 
int releaseDuration = 1
 
float curve = 1.0f
 

Detailed Description

Struct containing target amplitude data for a grain, its state duration parameters, and the curve shape.

Member Data Documentation

◆ attackAmplitude

float AmpEnv::attackAmplitude = 0.5

The maximum amplitude the grain will reach in its attack state.

◆ attackDuration

int AmpEnv::attackDuration = 1

The number of windows the attack state will run for.

◆ curve

float AmpEnv::curve = 1.0f

The shape of the progression through the ADSR curve.

◆ decayAmplitude

float AmpEnv::decayAmplitude = 0.5

The maximum amplitude the grain will reach in its decay state.

◆ decayDuration

int AmpEnv::decayDuration = 1

The number of windows the decay state will run for.

◆ releaseAmplitude

float AmpEnv::releaseAmplitude = 0.0

The minimum amplitude the grain will reach in its release state.

◆ releaseDuration

int AmpEnv::releaseDuration = 1

The number of windows the release state will run for.

◆ sustainAmplitude

float AmpEnv::sustainAmplitude = 0.5

The amplitude the grain will output in its sustain state.

◆ sustainDuration

int AmpEnv::sustainDuration = 1

The number of windows the sustain state will run for.


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