[Csnd] splitting a ft in it's channels

hello everybody,

i want to send a Ft with a stereo soundfile to an udo, there i want to extract the two channels and work with them separately.
Is it possible to split these channels inside the UDO?

I can’t find an opcode for this.

Greetings,
Philipp
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

i have two thoughts about it:
1. you can use two GEN01 calls and specify which channel you want to read.
2. in your stereo function table, the left channel will consist of table indices 0,2,4,..., and the right channel of indices 1,3,5,...
so you can write someting like this for the left channel:
    indx = 0
    while indx < ftlen(mytable) do
      (read table, perhaps write to another table)
      indx += 2
    od

best -
  joachim

You can use ftslice to extract a channel to another table and pass only that table or extract the channel into a temporary table inside the udo.

Thank you both!

I’m using ftslice for now, but Joachims second idea will be used on other projects!

Greetings,
Philipp