combining mapping with smoothing
i now have to make a decision over how to order some operations in our parameter handling. with the newly introduced custom (breakpoint) mapper, we have a two-stage mapping. the first mapper (mapper1) maps the normalized range of 0..1 onto itself via a user definable breakpoint function. the second mapper (mapper2) maps the output of the first mapper (which is still in 0..1) to the actual target range - for example, exponentially to 20...20000 for a cutoff frequency parameter. now the question is, where to put the smoother, i see 3 options:
(1) normalized -> smoother -> mapper1 -> mapper2
(2) normalized -> mapper1 -> smoother -> mapper2
(3) normalized -> mapper1 -> mapper2 -> smoother
...tbc
implications:
1: most costly computationally (2 mappers have to be evaluated per sample during smoothing)
2: step-discontinuities in the breakpoint function would be smoothed out (may or may not be desirable)
3: smoothing applied to final value - may give inappropriate (up/down) smoothing curves for exponentially scaled parameters
..i tend to favor version 2 with the smoother applied in between the two mappers - elan, what do you think?
so far, we had something like:
normalized -> mapper2 -> smoother
...the mapper1 did not yet exist before