IF statement in Mappings

   Suggest features and improvements

IF statement in Mappings

Postby nillin on 15 Jul 2013, 21:04

ok look at this code and i try to explain my idea :)

Code: Select all
      <input-mappings>
        <mapping>
          <events>
            <MIDI type="CC" parameter="0x01" channel="0x01"/>
          </events>
        <if alias="fam(Player)[0x2].LoopOnOff" value="false" />
          <controls>
            <control alias="fam(Player)[0x2].LoopIn"/>
          </controls>
        </mapping>
        <mapping>
          <events>
            <MIDI type="CC" parameter="0x01" channel="0x01"/>
          </events>
        <if alias="fam(Player)[0x2].LoopOnOff" value="true" />
          <controls>
            <control alias="fam(Player)[0x2].LoopHalve"/>
          </controls>
        </mapping>
      </input-mappings>


i know we have the registers for doing some layerring.
but sometimes ist mutch easier to use a real alias state to make a diffrent mapping. in this example i use the "fam(Player)[0x2].LoopOnOff" status to differentiate between "fam(Player)[0x2].LoopIn" and "fam(Player)[0x2].LoopHalve".

in plain text:
if no loop active i use a button to set the loop in point.
if the loop is active i use the same button to halve the loop size.

that might be helpful and i dont loose a register for the action and the mapping stay in sync with the real state of Cross (if i trigger the loop with my mouse or an other the keyboard mybutton mapping works with the if statement)
nillin
 
Posts: 161
Joined: 08 Dec 2012, 01:23
Location: Germany, Zweiflingen


Re: IF statement in Mappings

Postby sylMV on 15 Jul 2013, 22:08

Completely agreed and see exactly what you mean!
Already thought about it, we just don't have the time for this right now ... :frown:
SylMV

Image
User avatar
sylMV
 
Posts: 3098
Joined: 04 Jan 2007, 10:38


Re: IF statement in Mappings

Postby nillin on 15 Jul 2013, 22:14

sylMV wrote:Completely agreed and see exactly what you mean!
Already thought about it, we just don't have the time for this right now ... :frown:


i know
i just let you todo list not run out of items :P

or i move to france and do it :P (but my wife kill me then ;))
nillin
 
Posts: 161
Joined: 08 Dec 2012, 01:23
Location: Germany, Zweiflingen


Re: IF statement in Mappings

Postby acemc on 28 Jul 2013, 20:46

+1 for this idea.
Basically some "conditions" for mapping would be great.
MEMBER OF:
:cool: c00l People MV Society :cool:
acemc
 
Posts: 237
Joined: 04 Mar 2013, 20:46
Location: South Africa


Re: IF statement in Mappings

Postby sylMV on 28 Jul 2013, 21:29

acemc wrote:Basically some "conditions" for mapping would be great.

You already have conditions with modifiers ;)
SylMV

Image
User avatar
sylMV
 
Posts: 3098
Joined: 04 Jan 2007, 10:38


Re: IF statement in Mappings

Postby acemc on 29 Jul 2013, 22:17

sylMV wrote:You already have conditions with modifiers

:eek: Say what?? :eek: ^^^^ - Thats great news!! :biggrin:
I had absolutely no idea of this. Can you point me in the direction of some documentation or something so I can put this to good use?
MEMBER OF:
:cool: c00l People MV Society :cool:
acemc
 
Posts: 237
Joined: 04 Mar 2013, 20:46
Location: South Africa


Re: IF statement in Mappings

Postby nillin on 30 Jul 2013, 04:56

acemc wrote:
sylMV wrote:You already have conditions with modifiers

:eek: Say what?? :eek: ^^^^ - Thats great news!! :biggrin:
I had absolutely no idea of this. Can you point me in the direction of some documentation or something so I can put this to good use?


http://Cross.danlin.de/doku.php/mapping ... _midi-outs
nillin
 
Posts: 161
Joined: 08 Dec 2012, 01:23
Location: Germany, Zweiflingen


Re: IF statement in Mappings

Postby acemc on 30 Jul 2013, 16:25

Thanks nillin. I'm not sure you provided the correct link though.
Your link is showing me how to map modifier led's? What Im talking about, is implementing conditions in the input section of the mapping.
This would allow me to have one button operate a certain way in one part of the gui and a different way in another. Think of the track browse/select knob which would either open/close a sub-folder "IF" in the dock and "IF" folder has sub-folders or enter the browser "IF" no sub-folder or exit the browser (return to dock) 'IF' pressed inside of the browser. Is this possible using a modifier?
MEMBER OF:
:cool: c00l People MV Society :cool:
acemc
 
Posts: 237
Joined: 04 Mar 2013, 20:46
Location: South Africa


Re: IF statement in Mappings

Postby sylMV on 30 Jul 2013, 18:50

acemc wrote:Thanks nillin. I'm not sure you provided the correct link though.
Your link is showing me how to map modifier led's? What Im talking about, is implementing conditions in the input section of the mapping.
This would allow me to have one button operate a certain way in one part of the gui and a different way in another. Think of the track browse/select knob which would either open/close a sub-folder "IF" in the dock and "IF" folder has sub-folders or enter the browser "IF" no sub-folder or exit the browser (return to dock) 'IF' pressed inside of the browser. Is this possible using a modifier?

Seems you didn't get the point :)
You already have conditions only with modifiers
SylMV

Image
User avatar
sylMV
 
Posts: 3098
Joined: 04 Jan 2007, 10:38


Re: IF statement in Mappings

Postby acemc on 02 Aug 2013, 18:29

sylMV wrote:Seems you didn't get the point

Lol - No, not at all!
MEMBER OF:
:cool: c00l People MV Society :cool:
acemc
 
Posts: 237
Joined: 04 Mar 2013, 20:46
Location: South Africa



Return to Suggestions




Who is online

Users browsing this forum: No registered users and 31 guests

Board index

 
 
   
 
© 2014 Mixvibes
 
cron