Experimental implementation of the adaptive filter of "Interface" magazine in 2016-2017

Dependencies:   amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746

Fork of skeleton_unzen_nucleo_f746 by seiichi horie

ハードウェアおよびソフトウェアはskelton_unzen_nucleo_f746を基本にしています。

Revision:
7:e86c645231ff
Parent:
6:486b1cb03e61
Child:
8:d8d1776e865b
--- a/main.cpp	Fri Jan 27 01:53:43 2017 +0000
+++ b/main.cpp	Fri Jan 27 02:00:26 2017 +0000
@@ -38,37 +38,12 @@
 SignalProcessing * process;
 
 
-
 /************************* Unzen Dependent Function Prototype *****************/
     // for system usage. Do not care.
 void initialize_system(void);
  
 
- /*========================= project dependent Signal Processing. ============*/
-   // customer signal processing initialization call back.
-void init_callback(
-           unsigned int block_size     // block size [sample]
-           )
-{
-       // place initialization code here
-    process = new SignalProcessing( block_size );
-}
- 
-   // customer signal processing call back.
-void process_callback(
-           float rx_left_buffer[],     // array of the left input samples
-           float rx_right_buffer[],    // array of the right input samples
-           float tx_left_buffer[],     // place to write the left output samples
-           float tx_right_buffer[],    // place to write the left output samples
-           unsigned int block_size     // block size [sample]
-           )
-{
-       // place signal processing code here
-    process->run( rx_left_buffer, rx_right_buffer, tx_left_buffer, tx_right_buffer, block_size );
-}
- 
-
- 
+/*========================= Main program. ====================================*/
 int main() 
 {    
         // start audio. Do not touch
@@ -83,7 +58,32 @@
         wait(0.05);
         ukifune::tick();
     }
-}
+}   // End of main
+
+
+/*========================= project dependent Signal Processing. ============*/
+   // customer signal processing initialization call back.
+void init_callback(
+           unsigned int block_size     // block size [sample]
+           )
+{
+       // place initialization code here
+    process = new SignalProcessing( block_size );
+}   // end of init_callback
+ 
+ 
+   // customer signal processing call back.
+void process_callback(
+           float rx_left_buffer[],     // array of the left input samples
+           float rx_right_buffer[],    // array of the right input samples
+           float tx_left_buffer[],     // place to write the left output samples
+           float tx_right_buffer[],    // place to write the left output samples
+           unsigned int block_size     // block size [sample]
+           )
+{
+       // place signal processing code here
+    process->run( rx_left_buffer, rx_right_buffer, tx_left_buffer, tx_right_buffer, block_size );
+}   // End of process_callback
 
 
 /************************* Unzen Dependent Function implementation ************/