projectM

Built-in functions: int(x), abs, sin, cos, tan, asin, acos, atan, sqr(x), sqrt, pow(x,y), exp, log, log10, sign(x), min(x,y), max(x,y), sigmoid(x,y), atan2, rand(n>0), band(n,m), bor(n,m), bnot(n), if(n,x,y), equal(x,y), above(x,y), below(x,y), nchoosek(n,m), fact(n), print(…)


Built-in parameters:

float frating
float fwavescale
float gamma, fGammaAdj
float echo_zoom, fVideoEchoZoom
float echo_alpha, fvideoechoalpha
float wave_a, fwavealpha
float fwavesmoothing
float fmodwavealphastart
float fmodwavealphaend
float fWarpAnimSpeed
float fWarpScale
(float warp)
float fshader
float decay, fdecay
int echo_orient, nVideoEchoOrientation
int wave_mode, nwavemode
bool wave_additive, bAdditiveWaves
bool bmodwavealphabyvolume
bool wave_brighten, bMaximizeWaveColor
bool wrap, btexwrap
bool darken_center, bdarkencenter
bool bredbluestereo
bool brighten, bbrighten
bool darken, bdarken
bool solarize, bsolarize
bool invert, binvert
bool bmotionvectorson
bool wave_dots, bwavedots
bool wave_thick, bwavethick

Per-pixel:

float warp
float zoom
float rot
float zoomexp, fzoomexponent
float cx
float cy
float dx
float dy
float sx
float sy

Blur:

float b1n
float b2n
float b3n
float b1x
float b2x
float b3x
float b1ed

Wave:

float wave_r
float wave_g
float wave_b
float wave_x
float wave_y
float wave_mystery, fWaveParam

Border (inner, outer):

float ob_size
float ob_r
float ob_g
float ob_b
float ob_a
float ib_size
float ib_r
float ib_g
float ib_b
float ib_a

Motion Vectors:

float mv_r
float mv_g
float mv_b
float mv_x, nmotionvectorsx
float mv_y, nmotionvectorsy
float mv_l
float mv_dy
float mv_dx
float mv_a

Readonly builtin params:

float time
float bass
float mid
float treb
float bass_att
float mid_att
float treb_att
int frame
float progress
int fps

int meshx
int meshy

Per-Pixel Readonly:

float x
float y
float ang
float rad

Q-Variables (read-only):

q1 .. q32

Equations:

per_frame_
per_pixel_
per_frame_init_
wavecode_
wave_
per_point
per_frame
shapecode_
warp_
comp_
shape_
init

posted: 2012-12-03 22:22

Written on December 3, 2012