globInMod

input modulated globulator
Author: Smashed Transistors
License: LGPL
Github: tiar/pata/globInMod.axo

Inlets

frac32buffer r

frac32buffer i

frac32 mod r

frac32 mod i

Outlets

frac32buffer r

frac32buffer i

Parameters

frac32.s.map mod r

frac32.s.map mod i

Declaration
int32_t sin2t_q27(uint32_t p) {
  int32_t a = (p & ((1 << 20) - 1)) << 8; // q28
  uint32_t i = p >> 20;
  return ___SMMLA(a, sine2t[i + 1] - sine2t[i], sine2t[i] >> 4);
}
int32_t cos2t_q27(uint32_t p) { return sin2t_q27(p + (1UL << 30)); }
Audio Rate
uint32_t a =
    ((___SMMLA(inlet_i, param_mod_space_i + inlet_mod_space_i,
               ___SMMUL(inlet_r, param_mod_space_r + inlet_mod_space_r))
      << 6) &
     0x07FFFFFF)
    << 5;
int32_t c = cos2t_q27(a);
int32_t s = sin2t_q27(a);
outlet_r = ___SMMLS(inlet_i, s, ___SMMUL(inlet_r, c)) << 5;
outlet_i = ___SMMLA(inlet_i, c, ___SMMUL(inlet_r, s)) << 5;

Privacy

© 2024 Zrna Research