Control

forum for discussing Control interface software

Register or log in - lost password?

Control » General

MultiTouchXY - on touch_down or on_touch_up

(8 posts) (3 voices)
  • Started 1 year ago by ifranco
  • Latest reply from admin

Tags:

  • cheap louboutin shoes online
  • christian louboutin stores
  • discount replica watches sale
  • embellished dresses
  • homecoming dresses
  • multitouchXY
  • sexy adult halloween costumes
  • short bridesmaid dresses
  • ugg boots
  • u_boat watches
  • wholesale women's dresses
  1. ifranco
    Member

    Hi there! New to Control and starting my exploration! :-)
    I would like to know if there is any kind of property for MultiTouchXY so that I can receive a message to know if I pressed (or depressed) the that widget? Meaning: it seems I can receive xy messages only when moving about the surface. I would be cool to know when a finger has been lifted (for ex. for sending velocity zero to a pending midi note). Is this possible in any way or with any workaround?

    Thanks!

    Posted 1 year ago #
  2. ifranco
    Member

    Ok, I just realized there's a ontouchend property.
    Shouldn't this work?

    "ontouchend": "oscManager.sendOSC("multi1", 0, 0)",

    so that I can send 0's once I lift my finger?

    Thanks in advance!

    Posted 1 year ago #
  3. ifranco
    Member

    Or this...

    "ontouchend": "oscManager.sendOSC("/192.168.1.78:1000","multi1", 0, 0)",

    from the ste example: oscManager.sendOSC("/someOSCaddress", "if", 0, 2.2);

    Cheers!

    Posted 1 year ago #
  4. ifranco
    Member

    "ontouchend": "multi1.setValue(0,0)",

    ? :-)

    Posted 1 year ago #
  5. admin
    Key Master

    "ontouchend": "oscManager.sendOSC('/multi/0', 'f', 0);"

    First, you need to include the typetags for the message. This tells the network protocol what type of data is being sent. In this case we're sending a floating point number ( 0 ).

    For the multitouch widget, the touch number is appended to the address of the widget as opposed to being a message argument. You can, of course, send whatever message you want if you don't like this behavior. Thus, the line I wrote above is roughly equivalent to:

    "ontouchend": "oscManager.sendOSC('/multi', 'ff', 0, 0);"

    ... where the first 0 would be the touch number instead of including it in the address. Hope this helps! - Charlie

    Posted 1 year ago #
  6. ifranco
    Member

    Charlie, thanks for the precious help! That worked! :-)
    Cheers

    Posted 1 year ago #
  7. Kinskop
    Member

    My way to solve this problem was to put a button just underneath the widget with exactly the same size. if you give that one a different color you also get multicolored parameter feedback....WHOA!! ;-)

    Posted 1 year ago #
  8. admin
    Key Master

    Nice idea on the button! I never think to stack widgets like that, although you can actually stack them as "high" as you want. Unfortunately the button idea only works for one touch, but the next update of Control will have an extra scripting goody to handle multiple touches. I added a parameter called "lastTouched" that always refers to the most recently processed touch event. So you can get the id of the touch in a ontouchstart as follows:

    "ontouchstart":"oscManager.sendOSC('/multi/' + this.lastTouched.id, 'f', 0);"

    I thought I had something like this in there previously, but I must be confusing it with something else... can't find a trace of it.

    Posted 1 year ago #

RSS feed for this topic

Control is proudly powered by bbPress.