Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of STM32FMSynth by
Diff: main.cpp
- Revision:
- 17:65437c94ab1b
- Parent:
- 16:c2f912cdd919
- Child:
- 18:4992aa537387
--- a/main.cpp Fri Dec 08 03:41:22 2017 +0000
+++ b/main.cpp Sun Dec 10 21:02:54 2017 +0000
@@ -54,7 +54,7 @@
int envelopeAmpsC[numKeys];
int envelopeAmpsM[numKeys];
-int testTone = 0;
+//int testTone = 0;
int modA;
int modD;
@@ -98,7 +98,7 @@
int subsignal;
int64_t keymask;
- testTone = testTone + carrierIncrements[25] & 0xffff;
+ //testTone = testTone + carrierIncrements[25] & 0xffff;
for(int64_t i = 0; i < numKeys; ++i){
subsignal = 0;
@@ -155,7 +155,7 @@
}
}
- wave += subsignal;
+ wave += subsignal >> 3;
}
//if(keyboard)
// wave += fastSin(testTone);
