UFOSCENE.NET · GUIDES

← Back to the demos

Run the demos anywhere, step by step

Pick your setup

Every guide starts from nothing and ends with demos dancing to music. The quickest is the first one: open the site, press Add music at the top and then Just play.

What works where

The demos need music to dance to. These are the ways the music can reach them.

SoundChrome / Edge on a computerSafari / FirefoxPhone & tabletInstall?
Internet radio✓✓✓nothing
Music in another tab✓ macOS, Windows, Linux, ChromeOS——nothing
An app's sound (Entire screen + system audio)✓ Windows; macOS 14.2 or newer——nothing
Loopback device✓ BlackHole (Mac), Stereo Mix (Windows), monitor (Linux)✓—Mac: BlackHole
Microphone✓✓✓nothing

With no sound at all, the demos run on a 125 BPM autopilot, so the screen never stops.

↑ all guides

In the browser, nothing to install

Takes: 1 minute · Needs: any computer with a browser (Chrome or Edge is best) and speakers

  1. Open ufoscene.net. The demo starts at once, without sound. Press ♪ Add music at the top for the short setup guide, or Space for the radio straight away.
  2. Pick a decade and a genre if you like (80s & 90s is the default), then press Just play. Internet radio starts and the first demo comes on.
  3. Press F (or double-click) for fullscreen. Space changes the station, B goes back one, ← → change the demo, R picks a random one.
  4. Press P to pause everything and open the settings panel; P again carries on. G brings the setup guide back.
Your own music instead? Follow the guide for your computer: Mac, Windows or Linux & ChromeOS. For song names and artist photos, see Song names at the end.
↑ all guides

Mac

Needs: Chrome or Edge for A and B. BlackHole (C) also runs in Safari and Firefox; the radio and the microphone run in any browser.

A · Music from a browser tab — no install (easiest)

Browser: Chrome or Edge · Cast tab: ✓ with the music · Install: nothing

  1. In Chrome, open the music in one tab: open.spotify.com, YouTube or SoundCloud. Start a song.
  2. Open ufoscene.net in another tab. In the setup guide (G) press Set it up and choose Your music in a Chrome tab; or in the panel (P) set Sound to Your music in a tab.
  3. Press Start. Chrome asks what to share: pick the Chrome tab with the music and keep Also share tab audio on. Press Share.
  4. The music tab goes quiet and UFO plays the music instead, so everything you hear now comes from the UFO tab. That is what makes Cast tab work.

B · The Spotify app or any other app — Entire screen

Browser: Chrome or Edge, macOS 14.2 or newer · Cast tab: ✗ the demo, not the music · Install: nothing

  1. Check that macOS is 14.2 or newer (Apple menu → About This Mac) and Chrome is up to date.
  2. In the setup guide choose Your music in an app, then press Start.
  3. Pick Entire screen and switch on Also share system audio.
  4. The first time, macOS asks to allow Chrome under System Settings → Privacy & Security → Screen & System Audio Recording. Allow it, restart Chrome and press Start again.
Casting? With Entire screen the sound keeps playing on the Mac, so a TV with Cast tab gets the demo but not the music. Use A or C for casting, or connect the TV with HDMI or AirPlay.

C · BlackHole loopback — any app, and it casts

Browser: Chrome or Edge (in Safari and Firefox the demos dance, but only Chrome and Edge let you pick where you hear it) · Cast tab: ✓ with the music · Install: BlackHole

  1. Install BlackHole once (with Homebrew, or the installer from existential.audio):
    brew install --cask blackhole-2ch
  2. System Settings → Sound → Output → BlackHole 2ch. The Mac goes silent: that is expected.
  3. Play music in any app (the Spotify app, Music, a DJ app).
  4. In UFO choose BlackHole loopback in the setup guide, press Start and allow the microphone. UFO finds BlackHole by itself and plays the music from its tab.
  5. Press P and pick where you hear it under Play the music on: this tab for Cast tab, or your speakers or an AirPlay/HDMI screen.
  6. When you are done, set the Sound output back to your speakers.
BlackHole missing from the list? Restart the sound system:
sudo killall coreaudiod
↑ all guides

Windows

Needs: Chrome or Edge

A · Music from a browser tab — no install (easiest)

Browser: Chrome or Edge · Cast tab: ✓ with the music · Install: nothing

  1. Open the music in one tab (open.spotify.com, YouTube, SoundCloud) and start a song.
  2. Open ufoscene.net in another tab and choose Your music in a Chrome tab (setup guide, G) or Your music in a tab (panel, P).
  3. Press Start, pick the music tab, keep Also share tab audio on, press Share.
  4. UFO now plays the music from its own tab, ready for Cast tab.

B · The Spotify app or any other app — Entire screen

Browser: Chrome or Edge · Cast tab: ✗ the demo, not the music · Install: nothing

  1. In the setup guide choose Your music in an app, then press Start.
  2. Pick Entire screen and switch on Also share system audio. Press Share.
  3. Play music in any app. The sound keeps playing on the PC's speakers, and the demos dance to it.

C · Stereo Mix — what the speakers play, as a microphone

Browser: Chrome, Edge or Firefox · Cast tab: ✗ the demo, not the music · Install: nothing, if the sound driver offers Stereo Mix

  1. Press Win+R, type mmsys.cpl, press Enter, open the Recording tab.
  2. Right-click the list → Show Disabled Devices. Right-click Stereo Mix → Enable. (Not there? Your sound driver does not offer it; use A or B.)
  3. In UFO press G → Set it up, choose The microphone and press Start. When Chrome asks, allow it.
  4. Tell Chrome to use Stereo Mix: click the icon left of the address → Site settings → Microphone, or open chrome://settings/content/microphone and pick Stereo Mix. Reload UFO and press Start.
↑ all guides

Linux & ChromeOS

Needs: Chrome, Chromium or Edge

A · Music from a browser tab — no install (Linux and ChromeOS)

Browser: Chrome, Chromium or Edge · Cast tab: ✓ with the music · Install: nothing

  1. Open the music in one tab and start a song.
  2. Open ufoscene.net in another tab, choose Your music in a Chrome tab (G) or Your music in a tab (P).
  3. Press Start, pick the music tab, keep Also share tab audio on, press Share.

B · Any app — the speakers' monitor (Linux with PulseAudio or PipeWire)

Browser: Chrome, Chromium, Edge or Firefox · Cast tab: ✗ the demo, not the music · Install: pavucontrol

  1. Install the volume control once (Debian, Ubuntu, Raspberry Pi OS; other distributions have the same package):
    sudo apt install pavucontrol
  2. Play music in any app. In UFO press G → Set it up, choose The microphone, press Start and allow it.
  3. Open pavucontrol → Recording tab. Next to Chrome, change the input to Monitor of … your speakers or headphones.
  4. The demos now hear exactly what the speakers play, and the music keeps playing as before.
↑ all guides

Phone & tablet

Works with: the radio, the microphone and Spotify · Best for: trying it out, a show in your hand, or as a remote screen at a party

  1. Open ufoscene.net , turn the phone sideways and tap ♪ Add music at the top.
  2. Tap Just play for the radio. Or tap Set it up, choose The microphone, tap Next until Start and allow the microphone: the demos listen to the music in the room.
  3. Tap the running demo for the settings (they pause everything; Start carries on). Double-tap for fullscreen where the phone allows it.
  4. As an app: tap 📲 Install the app in the settings (Chrome on Android), or in Safari tap Share and Add to Home Screen. It opens from its own icon, on the whole screen.

A show on the phone, with Spotify

  1. Open a show: ufoscene.net/kite, /queen, /ukraine or /unplugged.
  2. Tap ▶ Play it in Spotify, press play in Spotify and come back. The show starts again with the music.
  3. Tap 🎤 Let the lights hear it and allow the microphone, so the lights follow the beat.

No account on this page, Spotify Free or Premium. With Free, Spotify on a phone plays most records shuffled, so the songs come in another order than the acts.

