UFOSCENE.NET · GUIDES
← Back to the demosRun 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.
| Sound | Chrome / Edge on a computer | Safari / Firefox | Phone & tablet | Install? |
|---|---|---|---|---|
| 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.
In the browser, nothing to install
- 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.
- 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.
- Press F (or double-click) for fullscreen. Space changes the station, B goes back one, ← → change the demo, R picks a random one.
- Press P to pause everything and open the settings panel; P again carries on. G brings the setup guide back.
Mac
A · Music from a browser tab — no install (easiest)
Browser: Chrome or Edge · Cast tab: ✓ with the music · Install: nothing
- In Chrome, open the music in one tab: open.spotify.com, YouTube or SoundCloud. Start a song.
- 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.
- Press Start. Chrome asks what to share: pick the Chrome tab with the music and keep Also share tab audio on. Press Share.
- 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
- Check that macOS is 14.2 or newer (Apple menu → About This Mac) and Chrome is up to date.
- In the setup guide choose Your music in an app, then press Start.
- Pick Entire screen and switch on Also share system audio.
- 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.
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
- Install BlackHole once (with Homebrew, or the installer from
existential.audio):
brew install --cask blackhole-2ch
- System Settings → Sound → Output → BlackHole 2ch. The Mac goes silent: that is expected.
- Play music in any app (the Spotify app, Music, a DJ app).
- 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.
- 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.
- When you are done, set the Sound output back to your speakers.
sudo killall coreaudiod
Windows
A · Music from a browser tab — no install (easiest)
Browser: Chrome or Edge · Cast tab: ✓ with the music · Install: nothing
- Open the music in one tab (open.spotify.com, YouTube, SoundCloud) and start a song.
- 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).
- Press Start, pick the music tab, keep Also share tab audio on, press Share.
- 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
- In the setup guide choose Your music in an app, then press Start.
- Pick Entire screen and switch on Also share system audio. Press Share.
- 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
- Press Win+R, type
mmsys.cpl, press Enter, open the Recording tab. - 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.)
- In UFO press G → Set it up, choose The microphone and press Start. When Chrome asks, allow it.
- Tell Chrome to use Stereo Mix: click the icon left of the address → Site settings → Microphone, or open
chrome://settings/content/microphoneand pick Stereo Mix. Reload UFO and press Start.
Linux & ChromeOS
A · Music from a browser tab — no install (Linux and ChromeOS)
Browser: Chrome, Chromium or Edge · Cast tab: ✓ with the music · Install: nothing
- Open the music in one tab and start a song.
- Open ufoscene.net in another tab, choose Your music in a Chrome tab (G) or Your music in a tab (P).
- 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
- Install the volume control once (Debian, Ubuntu, Raspberry Pi OS; other distributions have the same package):
sudo apt install pavucontrol
- Play music in any app. In UFO press G → Set it up, choose The microphone, press Start and allow it.
- Open pavucontrol → Recording tab. Next to Chrome, change the input to Monitor of … your speakers or headphones.
- The demos now hear exactly what the speakers play, and the music keeps playing as before.
Phone & tablet
- Open ufoscene.net , turn the phone sideways and tap ♪ Add music at the top.
- 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.
- Tap the running demo for the settings (they pause everything; Start carries on). Double-tap for fullscreen where the phone allows it.
- 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
- Open a show: ufoscene.net/kite, /queen, /ukraine or /unplugged.
- Tap ▶ Play it in Spotify, press play in Spotify and come back. The show starts again with the music.
- 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
- On a computer, connect your own Spotify app (see Song names). Add
https://ufoscene.net/callbackto its redirect URIs if it was made for./run.sh. - Press P and 📱 On your phone next to Spotify, and scan the QR code with the phone.
- On the phone, tap Connect Spotify and agree in Spotify. Then open ufoscene.net/kite.
- 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.
On the TV
A · Cast tab (Chromecast, Google TV, many smart TVs)
- 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.)
- Chrome menu ⋮ → Cast, save and share → Cast… → Sources → Cast tab, then pick the TV.
- Press T for TV mode: a steady 30 fps without the scanline overlay, which the cast video carries far more smoothly.
- Press F for fullscreen and leave the computer alone; the mouse pointer hides by itself.
B · HDMI cable or a projector (smoothest)
- Connect the computer to the TV or projector with HDMI. Mirror the screen, or drag the UFO window to the TV.
- Press P and pick the TV under Play the music on, so the sound comes from the TV.
- 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)
- Control Center → Screen Mirroring → pick the TV.
- In UFO press P and pick the AirPlay TV under Play the music on.
- Press F for fullscreen.
Raspberry Pi party box
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.
- Install Raspberry Pi Imager (version 2.0 or newer) on your computer.
- 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
- Pick your Pi model, then ufoscene as the operating system, then your memory card.
- 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. - 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.
- 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.
- 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.
curl -fsSL https://raw.githubusercontent.com/ulfmansson/ufoscene-pi/main/install.sh | sudo bash
Song names from any device (Last.fm), Spotify control, the self-test and troubleshooting are in the ufoscene-pi README.
Run from the source
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
- Install Apple's command line tools (the compiler needs them):
xcode-select --install
- Install Rust (accept the defaults), then open a new terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Get the source:
git clone https://github.com/ulfmansson/ufoscene.git ~/ufoscene
- Build and serve it:
cd ~/ufoscene && ./run.sh
- Open http://127.0.0.1:8100/ in Chrome. Stop the server with Ctrl+C.
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)
- Install a C linker, git and curl (Debian, Ubuntu, Raspberry Pi OS):
sudo apt install -y build-essential git curl
- Install Rust, then open a new terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Get the source, build and serve it:
git clone https://github.com/ulfmansson/ufoscene.git ~/ufoscene && cd ~/ufoscene && ./run.sh
- Open http://127.0.0.1:8100/ in Chrome or Chromium.
Windows (WSL)
- Open PowerShell as administrator, install WSL with Ubuntu, and restart when asked:
wsl --install
- Open Ubuntu from the Start menu and follow the Linux steps above inside it.
- Open http://127.0.0.1:8100/ in Chrome or Edge on Windows; WSL passes the address through.
Good to know
- Port 8100 is taken?
PORT=8200 ./run.sh. http://127.0.0.1:8100/#42opens demo 42.- Spotify on your own copy: register
http://127.0.0.1:8100/callbackas the redirect URI (Spotify accepts127.0.0.1, notlocalhost). See Song names. - Tests:
cargo test --release. More in the README.
Host your own site
The site is plain static files: everything runs in the visitor's browser, with no server code or secret.
- Make your settings file. Everything in it ends up public, so only put an API key or Client ID there, never a secret:
Fill in what you want:
cd ~/ufoscene/site && cp config.example.json config.json
lastfmApiKey,spotifyClientId,supportUrl; leave the rest empty. - Build the site into
site/dist/:cd ~/ufoscene/site && SITE_URL=https://your.domain/ ./build.sh
- Look at it locally:
and open http://127.0.0.1:8310/.
cd ~/ufoscene && cargo build -p ufo-serve --release && PORT=8310 ./target/release/ufo-serve site/dist
- 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
- Cloudflare (free):
- Using Spotify? Add
https://your.domain/callbackas a redirect URI in your Spotify app.
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
- Sign up at last.fm.
- Connect your player: Settings → Applications → Spotify Scrobbling → Connect (Apple Music, YouTube Music and others have their own scrobblers).
- Keep your listening public: Settings → Privacy, Hide recent listening information off.
- 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)
- Open the Spotify developer dashboard → Create app.
- Redirect URI: the one the setup guide shows (G → Set it up → Next → Spotify), with its Copy button. Tick Web API and save.
- 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).