I think you are mixing up what it's currently doing (not in parentheses) with what I want it to do (in parentheses) in what you're quoting. It was a bad idea to write it like that
I know it's not a delay, which is why I'm asking how to make it act like a delay in the thread title
Let me see if I can use my subpar English skill to reiterate what I'm trying to do:
Think of a delay pedal for guitar, which is something I've already made using buffers with axoloti and is housed in an enclosure right now. I really like that pedal, but I'd also like to add a granular time stretching mode to it, where I can stretch the repeats(sample) and choose grain size without the pitch going all over the place. But, I don't know anything about working with tables, which seems to be the way to do it. After reading and searching the forum, I found your awesome sampler.
The thing is, it is a sampler, and I want a delay that processes the signal from the moment I stomp on my footswitch until I stomp it again, aka bypass the pedal. So, I want the first thing I played to gradually fade out using a knob to control how fast it will do that. So, say knob at minimum = one repeat/playback of the table, knob at 12 = repeat is repeated a few times while the first thing i played fades away gradually, knob at maximum = keeps looping indefinetly while adding more to the loop as I play. Basically like a repeats knob on any digital delay pedal (that doesn't go into self-oscillation, although I wouldn't mind that either when the knob is maxed out).
IDK, maybe I can make the first table play once and then be fed to other subsequent tables and have one knob control the volume of those following tables (so, table 1 at 100% volume plays once, is sent to table 2 and played once at 75% volume, which is then sent to table 3 at 50% volume and played once etc, so they work like delay repeats fading out on a delay pedal) OR do what you suggested, to have "the sample repeat itself but with a decreasing gain", but wouldn't that mean that all the new stuff I have played between the first repeat/table playback would also decrease in gain? Maybe not...
Right now, on the other hand, I'm trying the approach @Blindsmyth hinted at, which is using the ldub object to work as my recording object, as it has a feedback feature, and then use your playback object to stretch and adjust grain size, but it seems like ldub needs a phasor to move through the table, and I'm wondering where I can connect that phasor inlet to. Whatever I've tried so far with this approach just gives me no sound at all.
Does that make more sense?
edit: Oh, I forgot, I'd also like to control the length of the table with a knob (like a time knob on a normal delay pedal)