SmoothFoldQ2:
Filter:
Classes (extension) | Libraries > miSCellaneous > WaveFolding

SmoothFoldQ2 : UGen : AbstractFunction : Object
ExtensionExtension

wave folding pseudo ugen using parabolic segments, two fold ranges

Description

Wave folding using SmoothClipQ. Values outside the range lo-hi are folded back, if the concerned foldRange > 0. A larger foldRange means less folding whereas a smaller foldRange causes more folding. The spectral result depends on the source wave form also but in general a smaller foldRange causes more energy in the higher spectrum whereas near foldRange == 0 the higher part of the spectrum again decreases. Note that, in contrast to classical wave folding, the number of foldings isn't limited here, possibly causing aliasing when heavy folding is forced.

Class Methods

SmoothFoldQ2.ar(in, lo: -1, hi: 1, foldRangeLo: 1, foldRangeHi: 1, smoothAmount: 0.5, delta: 1e-05)

Arguments:

in

input signal.

lo

lower limit, defaults to -1.

hi

upper limit, defaults to 1.

foldRangeLo

the relative amount of the range (defined by lo and hi) used for folding back values below lo, should be >= 0 and <= 1. 0 means no folding (just smooth clipping), 1 means that the full range is used for folding, values inbetween determine the range near lo, which is used for folding, defaults to 1.

foldRangeHi

the relative amount of the range (defined by lo and hi) used for folding back values above hi, should be >= 0 and <= 1. 0 means no folding (just smooth clipping), 1 means that the full range is used for folding, values inbetween determine the range near hi, which is used for folding, defaults to 1.

smoothAmount

amount of smoothness, must be >= 0 and <= 1, defaults to 0.5.

delta

Threshold for avoiding zero divisions (which would happen if lo = hi and the border case of amount = 1). Normally not to be set by the user, except for very small clipping ranges, defaults to 0.00001.

SmoothFoldQ2.kr(in, lo: -1, hi: 1, foldRangeLo: 1, foldRangeHi: 1, smoothAmount: 0.5, delta: 1e-05)

Arguments:

in

input signal.

lo

lower limit, defaults to -1.

hi

upper limit, defaults to 1.

foldRangeLo

the relative amount of the range (defined by lo and hi) used for folding back values below lo, should be >= 0 and <= 1. 0 means no folding (just smooth clipping), 1 means that the full range is used for folding, values inbetween determine the range near lo, which is used for folding, defaults to 1.

foldRangeHi

the relative amount of the range (defined by lo and hi) used for folding back values above hi, should be >= 0 and <= 1. 0 means no folding (just smooth clipping), 1 means that the full range is used for folding, values inbetween determine the range near hi, which is used for folding, defaults to 1.

smoothAmount

amount of smoothness, must be >= 0 and <= 1, defaults to 0.5.

delta

Threshold for avoiding zero divisions (which would happen if lo = hi and the border case of amount = 1). Normally not to be set by the user, except for very small clipping ranges, defaults to 0.00001.

Inherited class methods

Instance Methods

Inherited instance methods

Examples