tone range has been increased to play notes between 4th octave and 6th octave

Dependencies:   Hexi_OLED_SSD1351

Dependents:   IotProject

Fork of PWM_Tone_Library by justin kim

ECE Department IUPUI

Files at this revision

API Documentation at this revision

Comitter:
naikhar0
Date:
Wed Apr 12 14:03:46 2017 +0000
Parent:
0:d06af372d384
Commit message:
PWM library has been updated to have tone range from octave 4 to octave 6. Program can now play for parts of songs: Secrets -One republic, Senya -Naruto, Marry had a little lamb, and Fight Song -Rachel Platten.

Changed in this revision

Hexi_OLED_SSD1351.lib Show annotated file Show diff for this revision Revisions of this file
pwm_tone.h Show annotated file Show diff for this revision Revisions of this file
diff -r d06af372d384 -r 7e7f2d3f01ea Hexi_OLED_SSD1351.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Hexi_OLED_SSD1351.lib	Wed Apr 12 14:03:46 2017 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/Hexiwear/code/Hexi_OLED_SSD1351/#ae5fad429790
diff -r d06af372d384 -r 7e7f2d3f01ea pwm_tone.h
--- a/pwm_tone.h	Fri Jul 24 05:01:45 2015 +0000
+++ b/pwm_tone.h	Wed Apr 12 14:03:46 2017 +0000
@@ -6,7 +6,7 @@
 #define Do3  131 //C octave3
 #define Do3s 139 //C#
 #define Re3  147 //D
-#define Re3s 156//D#
+#define Re3s 156 //D#
 #define Mi3  165 //E
 #define Fa3  175 //F
 #define Fa3s 185 //F#
@@ -18,7 +18,7 @@
 #define Do4  262 //C octave4
 #define Do4s 277 //C#
 #define Re4  294 //D
-#define Re4s 311//D#
+#define Re4s 311 //D#
 #define Mi4  330 //E
 #define Fa4  349 //F
 #define Fa4s 370 //F#
@@ -39,6 +39,18 @@
 #define La5  880 //A
 #define La5s 932 //A#
 #define Ti5  988 //B
+#define Do6  1047 //C octave 6
+#define Do6s 1109 //C#
+#define Re6  1175 //D   
+#define Re6s 1245 //Ds
+#define Mi6  1319 //E
+#define Fa6  1397 //F
+#define Fa6s 1480 //Fs
+#define So6  1568 //G
+#define So6s 1661 //Gs
+#define La6  1760 //A
+#define La6s 1865 //As
+#define Ti6  1976 //B
 
 /* Private variables ---------------------------------------------------------*/
 /* Private function prototypes -----------------------------------------------*/