Forums > MaxMSP

autoscroll in patch

September 16, 2008 | 6:26 pm

Hello everyone,

I’m always working live with even bigger and bigger patches… that are higher and larger than my screen !

So i thought i could use buttons to scroll dircetly on given coords on my patch, in order to create a sort a "multi-screen"…

So i’m looking for such a function, either in JS or by the [thispatcher], but i can’t find it…

Does anyone know how to ?

Thanx a lot…


September 16, 2008 | 6:47 pm

Perhaps you might wish to open one of your
large-ish patches and click on the third
icon in the toolbar to the left. The one
marked Zoom.

Or you could type "Navigating the Patcher Window"
into the search. I think this may be something
like what you’re looking for.


September 16, 2008 | 6:58 pm

Thanx for your answer… but…

I should have told i’m not working with version 5, but with version 4,5 which does not include that functions !…

And even i’d have version 5, i would really enjoy navigating to a specific position in my patch by clicking a button.

So… still looking for that function !
Thank you !


September 16, 2008 | 7:15 pm

I haven’t tried the code but I remember a post about this recently:

http://www.cycling74.com/forums/index.php?t=msg&goto=150091

It sounds like the first javascript snippet that jumps instantly to a location works ok, and the poster was trying to get smooth scrolling working (that seems like more trouble than its worth). The relevant function is this.patcher.wind.scrollto()

Another good option is to put your UI in a bpatcher, and send offset messages to the bpatcher. More info and examples on this in the tutorials/help file.


September 16, 2008 | 7:20 pm

CAZAUX wrote:
> Thanx for your answer… but…
>
> I should have told i’m not working with version 5, but with version 4,5 which does not include that functions !…
>
> And even i’d have version 5, i would really enjoy navigating to a specific position in my patch by clicking a button.
>
> So… still looking for that function !
> Thank you !
>

Maybe time has come for you to encapsulate ;)

=> cleaner and clearer patch, more dynamic (i.e. bpatchers + offset for
UI) and much easier to re-use later…

then it also becomes easy to show/hide/move/navigate with
sub-patchers/bpatchers !

Ciao


September 16, 2008 | 9:04 pm

Quote: Adam Murray wrote on Tue, 16 September 2008 13:15
—————————————————-
> I haven’t tried the code but I remember a post about this recently:
> http://www.cycling74.com/forums/index.php?t=msg&goto=150091
>
> It sounds like the first javascript snippet that jumps instantly to a location works ok, and the poster was trying to get smooth scrolling working (that seems like more trouble than its worth). The relevant function is this.patcher.wind.scrollto()
>
> Another good option is to put your UI in a bpatcher, and send offset messages to the bpatcher. More info and examples on this in the tutorials/help file.
—————————————————-

Thank you ! That works !

And to answer gusanomaxlist :
My patches are well drawn, and completely designed to be visual efficient in live ! Only controls and status are visible when locked… But i need to have controls big enough to be easily accessible and when i have too many, i need more place than a single screen !…

Now i can have a larger screen and navigate through it…

Thanx again !!!


September 16, 2008 | 10:23 pm

yep, if you’re not going the bpatcher/offset route, use

function move(x,y) {
this.patcher.wind.scrollto(x,y);
} //I think that should do it

then in max: "move $1 $2" message to the .js

then set some presets for these. Probably have the navigation in a floating window so it doesn’t get hidden, or else have dedicated keystrokes to do the jumping around. (Note that the actual .js needs to be in the main window, as it’s calling "this". I suppose you could substitute a different patcher’s name here, to move other windows? Anyone know this?)

This way the end user/runtime can use the navigation too.

The window coords do "wrap" at 32,767 pixels across/down, as I recall, so you’d see 0,0 at 32768,0, etc. But that’s a lotta pixels to work with. :)

–CJ


September 23, 2008 | 11:48 am

CAZAUX schrieb:
> And to answer gusanomaxlist :
> My patches are well drawn, and completely designed to be visual
> efficient in live ! Only controls and status are visible when
> locked… But i need to have controls big enough to be easily
> accessible and when i have too many, i need more place than a single
> screen !…

better than controls on the screen are controls in hardware. If its
about buttons, look at the new NanoKontroler series from Korg (not out
yet though) they will streamline my setup a lot for sure. I guess even
the most static laptop musicians can’t resist them… ;-)

I always use a bunch of controller boxes, my screen is 12" and is always
sufficient. In the contrary, as soon as I had to switch from 15" to 12"
my patches got a good deal better in terms of GUI design…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


November 9, 2008 | 10:26 pm

Quote: Stefan Tiedje wrote on Tue, 23 September 2008 13:48
—————————————————-
> better than controls on the screen are controls in hardware. If its
> about buttons, look at the new NanoKontroler series from Korg (not out
> yet though) they will streamline my setup a lot for sure. I guess even
> the most static laptop musicians can’t resist them… ;-)
>
> I always use a bunch of controller boxes, my screen is 12" and is always
> sufficient. In the contrary, as soon as I had to switch from 15" to 12"
> my patches got a good deal better in terms of GUI design…
>
> Stefan

—————————————————-

I have several hardware midi and homemade controls…

But better than controls in hardware is touchscreen. Whatever control you want, whereever you want…

Many Laptops are coming out with touchscreens. I don’t have money to spend in the expensive Lemur, but in a new laptop with a touchscreen at less than half the price of the lemur !?…

I will buy such a laptop in a few, so i’m re-designing my patches in order to be touchscreen efficient (bigger controls to be more accurate under my big finger, and scroll on the patch to easily access all the needed controls !

Regards,


November 9, 2008 | 11:18 pm

–> I will buy such a laptop in a few, so i’m re-designing my patches in order to be touchscreen efficient (bigger controls to be more accurate under my big finger, and scroll on the patch to easily access all the needed controls !

They really are great. I got a 20" MagicTouch screen for $300 that goes over any monitor, very cool. I don’t think any of these (or the laptop ones) are multi-touch, at least not yet. But you can do a lot anyways. Interesting note is that on my MagicTouch (perhaps on laptop too) if you use two fingers, it’ll average between them, with some flux based upon how hard you’re pressing each. This is pretty cool when painting in a big multislider or a table.

Having bigger, fewer controls is a great way to organize things and clean out the superfluous stuff!

–CJ


Viewing 10 posts - 1 through 10 (of 10 total)