Send OSC messages with graphics tablet (Linux / Qt 5)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
tablet2osc4wekinator.pro
xtablet.cpp
xtablet.h

README.md

tablet2osc4wekinator

Send OSC messages with a graphics tablet.

This is the GUI version of stylus2osc4wekinator.

The program sends these six stylus parameters (as floats) via the OSC protocol:

  • x position
  • y position
  • pressure
  • x tilt
  • y tilt
  • rotation

Installation

You need Qt 5, xinput as well as the development versions of liblo and libXi.
Download the source. Open a terminal, change into the source directory and and type in the following commands:

  • qmake
  • make
  • make clean

Now you should find the program tablet2osc4wekinator in the source directory.

If versions or paths of the required libraries are bad, try editing tablet2osc4wekinator.pro.

Setup

  1. List devices on the command line:

__xinput list__

`% xinput list`
`⎡ Virtual core pointer id=2 [master pointer (3)]`
`⎜ ↳ Wacom Intuos5 touch L Finger touch id=14 [slave pointer (2)]`
`⎜ ↳ Wacom Intuos5 touch L Pen stylus id=15 [slave pointer (2)]`
`⎜ ↳ Wacom Intuos5 touch L Pen eraser id=16 [slave pointer (2)]`
`⎜ ↳ Wacom Intuos5 touch L Pen cursor id=17 [slave pointer (2)]`
`⎣ ↳ Wacom Intuos5 touch L Pen pad id=18 [slave pointer (2)]`

2. Detach stylus from core pointer (optional):

__xinput float 15__

`% xinput float 15`
`% xinput list`
`⎡ Virtual core pointer id=2 [master pointer (3)]`
`⎜ ↳ Wacom Intuos5 touch L Finger touch id=14 [slave pointer (2)]`
`⎜ ↳ Wacom Intuos5 touch L Pen eraser id=16 [slave pointer (2)]`
`⎜ ↳ Wacom Intuos5 touch L Pen cursor id=17 [slave pointer (2)]`
`⎣ ↳ Wacom Intuos5 touch L Pen pad id=18 [slave pointer (2)]`
`∼ Wacom Intuos5 touch L Pen stylus id=15 [floating slave]`

Running tablet2osc4wekinator

tablet2osc4wekinator takes four arguments:

  • Device name of stylus
  • IP address of OSC listener
  • OSC input address
  • OSC input port

./tablet2osc4wekinator "Wacom Intuos5 touch L Pen stylus" "127.0.0.1" "/wek/inputs" "6448"

Thanks

tablet2osc4wekinator is based on Sylvain Hanneton's tablet2osc.

Links:

tablet2osc - https://sourceforge.net/p/tablet2osc/wiki/Home/
Wekinator - http://www.wekinator.org