Interactive / Listening

Chat Ocarina

Viewers play songs in chat with a five-note language

Video placeholder Clip — a viewer playing Song of Storms in chat

TL;DR

Viewers type five-note sequences into chat (A, U, D, L, R). When a sequence matches a known song, inspired by Ocarina of Time and Majora's Mask, the overlay lights up, a chime plays, the song plays on stream and MBC_Corporate credits whoever played the final note. No channel points, hardware or apps required.

The Note Language

These are game-style input symbols, not concert pitches. Chat's "A" means the A button, not the note A.

A
A button
U
Up
D
Down
L
Left
R
Right

From Chat to Song

  1. Listen

    A read-only listener picks up chat messages and usernames. It never posts.

  2. Validate

    Only valid note tokens count, and a per-user cooldown stops any one viewer from flooding the input.

  3. Match

    Notes build up in a rolling buffer, which is checked against the songbook with the longest match winning.

  4. Perform

    A playback lock protects the response while the overlay shows the success, plays the chime and then plays the song.

  5. Announce

    MBC_Corporate posts "🎶 <song> played! Final note by <viewer> 👏".

On the Overlay

Staff
A musical staff that fills in as notes arrive, so viewers see the song taking shape.
Legend
A note legend, plus color-coded song titles above the staff.
Success
A chime, then playback of the recognized song.
Credit
The viewer who landed the final note is shown.
Style
Unapologetically Zelda-inspired, the one part of Channel 87 that isn't corporate.

Problems & Solutions

  1. 01

    One job per process

    ProblemThe original chat listener had its own Twitch login so it could post announcements. That meant duplicated credentials and two bots competing to speak for the channel.

    FixI stripped the listener down to a read-only chat eavesdropper with no login at all, and handed announcements to MBC_Corporate, the one authenticated voice.

    LessonLeast privilege also makes ownership simpler. The listener can't post, so it can never post twice.

  2. 02

    Recognized, but silent

    ProblemBrowsers, including OBS browser sources, can block audio until it's unlocked. Recognizing a song didn't prove anyone heard it.

    FixAudio unlock, playback start and playback completion are tracked as separate stages, and qualification checks each one.

  3. 03

    Cooldowns aren't locks

    ProblemIt's tempting to cover "too much input" and "overlapping playback" with one generic timeout.

    FixThey're separate mechanisms: a per-user cooldown limits each viewer's input, and a global playback lock protects the song response.

Why It Matters

Channel points are one way to influence a stream. The Ocarina gives viewers another one: a small shared language they can learn, play with, and use to show off. It started with songs like Song of Storms and Bolero of Fire, and the songbook has grown to include more from Ocarina of Time and Majora's Mask.

MBC's native song engine has also been tested with a real ocarina instead of chat: Song of Storms, played on the instrument, recognized and rendered on the overlay.