designing audio-compressor-like patch for numbers

ćwiek's icon
Max Patch
Copy patch and select New From Clipboard in Max.

hi! i am trying to compress data that i playback from coll.
I thought that first i will try to "split 0. 0.1", where 0.1 is my treshold, than i divide higher values by "ratio" and multiply the output. i am trying to make output less glitchy, and work like in audio devices. can someone help me with inproving it?

3135.data.txt
txt
Jesse's icon

slide can be quite useful for this.

Wetterberg's icon

and [function] will pretty much do this out of the box, won't it?

ćwiek's icon

i know slide, but i cant find the clue to get clear not distortet output. maybe i should think, about something like adaptive divider to work more with higher values?

ćwiek's icon
Max Patch
Copy patch and select New From Clipboard in Max.