New user....trying to make a new template...question please.

Discuss Lemur and share techniques.
RonF
Newbie
Posts: 12
Joined: 24 Jul 2013 18:52

New user....trying to make a new template...question please.

Post by RonF »

I'm new to Lemur, but finding it fairly straight forward to set up. I'm using Midi, rather than OSC....and setting up a custom control template for a few real time performance features in Ableton Live.

My question is simple...but i cannot figure out the solution:

Is there a way to "link" two or more virtual "toggle buttons", so that "pressing" one button causes the other button to reverse (toggle) *it's* action. In other words....I have set up two toggle buttons to engage/disengage the on/off status of two tracks in session view of Live. Press the button, the track turns on, press it again, the track turns off....two buttons for two tracks. What I want, is to be able to control two tracks, each with on/off buttons, where turning one on...thus causes the other to turn itself off, and vice-versa. These tracks represent my main external audio inputs. I want to be able to switch between inputs, without having to worry about turning off other inputs....all via the lemur template. So...two individual toggle buttons, each with their own separate midi mappings....but somehow linked in Lemur to toggle the other button on or off, when engaged. Hope that made sense???

Thanks so much for helping a newb..... I mostly get this stuff.....have set up my entire template with no issues (its great!), but cannot figure this one aspect out on my own.
RonF
Newbie
Posts: 12
Joined: 24 Jul 2013 18:52

Re: New user....trying to make a new template...question ple

Post by RonF »

Hmmm... I found the linked thread in a search, prior to your posting it. I get what your trying to do, by limiting redundant questions from Newbs, and providing useful examples. And I can imagine and see how much effort you put into these examples. BUT....frankly, I'm lost! To say the least, you have to have an intermediate knowledge to follow what you are doing here. In fact, your examples raise way more questions than answers, for me anyways. Of course....RTFM is the obvious response to get that intermediate knowledge....but then, that's why I asked the original question....because I am reading it, and I cannot figure it out. A simple step by step directive would be more helpful to get the basics down, in my view, because the examples are a bit confusing (with all genuine due respect!).

I understand (I think) that one object can control another via a script. But I am not clear on many of the steps.

Having said all that....in your examples (the first jzml download), example #2 seems close to what I want...I think. Reading my above post, does that seem right to you? Must a "custom button" be the scripted controller? Or can two "switches" control each other? If you want to have 3 or more buttons toggling each other in "an opposite fashion" (as you put it in the example), how would the script change? It it a script or an expression that I am creating?

Sorry....ignore me if you choose....but I am truly lost.
RonF
Newbie
Posts: 12
Joined: 24 Jul 2013 18:52

Re: New user....trying to make a new template...question ple

Post by RonF »

Looking more carefully at your examples....I really don't see an example of exactly what I am asking for.

Say I have 4 buttons. If any one of them is pressed ON, any other button which may be on goes OFF....thus only one button, of the 4 buttons, can exclusively be ON at any given time. I see various ways of turning buttons on and off....but not an exclusive toggle between multiple objects. Or....perhaps I am missing it???

Sincere thanks for considering to respond.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: New user....trying to make a new template...question ple

Post by Softcore »

EDIT: look post below....

;)
Last edited by Softcore on 25 Jul 2013 09:04, edited 1 time in total.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: New user....trying to make a new template...question ple

Post by Softcore »

Aaaanyways.....since you seem to be sincerely lost......

The logic is so simple I really think most of new users just overcomplicate it and miss it. The state of a switch is its "x". To control it you simply adress it in a script by referencing it with the object's name.....

So if you want to turn off 5 switches named Switch1, Switch2, Car3, Egg4, Plane5 you just go

Switch1.x=0;
Switch2.x=0;
Car3.x=0;
Egg4.x=0;
Plane5.x=0;

Now the question of "where do I type the above" is related to "when do you want this to happen"....if you want it to happen anytime any of the switches is turned on, you add a script in each and everyone of them (excluding of course itself from the script) and you set the script to be executed "on expression x, rising from 0" (everytime the switch is turned on).

Here's an example of what you are after!

;)
Attachments
its-not-science.jzml
(5.81 KiB) Downloaded 105 times
RonF
Newbie
Posts: 12
Joined: 24 Jul 2013 18:52

Re: New user....trying to make a new template...question ple

Post by RonF »

Softcore........

First of all....THANK YOU! Both for responding once again, and for your time in helping me!

With some simple direction, and your more tailored example...I was able to figure this out successfully....and it works exactly as I had hoped.

I want you to know that I spent hours scouring the Forums before I made my original post. I found your "Link Examples" thread on my own, before you posted it. What I found on the forums was that YOU, Sir, are a legend on these boards, of the highest knowledge, and the highest honor, helping people every chance you get. RESPECT to you, my friend!

But I also found, just for your consideration, that without some very basic and fundamental knowledge....to a new user....scripting in Lemur IS ROCKET SCIENCE! And the instructions in the proverbial "F'ing manual" for scripting are deeply buried, and require a level of focus and understanding not easily mastered. I assume it is to everyones best interests on these forums for Liine and Lemur to prosper with new users (paying customers to support future development), and thus, getting those new to the product up and running is a blessing, not a curse. I see NO person more willing to do this on here than you, Softcore. Again, my sincere thank you! I would suggest you consider, to minimize your own frustration, efforts, and time.....please add some fundamental directions to your "Examples" thread. Just some really seemingly simple/stupid (to you) definitions and directions. The jzml examples by themselves are NOT revealing without having a basic understanding which is not easily gleaned from the manual. All it took were your basic directions, and I was all set. For your consideration and wisdom: it IS rocket SCIENCE to the uninitiated and unaware. Just the basics....really basic. Thank you for your consideration...and more-so for your gracious help.

Clearly all said in my humble opinion....and I appreciate your consideration.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: New user....trying to make a new template...question ple

Post by Softcore »

I can see where you are coming from but, honestly, if one tries to follow the examples in the manual like a mini tutorial, even though they may not contain the specific functions he is after, at least I believe help with the general philosophy of working with Lemur and scripts. Im not a professional programmer or anything but the manual was for me, indeed very helpful for grasping the whole thing - that and studying the user library stuff!

That said, I understand that people who have never "toyed around" with programming-scripting and all that, dont even get stuff that others take for granted for example the correlation between on-off, true-false and 0-1, Integers and floating values etc etc, and then we also have the midi -osc thing to consider. Agreed, it needs focus and time!

Take some time and download user library stuff, check out the forum's modules and projects section and most importantly, keep the Lemur manual open always at the reference pages where all the object's expressions and attributes are clearly referenced. Then its a matter of learning the syntax of what you want to do and use the reference when you forget what something is called in "lemur" language!

Rest assured, someone will always be here in the forums to help, as long as you ask the correct questions!!!

;)
Sanderxpander
Newbie
Posts: 17
Joined: 01 Jul 2013 16:27

Re: New user....trying to make a new template...question ple

Post by Sanderxpander »

I know some (basic) programming and can understand some of the principles behind it, but I have to say I am really missing an overview of the scripting language. It's all so piecemeal in the manual. So thanks for being here and helping new users on their way.
RonF
Newbie
Posts: 12
Joined: 24 Jul 2013 18:52

Re: New user....trying to make a new template...question ple

Post by RonF »

Got one more for you, if you are interested.....

How do I make a separate custom button select a tab in a separate container? IE: CustomButton1 selects tab2 of Container3? Not finding that one in your examples. Tried a few shots at it but cannot get it to work.

thanks for any input!

: )
Post Reply