Csound Csound-dev Csound-tekno Search About

Re: [Csnd] a newbie channel question

Date2012-10-12 14:37
Fromraoul megelas
SubjectRe: [Csnd] a newbie channel question
On Fri, 12 Oct 2012 14:22:47 +0100 Steven Yi  wrote:

Hi Steven,

this produces syntax errors because outs1 and outs2 are opcodes...

Thanks.

Raoul

> 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"
> >
> 
> 
> 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-10-12 14:55
FromSteven Yi
SubjectRe: [Csnd] a newbie channel question
Interesting, I never knew about outs1 and outs2.  :)  Anyways, could
you post the latest CSD you have?  I'll try it here.  Also, remove the
outs1 and outs2 and try using the outs opcode as mentioned.

Thanks!
steven

On Fri, Oct 12, 2012 at 2:37 PM, raoul megelas  wrote:
> On Fri, 12 Oct 2012 14:22:47 +0100 Steven Yi  wrote:
>
> Hi Steven,
>
> this produces syntax errors because outs1 and outs2 are opcodes...
>
> Thanks.
>
> Raoul
>
>> 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"
>> >
>>
>>
>> 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"
>