old demo that i want to try in mbed studio

Dependencies:   mbed SDFileSystem_Copy_of_mbed_version I2S

Files at this revision

API Documentation at this revision

Comitter:
roryhand
Date:
Sun Sep 29 19:57:01 2019 +0000
Branch:
LargeFile_Tests
Parent:
63:a8c1971d3d42
Child:
65:8b6a4e307941
Commit message:
WIP - copied over "FadeDataInitialise" function

Changed in this revision

NotchingDemo.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/NotchingDemo.cpp	Sun Sep 29 19:51:14 2019 +0000
+++ b/NotchingDemo.cpp	Sun Sep 29 19:57:01 2019 +0000
@@ -394,6 +394,18 @@
 }
 
 
+//Function to initialise Data for classFade objects.  Perhaps move this into a constructor for the class?  (class still to be added)
+classFade FadeDataInitialise(classFade FadeData)
+{
+    FadeData.DecayFactor = 1.3;
+    FadeData.FadeIteration = 1;
+    //FadeData.Denom = 11025*FadeData.DecayFactor;
+    FadeData.Denom = 11025*FadeData.DecayFactor;
+    FadeData.Natural_Exp = 2.7183;
+    FadeData.Length = 11025*FadeData.LengthSecs;
+    //FadeData.Natural_Exp = 2.7;
+    return FadeData;
+}