Csound Csound-dev Csound-tekno Search About

Re: [Csnd] a newbie channel question

Date2012-10-14 12:08
FromRaoul
SubjectRe: [Csnd] a newbie channel question
On Sun, 14 Oct 2012 10:59:17 +0200
joachim heintz  wrote:

> yes, i will see how we can include an example like this in the floss 
> manual. thanks for the feedback.

> by the way, i personally would always recommend to work with outch 
> instead of outs, out1, out2, outq etc. it is slightly more to write, but 
> very clear, and you will have no problems if you have a multichannel 
> soundcard and want to use outputs 9 and 10 instead of 1 and 2. the code 
> for your example would then be:

Oh thanks Joachim. Your comment is really helpful.
of course i was not aware of that point.

Regards

Raoul
rmgls@free.fr



sr = 44100
ksmps = 32 ;see 1)
nchnls = 2
0dbfs = 1 ; 2)

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

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


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




1) it is always better to use power-of-two values vor ksmps; see 
victor's example in the "about audio input and krate" thread. no need to 
specify kr, because csound will calculate it internally as sr/ksmps
2) i'd recommend to work with this. it is the (reasonable) standard in 
pd, max, sc, audacity, ardour etc. in consequence, i changed the p4 
score values to 0.3

best -

	joachim



Am 14.10.2012 07:51, schrieb Raoul:
> On Sat, 13 Oct 2012 22:36:29 +0200
> joachim heintz  wrote:
>
>> hi raoul -
>> which chapter / place in the floss manual do you mean exactly?
>> thanks -
>> 	joachim
>
> Hi Joachim,
>
> in fact not a chapter but only a few lines to a chapter (spatialisation???):
>
> the ability to send one channel to one output and the other channel
> to a second output, with the out1 out2 example, and outs.
>
> I know it is very basic, but not for a newbie.
>
> Thanks.
>
> Raoul
> rmgls@free.fr
>
>>
>> Am 12.10.2012 16:44, schrieb Raoul:
>>> On Fri, 12 Oct 2012 14:22:47 +0100 Steven Yi  wrote:
>>>
>>> oh! lightfull! Steven.
>>> Hope this may help another newbie!!!
>>>
>>> perhaps a little addition on the floss manual would be helpful?
>>>
>>> something like:
>>>
>>> assigning one instrument to left channel
>>> and another to the right channel...
>>>
>>> Many thanks.