RedDirection:
Filter:
redSys/Classes (extension) | Red > redUGens

RedDirection
ExtensionExtension

detects inc/dec of a signal

Description

Outputs 1 if previous sample was less than current, outputs -1 if previous sample was more than current, else outputs 0 - i.e. when no change.

Class Methods

.ar

.kr

Arguments:

in

Signal to track.

Language side implementation

.new

Arguments:

start

Initial sample value.

Instance Methods

Language side implementation

.direction

Language side.

.last

Get or set previous sample value.

Examples