Announcement

Collapse
No announcement yet.

Processing to Osculator Key Combos

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Processing to Osculator Key Combos

    I am trying to get input from processing, lets say a mouse press, and then have osculator send a Key Combo to another program. My messages in OSC can receive messages, but I cannot create a key combo in the event type in whatever message I am talking to. It only allows me to create a OSC routing event type.

    I am a beginner with OSC so I apologize if anything I'm asking doesn't make sense. Any help would be greatly appreciated.

    ***** UPDATE ******
    When I use the code below I am able to get some of the messages in Osculator to to register the messages (Turn Green), but they only seem to turn green on the first mouse click, other than that they just turn yellow. If anybody could tell me why I'd really appreciate it.


    void mousePressed() {
    /* in the following different ways of creating osc messages are shown by example */
    OscMessage myMessage = new OscMessage("/test");

    myMessage.add(123); /* add an int to the osc message */
    myMessage.add(12.34); /* add a float to the osc message */
    // myMessage.add("ON"); /* add a string to the osc message */
    myMessage.add("some text");
    myMessage.add(new byte[] {0x00, 0x01, 0x10, 0x20}); /* add a byte blob to the osc message */
    /* send the message */
    myMessage.add(new int[] {1,2,3,4}); /* add an int array to the osc message */

    oscP5.send(myMessage, myRemoteLocation);

    }
    Last edited by justinf; 02-10-2011, 11:49 PM.
Working...
X