mystran wrote:Well, mm.. don't have a picture to post, but basically a bit cleaner than DPW.
Well, I do:
Thanks for the pictures. Yeah, you can trade-off different functions. The one you propose (0.5*x^2) amounts to treating the step as a linear segment rather than a smooth-step. The choice makes some sense, but for whatever reason the one I used appears to be popular in literature.
Anyway, I don't really have an opinion on particular step-functions to use, I just picked something that worked reasonably well. Normally I'd use longer tabulated BLEPs (usually 16 taps or so). Really should extend the code above to illustrate how to do this exactly.
Everyone should keep in mind of course the examples are generated with a very minimal filter. The filter I use for example produces zero passband distortion and provides 120db in 1/5th octave. This means say you're running at 48khz, harmonics roll off from 24khz to 19.2khz and then are -120db. Same response for all orders.
It does this in eight samples rather than two, so it is not much more expensive.