Csound Csound-dev Csound-tekno Search About

[Csnd] 5.1 panning opcode

Date2009-12-07 01:47
Frommike andrews
Subject[Csnd] 5.1 panning opcode
Hi,
   Just wondering if there is a 5.1 panning opcode available for csound? I have had a look but can not seem to find anything.


Thanks in advance, Mike.


View your other email accounts from your Hotmail inbox. Add them now.

Date2009-12-07 02:11
From"Joe O'Farrell"
Subject[Csnd] Re: 5.1 panning opcode
Not to my knowledge - unless something's changed very recently?  
Plenty of surround panning for 4, 6 or 8 "equal" channels, but not  
all of us can afford multi-channel Genelec set-ups ;-)

Would be VERY useful - I always end up exporting mono or stereo files  
to Logic and working from there. Far from ideal - and completely  
useless for real-time

An occasional alternative for me is a binaural headphone mix using  
hrtfer, but that's not much use for an installation or concert  
situation - and I dread to think what would happen to spatial  
information if someone ripped it to an iPod! (Anyone tried,  
incidentally??)

Joe

On 7 Dec 2009, at 01:47, mike andrews wrote:

> Hi,
> Just wondering if there is a 5.1 panning opcode available for  
> csound? I have had a look but can not seem to find anything.
>
>
> Thanks in advance, Mike.


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-12-07 07:22
FromVictor Lazzarini
Subject[Csnd] Re: 5.1 panning opcode
What you can do is encode your signals as ambisonic, when you can place the signals wherever you like. Then you can decode for the layout of your choice, including 5.1.

Victor
On 7 Dec 2009, at 01:47, mike andrews wrote:

Hi,
   Just wondering if there is a 5.1 panning opcode available for csound? I have had a look but can not seem to find anything.


Thanks in advance, Mike.


View your other email accounts from your Hotmail inbox. Add them now.


Date2009-12-07 08:34
Fromjoachim heintz
Subject[Csnd] Re: 5.1 panning opcode
I'd recommend vbap. You must give the speaker positions in vbaplsinit  
(ilsum = 5), and then you use vbap8. You must write 8 outputs:
a1, a2, a3, a4, a5, a6, a7, a8 vbap8 ain, kazi , 0, kspread
but you just use the first 5.
I just used it for 7 speakers in a non-standard position, and it  
worked perfectly. It's efficient, and with kspread you can adapt the  
spatialization to your individual room and to what you like.
Ciao -
	joachim


Am 07.12.2009 um 02:47 schrieb mike andrews:

> Hi,
>    Just wondering if there is a 5.1 panning opcode available for  
> csound? I have had a look but can not seem to find anything.
>
>
> Thanks in advance, Mike.
>
> View your other email accounts from your Hotmail inbox. Add them now.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-12-09 23:39
Frommike andrews
Subject[Csnd] RE: Re: 5.1 panning opcode
Thanks for all the advice. I have been playing with bformenc1 and bformdec1 and this seems to be working fine. However, I can only figure out how to pan in circles (using a line to specify the angle of kalpha). How would I pan diagonally? An example would be from front left to right surround in a 5.1 setup? Is this possible?


Thanks in advance, Mike.


> From: jh@joachimheintz.de
> To: csound@lists.bath.ac.uk
> Date: Mon, 7 Dec 2009 09:34:39 +0100
> Subject: [Csnd] Re: 5.1 panning opcode
>
> I'd recommend vbap. You must give the speaker positions in vbaplsinit
> (ilsum = 5), and then you use vbap8. You must write 8 outputs:
> a1, a2, a3, a4, a5, a6, a7, a8 vbap8 ain, kazi , 0, kspread
> but you just use the first 5.
> I just used it for 7 speakers in a non-standard position, and it
> worked perfectly. It's efficient, and with kspread you can adapt the
> spatialization to your individual room and to what you like.
> Ciao -
> joachim
>
>
> Am 07.12.2009 um 02:47 schrieb mike andrews:
>
> > Hi,
> > Just wondering if there is a 5.1 panning opcode available for
> > csound? I have had a look but can not seem to find anything.
> >
> >
> > Thanks in advance, Mike.
> >
> > View your other email accounts from your Hotmail inbox. Add them now.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


View your other email accounts from your Hotmail inbox. Add them now.

Date2009-12-09 23:58
FromRichard Dobson
Subject[Csnd] Re: RE: Re: 5.1 panning opcode
mike andrews wrote:
> Thanks for all the advice. I have been playing with bformenc1 
> and bformdec1 and this seems to be working fine. However, I can only 
> figure out how to pan in circles (using a line to specify the angle 
> of kalpha). How would I pan diagonally? An example would be from front 
> left to right surround in a 5.1 setup? Is this possible?
> 

With very great difficulty! Such a pan (passing not only inside the 
speaker array but through the listener's head, involves  more than just 
amplitude panning - it involves a lot of voddo to create  spatialized 
soundfield that can project sounds inside the array. A "simple" approach 
involves progressively reducing the velicoty signals (directional), and 
increasing the pressure signals (omni) until at the listening point 
there are not velocity signals at all, and (in B-format terms) all the 
speakers are driving equally; then as the sound passes away from the 
listening point on the other side, those velocity signals must re-emerge 
in opposite phase. Dave Malham has illustrated this procedure here:


http://www.york.ac.uk/inst/mustech/3d_audio/ambis2.htm

See figure near bottom of page)

