You can account for however many folds you want with one function (I didn't try it in pd so I don't know if expr~ can handle absolute value and modulo operations but I assume it can 😅) | (x + 3) % 4 - 2 | - 1
This is a great sounding patch. Would you have a tip for not getting clicks/crackle everytime one modifies the slider value? I guess those are transients that appear abruptly whenever one changes the value. Im not having processor shortage, if you might think thats the reason i get those artifacts, thanks!
you can try using line~; multiply audio signal to the line~ 1 10 or similar and connect the output of your slider with this line object so that when you change the slider, the bang goes to the line operator and does smoothly (10 ms) change of signal to demanded amplitude
I had that problem on linux when using Portaudio as my sound station. Then I installed JACK, I set it in pure data and the problem was solved, I would advise you to try that!
1 is the maximum positive value we want for the waveform (they typically range from -1.0 to 1.0), so if it's greater than that, we fold it. Similarly, we fold values less than -1.
Marvelous
Thank you 🙏🏽
Thank you so much!! I always wanted to know how wave folding actually works.
You can account for however many folds you want with one function (I didn't try it in pd so I don't know if expr~ can handle absolute value and modulo operations but I assume it can 😅)
| (x + 3) % 4 - 2 | - 1
This is a great sounding patch. Would you have a tip for not getting clicks/crackle everytime one modifies the slider value? I guess those are transients that appear abruptly whenever one changes the value. Im not having processor shortage, if you might think thats the reason i get those artifacts, thanks!
you can try using line~; multiply audio signal to the line~ 1 10 or similar and connect the output of your slider with this line object so that when you change the slider, the bang goes to the line operator and does smoothly (10 ms) change of signal to demanded amplitude
@@goroshek6489 gonna try this, thank you!
I had that problem on linux when using Portaudio as my sound station.
Then I installed JACK, I set it in pure data and the problem was solved, I would advise you to try that!
Thanks for your amazing work !!!!!
But i dont understand . why is it value 1 on $v1 > 1 ? why not 2 or 3? How i know out the value? cheers
1 is the maximum positive value we want for the waveform (they typically range from -1.0 to 1.0), so if it's greater than that, we fold it. Similarly, we fold values less than -1.