Well, still not sure why linseg worked but not linsegr, but FWIW sending via global audio to another instr to write to table before going to the instr that reads did work.
aSig = wgpluck2(.7, kEnv, cpsmidinn(p4), .2, .3)
atabsig table gaNdx, giFt,1 ;get the current signal in the table
tablew(aSig+atabsig, gaNdx, giFt, 1) ;mix it with the new signal
// comment out below
;outs aSig, aSig
endin
thanks Thorin. The issue I had (and kinda still am having… ) is that this instr I’m trying to create needs about a 3 second buffer. So it starts playing, goes thru a bunch of processing like reverb etc. & gets reversed. Both the original & processed need to start at the same time & therefore both get written to a table & mixing starts 3 sec later, hence the need for a large buffer. So not sure I could use your idea. I’m pretty novice here.
It’s turning into a big pita though. It almost works, the results are promising, but despite my attempts at enveloping the reversed audio there are clicks occuring at perfectly timed intervals & I can’t figure out my. What’s odd is that the clicks are of course 3 sec apart but occur by an offset of 1.5 sec, which makes no sense - I would’ve expected the clicks at say 3, 6, 9 sec not 4.5, 7.5 etc.
But as usual I’m probably I’m making some silly mistake.
Being a newb sucks at times, often my creative reach exceeds my technical grasp.