VClamp:
Filter:
Scintillator/Classes (extension) | Quarks > Scintillator > VGens > Mathematics > Signal Processing

VClamp
ExtensionExtension

Video oscillator to constrain a value between two parameters

Description

Analogous to the audio Clip class. Returns the input x if min < v < max, min if v < min, max if v > max.

Supported Rates: frame, shape, pixel

Class Methods

.fr

.sr

.pr

Make a VClamp VGen at requested rate.

Arguments:

v

Input value to clamp.

min

Minimum value to clamp v to.

max

Maximum value to clamp v to.

Returns:

x if min < v < max, min if v < min, max if v > max.

Dimensions

inputoutput
1, 1, 1, 11
2, 2, 2, 22
3, 3, 3, 33
4, 4, 4, 44

Examples