diff options
author | Sampo Savolainen <v2@iki.fi> | 2008-10-20 18:57:34 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2008-10-20 18:57:34 +0000 |
commit | a75868c767dc5a74f4b7361a6255972bad7f7c61 (patch) | |
tree | a9c2d38f35c8f85bc826ca7310f10073e7131539 /gtk2_ardour/fft.h | |
parent | 820acf23009586ef4fe9cfbbfd3eb2f840012634 (diff) |
Added facilities into PluginInsert for the GUI to gather parts of the real signal passed through the insert. Also added rudimentary plugin input/output difference analysis in the plugin eq gui for the collected signal.
git-svn-id: svn://localhost/ardour2/branches/3.0@3987 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/fft.h')
-rw-r--r-- | gtk2_ardour/fft.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/fft.h b/gtk2_ardour/fft.h index d80616b77f..3a4d0f8063 100644 --- a/gtk2_ardour/fft.h +++ b/gtk2_ardour/fft.h @@ -38,8 +38,13 @@ class FFT FFT(uint32_t); ~FFT(); + enum WindowingType { + NONE, + HANN + }; + void reset(); - void analyze(ARDOUR::Sample *); + void analyze(ARDOUR::Sample *, WindowingType w = NONE); void calculate(); uint32_t bins() const { return _data_size; } @@ -47,12 +52,17 @@ class FFT float power_at_bin(uint32_t i) const { return _power_at_bin[i]; } float phase_at_bin(uint32_t i) const { return _phase_at_bin[i]; } + private: + float *get_hann_window(); + uint32_t const _window_size; uint32_t const _data_size; uint32_t _iterations; + float *_hann_window; + float *_fftInput; float *_fftOutput; |