diff --git a/ChangeLog b/ChangeLog index ade0061c1..e32fa66f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-09-25 Danny McRae + * plugins/vibed/vibrating_string.cpp: + 2x oversampling in non-hq-mode to get the instument to sound the + same in both modes + + * configure.in: + * plugins/ladspa_effect/Makefile.am: + removed references to CAPS (sorry about that Toby, but I couldn't get + anything to build with them--there's no make info in the CAPS dir) + 2006-09-25 Tobias Doerffel * plugins/vst_effect/vst_control_dialog.cpp: diff --git a/configure.in b/configure.in index 3e50a8ec5..b8ca73220 100644 --- a/configure.in +++ b/configure.in @@ -508,7 +508,6 @@ AC_CONFIG_FILES([Makefile plugins/flp_import/Makefile plugins/ladspa_base/Makefile plugins/ladspa_effect/Makefile - plugins/ladspa_effect/caps/Makefile plugins/midi_import/Makefile plugins/organic/Makefile plugins/plucked_string_synth/Makefile diff --git a/plugins/ladspa_effect/Makefile.am b/plugins/ladspa_effect/Makefile.am index c79c7fe8c..39d63cf0b 100644 --- a/plugins/ladspa_effect/Makefile.am +++ b/plugins/ladspa_effect/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = foreign 1.4 -SUBDIRS = caps +#SUBDIRS = caps INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/lib -I. -I../ladspa_base/ diff --git a/plugins/vibed/vibrating_string.cpp b/plugins/vibed/vibrating_string.cpp index 91e839888..c3e89ef6e 100644 --- a/plugins/vibed/vibrating_string.cpp +++ b/plugins/vibed/vibrating_string.cpp @@ -26,7 +26,7 @@ #include "vibrating_string.h" #include "templates.h" #include "interpolation.h" - +#include "mixer.h" vibratingString::vibratingString( float _pitch, float _pick, @@ -39,7 +39,7 @@ vibratingString::vibratingString( float _pitch, float _string_loss, float _detune, bool _state ) : - m_oversample( _oversample ), + m_oversample( 2 * _oversample / (int)( _sample_rate / SAMPLE_RATES[0] ) ), m_randomize( _randomize ), m_stringLoss( 1.0f - _string_loss ), m_state( 0.1f ) @@ -47,10 +47,10 @@ vibratingString::vibratingString( float _pitch, m_outsamp = bufferAllocator::alloc( m_oversample ); int string_length; - string_length = static_cast( m_oversample *_sample_rate / + string_length = static_cast( m_oversample * _sample_rate / _pitch ) + 1; string_length += static_cast( string_length * -_detune ); - + int pick = static_cast( ceil( string_length * _pick ) ); if( not _state )