Csound Csound-dev Csound-tekno Search About

[Csnd] locsig_quad example

Date2011-03-04 11:31
Frommenno
Subject[Csnd] locsig_quad example
Hello all,

i have a working example that uses 4 outputs and would like to put this
example in the manual as an example that uses 4 outputs :)
I want to make sure that the outputs are going to the right speakers. I
think right-rear and left-rear in the csd must be swapped so that the
produced sound makes a whole circle (360 degrees). In my home setting i have
to switch the right-rear and left-rear outputs (a3 and a4 in the csd) to get
the full circle - it can also be a fault in the design of the opcode?
Can someone who thinks his system is correctly wired, try this csd and
report back?

thanks you,
Menno



; Select audio/midi flags here according to platform
-odac      ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o locsend_quad.wav -W ;;; for file output any platform



sr = 44100
ksmps = 32
nchnls = 4
0dbfs  = 1

ga1 init 0
ga2 init 0
ga3 init 0
ga4 init 0

instr 1

aout	  diskin2 "beats.wav", 1, 0, 1
kdegree	  line 0, p3, 360 ;full circle
kdistance line 1, p3 , 1
a1, a2, a3, a4     locsig aout, kdegree, kdistance, .1
ar1, ar2, ar3, ar4 locsend

ga1 = ga1+ar1
ga2 = ga2+ar2
ga3 = ga3+ar3
ga4 = ga4+ar4
    outq a1, a2, a3, a4

endin

instr 99 ; reverb instrument
a1 reverb2 ga1, 3.5, .5
a2 reverb2 ga2, 3.5, .5
a3 reverb2 ga3, 3.5, .5
a4 reverb2 ga4, 3.5, .5
   outq	a1, a2, a3, a4
	
ga1 = 0
ga2 = 0
ga3 = 0
ga4 = 0

endin


; sine wave.
f 1 0 16384 10 1

i 1 0 14
i99 0 18
e




--
View this message in context: http://csound.1045644.n5.nabble.com/locsig-quad-example-tp3409318p3409318.html
Sent from the Csound - General mailing list archive at Nabble.com.


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"

Date2011-03-05 17:17
FromLouis Cohen
SubjectRe: [Csnd] locsig_quad example
Menno,

On my system, I heard the sound in this order:

right front
left front
left rear (behind me to my left)
left right
back to right front

-Lou

On Mar 4, 2011, at 6:31 AM, menno wrote:

> Hello all,
>
> i have a working example that uses 4 outputs and would like to put  
> this
> example in the manual as an example that uses 4 outputs :)
> I want to make sure that the outputs are going to the right  
> speakers. I
> think right-rear and left-rear in the csd must be swapped so that the
> produced sound makes a whole circle (360 degrees). In my home  
> setting i have
> to switch the right-rear and left-rear outputs (a3 and a4 in the  
> csd) to get
> the full circle - it can also be a fault in the design of the opcode?
> Can someone who thinks his system is correctly wired, try this csd and
> report back?
>
> thanks you,
> Menno
>
>
>
> ; Select audio/midi flags here according to platform
> -odac      ;;;realtime audio out
> ;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
> ; For Non-realtime ouput leave only the line below:
> ; -o locsend_quad.wav -W ;;; for file output any platform
>
>
>
> sr = 44100
> ksmps = 32
> nchnls = 4
> 0dbfs  = 1
>
> ga1 init 0
> ga2 init 0
> ga3 init 0
> ga4 init 0
>
> instr 1
>
> aout	  diskin2 "beats.wav", 1, 0, 1
> kdegree	  line 0, p3, 360 ;full circle
> kdistance line 1, p3 , 1
> a1, a2, a3, a4     locsig aout, kdegree, kdistance, .1
> ar1, ar2, ar3, ar4 locsend
>
> ga1 = ga1+ar1
> ga2 = ga2+ar2
> ga3 = ga3+ar3
> ga4 = ga4+ar4
>    outq a1, a2, a3, a4
>
> endin
>
> instr 99 ; reverb instrument
> a1 reverb2 ga1, 3.5, .5
> a2 reverb2 ga2, 3.5, .5
> a3 reverb2 ga3, 3.5, .5
> a4 reverb2 ga4, 3.5, .5
>   outq	a1, a2, a3, a4
> 	
> ga1 = 0
> ga2 = 0
> ga3 = 0
> ga4 = 0
>
> endin
>
>
> ; sine wave.
> f 1 0 16384 10 1
>
> i 1 0 14
> i99 0 18
> e
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/locsig-quad-example-tp3409318p3409318.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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"