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:
Sat Sep 07 14:57:31 2019 +0000
Parent:
40:ba34990514fa
Child:
42:f481dcabdc34
Commit message:
Last version to contain any mention of Vectors. Will be doing this another way after conv with Tristan

Changed in this revision

NotchingDemo.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/NotchingDemo.cpp	Mon Jun 17 21:42:02 2019 +0000
+++ b/NotchingDemo.cpp	Sat Sep 07 14:57:31 2019 +0000
@@ -388,36 +388,44 @@
 int main()
 {
     //std::vector<classSoundFile> v = {Sound1, Sound2, Sound3, Sound4};
-
+/*
     classSoundFile Sound1,Sound2,Sound3,Sound4,Sound5;
     Sound1.file_location = '1';
     Sound2.file_location = '2';
     Sound3.file_location = '3';
     Sound4.file_location = '4';
     Sound5.file_location = '5';
+    */
+    //SoundPlaceHolder.file_location = 'hello';
     
 
-
+   
+/*
     std::vector<classSoundFile> v;
     v.push_back(Sound1);
     v.push_back(Sound2);
     v.push_back(Sound3);
     v.push_back(Sound4);
     v.push_back(Sound5);
-    for(int c = 0; c<5; c++) {
+    for(int c = 0; c<4; c++) {
         printf("This is Sound No.: %s\n\r",v.at(c).file_location);
 
     }
+    
+    
+    //v.erase(3);
+    //v.remove(v.begin()+1);
     v.erase(v.begin() + 1);
     v.at(1);
     classSoundFile RandomSound;
-    RandomSound.file_location = 'placeholder';
-    v.push_back(RandomSound);
-    for(int c = 0; c<5; c++) {
+    RandomSound.file_location = '22';
+    //v.push_back(RandomSound);
+    v[1] = RandomSound;
+    for(int c = 0; c<4; c++) {
         printf("This is Sound No.: %s\n\r",v.at(c).file_location);
 
     }
-
+*/
 
     /*
      int ArrayOfSounds[6];