velolala / touchosc2midi Goto Github PK
View Code? Open in Web Editor NEWa (linux compatible) TouchOSC Midi Bridge written in python
License: MIT License
a (linux compatible) TouchOSC Midi Bridge written in python
License: MIT License
Hi all.
Some two years now that I'm using touchosc2midi on both Ubuntu 20.04.0 and Raspberry PI "Buster".
For a number of reasons the RPI had to move on to "Bullseye". However, building touchosc2midi on Bullseye following instructions here doesn't work. Can anyone please help me? I know my way around Bash, but I am a complete noob on Python...
Regards, Christiaan
P.S. I can make a fresh RPI/Bullseye installation available over SSH should this help
I get this error message when I try to start the bridge:
umcaruje@umpc:~/github/touchosc2midi$ touchosc2midi
Traceback (most recent call last):
File "/usr/local/bin/touchosc2midi", line 9, in <module>
load_entry_point('touchosc2midi==0.0.7', 'console_scripts', 'touchosc2midi')()
File "build/bdist.linux-x86_64/egg/touchosc2midi/touchosc2midi.py", line 112, in main
File "build/bdist.linux-x86_64/egg/touchosc2midi/advertise.py", line 51, in __init__
File "build/bdist.linux-x86_64/egg/touchosc2midi/advertise.py", line 41, in build_service_info
TypeError: __init__() got an unexpected keyword argument 'type'
elementary OS Freya, Python 2.7.6
http://hexler.net/forum/viewthread/1083/
$ docker build -t touchosc2midi:latest .
Sending build context to Docker daemon 2.048 kB
Step 1/4 : FROM python:2.7
---> 68caceba17ab
Step 2/4 : RUN apt-get update && apt-get install -y liblo-dev librtmidi-dev
---> Using cache
---> 8d14683aef5a
Step 3/4 : RUN pip install touchosc2midi
---> Running in 6019c3ca92c8
Collecting touchosc2midi
Downloading touchosc2midi-0.0.9.tar.gz
Collecting pyliblo<=0.10.0 (from touchosc2midi)
Downloading pyliblo-0.10.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ADpx0R/pyliblo/setup.py", line 20, in <module>
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ADpx0R/pyliblo/
The command '/bin/sh -c pip install touchosc2midi' returned a non-zero code: 1
Python 2 goes out of support at end of 2019. Python Software Foundation are recommending update to Python 3. Please consider updating touchosc2midi to support being run by Python 3 interpreter.
I have a layout with some pushbuttons that implement a midi note event. When pressing the corresponding key on a midi keyboard, they light up but only rarely (never?) turn off when releasing the key.
Not sure if this should be a mido issue or touchosc2midi issue. I've installed the application but I'm unable to run it. I couldn't import mido into python, but now I can (after installing mido from source). Yet I still get this import error related to the back ends. I'm on Python2.7 and Budgie Ubuntu
`Traceback (most recent call last):
File "/home/chris/.local/bin/touchosc2midi", line 11, in
load_entry_point('touchosc2midi==0.0.10', 'console_scripts', 'touchosc2midi')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/home/chris/.local/lib/python2.7/site-packages/touchosc2midi/touchosc2midi.py", line 25, in
import mido
File "/home/chris/.local/lib/python2.7/site-packages/mido/init.py", line 93, in
from .backends.backend import Backend
File "/home/chris/.local/lib/python2.7/site-packages/mido/backends/backend.py", line 3, in
from .. import ports
File "/home/chris/.local/lib/python2.7/site-packages/mido/ports.py", line 16, in
from .parser import Parser
File "/home/chris/.local/lib/python2.7/site-packages/mido/parser.py", line 17, in
from .messages import Message, build_message, get_spec
ImportError: cannot import name build_message`
Seems like some resources are not properly free'd on exit, since restarting the application several times leads to delayed display on touchOSC. Receiving from touchOSC is not affected.
Hi,
I'd like to use https://github.com/jean-emmanuel/open-stage-control with TouchOSC2MIDI running on my Raspberry Pi and PiSound.
TouchOSC works great via Android app, but TouchOSC editor and it's features are too limited for my purpose and I've found Open Stage Control to suite me better, but I'm not sure how to set it up with TouchOSC2MIDI.
Can you help me with it?
Thanks! :)
I'd like to see libimobiledevice USB-connectivity that Win/Mac versions got a few months ago http://hexler.net/blog/post/uncut-the-wire.
python-rtmidi package requires jack1. I'd love to use touchosc on bitwig studio. I'm running KXStudio repos on KDE neon.
The following additional packages will be installed:
jackd1 jackd1-firewire libasound2-dev libjack-dev libjack0 libjack0:i386
librtaudio-dev librtmidi2v5 libzita-alsa-pcmi0 libzita-resampler1
Suggested packages:
libasound2-doc jackd1:i386
The following packages will be REMOVED:
bitwig-8-track bitwig-studio cadence claudia jackd jackd2 jackd2-firewire ladish
libjack-jackd2-0 libjack-jackd2-0:i386 qjackctl wineasio wineasio-i386:i386
The following NEW packages will be installed:
jackd1 jackd1-firewire libasound2-dev libjack-dev libjack0 libjack0:i386
librtaudio-dev librtmidi-dev librtmidi2v5 libzita-alsa-pcmi0 libzita-resampler1
I'm not about to essentially uninstall my entire setup to compile this....
Things to clear out are:
docker -p
settings to send and receive OSCtouchosc2midi --ip
settings to get zeroconf
to workdocker -v
settings to mount midi devices into the containerWhen touchosc2midi starts it waits for a message before entering its processing loop. During this initial phase CPU usage is low (~1% on a Raspberry Pi 3B+). After this, when it is in its loop waiting for data CPU usage rises (~10% on a Raspberry Pi 3B+). This is without any OSC traffic, i.e. it is sitting idle waiting for incoming messages. This seems excessively high CPU usage for an idle state.
This little program is fantastic - thank you for creating!
Do you know if it is possible to do the following all with one Pi 3...?
I have 5 x ipads running TouchOSC and 5 pieces of midi equipment (5 x behringer P16-M). I've got a 4x4 usb midi interface and also a 1x1 usb midi interface which touchosc2midi recognises all of when I list ports.
I need ipad 1 to be able to control P16M 1, ipad 2 to control P16m 2 and so on...And I was rather hoping to do this all with just one pi 3.
Unfortunately the midi parameters on the P16s use channels 1-16 and control so it's not possible to use the same midi port to control all 5 of them separately (there's no way of altering the midi mapping) - they each need a separate midi out port.
I've had a go at trying to fire up two terminal windows and run touchosc2midi twice, but it throws up error that address is already in use. I tried also seeing if entereing the ips of each iPad - but it won't connect to a manual ip that I enter for some reason.
when I try to run touchosc2midi, I get the following error:
Traceback (most recent call last):
File "/usr/bin/touchosc2midi", line 11, in <module>
load_entry_point('touchosc2midi==0.0.9', 'console_scripts', 'touchosc2midi')()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 560, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2648, in load_entry_point
return ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2302, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2308, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.6/site-packages/touchosc2midi/touchosc2midi.py", line 19, in <module>
from __init__ import __version__
ModuleNotFoundError: No module named '__init__'
any help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.