Synthesizer based on the Unzen / Nucleo F746ZG

Dependencies:   amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746

Fork of skeleton_unzen_nucleo_f746 by seiichi horie

雲仙フレームワークのテストとして作っているプロジェクトです。中身はどんどん変っていきます。 説明はDSP空挺団の「シンセサイザー」カテゴリーを参照してください。初回は「ドッグフードを食べる」です。

Revision:
20:53021b2c424d
Parent:
18:b9b1116f8768
Child:
22:dc2cbe8db9d9
diff -r f5e785fe50b1 -r 53021b2c424d monophonic.cpp
--- a/monophonic.cpp	Fri Feb 03 14:35:46 2017 +0000
+++ b/monophonic.cpp	Sat Feb 04 15:03:41 2017 +0000
@@ -6,12 +6,22 @@
 {
         // initializing the subm-odules.
     this->vfo = new VFO();      // allocate VFO
+    this->dc_blocker = new DCBlocker( block_size );
+    this->sv_filter = new SVFilter( block_size );
+    
+    work_buf_a = new float32_t[block_size];
+    work_buf_b = new float32_t[block_size];
 }   // End of constructor()
 
 Monophonic::~Monophonic( void )
 {
         // initializing the subm-odules.
     delete this->vfo;
+    delete this->dc_blocker;
+    delete this->sv_filter;
+    
+    delete[] work_buf_a;
+    delete[] work_buf_b;
 }   // End of constructor()
 
 
@@ -25,7 +35,9 @@
         // place the signal processing coce here
 
         // VFO
-    this->vfo->run( out_buffer, block_size);
+    this->vfo->run( work_buf_a );
+    
+    this->dc_blocker->run( work_buf_a, out_buffer );
     
 }   // End of run()