# MIDI Marbles Control
Smartphone remote studio controller for uploading MIDI and SoundFont files, toggling Christmas Mode, selecting classical and holiday music, configuring wavetable synthesis, mixing channels, and steering the 3D MIDI Marbles camera.

![MIDI Marbles Control icon](pwa-192x192.png)

*MIDI Marbles Control* pairs your smartphone with a **MIDI Marbles** display in the same RCWeb room. Upload your own `.mid` files or `.sf2` SoundFont wavetables directly from your phone, toggle **Christmas Mode** with 10 built-in holiday arrangements, browse the 6 built-in classical pieces, tweak acoustics and 3D stage visuals live, and orbit the virtual camera in real time.

![MIDI Marbles Control smartphone interface in Christmas Mode](screenshot.jpg)

## Features

- **Now Playing & Transport Bar:** Always accessible at the top with a live chapter timeline scrubber, Play/Pause, Previous/Next track, Restart, and Mute.
- **Music & MIDI Tab:** Toggle **Christmas Mode** (lit tree, fireplace, tinsel, bauble marbles, sparkles, and 10 built-in holiday tunes), upload one or more `.mid`/`.midi` files straight to the display, switch between Cycle, Repeat, or Shuffle mode, and pick any built-in classical, holiday, or uploaded track.
- **Wavetable Tab:** Switch live between the **TimGM Studio Orchestra (SF2)**, **Animusic Concert Bright (SF2)**, **Baroque Chamber Ensemble (SF2)**, **Crystal Harmonic Wavetable**, and **Warm Analog & FM Wavetable**, or stream a custom `.sf2` SoundFont file (up to 15 MB) onto the display. Adjust master volume, playback speed (`0.5×`–`2×`), hall reverb preset and mix, pitch transpose (`-12` to `+12` semitones), audio/visual sync offset (`-200 ms` to `+200 ms`), and per-channel Mute/Solo mixing.
- **Camera Tab:** Orbit and pinch-zoom the 3D display camera using the live touch pad or `+`/`−` zoom buttons, resume the smart **Auto Director Cam**, or jump directly to eight framed stage angles.
- **Visuals Tab:** Customize marble materials (Mirror Chrome, Christmas Baubles, Channel Colors, Pitch Rainbow, Glowing Orbs), studio lighting themes, marble trails, ballistic gravity arc feel, impact spark/glow intensity, dynamic spotlight tracking, telemetry HUD, graphics quality, fullscreen, and the display info overlay.

## How to use

1. Open **MIDI Marbles** on a TV or desktop screen, or launch it from `/v-c/`.
2. Scan the display's bottom-right QR code (or join the same room) to open **MIDI Marbles Control**.
3. Tap **Upload MIDI File** to play any `.mid` song on the 3D marble machine, toggle **Christmas Mode**, or select a classical or holiday piece from the queue.
4. Tap **Back to apps** at any time to return your controller to the RCWeb launcher or switch an unsupported display to another app.
