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を基本にしています。

Files at this revision

API Documentation at this revision

Comitter:
shorie
Date:
Fri Jan 27 02:18:26 2017 +0000
Parent:
9:7f521a0b397c
Child:
11:7d8740437e6a
Commit message:
Comment edited.

Changed in this revision

signal_processing.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/signal_processing.cpp	Fri Jan 27 02:13:43 2017 +0000
+++ b/signal_processing.cpp	Fri Jan 27 02:18:26 2017 +0000
@@ -1,11 +1,15 @@
 #include "signal_processing.h"
 
+/*========================= Project Dependent Method =========================*/
+        // Modify this constructor to initialize your audio algorithm.
 SignalProcessing::SignalProcessing( unsigned int  block_size )
 {
         // place the signal processing initializing code here.
     this->volume_level = 0.0;   // sample initializaiton
-}
+}   // End of constructor()
     
+    
+        // Modify this method to implement your audio algorithm.
 void SignalProcessing::run(           
             float rx_left_buffer[],     // array of the left input samples
             float rx_right_buffer[],    // array of the right input samples
@@ -20,9 +24,10 @@
             rx_left_buffer[i] = tx_left_buffer[i] * this->volume_level;
             rx_right_buffer[i] = tx_right_buffer[i] * this->volume_level;
     }
-}
+}   // End of run()
+    
            
-        // project depenedent members.
+        // Sample method. Set the volume level to the object.
 void SignalProcessing::set_volume( float vol )
 {
     this->enter_critical_section();     // forbidden interrrupt.
@@ -32,7 +37,7 @@
 
 
 
-
+/************************** skeleton dependent methond. ***********************/
         // essential members. Do not touch.
 void SignalProcessing::enter_critical_section(void)
 {