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:
18:b9b1116f8768
Parent:
17:728ffc633179
Child:
22:dc2cbe8db9d9
--- a/main.cpp	Tue Jan 31 14:19:16 2017 +0000
+++ b/main.cpp	Wed Feb 01 15:00:31 2017 +0000
@@ -43,14 +43,14 @@
 {    
     uint32_t pushing, releasing, holding;
     
-        // VFO style
-    wave_style style = triangle;
+        // VFO form
+    wave_form form = triangle;
 
         // start audio. Do not touch
     initialize_system();
     
     process->set_vfo_frequency( 440 );
-    process->set_vfo_wave_style( style );
+    process->set_vfo_wave_form( form );
     ukifune::turn_led_off( ukifune::led1_1 );
     ukifune::turn_led_on( ukifune::led1_2 );
  
@@ -67,17 +67,17 @@
 
             // pushing detection demo
         if ( pushing & (1 << ukifune::swm1 ) )      // is SWM1 switch pusshing down?
-            if  ( style == triangle )
+            if  ( form == triangle )
             {
-                style = square;
-                process->set_vfo_wave_style( style );
+                form = square;
+                process->set_vfo_wave_form( form );
                 ukifune::turn_led_on( ukifune::led1_1 );
                 ukifune::turn_led_off( ukifune::led1_2 );
             }
             else
             {
-                style = triangle;
-                process->set_vfo_wave_style( style );
+                form = triangle;
+                process->set_vfo_wave_form( form );
                 ukifune::turn_led_off( ukifune::led1_1 );
                 ukifune::turn_led_on( ukifune::led1_2 );
             }