Circular version of pictslider

Gary Lee Nelson's icon

I am making a control that converts X/Y of a pictslider to location and
distance for a quad panner. When the control is rectangular, the corners
come out further away than the edges. Is their a control around that limits
the slider to a circle?

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

dodgeroo's icon

Hi,

If you want a circle it is good to go over the formulas for circles...
pi(3.14) X r(squared) etc. and the pythagorean theorum... x(squared) X
y(squared) = z(squared)

You can limit your panning by calculating the radius.

There is a quad panner that comes with max as well as others online.
Is there a reason you are making one?

Max Patch
Copy patch and select New From Clipboard in Max.

patch for calculating radius:

On 4/10/07, Gary Lee Nelson wrote:
> I am making a control that converts X/Y of a pictslider to location and
> distance for a quad panner. When the control is rectangular, the corners
> come out further away than the edges. Is their a control around that limits
> the slider to a circle?
>
> Cheers
> Gary Lee Nelson
> Oberlin College
> www.timara.oberlin.edu/GaryLeeNelson
>
>
>

nesa's icon

Hello,

jsui is probably the way to go nowdays, but if you like oldskool max,
you can go the lcd way like in the cartopol helpfile, or use a
combination of transparent button and pictslider:

Max Patch
Copy patch and select New From Clipboard in Max.

cheers,
nesa

Gary Lee Nelson's icon

On 4/10/07 2:17 PM, "carey dodge" wrote:

> Hi,
>
> If you want a circle it is good to go over the formulas for circles...
> pi(3.14) X r(squared) etc. and the pythagorean theorum... x(squared) X
> y(squared) = z(squared)

Already got that
>
> You can limit your panning by calculating the radius.

And that

>
> There is a quad panner that comes with max as well as others online.
> Is there a reason you are making one?

I've already built the panner. What I need is something that reflects
visually that I am dealing with a circle and not a square - like the panners
in Digital Performer surround mixer.

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

Emmanuel Jourdan's icon

On 10 avr. 07, at 20:49, nesa wrote:

> Hello,
>
> jsui is probably the way to go nowdays, but if you like oldskool
> max, you can go the lcd way like in the cartopol helpfile, or use a
> combination of transparent button and pictslider:

Nice one!

ej

nesa's icon

and, it's nicer without those:

> clip 0 100

dodgeroo's icon

Hi,

Sorry, I thought you wanted to do the calculation not the display...

Here is my solution for the display. I added speaker placement for my
patch. You could make the lcd bigger and have a wider display of the
circle.

Cheers,

Carey

Max Patch
Copy patch and select New From Clipboard in Max.

On 4/10/07, Gary Lee Nelson wrote:
>
>
>
> On 4/10/07 2:17 PM, "carey dodge" wrote:
>
> > Hi,
> >
> > If you want a circle it is good to go over the formulas for circles...
> > pi(3.14) X r(squared) etc. and the pythagorean theorum... x(squared) X
> > y(squared) = z(squared)
>
> Already got that
> >
> > You can limit your panning by calculating the radius.
>
> And that
>
> >
> > There is a quad panner that comes with max as well as others online.
> > Is there a reason you are making one?
>
> I've already built the panner. What I need is something that reflects
> visually that I am dealing with a circle and not a square - like the panners
> in Digital Performer surround mixer.
>
>
> Cheers
> Gary Lee Nelson
> Oberlin College
> www.timara.oberlin.edu/GaryLeeNelson
>
>
>

Axiom-Crux's icon

i saw some really nice 4-8 channel panner with air dispersion and doppler and whatnot built in. It had a circle for its panner and you could control location of object and speaker :D

It was called ambeasonics
http://www.icst.net/

smokey_joe_1985's icon

Here's an example I found on my travels researching Doppler effect.

I think this might be the sort of thing your after....

Hope that helps,

Mike

Gary Lee Nelson's icon

Just what I needed! Thanks.

On 4/10/07 2:49 PM, "nesa" wrote:

> Hello,
>
> jsui is probably the way to go nowdays, but if you like oldskool max,
> you can go the lcd way like in the cartopol helpfile, or use a
> combination of transparent button and pictslider:
>
> #P window setfont "Sans Serif" 9.;
> #P flonum 171 395 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 97 391 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P comment 293 322 131 196617 top: transparent button;
> #P comment 293 308 137 196617 middle: inactive pictslider;
> #P comment 293 294 137 196617 bottom: panel=circle bkg;
> #P user ubutton 291 163 100 100 0 6;
> #P user pictslider 291 163 100 100 0 0 0 0 SliderDefaultKnob.pct 1
> SliderDefaultBkgnd.pct 1 3443 0 -3211314 3276850 1. 1.;
> #P noclick;
> #P newex 148 124 56 196617 clip 0 100;
> #P newex 65 131 56 196617 clip 0 100;
> #P newex 142 169 30 196617 - 50;
> #P newex 76 179 30 196617 - 50;
> #P newex 99 74 40 196617 unpack;
> #P newex 52 286 56 196617 clip 0. 50.;
> #P newex 125 341 47 196617 poltocar;
> #P newex 93 226 47 196617 cartopol;
> #P user panel 291 163 100 100;
> #X brgb 191 191 191;
> #X frgb 181 181 181;
> #X border 1;
> #X rounded 222;
> #X shadow 2;
> #X done;
> #P comment 109 288 100 196617
> #P comment 293 277 100 196617 3 layers:;
> #P connect 4 1 17 0;
> #P fasten 4 1 11 1 167 364 242 364 242 144 386 144;
> #P connect 4 0 16 0;
> #P fasten 4 0 11 0 130 375 254 375 254 155 296 155;
> #P fasten 3 1 4 1 191 292;
> #P fasten 12 2 6 0 356 273 409 273 409 43 104 43;
> #P connect 3 0 5 0;
> #P connect 5 0 4 0;
> #P connect 8 0 3 1;
> #P connect 7 0 3 0;
> #P connect 6 1 10 0;
> #P connect 10 0 8 0;
> #P connect 6 0 9 0;
> #P connect 9 0 7 0;
> #P window clipboard copycount 18;
>
> cheers,
> nesa
>

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

lawrence casserley's icon

Indeed, ambisonics is generally the best way to do this kind of
thing, and if you don't want all of what the icst stuff offers, it is
very simple to implement yourself. Just see the CMJ article by Malham
and Myatt - Malham, D., and Myatt, A. 1995. "3-D Sound Spatialization
Using Ambiosonic Techniques." Computer Music Journal, 19(4), 58-70.

That doesn't exactly solve the display issue, but I think it may make
it easier to get there.

Best

L

On 10 Apr 2007, at 20:35, Nicholas C. Raftis III wrote:

> i saw some really nice 4-8 channel panner with air dispersion and
> doppler and whatnot built in. It had a circle for its panner and
> you could control location of object and speaker :D
>
> It was called ambeasonics
> http://www.icst.net/

Lawrence Casserley - lawrence@lcasserley.co.uk
Lawrence Electronic Operations - www.lcasserley.co.uk
Colourscape Music Festivals - www.colourscape.org.uk

mzed's icon

Quote: Gary Lee Nelson wrote on Tue, 10 April 2007 09:30
----------------------------------------------------
> I am making a control that converts X/Y of a pictslider to location and
> distance for a quad panner. When the control is rectangular, the corners
> come out further away than the edges. Is their a control around that limits
> the slider to a circle?
>
>

You could also pull out the UI from this:

mz