From a046128a59615bbd34763cd784831ceb3f411ed4 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 14 Jun 2008 22:25:15 +0000 Subject: [PATCH] don't apply window-function to data as this seems to make things only even worse git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1129 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 4 ++++ plugins/spectrum_analyzer/spectrum_analyzer.cpp | 2 +- plugins/spectrum_analyzer/spectrumanalyzer_controls.cpp | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cd177824a..cc1e99add 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-06-14 Tobias Doerffel + * plugins/spectrum_analyzer/spectrum_analyzer.cpp: + don't apply window-function to data as this seems to make things only + even worse + * plugins/spectrum_analyzer/log_x_axis.png: * plugins/spectrum_analyzer/log_y_axis.png: * plugins/spectrum_analyzer/background.png: diff --git a/plugins/spectrum_analyzer/spectrum_analyzer.cpp b/plugins/spectrum_analyzer/spectrum_analyzer.cpp index 3f3f960a5..d02e98cd0 100644 --- a/plugins/spectrum_analyzer/spectrum_analyzer.cpp +++ b/plugins/spectrum_analyzer/spectrum_analyzer.cpp @@ -349,7 +349,7 @@ bool spectrumAnalyzer::processAudioBuffer( sampleFrame * _buf, } - hanming( m_buffer, BUFFER_SIZE, HAMMING ); +// hanming( m_buffer, BUFFER_SIZE, HAMMING ); const sample_rate_t sr = engine::getMixer()->processingSampleRate(); const int LOWEST_FREQ = 0; diff --git a/plugins/spectrum_analyzer/spectrumanalyzer_controls.cpp b/plugins/spectrum_analyzer/spectrumanalyzer_controls.cpp index f618986b4..45077e4b9 100644 --- a/plugins/spectrum_analyzer/spectrumanalyzer_controls.cpp +++ b/plugins/spectrum_analyzer/spectrumanalyzer_controls.cpp @@ -32,7 +32,10 @@ spectrumAnalyzerControls::spectrumAnalyzerControls( spectrumAnalyzer * _eff ) : m_effect( _eff ), m_linearSpec( FALSE, this, tr( "Linear spectrum" ) ), m_linearYAxis( FALSE, this, tr( "Linear Y-axis" ) ), - m_channelMode( spectrumAnalyzer::MergeChannels, spectrumAnalyzer::MergeChannels, spectrumAnalyzer::RightChannel, this, tr( "Channel mode" ) ) + m_channelMode( spectrumAnalyzer::MergeChannels, + spectrumAnalyzer::MergeChannels, + spectrumAnalyzer::RightChannel, + this, tr( "Channel mode" ) ) { }