Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
30:08cc4ec58d07
Parent:
21:60f01b17b0a6
diff -r 207111ffd6e6 -r 08cc4ec58d07 Envelope/Envelope.h
--- 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);