Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat: progressive Pole Club audio that opens up as you walk inside

nirholasae874eed9673
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba41e384a..628a735b1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -44,6 +44,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Pinning your agent holds up when GPS gets flaky** — Anchoring an agent to a real spot now survives the rough edges of phone GPS. If your location drops for a moment — stepping indoors, into a garage, under heavy cover — IRL quietly re-acquires it on its own instead of going dark until you reload. When you pin before your phone has its first fix, it waits on a clear "Getting your location…" note and only drops the agent once a real position lands, so an agent can never be saved at the wrong place. The moment that precise fix arrives, your agent eases into its anchored spot instead of jumping. And when GPS is only roughly sure where you are, we say so — your pin is labelled an approximate spot with the accuracy in metres rather than pretending it's pinpoint. (`/irl`) `[fix]`
- **Place AI agents at fixed spots around a real room** — IRL has a new way to author a scene: stand where you are, aim your phone at a real spot — the couch, the doorway, the empty chair across the table — set how far away it should sit, and tap Place to drop an agent right there. Drop several around you and each one stays locked to its real-world spot: turn away and it's gone, turn back and it slides into frame exactly where you left it, and the wall you never aimed at stays empty. The whole group is anchored as one shared room, so the layout holds its shape no matter how your GPS drifts — agents you placed metres apart stay metres apart on the right sides — and the next person who opens IRL at that spot sees the same arrangement you built. If the room ever lands slightly off, one drag nudges the entire cluster onto its true spot at once instead of fixing each agent by hand. Every part of the flow works by keyboard and reads its state aloud, and when your compass isn't calibrated we tell you honestly that others may see the room rotated rather than pretending it's perfect. (`/irl`) `[feature]`
- **Platform-wide API security hardening** — We completed a full security audit of the API and tightened it across the board. Server errors no longer echo internal details back to callers — they return a short reference code you can quote to support, while the real diagnostics stay server-side (this also closes a path where a backend service key could surface in an error message). Account-changing actions made from the website — updating preferences, managing webhooks and payout wallets, marking notifications read, scheduling posts, setting skill prices — now carry cross-site request-forgery protection, so a malicious page can't act on your behalf. Sign-in, wallet-linking, GitHub connect and sensitive admin actions gained rate limits, and image-analysis requests are now screened so a supplied URL can't be used to probe internal systems. API access via developer keys is unaffected. `[security]`
+- **Pole Club music opens up as you walk inside** — The soundtrack at the Pole Club now follows you in. Out in the alley it plays muffled and bass-heavy, like the room heard through the door. Pay the cover and the same track — never restarted, just picked up from wherever it is — gets a little clearer with every threshold you cross: a step more open when the rope drops, more again through the gallery and the clubhouse, then wide open the moment you step onto the floor. The walk in now sounds like a walk in. (`/club`) `[improvement]`
- **Premium avatar cosmetics are now buyable right in the character creator** — Locked premium headwear, eyewear, dyes and auras in the character creator no longer dead-end on a placeholder — clicking one now opens the real wallet checkout and unlocks it the moment the USDC payment settles, then equips it on your live preview. Anything you already own loads pre-unlocked, and the price you see is the true checkout amount pulled from the catalog. (`/create`) `[feature, fix]`
- **See your net take when you price a skill** — The Skill Pricing panel on the Monetize dashboard now shows exactly what you keep on every payment. As you type a per-call price, a line below the field updates live — "You receive $X.XX after 2.5% fee" — so the platform's cut is never a surprise at payout time. The same net figure appears in the Add Pricing dialog, and the panel header states the current platform fee rate, which is read from the live billing config rather than hardcoded. (`/dashboard/monetize`) `[feature, improvement]`
- **Shared agent links now unfurl with the agent's own avatar** — When you paste a link to an agent on X, Discord, Slack, Telegram or iMessage, the preview card now shows that agent's actual avatar, name and description instead of a generic three.ws image — so every shared link is visual proof of the collectible. Bots that don't run JavaScript get the right image and text rendered on the server, and agents without an avatar yet fall back to a clean branded card with their initial. We also fixed the canonical and share URLs on agent pages to point at the real /agents/<id> address. `[feature, improvement]`
diff --git a/data/changelog.json b/data/changelog.json
index 05b1a17d7..97969ffa6 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-19",
+ "title": "Pole Club music opens up as you walk inside",
+ "summary": "The soundtrack at the Pole Club now follows you in. Out in the alley it plays muffled and bass-heavy, like the room heard through the door. Pay the cover and the same track — never restarted, just picked up from wherever it is — gets a little clearer with every threshold you cross: a step more open when the rope drops, more again through the gallery and the clubhouse, then wide open the moment you step onto the floor. The walk in now sounds like a walk in.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/club"
+ },
{
"date": "2026-06-19",
"title": "Flappin UFO — a $THREE arcade demo is live",
diff --git a/public/changelog.json b/public/changelog.json
index 9dd8cd99f..afe95260d 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T15:14:30.922Z",
+ "generated_at": "2026-06-19T15:25:52.116Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -394,6 +394,16 @@
"security"
]
},
+ {
+ "date": "2026-06-19",
+ "type": "update",
+ "title": "Pole Club music opens up as you walk inside",
+ "summary": "The soundtrack at the Pole Club now follows you in. Out in the alley it plays muffled and bass-heavy, like the room heard through the door. Pay the cover and the same track — never restarted, just picked up from wherever it is — gets a little clearer with every threshold you cross: a step more open when the rope drops, more again through the gallery and the clubhouse, then wide open the moment you step onto the floor. The walk in now sounds like a walk in.",
+ "link": "/club",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-19",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index ff18825e1..7cb9d066e 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -310,6 +310,14 @@
<category>security</category>
<description>We completed a full security audit of the API and tightened it across the board. Server errors no longer echo internal details back to callers — they return a short reference code you can quote to support, while the real diagnostics stay server-side (this also closes a path where a backend service key could surface in an error message). Account-changing actions made from the website — updating preferences, managing webhooks and payout wallets, marking notifications read, scheduling posts, setting skill prices — now carry cross-site request-forgery protection, so a malicious page can't act on your behalf. Sign-in, wallet-linking, GitHub connect and sensitive admin actions gained rate limits, and image-analysis requests are now screened so a supplied URL can't be used to probe internal systems. API access via developer keys is unaffected.</description>
</item>
+ <item>
+ <title>Pole Club music opens up as you walk inside</title>
+ <link>https://three.ws/club</link>
+ <guid isPermaLink="false">2026-06-19:Pole Club music opens up as you walk inside</guid>
+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The soundtrack at the Pole Club now follows you in. Out in the alley it plays muffled and bass-heavy, like the room heard through the door. Pay the cover and the same track — never restarted, just picked up from wherever it is — gets a little clearer with every threshold you cross: a step more open when the rope drops, more again through the gallery and the clubhouse, then wide open the moment you step onto the floor. The walk in now sounds like a walk in.</description>
+ </item>
<item>
<title>Premium avatar cosmetics are now buyable right in the character creator</title>
<link>https://three.ws/create</link>
diff --git a/public/features.json b/public/features.json
index e38c01eeb..481c5140c 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T15:14:30.905Z",
+ "generated_at": "2026-06-19T15:25:52.098Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/club-audio.js b/src/club-audio.js
index c7be0a6ac..8a2a57c8b 100644
--- a/src/club-audio.js
+++ b/src/club-audio.js
@@ -50,6 +50,7 @@ export class ClubAudio {
this._buffers = new Map(); // styleName → AudioBuffer
this._loading = new Map(); // styleName → Promise<AudioBuffer>
this._peakBuf = null; // Uint8Array reused for getByteFrequencyData
+ this._clarity = 0; // 0 = outside muffle, 1 = open floor — ramps with the walk-in
this.muted = this._readMutedPref();
this._onStatus = null; // optional callback(name, label)
}
@@ -401,29 +402,43 @@ export class ClubAudio {
return buf;
}
- // Crossfade the effects chain between outdoor (heavy muffle + bass + long reverb)
- // and indoor (full spectrum + tight room reverb). Call with isInside=false when
- // the user is at the door; isInside=true on club:admitted.
- setLocation(isInside) {
+ // Crossfade the effects chain along a clarity axis, where `frac` is 0 = fully
+ // outside (heavy muffle + bass + long exterior reverb, the club heard through
+ // the door) and 1 = on the floor (open spectrum + tight room reverb). The
+ // music keeps streaming from wherever it is — only the FX endpoints move — so
+ // each threshold you cross after paying lets a little more of the room
+ // through without ever restarting the track. Intermediate values are real
+ // in-between mixes: lerp each parameter from the outdoor endpoint to the
+ // indoor one, with the lowpass cutoff interpolated in log space so the sweep
+ // reads as a smooth, even opening rather than snapping wide near the top.
+ setClarity(frac, glideSec = 1.4) {
if (!this.ctx || !this._fx) return;
+ const f = Math.min(1, Math.max(0, Number(frac) || 0));
+ this._clarity = f;
const t = this.ctx.currentTime;
- const tc = 0.9; // exponential time constant — fully settled in ~2s
-
- if (isInside) {
- this._fx.lowpass.frequency.setTargetAtTime(17000, t, tc);
- this._fx.lowpass.Q.setTargetAtTime(0.5, t, tc);
- this._fx.bass.gain.setTargetAtTime(9, t, tc);
- this._fx.dry.gain.setTargetAtTime(0.65, t, tc);
- this._fx.outdoorWet.gain.setTargetAtTime(0.0, t, tc);
- this._fx.indoorWet.gain.setTargetAtTime(0.28, t, tc);
- } else {
- this._fx.lowpass.frequency.setTargetAtTime(420, t, tc);
- this._fx.lowpass.Q.setTargetAtTime(1.0, t, tc);
- this._fx.bass.gain.setTargetAtTime(18, t, tc);
- this._fx.dry.gain.setTargetAtTime(0.22, t, tc);
- this._fx.outdoorWet.gain.setTargetAtTime(0.85, t, tc);
- this._fx.indoorWet.gain.setTargetAtTime(0.0, t, tc);
- }
+ // setTargetAtTime settles in ~3 time-constants; size tc to hit glideSec.
+ const tc = Math.max(0.05, glideSec) / 3;
+
+ const lerp = (a, b) => a + (b - a) * f;
+ // Outdoor (f=0) → indoor (f=1) endpoints for every node in the chain.
+ const OUT = { freq: 420, q: 1.0, bass: 18, dry: 0.22, outWet: 0.85, inWet: 0.0 };
+ const IN = { freq: 17000, q: 0.5, bass: 9, dry: 0.65, outWet: 0.0, inWet: 0.28 };
+ // Cutoff perceived logarithmically — interpolate as a geometric sweep.
+ const freq = OUT.freq * Math.pow(IN.freq / OUT.freq, f);
+
+ this._fx.lowpass.frequency.setTargetAtTime(freq, t, tc);
+ this._fx.lowpass.Q.setTargetAtTime(lerp(OUT.q, IN.q), t, tc);
+ this._fx.bass.gain.setTargetAtTime(lerp(OUT.bass, IN.bass), t, tc);
+ this._fx.dry.gain.setTargetAtTime(lerp(OUT.dry, IN.dry), t, tc);
+ this._fx.outdoorWet.gain.setTargetAtTime(lerp(OUT.outWet, IN.outWet), t, tc);
+ this._fx.indoorWet.gain.setTargetAtTime(lerp(OUT.inWet, IN.inWet), t, tc);
+ }
+
+ // Snap to either extreme of the clarity axis — outside (false) or on the
+ // floor (true). Used by the degraded paths (cached re-entry, dead alley
+ // scene) that skip the gradual walk-through ramp.
+ setLocation(isInside) {
+ this.setClarity(isInside ? 1 : 0, 0.9);
}
// Ramp a single GainNode to `target`, gliding from its current value so the
diff --git a/src/club-entrance.js b/src/club-entrance.js
index 3d1c13315..284d294f9 100644
--- a/src/club-entrance.js
+++ b/src/club-entrance.js
@@ -615,6 +615,22 @@ async function start(canvasEl) {
setupAgentSwitch();
showAgentSwitch(true);
+ // Music clarity ramps with the journey: the bed plays muffled-through-the-door
+ // while you're outside, opens up a step with each threshold you cross after
+ // paying, and is wide open by the time the pole floor reveals. src/club.js
+ // listens for club:clarity and drives the audio FX chain — the track itself
+ // never restarts, it just gets clearer. 0 = outside, 1 = on the floor.
+ function clarityForVenue(i) {
+ if (!paid) return 0;
+ // After paying, spread the opening evenly across the remaining walk:
+ // admission sits ~30% open, each venue deeper adds the rest, and the
+ // final hand-off to the stage (advance → arriving) snaps to fully open.
+ return 0.3 + 0.7 * (i / SEQUENCE.length);
+ }
+ function pushClarity(frac) {
+ window.dispatchEvent(new CustomEvent('club:clarity', { detail: { clarity: frac } }));
+ }
+
// Hint + prompt copy track where you are in the journey: the alley door takes
// the cover, the final place opens the stage, the rest just lead onward.
const isFinalVenue = () => venueIndex >= SEQUENCE.length - 1;
@@ -662,6 +678,7 @@ async function start(canvasEl) {
nearDoor = false;
if (isFinalVenue()) {
setJourneyStep(SEQUENCE.length); // light the Stage step
+ pushClarity(1); // stepping onto the floor — fully open the bed
setPhase('arriving');
} else {
setPhase('swapOut');
@@ -745,6 +762,8 @@ async function start(canvasEl) {
placeSpawn();
refreshCrowd(); // fill the next room with the roster
setHint();
+ // New room revealed — open the bed up another step.
+ pushClarity(clarityForVenue(venueIndex));
setPhase('swapIn');
} else if (next === 'error') {
// A place failed to load — don't strand the visitor; reveal
@@ -839,6 +858,9 @@ async function start(canvasEl) {
paid = true;
currentCover = false;
showPrompt(false); showHint(false); showJoystick(false); showMinimap(false); showAgentSwitch(false);
+ // Cover's paid and the rope drops — crack the door open so the bed clears
+ // its first step the moment the walk-in dance starts.
+ pushClarity(clarityForVenue(venueIndex));
await celebrateAdmission();
advance();
}
diff --git a/src/club.js b/src/club.js
index df09bb9ee..a54c31a92 100644
--- a/src/club.js
+++ b/src/club.js
@@ -1336,9 +1336,22 @@ window.addEventListener('club:performance-end', () => {
window.addEventListener('pointerdown', retry, { once: true });
window.addEventListener('keydown', retry, { once: true });
};
+
+ // The walk-through (src/club-entrance.js) opens the sound up a step at a time
+ // as you cross each threshold after paying — outside-the-door muffle → a
+ // little clearer in the gallery → clearer in the clubhouse → wide open on the
+ // floor. It drives that via club:clarity events so the music (a single
+ // streaming element) keeps playing from wherever it is and just gets clearer.
+ let clarityDrivenByWalk = false;
+ window.addEventListener('club:clarity', (e) => {
+ clarityDrivenByWalk = true;
+ audio.setClarity(Number(e.detail?.clarity));
+ });
window.addEventListener('club:admitted', () => {
- // Transition audio from outdoor muffle → full indoor clarity as the door opens.
- audio.setLocation(true);
+ // If the alley walk-through is ramping clarity itself, leave it to do so.
+ // Otherwise — a cached re-entry or a dead alley scene that skipped the
+ // walk — snap straight to full clarity as the door opens.
+ if (!clarityDrivenByWalk) audio.setLocation(true);
// On a cached re-entry the door opens with no gesture, so the context is
// still locked — fall back to playing on the next interaction.
audio.playEntrance().catch(armOnGesture);
diff --git a/tests/club-audio.test.js b/tests/club-audio.test.js
index e2ab0340c..2df77bdc1 100644
--- a/tests/club-audio.test.js
+++ b/tests/club-audio.test.js
@@ -529,6 +529,71 @@ describe('ClubAudio.setMuted', () => {
});
});
+describe('ClubAudio.setClarity', () => {
+ it('snaps to the outdoor endpoints at clarity 0', async () => {
+ const audio = new ClubAudio();
+ await audio.ensureContext();
+ audio.setClarity(0);
+ expect(audio._fx.lowpass.frequency.value).toBeCloseTo(420, 0);
+ expect(audio._fx.bass.gain.value).toBeCloseTo(18, 3);
+ expect(audio._fx.dry.gain.value).toBeCloseTo(0.22, 3);
+ expect(audio._fx.outdoorWet.gain.value).toBeCloseTo(0.85, 3);
+ expect(audio._fx.indoorWet.gain.value).toBeCloseTo(0.0, 3);
+ });
+
+ it('snaps to the indoor endpoints at clarity 1', async () => {
+ const audio = new ClubAudio();
+ await audio.ensureContext();
+ audio.setClarity(1);
+ expect(audio._fx.lowpass.frequency.value).toBeCloseTo(17000, 0);
+ expect(audio._fx.bass.gain.value).toBeCloseTo(9, 3);
+ expect(audio._fx.dry.gain.value).toBeCloseTo(0.65, 3);
+ expect(audio._fx.outdoorWet.gain.value).toBeCloseTo(0.0, 3);
+ expect(audio._fx.indoorWet.gain.value).toBeCloseTo(0.28, 3);
+ });
+
+ it('produces a real in-between mix at partial clarity', async () => {
+ const audio = new ClubAudio();
+ await audio.ensureContext();
+ audio.setClarity(0.5);
+ // Linearly-interpolated params sit between the two endpoints.
+ expect(audio._fx.bass.gain.value).toBeCloseTo(13.5, 3);
+ expect(audio._fx.dry.gain.value).toBeCloseTo(0.435, 3);
+ expect(audio._fx.outdoorWet.gain.value).toBeCloseTo(0.425, 3);
+ expect(audio._fx.indoorWet.gain.value).toBeCloseTo(0.14, 3);
+ // Cutoff is geometric, so the midpoint is the geometric mean (~2672 Hz),
+ // far below the linear midpoint of ~8710 Hz.
+ expect(audio._fx.lowpass.frequency.value).toBeGreaterThan(2000);
+ expect(audio._fx.lowpass.frequency.value).toBeLessThan(3500);
+ });
+
+ it('clamps out-of-range and non-finite input', async () => {
+ const audio = new ClubAudio();
+ await audio.ensureContext();
+ audio.setClarity(5);
+ expect(audio._clarity).toBe(1);
+ audio.setClarity(-2);
+ expect(audio._clarity).toBe(0);
+ audio.setClarity(NaN);
+ expect(audio._clarity).toBe(0);
+ });
+
+ it('setLocation delegates to the clarity extremes', async () => {
+ const audio = new ClubAudio();
+ await audio.ensureContext();
+ audio.setLocation(true);
+ expect(audio._clarity).toBe(1);
+ audio.setLocation(false);
+ expect(audio._clarity).toBe(0);
+ });
+
+ it('no-ops cleanly before the context exists', () => {
+ const audio = new ClubAudio();
+ expect(() => audio.setClarity(0.5)).not.toThrow();
+ expect(() => audio.setLocation(true)).not.toThrow();
+ });
+});
+
describe('ClubAudio.getPeak', () => {
it('returns 0 before the context is created', () => {
const audio = new ClubAudio();