Discussion:
Feeling Confused about PanAz
carltesta
2014-10-02 15:50:38 UTC
Permalink
Hello Everyone,

I am feeling a little confused about the pos argument of PanHz. I have used
the Ugen a lot but I am trying to do something specific and it is not
working as I expect it, perhaps someone could shed some light on this.

I want to be able to send a signal to a single speaker in a multichannel
setup. If I use 4 speakers set up in a square, speaker 0 would be in the
upper left corner, 1 in the upper right, 2 in the lower right, and 3 in the
lower left. The PanAz help file says the following.

The "pos" argument
"pan position. Channels are evenly spaced over a cyclic period of 2.0 in pos
with 0.0 equal to channel zero and 2.0/numChans equal to channel 1,
4.0/numChans equal to channel 2, etc.
Thus all channels will be cyclically panned through if a sawtooth wave from
-1 to +1 is used to modulate the pos."

For a 4 channel arrangement the values should be equal to 0.0,
2/numchans(4), 4/numchans(4), and? 6/numchans(4)? But that would equal 0,
0.5, 1, and 1.5. Whereas a sawtooth wave would go from -1 to 1. So which is
it?

If I want the signal to only come out of speaker 0 (upper left) should the
pos argument be equal to 0.0 or to -1?

Thanks!
Carl




--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Feeling-Confused-about-PanAz-tp7613692.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-02 16:02:40 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

PanAz has a (IMO) confusing default value for `orientation`. It is
only ever useful for stereo (a case for which you probably wouldn't
use PanAz). Try setting it to zero.

I'm always confused about the pos argument myself, that's why I tried
to write up the calculations for the way my brain works:
https://sciss.github.io/ScalaCollider/latest/api/#de.sciss.synth.ugen.PanAz$
(expand the "ar" method to see the explanation of "pos")

Best, .h.h.
Post by carltesta
Hello Everyone,
I am feeling a little confused about the pos argument of PanHz. I
have used the Ugen a lot but I am trying to do something specific
and it is not working as I expect it, perhaps someone could shed
some light on this.
I want to be able to send a signal to a single speaker in a
multichannel setup. If I use 4 speakers set up in a square, speaker
0 would be in the upper left corner, 1 in the upper right, 2 in the
lower right, and 3 in the lower left. The PanAz help file says the
following.
The "pos" argument "pan position. Channels are evenly spaced over a
cyclic period of 2.0 in pos with 0.0 equal to channel zero and
2.0/numChans equal to channel 1, 4.0/numChans equal to channel 2,
etc. Thus all channels will be cyclically panned through if a
sawtooth wave from -1 to +1 is used to modulate the pos."
For a 4 channel arrangement the values should be equal to 0.0,
2/numchans(4), 4/numchans(4), and? 6/numchans(4)? But that would
equal 0, 0.5, 1, and 1.5. Whereas a sawtooth wave would go from -1
to 1. So which is it?
If I want the signal to only come out of speaker 0 (upper left)
should the pos argument be equal to 0.0 or to -1?
Thanks! Carl
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Feeling-Confused-about-PanAz-tp7613692.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list
archive at Nabble.com.
Post by carltesta
_______________________________________________ sc-users mailing
list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
http://www.listarc.bham.ac.uk/lists/sc-users/search/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJULXcgAAoJEKZFmaPaYk6QahQP/3v0rwqSRcWHXQ7kq3y5OhaW
doWbqcl778XOw0DcvnJeK+F4y9HYiwHqQ/KFNv5K6IO10b74KUO45aON0SrY68dx
xf3VWdh1NoNPthYbBBdtV4oETCX9mU5D+vzewGHp/GNU4uvDhVarghhP+esKRnlQ
Ea6+kJ765jCnPoRiARJqR/7Pa/h7gTxob0Dk3+u5s/rtB66MvKFzPjyxbNep+KIx
fx3UiAtua4iCiUFrc63qFU5Zof5G5rgtUYo/XQwKGXhd/9kEd691ObhzoVK7DmrR
ZCVxPHBZkA4JD5g8IZ6YLa1dVapPTVmoZGmfaywkrVDVNCaIp/ku72zWm0j2bjLI
P6mQuHQ3EFZpq/s+eDpzIwQVRnopUFPLvpS2SZglQwZ1mFVVIA86RooW2z4XRIFL
IJR0lb6j80vnGRy1YGsoODz9vlIUJzqupIsCqAhd1JV89jhvJnL7w976px6+dUGA
QScfulPNI1hNDA4MjkJSMslIqqrsURp5X75byFQVtmM1b82eyGyNDsiRi0AUC5Ra
sMbK/SWqj/PxzczdYNekTPRXKCp7GKYJo8xag8Yr7VxOydLeLtUzFMU4415mDsdW
Rw3d1atVUoELfC4AtNXCnaoTu6nMVyxbLhEfNE24LmuMq0IHiot/I8rQ+gEUn9df
xwulH7PFfSiTIp2LUFYb
=qJn7
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-02 16:07:27 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

