General

Friends, Lemans, Forum-men, lend me your rack ears

Started by Glennzone on .

Sign in or create an account to join the conversation.

26 posts

Topic starter
Hello all,

I'm building a Max standalone application, and have a particular request regarding what's possible with the Lemur for iPad :

My particular application aims to make "racks of gear" where 3 or 4 devices are always in view, and you navigate between racks with a swipe to the left, a swipe to the right, . . . I haven't figured that one out yet.

Is there already a way to swipe like this within Lemur ?

If so, is it possible to swipe right or left at the lowest position in the rack (or middle or upper) to another rack module to the left or right while the others remain the same ? I don't see any mention of swipes anywhere in the Lemur manual, or community.

Looking forward to some replies on this one.

Thanks,
Glennzone
No, but you can use faders as scroll bars, and write scripts to change the X and Y positions of containers and other objects so that they are moved off of the screen. So, a container that is 200px tall, that has its x set to -200 will not be visible on the screen.
Thank you, folks. That points me in a couple different directions, but can I get more specifics ? Are there any usages currently available for me to "decompile?"

I've only just begun with Lemur, and I need more to on. At least it gives me hope.

I really need to beat this one, please.

Glennzone
Here's a complete example.....just drag left-right on the Racks' names - acceleration feature provided too ;)

That said, even if impressive, its counterintuitive to work in Lemur with scrolls.....What if you wanted Rack1 combined with Rack6 on the screen? I believe buttons to hide-show desired racks is more practical.....

Aaaanyways......

Scrollable_racks.jzml

A vector "R_loc" is storing the current location and size of the Racks Container which keeps all the racks enclosed. A script in Gesture object, placed "above" the Racks container, changes the "x" of R_loc according to the x of Gesture and keeps the rest of the values intact. Keep in mind the gesture object is not part of the official librayr of objects of Lemur so you better export it from the example above to your library to re-use it.

Its x max min values in its attributes are 0 (the maximum x location of our Racks container, while its minimum is calculated by subtracting the width of iPad screen 1020 from the total width of our Racks, (in this case 3000) so its set to -1980. If you desire larger Rack encloser (more Racks iside).....you need to also re-calculate the minimum value for Gesture x. If for example your Racks container is going to be 6000 wide, you need to set Gesture's x minimum to - 4.980 (6000-1020 = 4.980).

You can also set acceleration to your liking by adjusting the Gesture's object acceleration.....you could even add a knob in the non scrollable area to set it real time if for example you want to quickly jump from first rack to last rack (high acceleration value).

Now, to achieve something like "we have 4 racks always visible, and we scroll in each one of them to select which one is currently visible", you 'd have to decrease the Racks container width to 1/4 of the screen and repeat the process to create 4 Rack containers, with scrollable content inside. In this case you'd also need 4 Gesture objects, one for each Rack container placed on top or at the bottom of the Rack Containers but "outside" of them (we dont want our scrollbar to scroll too if you get me). On the middle wouldnt be possible as, even if "transparent" it "blocks" the "cursors" (your fingers) from touching the controls below it. For example if placed in middle, the Gesture object wont allow you to interact with the content of the container such as Knobs, buttons, etc etc.

A cunning way however would be to create a "blank space" in each rack, right around where you want the scroll area to be and then rely on a gesture object with small height, your good finger targeting and the "capture" property on all controls and the gesture object.

;)
Actually it was stupid to have a global expression for the rect of the Racks container....on init its set to 0 and the Racks container is shrunk in the corner.....and there really is no need to....

heres the correct-fixed one.......

Scrollable_racks.jzml

In this one, the location and size of the Racks container is declared as a variable inside the script of gesture object.... ;)
Wow, Softcore ! What a reply !! You guys really stepped up ! :-D

I was sure this could not be something I alone was after, but of course using the swipe for lateral navigation is going to multiply the accessibility and functionality, and keep it all within two motions : 1) the swipe, and 2) the tabs, . . . and you're there !

I do have the "patch" (?) loaded now, but of course it doesn't really do anything right out of the box. I'm so new at Lemur, I will definitely have to sit down with this one. :-)

I have to get back to making some music now before I re-insert myself into the Max standalone development, but I will explore this as soon as I have a nice cozy block of time.

Thanks again,
Glennzone
Why thank ye kindly :).

Your scrollcode made it much easier to accomplish than my usual method though, so kudos to you too hoss!

Now, let's see how fast the commercial devs get on the case and use our code eh? :mrgreen:
Oh, Joe . . . :-P

What I had looked at earlier, is there a way to see the code? All I saw was a little funny icon in the upper left corner. I wasn't able to do anything.

Either way, I'll have more time tomorrow.

Truly, thanks again guys :-)
Download the later ones.

SC fixed that in Rev1.

I added a little trick then.

You should grab them all and see what changed in the code as well as the functionality. It's nicely incremental, one thing changing at a time (mostly) in each revision. Quite handy, that way.
Okay, then. I've been able to open and use the jzml you included, but I am unable to edit it "InApp." As I touch any object within edit mode, it closes it. The task list shows it's still running Lemur, but when it closes it closes hard.

I'm going to try just doing it in the PC editor, make my changes, sync and test. As long as it runs, I don't care about the in-app part. I am not entirely comfortable with that in-app editing feature anyway.
Hello again, gentlemen,

I'm am only just getting back to this after a prolonged absence; I have introduced Vienna Ensemble Pro 5 into my setup, and have had (and continue to have) significant issues with it since, but that's another story. It's one thing we have to watch out for when we're designing custom solutions for ourselves ! Price we pay, but boy do I want to get back to making music for a change !!

Anyway, have there been any new developments from anyone on this since our last posts ? While I understand the underlying technology (for the most part) I still color myself confused. Might we take this a couple of steps further ? Still being a neophyte with the Lemur way, I am finding it difficult to make any substantive modifications.

Perhaps we can start by making sure we're on the same page. Currently, it just keeps crashing on me. Is anyone else having such issues ? I am on an iPad 1, with iOS 5.1.1.

Thanks,
Glennzone
Hey :).

Don't really understand what you mean when you say "new developments"? You asked for swipe/scroll code and examples, you got swipe/scroll code with examples!

You'll have to be a bit more specific.

As for the crashing - are you using any Knob.objs with Bipolar Mode activated? These are known to be incompatible with all but the Classic skin in Lemur.v4 - could that be the issue?
Just getting back into this again, and it's still an issue.

I understand your confusion. "New developments" meaning, it did not work for me due to the crashing, and even now it continues to do so. I didn't know if anybody else has gotten it working, or under what circumstances.

Believe me, I got the swipe/scroll code examples I asked for, but I couldn't stop the iPad app from crashing, and I had other things to make progress with, so it got put down. I'm taking some time once again to crawl deeper inside the coding, but admittedly, I must get more familiar with Lemur, the IAE, and the PC Editor. I'm going to take the next few days to work through this.

So, is anybody out there using it successfully ?