Skip to content

Latest commit

 

History

History
56 lines (30 loc) · 1.66 KB

README.md

File metadata and controls

56 lines (30 loc) · 1.66 KB

CustomFilter

The best OpenTabletDriver filter to ever grace this planet!

Total Download Count

Allows you to use any mathematical expression that can be evaluated to a number as a filtering stage!

Uses AngouriMath to automatically compile your expressions into code at runtime, to achieve the best performance possible.

All the math is done on complex numbers, but the end result is just the real part of it

Simple mode

image

The Simple Mode is the fastest but is limited in the number of samples you can use. Here's the supported parameters for both expressions:

x = The X coordinate

y = The Y coordinate

p = The pressure

tx = The tilt X component

ty = The tilt Y component

d = The hover distance

lx = The last X coordinate

ly = The last Y coordinate

lp = The last pressure

ltx = The last tilt X component

lty = The last tilt Y component

ld = The last hover distance

mx = Max X coordinate

my = Max Y coordinate

mp = Max pressure

cx = Last computed X coordinate

cy = Last computed Y coordinate

cp = Last computed pressure

Example: EMA smoothing

image