Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
24:c3bb1b0b2207
Parent:
21:60f01b17b0a6
Child:
25:f230af268e8b
--- a/Front/Front.h	Sat May 23 16:49:53 2020 +0000
+++ b/Front/Front.h	Sun May 24 15:20:31 2020 +0000
@@ -7,6 +7,7 @@
 #include "Menu.h"
 #include "Sound.h"
 #include "Envelope.h"
+#include "Filter.h"
 
 /** Front class
  * @author Luke Cartwright, University of Leeds
@@ -27,6 +28,7 @@
     int envelope_in;
     int dir_1;
     uint16_t out;
+    int frequency;
 
     //Methods
     /** Constructor */
@@ -60,7 +62,12 @@
     /** initial setup of front panel
     */
     void frontsetup(N5110 &lcd, Gamepad &pad, int submenu, bool initial);
-
+    
+    /** Initialises front
+    * @ Runs all initial front functions
+    */
+    void initialise(Gamepad &pad, N5110 &lcd, int submenu);
+    
     /**prints waveforms for front disp. to LCD
     */
     void printwav(N5110 &lcd, int submenu);
@@ -82,6 +89,11 @@
     */
     int incrament_adsr(int used, int adsr, int ud);
     
+    /**Converts Float to Frequency
+    * @changes Pot 1 value to Frequency of tone (int)
+    */
+    int frequency_convert(Gamepad &pad);
+    
     //pre compilation directive function
     #ifdef SLOW_TIME
     /**prints slow time front values output from loop