Synthesizer based on the Unzen / Nucleo F746ZG
Dependencies: amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746
Fork of skeleton_unzen_nucleo_f746 by
雲仙フレームワークのテストとして作っているプロジェクトです。中身はどんどん変っていきます。 説明はDSP空挺団の「シンセサイザー」カテゴリーを参照してください。初回は「ドッグフードを食べる」です。
Diff: signal_processing.h
- Revision:
- 16:d4ea3e6a0bce
- Parent:
- 15:de22b9d147e0
- Child:
- 18:b9b1116f8768
--- a/signal_processing.h Mon Jan 30 15:01:29 2017 +0000 +++ b/signal_processing.h Tue Jan 31 12:52:59 2017 +0000 @@ -22,15 +22,19 @@ void set_wave_style( wave_style style ); private: - // internal variables.. + // control variables. int frequency; // VFO frequency [Hz] int Fs; // sampling Frequency [Hz] float duty_cycle; // VFO duty cycle. 0 ... 0.5 wave_style style; // style of the wave form. int current_phase; // internal variable of VFO. - int half_way; // change point by duty cycle. ( period * duty_cycle ). - void update_parameter(); // call one of the parameter is changed. + // internal variable. + int half_way; // change point by duty cycle. ( period * duty_cycle ). + float rising_rate; + float falling_rate; + + void update_parameters(void); // call one of the parameter is changed. };