QO_main

This is the main pitch/volume/pulse-width modulation-width control module for the QO_core quad oscillator. Enter the name of this module into the "main" object reference on the QO_control and QO_core modules.
Author: Remco van der Most
License: BSD
Github: sss/osc/QO_main.axo

Inlets

frac32 pitch

frac32 volume

Outlets

None

Parameters

frac32.s.map fine

frac32.s.map FM

int32 octave

int32 semi

frac32.u.map PWM

frac32.u.mapvsl volume

Declaration
int32_t _volume;
int32_t _mainpitch;
int32_t _fm;
int32_t PWM;
Control Rate
_mainpitch =
    ((param_semi + param_octave * 12) << 21) + (param_fine >> 8) + inlet_pitch;
_volume = ___SMMUL(param_volume << 3, inlet_volume << 2);
_fm = param_FM;
PWM = param_PWM;

Privacy

© 2024 Zrna Research