autoscroll in patch

fredcazaux's icon

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...

Gregory Taylor's icon

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.

fredcazaux's icon

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 !

Adam Murray's icon

I haven't tried the code but I remember a post about this recently:
https://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.

gusanomaxlist's icon

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

fredcazaux's icon

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:
> https://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 !!!

seejayjames's icon

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

Stefan Tiedje's icon

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

fredcazaux's icon

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,

seejayjames's icon

--> 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