A gateway console

FOCUS

Pulsed tones on a timed score, and a point to hold. An instrument for structured attention practice — built to be honest about what it does, and to run entirely on hardware you control.

01 — The instrument

Run a session.

Two ways in. Session plays a timed score with ramps and cues, the way the Gateway tapes are structured. Console gives you the raw generator — stack up to three layers and drive them by hand.

00:00 alpha · 10.0 Hz idle stopped

60%
22%
Render
Practice log

Keys: space start/stop · ←/→ seek 30s · [/] segment · ↑/↓ master · v visual · b bed · f fullscreen

02 — Scores

The tapes are not tones. They're structure.

A single slider held at 4 Hz is not a session. The thing that makes a guided programme work is the shape over time: a tuning phase, a slow descent, a long hold, a deliberate return. Rates that ramp over minutes, not jumps.

So the unit here isn't a frequency, it's a score — a small JSON file listing segments, target states, ramp curves and timed cues. The player interpolates between waypoints and schedules every change sample-accurately in the audio clock, so nothing drifts when the tab loses focus.

Scores are plain files. Export one, edit it in any text editor, send it to somebody. Copy link packs the whole score into the URL fragment — no server sees it, because the fragment is never sent. A link is a session.

The format is documented in docs/SCORE-FORMAT.md. Built-in scores are CC BY-SA 4.0 — fork them, improve them, publish yours.

{ "focus": 1, "title": "Descent — 10", "layers": [{ "carrier": 100, "mode": "binaural" }],
  "segments": [
    { "name": "Tuning",  "duration": 180, "ramp": "hold", "state": [{ "beat": 10, "gain": 0.55 }] },
    { "name": "Descent", "duration": 300, "ramp": "ease", "state": [{ "beat": 4,  "gain": 0.6  }] },
    { "name": "Hold",    "duration": 900, "ramp": "hold", "state": [{ "beat": 4,  "gain": 0.6  }] },
    { "name": "Return",  "duration": 240, "ramp": "ease", "state": [{ "beat": 14, "gain": 0.4  }] } ] }
03 — Bands

What people reach for each range to do.

These are the associations from the EEG literature. They describe which rhythm tends to dominate a resting EEG in that state — not a guarantee that playing the tone produces the state. Read the last column as "what practitioners aim at," under the caveat in section 05.

BandRangeAssociated withCommonly used for
Delta0.5–4 HzDeep, dreamless sleepSleep onset, deep rest — usually a glide target, not a starting point
Theta4–8 HzDrowsiness, deep meditation, hypnagogiaMeditation, creative reverie, the edge just before sleep
Alpha8–12 HzCalm, eyes-closed wakefulnessRelaxed focus, winding down — start here
Beta13–30 HzAlert, engaged thinkingConcentration drills, active work
Gamma30–45 HzHigh-level binding, intense focusPeak-attention experiments; least established, most speculative
04 — Practice

How to actually use it.

The concentration drill

Console mode, one layer, isochronic beta 15–20 Hz, carrier 220–300 Hz, low volume, visual set to focus point. Hold the point. Track the beats. Notice the exact moment you lose the count — then return, without commentary. That noticing is the rep.

The descent

Session mode, Descent — 10, headphones, eyes closed, visual off. Let the ramp carry you; don't chase it. The long hold is where the work happens, and it will feel like nothing is happening. That's expected.

Building your own

Start from a built-in score, export it, change one thing. Longer holds beat steeper ramps almost every time.

Sensible limits

Keep the volume low — a clear tone you can think over, never one that fatigues your ears. There's a limiter on the output, but it is a floor under mistakes, not permission. 20–45 minutes is a full session. Stop on headache or unease.

Do not use if you have epilepsy or any seizure history, while driving or operating machinery, or with a pacemaker or hearing implant, without clearing it with a clinician first. Pulsing stimuli carry a small but real seizure risk, highest between roughly 15 and 25 Hz.

The pulsing visual here is hard-limited to 4 Hz regardless of the audio rate — above that it divides the beat down rather than flashing at it. Declare photosensitivity on the entry gate and the pulsing option is removed entirely. Audio-only sessions involve no light at all.

Not a medical device. Nothing here diagnoses, treats or prevents anything. If you're using this to manage a health condition, tell your clinician you're doing it.
05 — Honest ground

What's real, what's folklore, and why build it anyway.

The caveat, up front. The popular story — match a tone to a brainwave and the brain follows — overstates a real but weak effect. EEG and MEG confirm the auditory cortex tracks periodic sound: the steady-state response is solid, replicated, clinically used. What is not well established is that listening produces robust, lasting changes in mood, focus or "state." Meta-analyses find small, inconsistent effects that often shrink under better control. Treat this as a focus-training and relaxation aid. It won't hurt you at sane volumes, and it won't rewire you either.

Which leaves an honest question: if the mechanism is oversold, why build a careful instrument for it?

Because the practice underneath doesn't depend on the mechanism. Sustained, rhythmic, single-pointed attention is what every contemplative tradition drills, and an external timekeeper you cannot argue with is a good scaffold for it. The tone doesn't have to be doing something to your brainwaves for the discipline of returning to it to be worth the forty minutes.

That's the position this thing takes: take the practice seriously, take the evidence seriously, and don't let either one launder the other.

On the Gateway material

The Monroe Institute's Gateway Experience is the origin of this whole genre, and its tapes, manuals and the Hemi-Sync trademark are their property. FOCUS ships no Monroe audio, no Monroe text, and no Monroe branding. Every built-in score and cue here is original, written for this project.

What you can have is the structural idea — tuning, descent, hold, return — which is not anybody's property, and the declassified US government assessment of the programme, which is a federal work in the public domain.

If you own the tapes, the Import control reads score files from your own disk, and nothing you load ever leaves the machine.

06 — Run your own

Mirror it. It's yours now.

This page is one HTML file with no build step, no framework, no CDN, no fonts fetched from Google, no analytics, no service calls, and no accounts. Fonts and code are embedded. Open it from a USB stick on a plane and it works identically.

That isn't a flex, it's the point. A tool for sitting quietly with your own attention should not be phoning anyone.

Three ways to run it:

1. Save this page. Done — it's a complete application.
2. docker compose up -d from the repo.
3. Drop focus.html into any static host or reverse proxy.

Source and issues: the repository. Code MIT, built-in scores CC BY-SA 4.0, fonts OFL.