DegreeToKey:
Filter:
Classes | UGens > Conversion

DegreeToKey : PureUGen : UGen : AbstractFunction : Object

Convert signal to modal pitch.
Source: Osc.sc

Description

The input signal value is truncated to an integer value and used as an index into an octave repeating table of note values. Indices wrap around the table and shift octaves as they do.

Class Methods

DegreeToKey.ar(bufnum, in: 0.0, octave: 12.0, mul: 1.0, add: 0.0)

DegreeToKey.kr(bufnum, in: 0.0, octave: 12.0, mul: 1.0, add: 0.0)

Arguments:

bufnum

Index of the buffer which contains the steps for each scale degree.

in

The input signal.

octave

The number of steps per octave in the scale.

mul

Output will be multiplied by this value.

add

This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples