[Csnd] splitting a ft in it's channels
Date | 2024-10-14 14:29 |
From | Philipp Neumann <0000119f78f3a4f9-dmarc-request@LISTSERV.HEANET.IE> |
Subject | [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 https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2024-10-14 14:46 |
From | joachim heintz |
Subject | Re: [Csnd] splitting a ft in it's channels |
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 On 14/10/2024 15:29, Philipp Neumann wrote: > 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 > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2024-10-14 16:52 |
From | Eduardo Moguillansky |
Subject | Re: [Csnd] splitting a ft in it's channels |
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. On Mon, Oct 14, 2024 at 3:30 PM Philipp Neumann <0000119f78f3a4f9-dmarc-request@listserv.heanet.ie> wrote: hello everybody, |
Date | 2024-10-15 07:15 |
From | Philipp Neumann <0000119f78f3a4f9-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] splitting a ft in it's channels |
Thank you both! I’m using ftslice for now, but Joachims second idea will be used on other projects! Greetings, Philipp > Am 14.10.2024 um 17:52 schrieb Eduardo Moguillansky |