Csound Csound-dev Csound-tekno Search About

[Csnd] a newbie channel question

Date2012-10-12 14:19
FromRaoul
Subject[Csnd] a newbie channel question
Hi list,

i would like to hear i1 on left channel
and i2 to the right one.
following the floss and canonical manuals i wrote this csd
compiled with:
csound -W -f -otest.csd oscils.csd
when i play it with play (sox)
i have both instruments on two channels;
with ecasound they are both on one channel.
Please, what i am missing?

Thanks in advance

Raoul


sr 44100
kr 4410
ksmps 10
nchnls 2
0dbfs = 1



instr 1
aL oscils p4, p5, p6
outs1 aL
endin

instr 2
aR oscils p4, p5, p6
outs2 aR
endin




i 1 0 1.9 10000 440 0
i 2 2 1.8 10000 617 0
i 1 4 4 10000 440 0
i 2 4 4 10000 617 0
e




Date2012-10-12 14:22
FromSteven Yi
SubjectRe: [Csnd] a newbie channel question
Hi Raoul,

There's a couple of issues I see:

1. The header should be like this, using equals:

sr = 44100
kr = 4410
ksmps = 10
nchnls = 2

2. I don't think outs1 or outs2 are opcodes.  For stereo, outs takes
two a-var's, so you could do:

outs aL, 0

outs 0, aR

Hope that helps!
steven

On Fri, Oct 12, 2012 at 2:19 PM, Raoul  wrote:
>
> Hi list,
>
> i would like to hear i1 on left channel
> and i2 to the right one.
> following the floss and canonical manuals i wrote this csd
> compiled with:
> csound -W -f -otest.csd oscils.csd
> when i play it with play (sox)
> i have both instruments on two channels;
> with ecasound they are both on one channel.
> Please, what i am missing?
>
> Thanks in advance
>
> Raoul
>
> 
> sr 44100
> kr 4410
> ksmps 10
> nchnls 2
> 0dbfs = 1
>
> 
>
> instr 1
> aL oscils p4, p5, p6
> outs1 aL
> endin
>
> instr 2
> aR oscils p4, p5, p6
> outs2 aR
> endin
>
> 
>
> 
> i 1 0 1.9 10000 440 0
> i 2 2 1.8 10000 617 0
> i 1 4 4 10000 440 0
> i 2 4 4 10000 617 0
> e
> 
>
> 
>
>
> 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"
>