summaryrefslogtreecommitdiffhomepage
path: root/filter-accela
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-31 18:55:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-01 08:10:51 +0200
commit4e1cdb6ada712225fcb0ceffedaf91656265aeb1 (patch)
tree3ce38af0169f29636f82d3fb9f1e61f66e13d06a /filter-accela
parentb7a4654374fd35384be9d3575594fd54acaaca87 (diff)
filter/accela: fix splines
Recent revision made bad shape at the beginning.
Diffstat (limited to 'filter-accela')
-rw-r--r--filter-accela/ftnoir_filter_accela.cpp17
-rw-r--r--filter-accela/ftnoir_filter_accela_dialog.cpp4
2 files changed, 7 insertions, 14 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp
index c677e1b5..4f6dafb8 100644
--- a/filter-accela/ftnoir_filter_accela.cpp
+++ b/filter-accela/ftnoir_filter_accela.cpp
@@ -12,23 +12,16 @@
#include "opentrack/plugin-api.hpp"
static constexpr double rot_gains[][2] = {
- { 5, 350 },
- //{ 3.33, 200 },
- { 2.66, 110 },
- //{ 2.33, 85 },
- { 2, 45 },
- //{ 1.66, 30 },
- { 1, 5 },
- //{ .66, 1.3 },
- //{ .5, .53 },
- //{ .33, .25 },
- { .22, .16 },
+ { 6, 200 },
+ { 2.66, 50 },
+ { 1.66, 17 },
+ { 1, 4 },
+ { .5, .53 },
{ 0, 0 },
{ -1, 0 }
};
static constexpr double trans_gains[][2] = {
- //{ 3, 200 },
{ 2.33, 40 },
{ 1.66, 13 },
{ 1.33, 5 },
diff --git a/filter-accela/ftnoir_filter_accela_dialog.cpp b/filter-accela/ftnoir_filter_accela_dialog.cpp
index c046f986..790aeef3 100644
--- a/filter-accela/ftnoir_filter_accela_dialog.cpp
+++ b/filter-accela/ftnoir_filter_accela_dialog.cpp
@@ -47,7 +47,7 @@ FilterControls::FilterControls() :
void FilterControls::register_filter(IFilter* filter)
{
accela_filter = static_cast<FTNoIR_Filter*>(filter);
-//#define SPLINE_ROT_DEBUG
+#define SPLINE_ROT_DEBUG
#if defined(SPLINE_ROT_DEBUG) || defined(SPLINE_TRANS_DEBUG)
QDialog d;
QFunctionConfigurator r(&d);
@@ -57,7 +57,7 @@ void FilterControls::register_filter(IFilter* filter)
#else
r.setConfig(&accela_filter->rot, "");
#endif
- r.setFixedSize(800, 300);
+ r.setFixedSize(800, 600);
d.show();
d.exec();
#endif