Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Envelope/Envelope.h
- Revision:
- 30:08cc4ec58d07
- Parent:
- 21:60f01b17b0a6
--- a/Envelope/Envelope.h Mon May 25 20:00:31 2020 +0000
+++ b/Envelope/Envelope.h Tue May 26 10:17:47 2020 +0000
@@ -14,9 +14,6 @@
class Envelope
{
public://-----------------------------------------------------------------------
-//variables
-
-//methods
//Methods
/**Constructor*/
Envelope();
@@ -40,9 +37,10 @@
//variables
uint16_t out; //main output variable
int samples; //itterator for samples counter
- //float time;
+ int samples_r; //release samples itterator
+ int at; //incramented multiplier for output
//ADSR variables multiplied up when applied to volume envelope
- int av; //a volume
+ int av;
int dv;
int sv;
int rv;
@@ -50,11 +48,9 @@
int a_vec;
int d_vec;
int r_vec;
- //incramented multiplier for output
- int at;
- int samples_r;//release samples itterator
+
-//methods
+ //Methods
/** Calculates the a_vec variable for use
* (used as difference per sample in attack part of note) */
int a_vector_calc(int av);