digitalmodulation

DigitalModulation oscillator from Mutable Instruments Braids
Author: Johannes Taelman
License: BSD
Github: osc/brds/digitalmodulation.axo

Inlets

frac32.bipolar pitch

frac32 timbre

frac32 color

bool32.rising strike

Outlets

frac32buffer.bipolar sine wave

Parameters

frac32.s.map.pitch pitch

frac32.u.map timbre

frac32.u.map color

Declaration
braids_digital_deriv::DigitalModulation osc;
bool pstrike;
Init
osc.Init();
pstrike = 0;
Control Rate
osc.set_parameters(__USAT((inlet_timbre + param_timbre) >> 12, 15),
                   __USAT((inlet_color + param_color) >> 12, 15));
osc.set_pitch((64 << 7) + ((param_pitch + inlet_pitch) >> 14));
bool strike = 0;
if (inlet_strike && !pstrike) {
  pstrike = 1;
  strike = 1;
} else if (!inlet_strike) {
  pstrike = 0;
}

osc.Render(&outlet_wave[0], BUFSIZE, strike);

Privacy

© 2024 Zrna Research