change tone sounds by altering the waveforms

Dependencies:   mbed

Fork of 5_songs by MakingMusicWorkshop

Revision:
5:7003c9f6d633
Parent:
4:02dc2ab8eabb
Child:
6:406f73a0eb49
diff -r 02dc2ab8eabb -r 7003c9f6d633 main.cpp
--- a/main.cpp	Mon May 16 18:34:03 2016 +0000
+++ b/main.cpp	Mon May 16 18:42:29 2016 +0000
@@ -3,7 +3,7 @@
 
 PwmOut buzzer(D3);                   // our buzzer is a PWM output (pulse-width modulation)
 
-static int BPM = 120;
+static int BPM = 80;
 
 static void silence() {
     buzzer.write(0.0f); // silence!
@@ -19,7 +19,7 @@
 static void play_song(int notes_left, int* melody, int* duration) {
     
     // YOUR CODE HERE
-    
+  
 
 }