Csound Csound-dev Csound-tekno Search About

[Csnd] splitting a ft in it's channels

Date2024-10-14 14:29
FromPhilipp 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

Date2024-10-14 14:46
Fromjoachim heintz
SubjectRe: [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

Date2024-10-14 16:52
FromEduardo Moguillansky
SubjectRe: [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,

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

Date2024-10-15 07:15
FromPhilipp Neumann <0000119f78f3a4f9-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [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 :
> 
> 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,
> 
> 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

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