Csound Csound-dev Csound-tekno Search About

[Csnd] audio routing matrix

Date2012-02-18 23:08
Frompeiman 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

Date2012-02-18 23:55
Fromjoachim heintz
SubjectRe: [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

Date2012-02-18 23:57
Frompeiman khosravi
SubjectRe: [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 -
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


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2012-02-19 00:08
FromSteven Yi
SubjectRe: [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
 wrote:
> Thanks joachim,
>
> I was thinking of that but how could I add cross-fades?
>
> Cheers,
>
> Peiman
>
>
> On 18 February 2012 23:55, joachim heintz  wrote:
>>
>> 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
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>


Date2012-02-19 00:24
FromSteven Yi
SubjectRe: [Csnd] audio routing matrix
Attachmentsmix.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  wrote:
> 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
>  wrote:
>> Thanks joachim,
>>
>> I was thinking of that but how could I add cross-fades?
>>
>> Cheers,
>>
>> Peiman
>>
>>
>> On 18 February 2012 23:55, joachim heintz  wrote:
>>>
>>> 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
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>

Date2012-02-19 00:59
Frompeiman khosravi
SubjectRe: [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
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 <stevenyi@gmail.com> wrote:
> 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
> <peimankhosravi@gmail.com> wrote:
>> 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 -
>>> 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
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>

Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2012-02-19 13:50
Frompeiman khosravi
SubjectRe: [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.

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
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 <stevenyi@gmail.com> wrote:
> 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
> <peimankhosravi@gmail.com> wrote:
>> 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 -
>>> 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
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>

Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"