
SooperLooper Displaying on IPhone with processing and TouchOSC
1 year ago
1:20 for the phone shot.
I've been working feverishly on a new live setup which uses SooperLooper - the bad ass looping software for OS X and Linux. I can operate the thing with my footboard, but I still get confused about loop position and which loop is selected. After a night of research and a night of programming I came up with a solution.
I've used Processing and the oscP5 library to 'intercept' OSC messages, do some computations and send them off to the IPhone (running TouchOSC) over a network. This was all surprisingly easy. I do have a few years of light programming knowledge - I'm in no way a hard core coder. Most problems arose from improper data types and just getting the correct setup.
Here are the basic steps:
Register processing with SL to get updates on loop length, loop position and the selected loop
Listen for incoming messages and store the loop length in a variable. It only comes in once in a while. The loop position is constantly coming in. These measurements are coming in a floating point number which equates to seconds.
Take these two values and calculate the loop position between 0 and 1. If a 4 second loop is at second 1 in the loop - I need to send .25 to the fader in TouchOSC on my IPhone.
Update the toggle buttons in TouchOSC if I get a new value. I probably do this inefficiently by shutting them all off and then turning the active button on.
You can get the script file here: samgreene.com/drupal_samgreene/node/99 . You'll need to substitute your SooperLooper Port number and your IPhone IP or network name. You can set the network name by naming it in iTunes and then adding .local to it - ie my phone is flyawayphone.local.
It is lacking a few features - it doesn't grab loops until they are actually recorded. That means preexisting loops don't animate. Also you need to have your max # of loops setup on start of the processing script. This could be fixed registering an add loop event. I'll add these features in soon.
I've been working feverishly on a new live setup which uses SooperLooper - the bad ass looping software for OS X and Linux. I can operate the thing with my footboard, but I still get confused about loop position and which loop is selected. After a night of research and a night of programming I came up with a solution.
I've used Processing and the oscP5 library to 'intercept' OSC messages, do some computations and send them off to the IPhone (running TouchOSC) over a network. This was all surprisingly easy. I do have a few years of light programming knowledge - I'm in no way a hard core coder. Most problems arose from improper data types and just getting the correct setup.
Here are the basic steps:
Register processing with SL to get updates on loop length, loop position and the selected loop
Listen for incoming messages and store the loop length in a variable. It only comes in once in a while. The loop position is constantly coming in. These measurements are coming in a floating point number which equates to seconds.
Take these two values and calculate the loop position between 0 and 1. If a 4 second loop is at second 1 in the loop - I need to send .25 to the fader in TouchOSC on my IPhone.
Update the toggle buttons in TouchOSC if I get a new value. I probably do this inefficiently by shutting them all off and then turning the active button on.
You can get the script file here: samgreene.com/drupal_samgreene/node/99 . You'll need to substitute your SooperLooper Port number and your IPhone IP or network name. You can set the network name by naming it in iTunes and then adding .local to it - ie my phone is flyawayphone.local.
It is lacking a few features - it doesn't grab loops until they are actually recorded. That means preexisting loops don't animate. Also you need to have your max # of loops setup on start of the processing script. This could be fixed registering an add loop event. I'll add these features in soon.
-
Vimeo: About / Blog / Developers / Jobs / Community Guidelines / Community Forums / Help Center / Site Map / Merchandise
/ Get Vimeo

Previous Week
I have been thinking about trying to rig the xy screen in TouchOSC to act like a kaoss pad...
You could definitely do the same thing for Ableton. There is a screen that is a grid of buttons, like an mpc style interface in touchOSC. You could make the buttons flash and represent the playing clip.
You'd have to use python though.