ModDif:
Filter:
Classes | UGens > Maths

ModDif : UGen : AbstractFunction : Object

Minimum difference of two values in modulo arithmetics
Source: Trig.sc

Description

Returns the minimum difference of two values in modulo arithmetics. On a circle, there are two distances between two points. This UGen returns the smaller value of the two.

Class Methods

ModDif.ar(x: 0.0, y: 0.0, mod: 1.0)

ModDif.kr(x: 0.0, y: 0.0, mod: 1.0)

ModDif.ir(x: 0.0, y: 0.0, mod: 1.0)

Arguments:

x

First input value

y

Second input value

mod

Modulo (maximum value, double of the maximal difference).

Inherited class methods

Instance Methods

Inherited instance methods