Csound Csound-dev Csound-tekno Search About

Fwd: [Csnd] locsig_quad example - correction

Date2011-03-05 21:29
FromLouis Cohen
SubjectFwd: [Csnd] locsig_quad example - correction
Menno,

sorry, I had a senior moment listing the order of the speakers. here  
it is again:

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

Lou

Begin forwarded message:

> From: Louis Cohen 
> Date: March 5, 2011 12:17:00 PM EST
> To: csound@lists.bath.ac.uk
> Subject: Re: [Csnd] locsig_quad example
> Reply-To: csound@lists.bath.ac.uk
>
> 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"
>



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-06 12:45
Frommenno
SubjectRe: Fwd: [Csnd] locsig_quad example - correction
Haha that's funny that's not the answer i thought i would get.
Thanks for your feedback, Louis, it is even more confusing now :)

According to the manual:

a1=0      ;should be LF ??
a2=90    ; should be RF ??
a3=180  ; should be RR ??
a4=270  ; should be LR ??
and back to a1=360 degrees.

you start at the right front but make the full circle from right , rear ,
left and back but in my setup it is pingponging from LF,RF.LR,RR and back to
start position LF.

Here is the csd that shows that with csound channel 1 to soundcard channel 1
etc.


; 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	  = p4
kdistance line 1, p3 , 1
a1, a2, a3, a4     locsig aout, kdegree, kdistance, .01
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, a4, a3
	
ga1 = 0
ga2 = 0
ga3 = 0
ga4 = 0

endin


; sine wave.
f 1 0 16384 10 1

i 1  0 5  0	        ; a1 = left front
i 1  5 5  90	        ; a2 = right front
i 1 10 5  180	; a3 = left rear
i 1 15 5  270	; a4 = right rear

i99 0 20
e



????

Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/locsig-quad-example-tp3409318p3411390.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-06 22:45
FromLouis Cohen
SubjectRe: [Csnd] locsig_quad example - correction
Menno,

I compose and often perform live with quad all the time, but I never  
even try to position a sound. Instead I send discrete signals to each  
speaker, much like acoustic instruments emit sound to an audience.

I've been to concerts where the sound system was extremely elaborate  
but I never thought that any of the panning or other special effects  
were worth much. It seems to me that attempts to position sound get  
swallowed up by the shape of the space that the speakers happen to be  
in, and also by the disposition of people in the audience, and of  
course by the positioning of each particular listener. It's too  
fragile to worry about -- life is too short.

Instead, my approach of sending discrete signals to each speaker  
creates plenty of spatial experience, and the rest of the experience  
has to do with the music itself.

In the example you first sent out I replaced the signal from  
"beats.wav" with just a sine tone and tried it again. The location of  
the sound in my studio was very confusing. I couldn't tell where the  
sound was coming from after a few seconds. I set kdistance to a  
constant of 1 and I still couldn't be sure which speaker the sound was  
coming from.

I'll try a few more variations on the csd you sent out, and on the  
example in the manual, and see what I can get, but it will take a few  
days before I can get to it.

-Lou

On Mar 6, 2011, at 7:45 AM, menno wrote:

> Haha that's funny that's not the answer i thought i would get.
> Thanks for your feedback, Louis, it is even more confusing now :)
>
> According to the manual:
>
> a1=0      ;should be LF ??
> a2=90    ; should be RF ??
> a3=180  ; should be RR ??
> a4=270  ; should be LR ??
> and back to a1=360 degrees.
>
> you start at the right front but make the full circle from right ,  
> rear ,
> left and back but in my setup it is pingponging from LF,RF.LR,RR and  
> back to
> start position LF.
>
> Here is the csd that shows that with csound channel 1 to soundcard  
> channel 1
> etc.
>
>
> ; 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	  = p4
> kdistance line 1, p3 , 1
> a1, a2, a3, a4     locsig aout, kdegree, kdistance, .01
> 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, a4, a3
> 	
> ga1 = 0
> ga2 = 0
> ga3 = 0
> ga4 = 0
>
> endin
>
>
> ; sine wave.
> f 1 0 16384 10 1
>
> i 1  0 5  0	        ; a1 = left front
> i 1  5 5  90	        ; a2 = right front
> i 1 10 5  180	; a3 = left rear
> i 1 15 5  270	; a4 = right rear
>
> i99 0 20
> e
>
>
>
> ????
>
> Menno
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/locsig-quad-example-tp3409318p3411390.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"

Date2011-03-07 07:40
Frommenno
Subject[Csnd] Re: locsig_quad example - correction
Hi Louis,

this is the reason why i want to make sure that the csd is correct; i am in
the process of trying to produce simple and working examples for the manual.
Before i sent the example into the world i want to double-check. Beginners
who try out the example for the first time must not get confused, but be
convinced that csound is a working system. It is not that i am making a
musical piece that i need to understand locsig.

I had the same experience wih sine tones you have; the reflections in my
home studio are too great to be able to pinpoint where it is coming from but
when using a complex tone like beats.wav i could. This is the reason why i
use beats.wav in the example. Also i need to hang some acoustic material in
my studio...

i agree that life is too short - according to Star Trek it appears that in
200 years from now people will be living for 120 years, which is a much more
reasonable lifespan i think. But luckily the iPads they use in he future are
already here and this week i saw on television a guy who was printing on a
printer a 3D whistle - and it worked!

bye,
menno

--
View this message in context: http://csound.1045644.n5.nabble.com/locsig-quad-example-tp3409318p3412049.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-07 19:38
FromLouis Cohen
SubjectRe: [Csnd] Re: locsig_quad example - correction
Attachmentsquadexample.csd  

Menno,

I wrote a new example that I thought would send signals to one speaker  
at a time, and discovered one reason why the results are confusing.

If kreverbsend is greater than 0, locsig sends some of the signal to  
other speakers, in addition to sending to the "intended" speaker. If I  
set kreverbsend=0, I can clearly hear which speaker is getting the  
"main" signal, since all the other speakers are silent.

And the order of speakers for me is:

a1: left front	0 degrees
a2: right front	90 degrees
a3: right rear	180 degrees
a4: left rear	270 degrees

I've attached the csd. I started with one of your examples, tweaked  
instr 1 earlier, then wrote a new instr 2, which is the one I used for  
this experiment.

I think this is possibly a good example for the manual because it  
leaves the interaction with locsend out of the picture.

-Lou


On Mar 7, 2011, at 2:40 AM, menno wrote:

> Hi Louis,
>
> this is the reason why i want to make sure that the csd is correct;  
> i am in
> the process of trying to produce simple and working examples for the  
> manual.
> Before i sent the example into the world i want to double-check.  
> Beginners
> who try out the example for the first time must not get confused,  
> but be
> convinced that csound is a working system. It is not that i am  
> making a
> musical piece that i need to understand locsig.
>
> I had the same experience wih sine tones you have; the reflections  
> in my
> home studio are too great to be able to pinpoint where it is coming  
> from but
> when using a complex tone like beats.wav i could. This is the reason  
> why i
> use beats.wav in the example. Also i need to hang some acoustic  
> material in
> my studio...
>
> i agree that life is too short - according to Star Trek it appears  
> that in
> 200 years from now people will be living for 120 years, which is a  
> much more
> reasonable lifespan i think. But luckily the iPads they use in he  
> future are
> already here and this week i saw on television a guy who was  
> printing on a
> printer a 3D whistle - and it worked!
>
> bye,
> menno
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/locsig-quad-example-tp3409318p3412049.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"
>