osune / MidiJoystick

MidiJoystick is a MIDI client for the Jack Audio Connection Kit on Linux, which lets you use your joystick to emit MIDI commands
MIT License
23 stars 5 forks source link

Add support for OSC #4

Open osune opened 8 years ago

osune commented 8 years ago

(this comes from reddit user 'nosepol' in this thread

"For years I've been using SuperCollider's GeneralHID class to generate midi out of various stuff, and I'd love to have something less overkill. Oh and while you're at it add possibility for OSC output :P "

osune commented 8 years ago

This is a analysis how one could send OSC via Jack Midi : https://github.com/ventosus/jack_osc

osune commented 8 years ago

liblo http://liblo.sourceforge.net/ seems to be a popular OSC library. Used by ardour , carla-git, dssi, qtractor .... ( according to package dependencies in arch linux)

example client implementation: http://liblo.sourceforge.net/examples/example_client.c.html

config could look like this:

; input-val is the read input value and gets spliced into the string
; also we must supply a type-tag as used by liblo
((a b) ((OSC) ("/your/dev") ("i" input-val) ("f" 0.9)))

Later the typetag could be automagically derived from the supplied values