Synthesizer / Mbed 2 deprecated DBSMUSICPROJ

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
liam_grazier
Date:
Wed Jul 24 11:23:34 2019 +0000
Parent:
1:5b491fa83cb7
Commit message:
party

Changed in this revision

main.hpp Show annotated file Show diff for this revision Revisions of this file
math.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.hpp	Mon Jul 22 16:35:45 2019 +0000
+++ b/main.hpp	Wed Jul 24 11:23:34 2019 +0000
@@ -238,7 +238,7 @@
     
     }
  void getfaderdata(void){
-         multiplexa = 0;
+    multiplexa = 0;
     adc1 = analog_valuea.read(); // Converts and read the analog input value (value from 0.0 to 1.0)
     adc1 = adc1 *100;
     vc = adc1;
--- a/math.hpp	Mon Jul 22 16:35:45 2019 +0000
+++ b/math.hpp	Wed Jul 24 11:23:34 2019 +0000
@@ -27,5 +27,5 @@
 //control variables
 int note = 0; //1=c 2=c# 3=d 4=d# 5=e 6=f 7=f# 8=g 9=g# 10=a 11=a# 12=b
 int octive = 0; //1=-2 //2=-1 //3=0 //4=+1 //5=+2 
-int duration = 0; //1=1/16 2=1/8 3=1/4 4=1/2 5=1 6=2 
+int duration = 0; //1=1/16(1 clock) 2=1/8(2 clocks) 3=1/4(4 clocks) 4=1/2(8clocks) 5=1(16 clocks) 6=2(32 clocks) 
 #endif
\ No newline at end of file