User Tools

Site Tools


tutorial:3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorial:3 [2010/05/11 00:15]
camille
tutorial:3 [2010/05/11 00:24] (current)
camille
Line 1: Line 1:
 ====== How to control TouchOSC LEDs with Ableton Live and OSCulator ====== ====== How to control TouchOSC LEDs with Ableton Live and OSCulator ======
  
-TouchOSC features a LED control that can display an on/​off ​style information.  This control can not be touched, ​however ​it can be controlled with OSC messages.+TouchOSC features a control that displays a stylized ​on/​off ​LED.  This control can not be touched, ​but it can be controlled with OSC messages.  The purpose of this tutorial is to explain how to control these LEDs from Ableton Live.
  
-In the Beatmachine default layout, page 2, there are 16 LED controls.  They can be activated by sending an OSC message like:+You can see those LEDs in the Beatmachine default layout, ​on page 2, there are 16 of them.  They can be activated by sending an OSC message like:
  
     ''/​2/​led3 1.0'' ​  ... will turn the third LED on     ''/​2/​led3 1.0'' ​  ... will turn the third LED on
Line 9: Line 9:
  
 {{ :​tutorial:​img_0280.png | TouchOSC Beatmachine page 2}} {{ :​tutorial:​img_0280.png | TouchOSC Beatmachine page 2}}
- 
- 
 ===== Overview ===== ===== Overview =====
  
-To sync the LEDs with Live's tempo, we will use MIDI notes sent to OSCulator, and convert them to OSC messages ​that will be sent to TouchOSC.+To sync the LEDs with Live's tempo, we will use MIDI notes sent to OSCulator, and convert them to OSC messages ​in turn sent to TouchOSC.
  
 You will need to have TouchOSC and OSCulator correctly setup with Live [[tutorial:​1:​start|as explained in this tutorial]]. You will need to have TouchOSC and OSCulator correctly setup with Live [[tutorial:​1:​start|as explained in this tutorial]].
  
 +You can download the files used here at the end of this tutorial, however it is highly recommended to start from scratch and follow the instructions step by step.
 ===== Live configuration ===== ===== Live configuration =====
  
Line 38: Line 36:
 {{ :​tutorial:​live4.png |The track MIDI output is set to OSCulator In (8000)}} {{ :​tutorial:​live4.png |The track MIDI output is set to OSCulator In (8000)}}
  
-  * Now press play a short time to register the MIDI data in OSCulator.  ​message named ''/​midi/​note/​1'' ​will appear+  * Now press play a short time to register the MIDI data in OSCulator. 
-  * Select ​the pitch parameter, and do Edit->​Demux (or Control-D). ​ This will turn the ''/​midi/​note/​1''​ message purple, and fold it, waiting for more data to come.+  * Switch to OSCulator, a message named ''/​midi/​note/​1'' ​has beed registered
 +  * Still in OSCulator, select ​the pitch parameter, and do Edit->​Demux (or Control-D). ​ This will turn the ''/​midi/​note/​1''​ message purple, and fold it, waiting for more data to come.
   * Go back to Live, and press play for at least one bar.  This will register new messages in OSCulator, and you will be able to access all the different notes by their respective pitch.   * Go back to Live, and press play for at least one bar.  This will register new messages in OSCulator, and you will be able to access all the different notes by their respective pitch.
 {{ :​tutorial:​osculator1.png |OSCulator has registered all the notes in the MIDI clip}} {{ :​tutorial:​osculator1.png |OSCulator has registered all the notes in the MIDI clip}}
Line 70: Line 69:
  
 If you press play in Live, and you should be able to see the LEDs blinking in the order given by the MIDI track. If you press play in Live, and you should be able to see the LEDs blinking in the order given by the MIDI track.
 +===== Further notes =====
  
- +You can download the setup files of this tutorial {{:​tutorial:​touchosc_live_leds_project.zip|here}}. ​ If you want to use these files, you will have to change the OSC Routings'​ target host to your phone'​s IP address or network host name, or it won't work.
-===== Further notes =====+
  
 It should be noted that the LEDs will not blink with a very precise timing, which can be disappointing. It should be noted that the LEDs will not blink with a very precise timing, which can be disappointing.
 This is due to a limitation of iPhone OS that will throttle the network input to 250 ms time slices in order to optimize battery usage. ​ The fun thing is that every time the phone is sending data over the network this throttling effect fades away.  You can try to move a slider quickly back and forth, and you will see that the LEDs timing becomes much more accurate. This is due to a limitation of iPhone OS that will throttle the network input to 250 ms time slices in order to optimize battery usage. ​ The fun thing is that every time the phone is sending data over the network this throttling effect fades away.  You can try to move a slider quickly back and forth, and you will see that the LEDs timing becomes much more accurate.
  
-I hope this is something Rob((the author of TouchOSC) can fix in a future release of his great software! +I hope this is something Rob((the author of TouchOSC)) can fix in a future release of his great software!
tutorial/3.1273529702.txt.gz · Last modified: 2010/05/11 00:15 by camille