Joystick / D-Pad - Gamepad template

Discuss Lemur and share techniques.
Post Reply
truth
Newbie
Posts: 2
Joined: 12 Dec 2015 20:01

Joystick / D-Pad - Gamepad template

Post by truth »

Hi,

Does anyone know if there is a joystick (D-Pad) template?

Explanation:
I use a lighting software and would like to use it to focus the lights. I created a modified TouchOSC layout and was wondering what else I could do with Lemur. I am interested in making a joystick (analogue D-Pad) and including a sequencer tab with tap sync BPM and wonder if the BPM tap sync can be updated from another app. I also wish that Lemur had Bluetooth gamepad hardware input. I'd like to mix gamepad input with OSC & MIDI to make a controller interface.

You can find my TouchOSC template here:
https://drive.google.com/folderview?id= ... sp=sharing

The Martin M-Series forum is here:
http://forum.martin.com/forum.asp?FORUM_ID=19

For fixture Pan and Tilt remote control I have two options for input. In this TouchOSC template I used both.

The MIDI signal is sent to the MIDI Bridge and then through MPCTools which translates the MIDI to M-PC commands. I used the MIDI to create relative faders so that touching anywhere along the fader adjusts the 0 to 127 value.

The OSC pan and tilt addresses are also separate. Each is a belt / knob control with range from 0 to 1. Let's say 0 decreases and 1 increases.

My understanding of a joystick / D-Pad is where there's a dead zone in the center and as it moves away from the center the value command of 0 or 1 is more rapidly sent. Closer to center would send the 0 or 1 less frequently and farther towards the edge more frequently.

I tried the RingAread for this, the closest I could find to a D-Pad, but I don't understand it. When released the values keep transmitting as it returns to center. Also, I don't see how to make an XY Pad. I'd like a relative XY Pad. I could make a relative fader in TouchOSC but I couldn't make a relative XY Pad. So I thought that maybe I could make a relative XY Pad in Lemur but I can't even find the XY Pad.

Best regards
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Re: Joystick / D-Pad - Gamepad template

Post by MrCorba »

I think this is something you need. I've put two expression yTest & xTest so you can see the action. Just change the lines in the script to ccout and then everything should work

The link is in dropbox because the forum is full;)
https://www.dropbox.com/s/gjqqupluqz3lu ... .jzml?dl=0

Cheers!
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
Post Reply