[Csnd] Question re: writing one instr to a table to be read by another

Is it possible to write audio to a table while another reads it,
in real-time? I'd like to be able to record say 5 -10 seconds of audio continuously, which will just be constantly replaced/overwritten by incoming audio. I did see as example in the FLOSS manual using tablew and I believe GEN02, but it wasn't written to operated in real-time.

Is it possible and if so is there a recommended way to go about it?

Thanks for any advice or guidance,
Scott

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

sure there is no problem.
if you like, try and get back here if you need help.
the floss example should be adjustable to work in real-time.

  joachim

yes, you can without any problems. Unless you are running in parallel (-j N), which is not the usual way to do things,
all instruments run sequentially, in instrument order. Since tables are global objects, you can access them for reading
or writing from any instrument.

For example, you can write to it in instr X and then read from instr X+N, that will ensure no extra delays are added
to the process.

An alternative to function tables are global arrays (k or a, depending on what you need to do).

best regards