Luke O. Cartwright 201225242

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Envelope Class Reference

Envelope Class Reference

Envelope class. More...

#include <Envelope.h>

Public Member Functions

 Envelope ()
 Constructor.
 ~Envelope ()
 Destructior.
uint16_t env_in (int a, int d, int s, int r, int in, bool init)
 Outputs unigned value with input modulated by ADS input variables input -32767.
uint16_t release (int s, int r, int in, bool init)
 Deals with the release part of the note (triggered when note off button pressed) an Unsigned short (for release part) to envelope output.

Detailed Description

Envelope class.

Author:
Luke Cartwright, University of Leeds converts output to env output
Date:
May 2020

Definition at line 14 of file Envelope.h.


Constructor & Destructor Documentation

Envelope (  )

Constructor.

Definition at line 7 of file Envelope.cpp.

~Envelope (  )

Destructior.

Definition at line 10 of file Envelope.cpp.


Member Function Documentation

uint16_t env_in ( int  a,
int  d,
int  s,
int  r,
int  in,
bool  init 
)

Outputs unigned value with input modulated by ADS input variables input -32767.

>32767 Output 0->65535

Returns:
a Unsigned Short corresponding to Envelope Output

Definition at line 14 of file Envelope.cpp.

uint16_t release ( int  s,
int  r,
int  in,
bool  init 
)

Deals with the release part of the note (triggered when note off button pressed) an Unsigned short (for release part) to envelope output.

Definition at line 53 of file Envelope.cpp.