Csound Csound-dev Csound-tekno Search About

[Csnd] switching a signal path

Date2009-09-08 03:13
FromCharles Gran
Subject[Csnd] switching a signal path
I'm looking for a suggestion about how best to go about this:

1. I want to bring in audio (-adc) and be able to channel it into one
of two delay lines.
2. Using a midi pan pot controller, so that if the pan is left, one
delay takes in the audio, the other delay when the pan is right.
3. When one delay is selected, the other doesn't take in any signal.
4. We still hear both delays throughout.

Charles


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-09-09 03:55
FromSteven Yi
Subject[Csnd] Re: switching a signal path
Hi Charles,

I think what you're trying to do seems pretty straightforward. I'd
probably do it all in a single instrument, with pseudo code like:

ain inch 0
kpan midiin etc.

asig1 = (kpan < 64) ? ain : 0
asig2 = (kpan >= 64) ? ain : 0

asig1 delay asig1...   ; reusing avars
asig2 delay asig2...   ; reusing avars

aout = asig1 + asig2

out aout


I'd probably try going with that and using a single note score of "i1
0 3600" to get the instrument always-on.

Hope that helps!
steven


On Mon, Sep 7, 2009 at 10:13 PM, Charles Gran wrote:
> I'm looking for a suggestion about how best to go about this:
>
> 1. I want to bring in audio (-adc) and be able to channel it into one
> of two delay lines.
> 2. Using a midi pan pot controller, so that if the pan is left, one
> delay takes in the audio, the other delay when the pan is right.
> 3. When one delay is selected, the other doesn't take in any signal.
> 4. We still hear both delays throughout.
>
> Charles
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"