Frequency shifter for DISCO-F746. Input: MEMS mic, Output: CN10 OUT. DISCO-F746 による周波数シフタ.入力:MEMS マイク,出力:CN10 OUT
Dependencies: F746_GUI F746_SAI_IO mbed
Revision 1:af3546588b73, committed 2018-03-19
- Comitter:
- MikamiUitOpen
- Date:
- Mon Mar 19 08:00:04 2018 +0000
- Parent:
- 0:67554e1407a7
- Commit message:
- 2
Changed in this revision
MyAcousticEffector_MIC/HilbertTransform.hpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 67554e1407a7 -r af3546588b73 MyAcousticEffector_MIC/HilbertTransform.hpp --- a/MyAcousticEffector_MIC/HilbertTransform.hpp Mon Mar 19 03:19:35 2018 +0000 +++ b/MyAcousticEffector_MIC/HilbertTransform.hpp Mon Mar 19 08:00:04 2018 +0000 @@ -16,7 +16,7 @@ public: // order: 4K+2 とすること, K: 整数 Hilbert(int order, const float hk[]) - : ORDER_(order), HN_(order+1, hk), xn_(order+1, 0.0f) + : ORDER_(order), HN_((order-2)/4+1, hk), xn_(order+1, 0.0f) { if ( ((order-2) % 4) != 0) fprintf(stderr, "order must be 4*K+2, K: integer\r\n");