Jamoma API  0.6.0.a19
TTFreeHandFunction.cpp File Reference

TTFreeHandFunction Unit for Jamoms DSP More...

#include "TTFreeHandFunction.h"
#include <math.h>
+ Include dependency graph for TTFreeHandFunction.cpp:

Go to the source code of this file.

Detailed Description

TTFreeHandFunction Unit for Jamoms DSP

A piecewise function unit that allows to load a function unit per defined domain.
The default configuration is a linear function for X[0::1], Y[0::1] domain.
Setup the curveList attribute to change the configuration.
For example setting curveList to the < 0.3 0.6 exponential base 0.5 1. 1. logarithm base 0.8 > value
you will imply the following behavior :

  • if x belongs to [0::0.3] domain, it will use the exponential function and the result will belong to [0.::0.6] domain.
  • if x belongs to ]0.3::1.] domain, it will use the logarithm function and the result will belong to ]0.6::1.] domain.
Authors
Théo de la Hogue, Trond Lossius

Definition in file TTFreeHandFunction.cpp.