The difficulty with this (apart from the radical level changes) is that 
even when the sound is nominally in the centre, and all speakers are 
driving the same signal, it is unlikely that the sound will really be 
perceived as being "inside the head" (as if we actually know what that 
sounds like anyway). Some work has been done with HRTFs to create such 
illusions, and similarly on creating generalised spatialization 
techniques (i.e. incorporating room responses, distance effects, Doppler 
etc) for placing and moving sounds both inside and outside the speaker 
array; but all in all it is both complicated to do, and questionably 
effective.   if you just do a simple crossfade pan (equal-power of 
course) at a reasonably fast speed, with some helpful context sonically 
speaking, maybe the ear will sort of accept the illusion in principle.


Richard Dobson



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-12-10 00:02
FromVictor Lazzarini
Subject[Csnd] Re: Re: RE: Re: 5.1 panning opcode
Realisable with wavefield synthesis if you have a set of measured  
impulse responses of the room you want to reproduce at regular
intervals and big pile (I mean big) of processors to do the  
convolution. Never mind the many speakers, dac channels.
The sampling of impulse responses need to be sufficiently dense for  
the effect to happen.
I guess voodoo is a good description...

Victor
On 9 Dec 2009, at 23:58, Richard Dobson wrote:

> mike andrews wrote:
>> Thanks for all the advice. I have been playing with bformenc1 and  
>> bformdec1 and this seems to be working fine. However, I can only  
>> figure out how to pan in circles (using a line to specify the angle  
>> of kalpha). How would I pan diagonally? An example would be from  
>> front left to right surround in a 5.1 setup? Is this possible?
>
> With very great difficulty! Such a pan (passing not only inside the  
> speaker array but through the listener's head, involves  more than  
> just amplitude panning - it involves a lot of voddo to create   
> spatialized soundfield that can project sounds inside the array. A  
> "simple" approach involves progressively reducing the velicoty  
> signals (directional), and increasing the pressure signals (omni)  
> until at the listening point there are not velocity signals at all,  
> and (in B-format terms) all the speakers are driving equally; then  
> as the sound passes away from the listening point on the other side,  
> those velocity signals must re-emerge in opposite phase. Dave Malham  
> has illustrated this procedure here:
>
>
> http://www.york.ac.uk/inst/mustech/3d_audio/ambis2.htm
>
> See figure near bottom of page)
>
> The difficulty with this (apart from the radical level changes) is  
> that even when the sound is nominally in the centre, and all  
> speakers are driving the same signal, it is unlikely that the sound  
> will really be perceived as being "inside the head" (as if we  
> actually know what that sounds like anyway). Some work has been done  
> with HRTFs to create such illusions, and similarly on creating  
> generalised spatialization techniques (i.e. incorporating room  
> responses, distance effects, Doppler etc) for placing and moving  
> sounds both inside and outside the speaker array; but all in all it  
> is both complicated to do, and questionably effective.   if you just  
> do a simple crossfade pan (equal-power of course) at a reasonably  
> fast speed, with some helpful context sonically speaking, maybe the  
> ear will sort of accept the illusion in principle.
>
>
> Richard Dobson
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-12-10 00:21
Frommike andrews
Subject[Csnd] RE: Re: RE: Re: 5.1 panning opcode
Thanks for the reply Richard.  I guess I will stick to doing my ambisonic panning in Max/msp.  Thanks for the link to the York site, there is a lot of good stuff on there that I had forgotten about.  I remember reading that very article about a year ago and getting myself worked up because no one on the ambisonic lists could explain the reasons why w = 0.707.  

Much appreciated!

> Date: Wed, 9 Dec 2009 23:58:45 +0000
> From: richarddobson@blueyonder.co.uk
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: RE: Re: 5.1 panning opcode
>
> mike andrews wrote:
> > Thanks for all the advice. I have been playing with bformenc1
> > and bformdec1 and this seems to be working fine. However, I can only
> > figure out how to pan in circles (using a line to specify the angle
> > of kalpha). How would I pan diagonally? An example would be from front
> > left to right surround in a 5.1 setup? Is this possible?
> >
>
> With very great difficulty! Such a pan (passing not only inside the
> speaker array but through the listener's head, involves more than just
> amplitude panning - it involves a lot of voddo to create spatialized
> soundfield that can project sounds inside the array. A "simple" approach
> involves progressively reducing the velicoty signals (directional), and
> increasing the pressure signals (omni) until at the listening point
> there are not velocity signals at all, and (in B-format terms) all the
> speakers are driving equally; then as the sound passes away from the
> listening point on the other side, those velocity signals must re-emerge
> in opposite phase. Dave Malham has illustrated this procedure here:
>
>
> http://www.york.ac.uk/inst/mustech/3d_audio/ambis2.htm
>
> See figure near bottom of page)
>
> The difficulty with this (apart from the radical level changes) is that
> even when the sound is nominally in the centre, and all speakers are
> driving the same signal, it is unlikely that the sound will really be
> perceived as being "inside the head" (as if we actually know what that
> sounds like anyway). Some work has been done with HRTFs to create such
> illusions, and similarly on creating generalised spatialization
> techniques (i.e. incorporating room responses, distance effects, Doppler
> etc) for placing and moving sounds both inside and outside the speaker
> array; but all in all it is both complicated to do, and questionably
> effective. if you just do a simple crossfade pan (equal-power of
> course) at a reasonably fast speed, with some helpful context sonically
> speaking, maybe the ear will sort of accept the illusion in principle.
>
>
> Richard Dobson
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Have more than one Hotmail account? Link them together to easily access both.