diff --git a/include/Controller.h b/include/Controller.h index 5a7d5a8ac4..01f7913219 100644 --- a/include/Controller.h +++ b/include/Controller.h @@ -24,8 +24,8 @@ */ -#ifndef _CONTROLLER_H -#define _CONTROLLER_H +#ifndef CONTROLLER_H +#define CONTROLLER_H #include "engine.h" #include "Mixer.h" @@ -65,9 +65,7 @@ public: inline bool isSampleExact() const { - return m_sampleExact || - engine::mixer()->currentQualitySettings(). - sampleExactControllers; + return m_sampleExact; } void setSampleExact( bool _exact ) diff --git a/include/Mixer.h b/include/Mixer.h index f35c24bed2..9a20cae5a6 100644 --- a/include/Mixer.h +++ b/include/Mixer.h @@ -106,8 +106,6 @@ public: Interpolation interpolation; Oversampling oversampling; - bool sampleExactControllers; - bool aliasFreeOscillators; qualitySettings( Mode _m ) { @@ -116,31 +114,22 @@ public: case Mode_Draft: interpolation = Interpolation_Linear; oversampling = Oversampling_None; - sampleExactControllers = false; - aliasFreeOscillators = false; break; case Mode_HighQuality: interpolation = Interpolation_SincFastest; oversampling = Oversampling_2x; - sampleExactControllers = true; - aliasFreeOscillators = false; break; case Mode_FinalMix: interpolation = Interpolation_SincBest; oversampling = Oversampling_8x; - sampleExactControllers = true; - aliasFreeOscillators = true; break; } } - qualitySettings( Interpolation _i, Oversampling _o, bool _sec, - bool _afo ) : + qualitySettings( Interpolation _i, Oversampling _o ) : interpolation( _i ), - oversampling( _o ), - sampleExactControllers( _sec ), - aliasFreeOscillators( _afo ) + oversampling( _o ) { } diff --git a/plugins/watsyn/Watsyn.cpp b/plugins/watsyn/Watsyn.cpp index e0f87fb66c..e088e09313 100644 --- a/plugins/watsyn/Watsyn.cpp +++ b/plugins/watsyn/Watsyn.cpp @@ -360,7 +360,8 @@ void WatsynInstrument::playNote( NotePlayHandle * _n, const float tfp_ = static_cast( _n->totalFramesPlayed() ); // if sample-exact is enabled, use sample-exact calculations... - if( engine::mixer()->currentQualitySettings().sampleExactControllers ) + // disabled pending proper implementation of sample-exactness +/* if( engine::mixer()->currentQualitySettings().sampleExactControllers ) { for( fpp_t f=0; f < frames; f++ ) { @@ -393,10 +394,11 @@ void WatsynInstrument::playNote( NotePlayHandle * _n, ( bbuf[f][1] * bmix ); } } - + else*/ + // if sample-exact is not enabled, use simpler calculations: // if mix envelope is active, and we haven't gone past the envelope end, use envelope-aware calculation... - else if( envAmt != 0.0f && tfp_ < envLen ) + if( envAmt != 0.0f && tfp_ < envLen ) { const float mixvalue_ = m_abmix.value(); for( fpp_t f=0; f < frames; f++ ) diff --git a/src/gui/dialogs/export_project.ui b/src/gui/dialogs/export_project.ui index dae06e6847..e9fcaeb012 100644 --- a/src/gui/dialogs/export_project.ui +++ b/src/gui/dialogs/export_project.ui @@ -272,13 +272,6 @@ - - - - Sample-exact controllers - - - @@ -286,13 +279,6 @@ - - - - Alias-free oscillators - - - diff --git a/src/gui/export_project_dialog.cpp b/src/gui/export_project_dialog.cpp index f819d93cca..df9bb7bc00 100644 --- a/src/gui/export_project_dialog.cpp +++ b/src/gui/export_project_dialog.cpp @@ -251,9 +251,7 @@ ProjectRenderer* exportProjectDialog::prepRender() Mixer::qualitySettings qs = Mixer::qualitySettings( static_cast(interpolationCB->currentIndex()), - static_cast(oversamplingCB->currentIndex()), - sampleExactControllersCB->isChecked(), - aliasFreeOscillatorsCB->isChecked() ); + static_cast(oversamplingCB->currentIndex()) ); ProjectRenderer::OutputSettings os = ProjectRenderer::OutputSettings( samplerateCB->currentText().section(" ", 0, 0).toUInt(),