View Single Post
Old 11-08-2019, 02:31 PM   #4
-_~
Human being with feelings
 
Join Date: Oct 2019
Posts: 19
Default

Hmmm, yeah - good point.

If you put this as in Input FX on every track set to send on "pipe" 1 and put it on the ReaTune track set to receive it should work, only turning on when rec arm is engaged because they are on the input side:

Code:
desc:Audio TXRX

slider1:0<0,1,1{Send,Receive}>Mode
slider2:1<1,20>Pipe

options:gmem=AudioTXRX

@init
  bpos = 0;
  buf_start_pos = 8200;
  buf_step = 4100;

@slider
  mode = slider1;
  buf = buf_start_pos + buf_step * 2 * (slider2 - 1);

@block
  mode == 0 ?
  (
    gmem[buf] = 0;
    bpos = 0;
  )
  :(
    bpos = 0;
  );
  bs = buf + 1;

@sample
  mode == 0 ?
  (
    gmem[bs + bpos] = spl0;
    gmem[bs + bpos + 1] = spl1;
    spl0 = spl0;
    spl1 = spl1;
  )
  :(
    spl0 = gmem[bs + bpos];
    spl1 = gmem[bs + bpos + 1];
  );
  bpos += 2;
The problem is that it repeats the last block of samples when you un-rec arm the track. Since you aren't listening to the receiving end it might not be an issue though.
-_~ is offline   Reply With Quote