Simple FM Sound Synthesis with touch screen and accelerometer control, based on STM32F746G-DISCO

Dependencies:   ADXL345 AUDIO_DISCO_F746NG BSP_DISCO_F746NG LCD_DISCO_F746NG SDRAM_DISCO_F746NG TS_DISCO_F746NG mbed-dev

Fork of Workshop_5 by Stefano Fasciani

Files at this revision

API Documentation at this revision

Comitter:
stefanofasciani
Date:
Sun Jan 01 13:54:19 2017 +0000
Parent:
2:a1330350c32e
Commit message:
First Commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r a1330350c32e -r cd1cb0003a3d main.cpp
--- a/main.cpp	Tue Aug 23 06:34:53 2016 +0000
+++ b/main.cpp	Sun Jan 01 13:54:19 2017 +0000
@@ -1,17 +1,10 @@
-//***********
-// WORKSHOP 4
-//***********
-
 // Author: Stefano Fasciani - stefanofasciani@stefanofasciani.com
 // Date 7/8/2016
 // FM Sinth for DISCO_F746NG and ADXL345
 
-// Frequency Modulation Sound SYnthesis With Fixed Parameters Displayed on LCD
-
 
 #include "sinth.h"
 
-
 ADXL345 accelerometer(D11,D12,D13,D10);
 TS_DISCO_F746NG ts;
 TS_StateTypeDef TS;
@@ -21,7 +14,7 @@
 Serial pc(USBTX, USBRX);
 
 
-//FM Synthesis Parameters
+//FM Synthesis Initial Parameters
 float amplitude = 0.5; //numbers between 0.0 and 1.0
 float pitch = 400; // numbers between 50 and 5000
 float modrate = 0; // numbers between -1000 and 1000