MuseScore  3.4
Music composition and notation
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Envelope Struct Reference

#include <voice.h>

Public Member Functions

void setTable (float *f)
 
bool step ()
 
void setTime (float ms, int sampleRate)
 
void setConstant (float v)
 
void setVariable ()
 

Public Attributes

int steps
 
int count
 
bool constant = false
 
float offset = 0.0
 
float max = 1.0
 
float val
 
float * table
 

Static Public Attributes

static float egPow [EG_SIZE]
 
static float egLin [EG_SIZE]
 

Member Function Documentation

◆ setConstant()

void Envelope::setConstant ( float  v)
inline

◆ setTable()

void Envelope::setTable ( float *  f)
inline

◆ setTime()

void Envelope::setTime ( float  ms,
int  sampleRate 
)

◆ setVariable()

void Envelope::setVariable ( )
inline

◆ step()

bool Envelope::step ( void  )
inline

Member Data Documentation

◆ constant

bool Envelope::constant = false

◆ count

int Envelope::count

◆ egLin

float Envelope::egLin
static

◆ egPow

float Envelope::egPow
static

◆ max

float Envelope::max = 1.0

◆ offset

float Envelope::offset = 0.0

◆ steps

int Envelope::steps

◆ table

float* Envelope::table

◆ val

float Envelope::val

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