Page 1 of 1

IF statement in Mappings

PostPosted: 15 Jul 2013, 21:04
by nillin
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)

Re: IF statement in Mappings

PostPosted: 15 Jul 2013, 22:08
by sylMV
Completely agreed and see exactly what you mean!
Already thought about it, we just don't have the time for this right now ... :frown:

Re: IF statement in Mappings

PostPosted: 15 Jul 2013, 22:14
by nillin
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 ;))

Re: IF statement in Mappings

PostPosted: 28 Jul 2013, 20:46
by acemc
+1 for this idea.
Basically some "conditions" for mapping would be great.

Re: IF statement in Mappings

PostPosted: 28 Jul 2013, 21:29
by sylMV
acemc wrote:Basically some "conditions" for mapping would be great.

You already have conditions with modifiers ;)

Re: IF statement in Mappings

PostPosted: 29 Jul 2013, 22:17
by acemc
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?

Re: IF statement in Mappings

PostPosted: 30 Jul 2013, 04:56
by nillin
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

Re: IF statement in Mappings

PostPosted: 30 Jul 2013, 16:25
by acemc
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?

Re: IF statement in Mappings

PostPosted: 30 Jul 2013, 18:50
by sylMV
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

Re: IF statement in Mappings

PostPosted: 02 Aug 2013, 18:29
by acemc
sylMV wrote:Seems you didn't get the point

Lol - No, not at all!