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:
12:2b121255e2d1
Parent:
11:7d8740437e6a
Child:
13:b33cb5925113
--- a/main.cpp	Sat Jan 28 12:51:50 2017 +0000
+++ b/main.cpp	Sun Jan 29 00:07:14 2017 +0000
@@ -49,6 +49,8 @@
        // main loop. Signal processing is done in background.
     while(1)     
     {       // place your foreground program here.
+
+            // get volume from UI panel, then apply it to signal processing.
         process->set_volume( ukifune::get_volume(0) );   
        
             // sample usage of button switch detection
@@ -63,7 +65,7 @@
             ukifune::toggle_led( ukifune::led2_1 ); // then toggle LED2_1
        
             // holding detection demo     
-        if ( holding & (1 << ukifune::swm3 ) )    // is SWM2 switch holding? 
+        if ( holding & (1 << ukifune::swm3 ) )    // is SWM3 switch holding? 
             ukifune::turn_led_on( ukifune::led3_1 );    // then turn LED3_1 on
         else
             ukifune::turn_led_off( ukifune::led3_1 );   // else off