topot - Summary
This group is not part of the GNU Project.
topot is remapper of different input devices (joystick, keyboard, mouse, midi/osc gears) to X events (mouse, keys), MIDI and Open Sound Control. topot is written in python and can be used interactively through python interactive shell (ie. ipython).
topot tries to provide easy and flexible way to remap different kinds of input devices to dispatch Xorg, MIDI and OSC events.
here are the few examples:
t = Topot()
t.add(xkey.Keys())
t.add(MidiOutput())
# let's ESCAPE key sends MIDI Program Change 39
t.connect("pgmchange", 39, t.get("key", 9))
# let's first button from the gamepad would be 'cha2' modifier
t.connect("mod", "cha2", t.get("j0_button", 1))
# while pressed first button move right axis
t.withModifiers(on=["cha2"])
# let's analog joystick axe from gamepad sends MIDI Controller #72 values
t.connect("controller", 72, primitive(repeat(t.get("tick"), transform(t.get("j0_axis", 1), ampMoveDiscon)), 0, 0, 127))
After connection's set ups are made topot takes care of firing up and dispatching events around.
Registration Date: Fri 24 Aug 2007 04:42:12 PM UTC
License: GNU General Public License v3 or later
Development Status: 2 - Pre-Alpha
- Browse open items
Submit a new item
Powered by Savane 3.14-9aa3.
Corresponding source code