so i was tweaking it a bit:
- creation argument schedules the first dirac impulse, too
- using negative creation arguments suppresses the first dirac
impulse (absolute value is used for the next impulse delay)
- optimized it, did some loop unrolling (no simd code ... since you
probably want to keep compatibility with vanilla pd)
perfect.
well, i was thinking again ... using negative creation arguments to suppress the first dirac impulse is a bit ugly ... it doesn't make it possible to suppress the first impulse, but set it to the 0st sample.
if you don't care about backwards compatibility, i'd suggest to remove the initial impulse completely ... if you care ... well, maybe a second parameter that would be zero by default, might be used to suppress the initial impulse ...
i'd prefer the first solution, since i prefer an elegant solution over the compatible solution ... anyway, the choice is yours ...
cheers ... tim