Skip to content

marclagies/tablet2osc4wekinator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Send OSC messages with graphics tablet (Linux / Qt 5)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published