keyscaler

Keyboard breakpoint and scaling, k-rate, out = breakpoint + (note * scale)
Author: Are Leistad
License: BSD
Github: drj/math/keyscaler.axo

IO Variants: 3


Variant: 1

Inlets

frac32.bipolar Pitch input

Outlets

frac32.bipolar Control level output

Parameters

frac32.s.map.pitch Pitch offset

frac32.s.map.ratio Pitch scaling

Control Rate
//  out = breakpoint + (pitch * scaling )
outlet_out =
    __SSAT(___SMMLA(param_scale << 3, inlet_note << 2, param_offset), 28);

Variant: 2

Inlets

frac32buffer.bipolar Input

Outlets

frac32buffer.bipolar Output

Parameters

frac32.s.map.ratio Scaling factor

frac32.s.map Offset

Audio Rate
//  out = offset + (in * scale)
outlet_out =
    __SSAT(___SMMLA(param_scale << 3, inlet_in << 2, param_offset), 28);

Variant: 3

Inlets

frac32.bipolar Input

Outlets

frac32.bipolar Output

Parameters

frac32.s.map Offset

frac32.s.map.ratio Scaling factor

Control Rate
//  out = offset + (in * scale)
outlet_out =
    __SSAT(___SMMLA(param_scale << 3, inlet_in << 2, param_offset), 28);

Privacy

© 2024 Zrna Research