Synthesizer / Mbed 2 deprecated DBSMUSICPROJ4

Dependencies:   mbed

Revision:
15:89ff99d55466
Parent:
14:a352cc410078
Child:
16:f2d46570f0e6
--- a/trigger.hpp	Thu Jul 25 11:00:50 2019 +0000
+++ b/trigger.hpp	Thu Jul 25 11:09:37 2019 +0000
@@ -10,7 +10,7 @@
 }
 
 void loopFall(){
-    loop = !loop;
+    loop = (~loop);
     pc.printf("button press \n\r");
 }
 
@@ -67,7 +67,7 @@
             }
         }
   else{
-  allledoff();
+  //allledoff();
   getfaderdata(); 
   gettempodata();
   //pc.printf("TEMPO %f \n\r",tempoval);
@@ -84,10 +84,10 @@
   sumprobabilityduration(); 
   randomgenerateduration();
   determineduration();
-  outputdecision();
+  //outputdecision();
   }    
   if(clockcount == storedduration-1){
-  allledoff();
+  //allledoff();
   getfaderdata(); 
   //tempo calculations
   gettempodata();
@@ -103,7 +103,7 @@
   sumprobabilityduration(); 
   randomgenerateduration();
   determineduration();
-  outputdecision();
+  //outputdecision();
 
   }
 //  pc.printf("NOTE: %i OCTIVE: %i DURATION: %i \n\r",note,octive,duration);
@@ -118,10 +118,14 @@
     }
     } 
   if(clockcount == 1 && storedduration == 1){
+      allledoff();
+      outputdecision();
       updateled();
       }
   if(clockcount == storedduration-1){
-  updateled();
+    allledoff();
+    outputdecision();
+    updateled();
   }
   }
 #endif
\ No newline at end of file