funny way to create a linear ramp in gen

lucas boutignon's icon

through experimenting a found this fun way to create a linear ramp. it works with using the absolute diference between the input and output of a lowpass filter to control its interpolation.

Max Patch
Copy patch and select New From Clipboard in Max.

this technique seems less useful than the technique using the clip object (in the book generating sound&organizing time), however i'm curious if anybody could help me understand it a bit more (and also reduce it ?)

👽!t W∆s ∆lienz!👽's icon

i'm not sure how i'd reduce it, other than moving the '1000/samplerate' outside the gen~ part of the patch(so that it's only calculated once on initialization of dsp), but i think you've basically figured out the exact value to integrate by in order to keep the linear slope, and it's most interesting to try and play with subtle algorithmic changes right there before the feedback goes into mix:

i think the technique is pretty useful especially if you mess with it, possibly removing the 'clip' or allowing for freer limits, and adding some chaotic algorithmic manipulation of the feedback path right before going back into 'mix' to create things more like 'strange attractors' or chaotic lfos and such. nice find! 👍

lucas boutignon's icon

love the idea of adding noise ! with some variation of the patch i obtained attractors but i've no idea from which system they originate... picture attached


Matteo Marson's icon

i think it could be further simplified like this


lucas boutignon's icon

that's great matteo thx!

Paolo Piaser's icon

@Lucas, do you mind sharing the patch variation that created the attractor?