that is to say, if you set `orientation` to zero, a `pos` of `i*2.0/n`
outputs your signal on channel `i`, given that numChannels is `n` (in
your case: `n = 4` and `i = 0` for the first channel)
Post by Hanns Holger Rutz
PanAz has a (IMO) confusing default value for `orientation`. It is
only ever useful for stereo (a case for which you probably
wouldn't use PanAz). Try setting it to zero.
I'm always confused about the pos argument myself, that's why I
https://sciss.github.io/ScalaCollider/latest/api/#de.sciss.synth.ugen.PanAz$
(expand the "ar" method to see the explanation of "pos")
Post by Hanns Holger Rutz
Best, .h.h.
Post by carltesta
Hello Everyone,
I am feeling a little confused about the pos argument of PanHz.
I have used the Ugen a lot but I am trying to do something
specific and it is not working as I expect it, perhaps someone
could shed some light on this.
I want to be able to send a signal to a single speaker in a
multichannel setup. If I use 4 speakers set up in a square,
speaker 0 would be in the upper left corner, 1 in the upper
right, 2 in the lower right, and 3 in the lower left. The PanAz
help file says the following.
The "pos" argument "pan position. Channels are evenly spaced over
a cyclic period of 2.0 in pos with 0.0 equal to channel zero and
2.0/numChans equal to channel 1, 4.0/numChans equal to channel
2, etc. Thus all channels will be cyclically panned through if a
sawtooth wave from -1 to +1 is used to modulate the pos."
For a 4 channel arrangement the values should be equal to 0.0,
2/numchans(4), 4/numchans(4), and? 6/numchans(4)? But that would
equal 0, 0.5, 1, and 1.5. Whereas a sawtooth wave would go from
-1 to 1. So which is it?
If I want the signal to only come out of speaker 0 (upper left)
should the pos argument be equal to 0.0 or to -1?
Thanks! Carl
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Feeling-Confused-about-PanAz-tp7613692.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
Post by carltesta
_______________________________________________ sc-users mailing
list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
_______________________________________________ sc-users mailing
list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
http://www.listarc.bham.ac.uk/lists/sc-users/search/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJULXg/AAoJEKZFmaPaYk6Q3UIP/1rzHq7worOiU3zHpqlKkErU
omrz9e9KBRhgDxasZHBiE+FUArQyWQcjTtza80+CxY3Q/fCw8irU9AXyjeO787sq
ECH8pr+kmiS6uqtdu2ZjV3cKzQTI5nsaGJhygIUdh+pctQQS1NqXQf9yp5H2IK54
a7KIGk5d2FMFr3zf4Z5X8JYdYcylXflsDjuno6pIPp2I1srBkLCsw/tF4vAp+nIq
GfQcDMpyxivVCDawNag0xhFqhYG3STfz+Ab3RL5Ar9xyMQBFMjikSKA9MlW5duaV
PINb7ErDkkTYdyTgHswzIfONIz6B7upFfr4FV+DFyAE+rFzbovmRmOA9l+UsosLK
b43TNax9oe2o0HJrvHPf5RGwmHzi5zWxIHLZ1w3eBv2OsV76B51mWCRio/Jr7XdH
a8+DZV/zydBZit28KHdsZ70xxFvhwwywft/loiEVYbQcLaDfQeAAx1xPkzgdjzdY
1Y3owWUthgIvFGO4utZ5LprbUPBehHX0suJMjkELeiXWvK0ML9766xLghI7GtxJW
6lIZp6G5Pzpr9WDT4JKN9v5XBPp/RNFV6oCDbL6iVo/RUZ45H/vlQ90I1ByzrvJP
KcJg8NzNUjpSww0E+snKzVrNSdsWeGubwQoRF9ApQaPjkHNM6IzhFrX+ljlfeH9W
xrGHxftu5SliZOMPdRad
=xKUK
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Josh Parmenter
2014-10-02 16:03:01 UTC
Permalink
The ugen warps pos between 0 and 2 (so, -1 wraps to 1). It is basically saying that if you use other oscillators (saw, sin, etc) you can use an output range of -1 and 1, and it will cycle through the whole system.
Now - orientation plays a factor as well. The default 0.5 places 0 between your from two speakers (and the speakers are then at 1.75 front left, 0.25 front right, 0.75 back right, 1.25 back left.
Hope that helps.
Josh
/*
Josh Parmenter
www.realizedsound.net/josh
*/
Post by carltesta
Hello Everyone,
I am feeling a little confused about the pos argument of PanHz. I have used
the Ugen a lot but I am trying to do something specific and it is not
working as I expect it, perhaps someone could shed some light on this.
I want to be able to send a signal to a single speaker in a multichannel
setup. If I use 4 speakers set up in a square, speaker 0 would be in the
upper left corner, 1 in the upper right, 2 in the lower right, and 3 in the
lower left. The PanAz help file says the following.
The "pos" argument
"pan position. Channels are evenly spaced over a cyclic period of 2.0 in pos
with 0.0 equal to channel zero and 2.0/numChans equal to channel 1,
4.0/numChans equal to channel 2, etc.
Thus all channels will be cyclically panned through if a sawtooth wave from
-1 to +1 is used to modulate the pos."
For a 4 channel arrangement the values should be equal to 0.0,
2/numchans(4), 4/numchans(4), and? 6/numchans(4)? But that would equal 0,
0.5, 1, and 1.5. Whereas a sawtooth wave would go from -1 to 1. So which is
it?
If I want the signal to only come out of speaker 0 (upper left) should the
pos argument be equal to 0.0 or to -1?
Thanks!
Carl
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Feeling-Confused-about-PanAz-tp7613692.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Loading...