Some context: I am building my own "oneshot" drum sampler and realized I got clicks/pops in the audio if I triggered notes too quickly. I was looking online for solutions and came to part of Johannes Kriedler's tutorials. I think some kind of amplitude windowing is what I need so as to ensure that each sample starts and stops at "0" amplitude to avoid clicks (see my included patch and sample).
Anyways before shamelessly copy-and-pasting Kriedler's patch into my own, I want to understand exactly what's going on. Below is a picture of Kriedler's example with [[my comments in brackets]].
Pd file in case the picture isn't big enough: kriedler.pd
Can anyone explain to me what's going on here?
My patch for reference: pdforum.zip