Skip to content

Rex-sys-hk/phyphox-bridge

Repository files navigation

phyphox trans2MIDI/OSC

Reference:

Touch OSC actually broadcasting UDP msg

TouchOSC Bridge Connection · TouchOSC Mk1 | hexler.net

GitHub - dorem-midi/phyphox-midi-bridge: Code that converts data received by a computer from phone Phyphox app to midi CC messages

python-osc

Preliminaries

common preparation for both MIDI and OSC

  • install miniconda/PyCharm or any other python IDE

    Here I prefer to use miniconda, you can install it following the instruction delow.

    Installing on Windows - conda 4.10.3.post29+a34aeac02 documentation

  • VScode/Sublime Text

  • You can clone my repo then, there are some ready-to-hand demo and brief introductions. (If you don't know Git, just download and unpackage it.)

    GitHub - Rex-sys-hk/phyphox-bridge

  • Preparation for OSC

    • Just install python-osc by command

      pip install python-osc
    • Run the demo from my repo

      python ./phyphox_OSC_Bridge.py

      Then you need to designate some parameters like your phone IP:Port, OSC server host IP:PORT . Please follow the instructions step by step carefully. Please make sure the app phyphox is operating with remote access enabled and under the same LAN with your PC.

      • You can also run the simple server to find out what you sent via OSC by operating the server first

        python .\OSC\simple_server.py
  • preparation for MIDI(hard to use, not recommended)

    • install loopmidi from the following link

      Tobias Erichsen

      note: loopmidi is compatible with PC(Win) only

    • install RtMidi

      Installation - python-rtmidi 1.4.9 documentation

    • Run python script

      python ./phyphox_MIDI_lim_Bridge.py
      # or
      python ./phyphox_MIDI_free_Bridge.py

      Then you need to designate some parameters like your phone IP:Port, MIDI PORT . Please follow the instructions step by step carefully. Please make sure the app phyphox is operating with remote access enabled and under the same LAN with your PC.

EXTENTION

By default, the bridge can only transfer magnetometer sensor data. We have to find the keys from ethernet data following the instructions below.

get other data

Press F12 in chrome at the remote access page. Then click Network to check the key name (Where gyrX, gyrY, gyrZ located for gyroscope. It would be magX... for Magnetometer).

Untitled

Untitled

PS:

I believe all of you with a little coding experience can solve the problems on your own by a glance at the code.

If there are any problem you can't deal with. Please publish it on the forum or in the discussion session.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages