sawswarm

saw swarm oscillator from Mutable Instruments Braids
Author: Johannes Taelman
License: BSD
Github: osc/brds/sawswarm.axo

Inlets

bool32.rising strike

frac32.bipolar pitch

frac32 timbre

frac32 color

frac32buffer sync

Outlets

frac32buffer.bipolar sine wave

Parameters

frac32.s.map.pitch pitch

frac32.u.map timbre

frac32.u.map color

Declaration
braids_digital_deriv::SawSwarm osc;
bool pstrike = 0;
Init
// osc.Init();
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(&inlet_sync[0], &outlet_wave[0], BUFSIZE, 0);

Privacy

© 2024 Zrna Research