Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
19:08862f49cd9e
Parent:
18:204cd747b54a
Child:
21:60f01b17b0a6
diff -r 204cd747b54a -r 08862f49cd9e Envelope/Envelope.h
--- a/Envelope/Envelope.h	Thu May 21 22:59:59 2020 +0000
+++ b/Envelope/Envelope.h	Fri May 22 20:10:00 2020 +0000
@@ -26,6 +26,7 @@
 
     //Modifies input to envelope
     uint16_t env_in(int a, int d, int s, int r, int in, bool init);
+    uint16_t release(int s, int r, int in, bool init);
 
 
 private://----------------------------------------------------------------------
@@ -41,9 +42,11 @@
     int d_vec;
     int r_vec;
     int at;
+    int samples_r;
 
 //methods
     int a_vector_calc(int av);
-
+    int d_vector_calc(int dv, int sv);
+    int r_vector_calc(int sv, int rv);
 };
 #endif
\ No newline at end of file