Results 1 to 5 of 5

Thread: LED on/off

  1. #1
    Serious User
    Join Date
    Jun 2012
    Posts
    60

    LED on/off

    So you guys probably already know this but its something that I just figured out and thought I would share a trick I thought was kinda cool.

    When it comes to LEDs in TouchOSC, its easy to make them come on by assigning them to a button but what if you want to use the SAME button to turn it off? Take for example a record button. I have a button for record that has an LED attached to it so when I hit it,the LED lights and tells me Im recording. But when I hit it again to come out of record, the LED is still lit. How to make it go off when hitting the record button a second time? By using the /visible tag.

    Duplicate the record button in TouchOSC and send it to the back. Now you have two buttons in the same place, one in front of the other.
    In Osculator you can then use the /visible tag to show and hide the buttons respectively and alternate between them. Giving one an on value for the LED and the other an off value for the LED.

    If anybody wants I can attaché an example TouchOSC and OSculator.

  2. #2
    Thanks for sharing your tip!

  3. #3
    Member
    Join Date
    Aug 2012
    Location
    Tokyo
    Posts
    8
    I was unable to find any info in the manual about a /visible tag but I think I found another way to do it with one button.

    In Touch OSC I made a push button and an LED.

    In Osculator I made a custom message for the LED (e.g. /1/led1) and assigned a MIDI CC event type and then hit the activity monitor cell to map it into Ableton (see manual page 18). In this case I chose to map the Track Activator which enables and disables a channels output. This created a backmapping from Ableton in Osculator. I then assigned the backmapped message event to OSC Routing and chose the LED Rewrite I created in the Parameters section.

    Then I assigned Midi CC Toggle event type for the push button I created in Touch OSC and used the same value I just mapped into Ableton with the custom message (I just deleted the custom message after I got the backmap value).

    Now pushing the button in Touch OSC toggles the Track Activator and the LED displays On/Off accordingly. I also wanted LEDs on different pages to monitor the same thing in Ableton. So I went to the backmapped value, went to Edit --> Duplicate and assigned a different LED on another page in the same way.

    Hope this helps anyone who stumbles across this in the future.
    Last edited by Kid Missileproof; 10-01-2013 at 09:19 AM. Reason: Epiphany
    Best,

    K.M.

  4. #4
    Banned
    Join Date
    Oct 2014
    Posts
    1
    hey everyone
    nice information thanks for sharing

  5. #5
    Member
    Join Date
    Aug 2012
    Location
    Tokyo
    Posts
    8
    I'm glad I left this detailed post. I totally forgot how to do this.

    Yayyyy forums!
    Best,

    K.M.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •