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.
Diff: Echo.cpp
- Revision:
- 1:18123753e1d0
- Parent:
- 0:b027da9cfc23
- Child:
- 4:640d48e7b84a
diff -r b027da9cfc23 -r 18123753e1d0 Echo.cpp
--- a/Echo.cpp Mon Jul 28 07:25:49 2014 +0000
+++ b/Echo.cpp Tue Jul 29 04:51:09 2014 +0000
@@ -1,6 +1,6 @@
//--------------------------------------------------------------
// Echo generation system for Open Campus
-// Copyright (c) 2014 MIKAMI, Naoki, 2014/07/28
+// Copyright (c) 2014 MIKAMI, Naoki, 2014/07/29
//--------------------------------------------------------------
#include "mbed.h"
@@ -13,15 +13,16 @@
const float FS_ = 10.0e3f;
Adc adc_(A0);
DacMCP4921 dac_;
+ReverbSystem myReverb; // Reverb genaration system
Ticker timer_; // for timer interrupt
-ReverbSystem myReverb; // Reverb genaration system
void TimerIsr()
{
+
float xn = adc_.Read(); // input
float yn = xn; // input => output
-// float yn = myReverb.Execute(xn);
+// float yn = myReverb.Execute(xn); // Echo
dac_.Write(yn); // output
}