Spotify connected (Premium): the show starts and skips the music itself

  1. On a computer, connect your own Spotify app (see Song names). Add https://ufoscene.net/callback to its redirect URIs if it was made for ./run.sh.
  2. Press P and 📱 On your phone next to Spotify, and scan the QR code with the phone.
  3. On the phone, tap Connect Spotify and agree in Spotify. Then open ufoscene.net/kite.
  4. No Spotify app open? Tap Open Spotify, then come back: the record starts by itself. The screen stays on through the show.

The lights follow the music itself only if the microphone hears it, so play Spotify on a speaker or a TV. Without the microphone the show still moves on with each song, and you can give it the beat: tap 🥁 Tap the beat in the settings, then tap the screen 4 times or more in time with the song. The demo dances at that tempo, on the beat, and remembers it for the song. On an iPhone the home-screen app keeps its own Spotify login: connect again inside it.

At a party: press Q on the big screen. A QR code to ufoscene.net fills it for ten seconds, so guests can open it on their phones.
↑ all guides

On the TV

Needs: UFO running on a computer (any guide above), and a TV with Chromecast/Google TV, HDMI or AirPlay

A · Cast tab (Chromecast, Google TV, many smart TVs)

  1. Start UFO with sound that plays from the UFO tab: the radio, a shared tab, or BlackHole. (Entire screen keeps the sound on the computer, so the TV would get no music.)
  2. Chrome menu ⋮ → Cast, save and share → Cast… → Sources → Cast tab, then pick the TV.
  3. Press T for TV mode: a steady 30 fps without the scanline overlay, which the cast video carries far more smoothly.
  4. Press F for fullscreen and leave the computer alone; the mouse pointer hides by itself.

B · HDMI cable or a projector (smoothest)

  1. Connect the computer to the TV or projector with HDMI. Mirror the screen, or drag the UFO window to the TV.
  2. Press P and pick the TV under Play the music on, so the sound comes from the TV.
  3. Press F for fullscreen. T is not needed here: 60 fps with scanlines looks best.

C · AirPlay screen mirroring (Mac to Apple TV or an AirPlay TV)

  1. Control Center → Screen Mirroring → pick the TV.
  2. In UFO press P and pick the AirPlay TV under Play the music on.
  3. Press F for fullscreen.
↑ all guides

Raspberry Pi party box

Needs: a Raspberry Pi 4/400 or 5/500 (smooth; a Pi 3 or Zero 2 W may manage), a memory card, an HDMI cable to the TV, and a phone · Takes: 15 minutes

The ufoscene-pi image turns a Pi into a ufoscene box: it boots straight into the demos, with no keyboard or mouse, and your phone is the remote. The music comes from the built-in radio, from your phone over AirPlay or Bluetooth, or from a USB microphone.

  1. Install Raspberry Pi Imager (version 2.0 or newer) on your computer.
  2. In Imager, open App Options → Content Repository, choose Use custom URL and paste:
    https://github.com/ulfmansson/ufoscene-pi/releases/latest/download/os_list.json
  3. Pick your Pi model, then ufoscene as the operating system, then your memory card.
  4. In the customisation step set the hostname ufoscene, a username and password, and your Wi-Fi (not needed with a network cable). Write the card.
  5. Put the card in the Pi, connect it to the TV with HDMI and switch it on. The first boot takes a few minutes; then the demos start, with a QR code on the TV.
  6. Scan the QR code with your phone, or open http://ufoscene.local/ on a phone on the same Wi-Fi. That is the remote: demos, radio stations, where the music comes from, TV mode, settings.
  7. Your own music: on an iPhone, iPad or Mac, AirPlay to UFOSCENE. On Android, press Pair Bluetooth on the remote and pick UFOSCENE in the phone's Bluetooth settings. The music plays through the TV, and every new song starts a new demo with the artist and title.
Already have Raspberry Pi OS Lite on a Pi? Install it on top instead (run it again to update):
curl -fsSL https://raw.githubusercontent.com/ulfmansson/ufoscene-pi/main/install.sh | sudo bash
The Wi-Fi changed? After two minutes without a known network the Pi opens its own network, ufoscene-setup, and the TV shows QR codes to join it and give the Pi the new Wi-Fi.

Song names from any device (Last.fm), Spotify control, the self-test and troubleshooting are in the ufoscene-pi README.

↑ all guides

Run from the source

