Using Touch OSC to create a active (lit) button matrix on an iPad TouchOSC Template

765 views
Skip to first unread message

Mark Hanson

unread,
May 7, 2021, 3:41:40 AM5/7/21
to Lightjams
Mathieu,

I've been developing Touch OSC Gobo switching panel on an iPad (for Gobo selection and colors) we have 6 moving head Gobo Spots.   

I originally built a control board using an Akai APC40MKII which is a great surface to use, sliders, lit lights for activated elements (took me a while to figure out all the patching and color coordination) and it works great for everything accept manual control of the Gobo/Spot positioning.  (see picture) 

I really like using the XY Pad elements on Touch OSC Editor.  That function works well. 

In addition, I'd like to create a selection based matrix (6 x 8 Color Matrix) and (8 x 1 Gobo Selection Matrix) to cycle through specific Gobos and Colors.  Ideally I would like to use rows and columns of buttons for each Gobo.  I can easily set up push buttons and get local feedback (the buttons light momentarily during the press and then darken when they release)   But I want the color and gobo selection to remain lit while they are selected. (See my photos of the physical Akai board example and the iPad template - in progress)

I followed your OSC tutorial on Lightjams, but for the life of me I can't figure out how to create buttons that activate (Light) when they are pressed (through a selection matrix) then deselect (darken) - right now they just temporarily activate using the OSC local feedback element.   I know it requires doing a mapping and output OSC patch, creating the equivalent of a fixture and connecting it via patch.  I'm sure I'm missing something simple.

One quick point - I was able to get the buttons to activate by placing the AKAI fixture to the corresponding button - but that just is showing me that the Akai board is sending the outputted feedback to the Touch OSC template - so I know there is plumbing to achieve the effect.

Is there a simple 2 button example you could explain how I could accomplish this?

Really appreciate it I have a bit of block on this project.

Thanks,

Cheers.


Mark Hanson

unread,
May 7, 2021, 3:45:47 AM5/7/21
to Lightjams
Pictures...
DSC_0125 1.JPG
DSC_0124.JPG

Mark Hanson

unread,
May 7, 2021, 3:52:32 AM5/7/21
to Lightjams
I'm also including the switching grid and how it works for the Akai.  I'm using the xToPercent(midi.note.latest(1, 1, 7)+12) to move the Source across the matrix of gobo positions and Akai lights.

I'm trying to use a similar method for the buttons on the Touch OSC iPad template.



switching Grid.JPG

Billy Jukes

unread,
May 7, 2021, 4:29:52 AM5/7/21
to ligh...@googlegroups.com
Following 

--
You received this message because you are subscribed to the Google Groups "Lightjams" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lightjams+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lightjams/aec6062e-0221-4c47-af75-5565f55ba37en%40googlegroups.com.

Mathieu

unread,
May 7, 2021, 6:26:28 AM5/7/21
to Lightjams
Hi,

With TouchOSC, you need to send the pressed state of the button. Maybe the previous examples could help you: https://groups.google.com/u/1/g/lightjams/search?q=touchosc

Mathieu

unread,
May 7, 2021, 6:42:09 AM5/7/21
to Lightjams
If you want to be able to select only one gobo at a time, did you try the Multi-Toggle control in TouchOSC with the exclusive mode? 

On Friday, May 7, 2021 at 3:45:47 AM UTC-4 mhans...@gmail.com wrote:

Mark Hanson

unread,
May 7, 2021, 6:48:03 PM5/7/21
to Lightjams
Thank you so much - I tried to do the link but for some reason I got this error... I verified that I'm still in this group so I'm not sure why I'm getting this error?

Error.JPG

Mathieu

unread,
May 8, 2021, 7:40:13 AM5/8/21
to Lightjams
You can search for TouchOSC on this group - if the link doesn't work for you. You can also search for osc for more general tips about osc.

But for your specific question, you should use the Multi-Toggle control in TouchOSC with the exclusive mode. Then if you enabled the local feedback option in TouchOSC, you need to enabled the 'feedback' option in Lightjams too. See the feedback option in the OSC configuration panel.

No need to configure grids to send back values to TouchOSC like you need to do with MIDI. TouchOSC is able to do that itself.

Mark Hanson

unread,
May 10, 2021, 8:50:16 PM5/10/21
to Lightjams
Mathieu, thanks I figured out the search thing after looking more deeply at your link.

Your advice,  as always, proved invaluable - multi toggle with exclusive mode was the key and worked flawlessly... 

Keep up the great job just love Lightjams and now having both a physical controller and touch enabled surface is just damn amazing!   Totally expands the usability.

At some point I have to read more on some the clever math models to do some things that you have on the group site, I'm by no means a programmer but by far I can do amazing things even as a novice.   Super happy with the great work you've done.  Thanks for expediting Pro license as well! 

Cheers   Mark

Reply all
Reply to author
Forward
0 new messages