[Csnd] audio routing matrix
Date | 2012-02-18 23:08 |
From | peiman khosravi |
Subject | [Csnd] audio routing matrix |
Hello, Is there an opcode for rerouting signal inputs to different outputs in real-time and with user definable cross-fades? I'm thinking of an equivalent to matrix~ in maxmsp. Otherwise what would be the best way to go about making one? Thanks very much Peiman |
Date | 2012-02-18 23:55 |
From | joachim heintz |
Subject | Re: [Csnd] audio routing matrix |
hi peiman - i'd use chnset/chnmix for this. best - joachim Am 19.02.2012 00:08, schrieb peiman khosravi: > Hello, > > Is there an opcode for rerouting signal inputs to different outputs in > real-time and with user definable cross-fades? I'm thinking of an > equivalent to matrix~ in maxmsp. > > Otherwise what would be the best way to go about making one? > > Thanks very much > > Peiman |
Date | 2012-02-18 23:57 |
From | peiman khosravi |
Subject | Re: [Csnd] audio routing matrix |
Thanks joachim, I was thinking of that but how could I add cross-fades? Cheers, Peiman On 18 February 2012 23:55, joachim heintz <jh@joachimheintz.de> wrote: hi peiman - |
Date | 2012-02-19 00:08 |
From | Steven Yi |
Subject | Re: [Csnd] audio routing matrix |
A novel idea, if you start an instrument that does the routing, you can use a held note, then when you want to re-route, use turnoff to stop one, and event to start another. If the instrument has a release envelope, like transegr or linsegr, it could work. Something like: instr chanMixer i_sig = p4 i_chn = p5 SaudioSig sprintf "sig.%d", i_sig SaudioChn sprintf "chn.%d", i_chn kenv linsegr 0, .5, 1, .5 0 asig chnget SaudioSig chnset asig * kenv, SaudioChn endin I'll see if I can come up with an example in a moment. steven On Sat, Feb 18, 2012 at 11:57 PM, peiman khosravi |
Date | 2012-02-19 00:24 |
From | Steven Yi |
Subject | Re: [Csnd] audio routing matrix |
Attachments | mix.csd |
Attached is an example. It uses chnmix instead of chnset (mistake in the original UDO, made apparent when I wrote an example out :D ). Uses linsegr which means linear panning which isn't great, but the technique is there. Not sure if this directly relates to what you are trying to do, but thought I'd send it anyways. Cheers! steven On Sun, Feb 19, 2012 at 12:08 AM, Steven Yi |
Date | 2012-02-19 00:59 |
From | peiman khosravi |
Subject | Re: [Csnd] audio routing matrix |
Thanks very much Steven. I'll check this out tomorrow. Best, Peiman On 19 February 2012 00:24, Steven Yi <stevenyi@gmail.com> wrote: Attached is an example. It uses chnmix instead of chnset (mistake in |
Date | 2012-02-19 13:50 |
From | peiman khosravi |
Subject | Re: [Csnd] audio routing matrix |
Hi Steven, This is exactly what I had in mind. I'm gonna work on making a little interface for it in CosundQT and post it here. Thanks again. Best, Peiman On 19 February 2012 00:59, peiman khosravi <peimankhosravi@gmail.com> wrote: Thanks very much Steven. I'll check this out tomorrow. |