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: Front/Front.h
- Revision:
- 24:c3bb1b0b2207
- Parent:
- 21:60f01b17b0a6
- Child:
- 25:f230af268e8b
diff -r 0b03fc875418 -r c3bb1b0b2207 Front/Front.h --- 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