Needs: Rust, git and Chrome · Takes: 5–10 minutes the first time

Build the demos yourself and serve them from your own computer on http://127.0.0.1:8100/, for example to change effects or to use Spotify with your own app.

macOS

  1. Install Apple's command line tools (the compiler needs them):
    xcode-select --install
  2. Install Rust (accept the defaults), then open a new terminal:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  3. Get the source:
    git clone https://github.com/ulfmansson/ufoscene.git ~/ufoscene
  4. Build and serve it:
    cd ~/ufoscene && ./run.sh
  5. Open http://127.0.0.1:8100/ in Chrome. Stop the server with Ctrl+C.
Linker errors about DEVELOPER_DIR or SDKROOT? A tool such as Nix left them behind; run.sh clears them, but for plain cargo run unset DEVELOPER_DIR SDKROOT first.

Linux (and Raspberry Pi)

  1. Install a C linker, git and curl (Debian, Ubuntu, Raspberry Pi OS):
    sudo apt install -y build-essential git curl
  2. Install Rust, then open a new terminal:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  3. Get the source, build and serve it:
    git clone https://github.com/ulfmansson/ufoscene.git ~/ufoscene && cd ~/ufoscene && ./run.sh
  4. Open http://127.0.0.1:8100/ in Chrome or Chromium.

Windows (WSL)

  1. Open PowerShell as administrator, install WSL with Ubuntu, and restart when asked:
    wsl --install
  2. Open Ubuntu from the Start menu and follow the Linux steps above inside it.
  3. Open http://127.0.0.1:8100/ in Chrome or Edge on Windows; WSL passes the address through.

Good to know

↑ all guides

Host your own site

Needs: the source and Rust, zsh (preinstalled on macOS) and an account at one host · Takes: 15 minutes

The site is plain static files: everything runs in the visitor's browser, with no server code or secret.

  1. Make your settings file. Everything in it ends up public, so only put an API key or Client ID there, never a secret:
    cd ~/ufoscene/site && cp config.example.json config.json
    Fill in what you want: lastfmApiKey, spotifyClientId, supportUrl; leave the rest empty.
  2. Build the site into site/dist/:
    cd ~/ufoscene/site && SITE_URL=https://your.domain/ ./build.sh
  3. Look at it locally:
    cd ~/ufoscene && cargo build -p ufo-serve --release && PORT=8310 ./target/release/ufo-serve site/dist
    and open http://127.0.0.1:8310/.
  4. Publish site/dist/ on one host:
    • Cloudflare (free): cd ~/ufoscene/site && npx wrangler@4 login && ./deploy-cloudflare.sh
    • Netlify (free plan): cd ~/ufoscene/site && npx netlify-cli deploy --prod --dir dist
    • GitHub Pages (free for public repositories): publish the contents of dist/ to a Pages branch.
    • AWS S3 + CloudFront with Pulumi, custom domain included: cd ~/ufoscene/site && AWS_PROFILE=<your-profile> ./deploy.sh dev
  5. Using Spotify? Add https://your.domain/callback as a redirect URI in your Spotify app.
All the details (domains, DNS, costs, Spotify's rules for public sites) are in site/README.md.
↑ all guides

Song names and artist photos (optional, any setup)

With your own music, UFO can show who is playing: the song in dancing letters, a new demo for every song, and photos of the artist in the graphics. With the radio, the station name is shown instead.

Last.fm — free, works for everyone

  1. Sign up at last.fm.
  2. Connect your player: Settings → Applications → Spotify Scrobbling → Connect (Apple Music, YouTube Music and others have their own scrobblers).
  3. Keep your listening public: Settings → Privacy, Hide recent listening information off.
  4. In UFO press G → Set it up → Next → Last.fm, type your username and press Check. On your own copy it also asks for a free API key.

Spotify — with your own free developer app (Premium)

  1. Open the Spotify developer dashboard → Create app.
  2. Redirect URI: the one the setup guide shows (G → Set it up → Next → Spotify), with its Copy button. Tick Web API and save.
  3. Paste the app's Client ID (not the secret) into the guide and press Connect.

Spotify adds skipping songs with Space and B, and playlists made from a text file (panel → More settings).