Adapting Mutable Plaits source code to genexpr
Sep 28 2018 | 1:19 pm
Mutable recently released the source code for their new oscillator module, Plaits. I'm trying to adapt the Grainlet Oscillator section (big fan of its granular formant engine) but so far I haven't had any success.
Basically the oscillator is described as "A phase-distorted single cycle sine * another continuously running sine,the whole thing synced to a main oscillator". Also there is some antialiasing using the polyblep method. I've managed to adapt the Carrier() and Grainlet() functions but I keep on failing at adapting the part of the code where the functions are put together and the polyblep method is used.
Anyway, here's my whole adaptation (the whole source code is also included) if a kind soul happens to have the time to take a look at my adaptation. Note : subsample() and Next() only seem to refer to the interpolation routine used for the params so I've not adapted them. Also, carrier_phase_ / formant_phase_ / next_sample_ are supposed to be oscillator state variables.