Phone MIDI: convierte tu teléfono en un controlador MIDI para Cubase – La guía completa paso a paso

· Ehab

Esto es una descarga gratuita para tu ordenador, no una herramienta que se ejecuta en el sitio web: descarga el ZIP, ejecútalo en tu PC y luego abre la herramienta en el navegador de tu teléfono.

Phone MIDI: your phone, a Python server, a virtual MIDI port and your DAW
Contenido
  1. La idea en resumen
  2. Lo que necesitarás
  3. Etapa 1: Prepara el ordenador (solo una vez)
  4. Etapa 2: Ejecuta el servidor
  5. Etapa 3: Abre la herramienta en tu teléfono
  6. Etapa 4: Configura Cubase
  7. La interfaz explicada
  8. Actualizar la herramienta tras editar el código
  9. Reducir la latencia
  10. La versión exe (sin Python)
  11. Problemas que encontramos y sus soluciones
  12. Rutina diaria (6 pasos)
  13. Configuración del servidor (server.py)
  14. Archivos y enlaces
  15. Chuleta de comandos y enlaces (copiar y pegar)

La idea en resumen

Esta herramienta convierte tu teléfono (Android o iPhone) en un controlador MIDI: un teclado, pads y faders que tocas en la pantalla, mientras el sonido sale de tu software de música (como Cubase) en el ordenador. El teléfono en sí no produce sonido. Solo envía comandos: "se pulsó una nota", "se movió un fader". Y no es una aplicación que instalas. Es una página web que abres en el navegador de tu teléfono. Todo el recorrido tiene 4 paradas:

  • Una página web en el teléfono (index.html): muestra el teclado y envía tus toques al instante.

  • Un script de Python en el ordenador (server.py): recibe los toques y los convierte en mensajes MIDI.

  • Un puerto MIDI virtual llamado Phone MIDI (del programa loopMIDI): conecta el script con Cubase.

  • Cubase: recibe del puerto y reproduce el sonido a través de un VST.

Descargar la herramienta Todo lo que necesitas en un solo archivo ZIP. Seguirás necesitando loopMIDI.

If Windows warns you (SmartScreen) because the file isn't signed, click More info, then Run anyway.

Lo que necesitarás

Un ordenador con Windows y un teléfono en la misma red, además de programas gratuitos, la mayoría de los cuales instalas solo una vez.

Programa Qué hace Enlace
Python Ejecuta el script (usamos la 3.14) https://www.python.org/downloads/
loopMIDI Crea un puerto MIDI virtual en Windows https://www.tobias-erichsen.de/software/loopmidi.html
Cubase Recibe MIDI y produce el sonido (o cualquier otro software de música) Ya lo tienes
VST El instrumento que produce el sonido Incluido en Cubase o ya instalado
Phone browser Chrome o Brave en Android, Safari en iPhone Ya está en tu teléfono

Etapa 1: Prepara el ordenador (solo una vez)

  1. Install Python. Download it from python.org and install it. On the first installer screen, tick Add Python to PATH. Without it the python command won't work.
  2. Install loopMIDI. Open it, type Phone MIDI exactly in the port name box, and click the + sign.
  3. Create a folder for the tool. Create a folder named midi on your desktop and put server.py and index.html in it.
  4. Open a terminal inside the folder. Right-click inside the folder and choose Open in Terminal.
  5. Install the only required library:
    pip install aiohttp

Etapa 2: Ejecuta el servidor

  1. Make sure loopMIDI is running and has a Phone MIDI port.
  2. In the terminal (inside the midi folder) type python server.py and press Enter.
  3. It prints a line saying the port was opened ("Phone MIDI"), followed by an address like http://192.168.1.149:8000.

Etapa 3: Abre la herramienta en tu teléfono

  1. Conecta el teléfono a la misma red Wi-Fi que el ordenador.
  2. Open the browser and type the address the server printed into the address bar at the top (e.g. http://192.168.1.149:8000).
  3. Look at the small circle in the top bar: green means connected to the server.

Etapa 4: Configura Cubase

  1. Go to Devices > Device Setup > MIDI > MIDI Port Setup. Make sure Phone MIDI is Active.
  2. Go to Project > Add Track > Instrument, choose a VST (e.g. HALion One or Sylenth1), and click Add Track.
  3. Set Track Input to All MIDI Inputs or Phone MIDI. Set Output to your VST.

La interfaz explicada

The interface includes Keys, Pads and Faders tabs. It supports multi-touch, glide, and pitch bend by dragging vertically on keys.

Actualizar la herramienta tras editar el código

Save index.html, restart server.py, and refresh the page on your phone browser (use private mode or /?v=2 if cached).

Reducir la latencia

Use 5 GHz Wi-Fi or USB connection via ADB reverse (adb reverse tcp:8000 tcp:8000), and switch Cubase audio driver to ASIO4ALL with low buffer size.

La versión exe (sin Python)

Run build_exe.bat to generate a single dist\PhoneMIDI.exe file that runs without installing Python.

Problemas que encontramos y sus soluciones

If you get WinError 10048, kill existing python tasks using taskkill /IM python.exe /F and restart server.py.

Rutina diaria (6 pasos)

  1. Start loopMIDI and verify Phone MIDI port exists.
  2. Run python server.py in terminal.
  3. Conecta el cable ADB si usas USB.
  4. Abre Cubase y activa Monitor.
  5. Abre la dirección en el navegador del teléfono.
  6. ¡A tocar!

Configuración del servidor (server.py)

You can configure PORT = 8000 and PORT_NAME = "Phone MIDI" at the top of server.py.

Archivos y enlaces

El zip contiene server.py, index.html, README.md y build_exe.bat.

Chuleta de comandos y enlaces (copiar y pegar)

pip install aiohttp
python server.py
taskkill /IM python.exe /F
← Volver al inicio