
FUNCTION PLOT
-------------

PLEASE REFER TO THE DOCUMENT "FormulaParserSynthaxReference.txt" IN MAIN EDM ARCHIVE FOR PROPER SYNTHAX AND SUPPORTED FUNCTIONS


Plots an user-defined parametric mathematical function Y = F(X,A,B) on the X,Y plane.

X and Y ranges for the plot can be specified, as long as X Min < X Max and Y Min < Y Max.
In case of invalid range, nothing other than the background color will be drawn.

Colors for both function plot, grid, grid origin and background can be specified in standard ARGB 32 bits hex format.
The grid is drawn at every integer coordinate values with the specified color. Unless the specified range is too wide, a decimal grid will also be drawn, in a fainter tint.

Pen size for the plot can be specified as well, from 1 to 10 pixels.

Expressions (function names, parameter and variable names) are NOT case-sensitive.
In case of synthax errors or invalid expression, no plot will be drawn.



NOTE: this module was meant for development / utility purposes and was NOT optimized for realtime / animations.  Using it inside plugins is safe despite possibly pointless, but you are highly warned NOT TO MODULATE ITS PARAMETERS (eg. from an audio signal, from MIDI or track automation), given the massive CPU overhead which would result. This module is based on a heavily modified version of the third-party expression evaluator class included in Synth Edit SDK, more efficient but still not really suitable for realtime usage.
For animated plots, rather use scopes or shape-based solutions.


NOTE (SE 1.4 BUG): with some formulas and when X and Y ranges are integer (eg [-1,1],[-1,1]) no plot may be displayed in Structure View. The plot is still drawn correctly in Panel View though.



DUO VERSION
-----------

This module is identical to the Function Plot module, with exception that two independent formulas can be plotted overlaid and with two distinct colors, and there are a total of four parameters (a,b,c,d) which are *in common* to the two functions.

HINT: you can safely leave either formula empty to avoid computing it, if not needed.







 

