diff --git a/website/app/guides/record/page.tsx b/website/app/guides/record/page.tsx index b3983a76..9a2a5189 100644 --- a/website/app/guides/record/page.tsx +++ b/website/app/guides/record/page.tsx @@ -2,7 +2,17 @@ import { AskUs, Breadcrumbs, GetTheApp, LastChecked } from "@/components/GuidePa import { MixerFaq } from "@/components/MixerFaq"; import { PAGES, pageMetadata } from "@/lib/metadata"; import { InlineMarkdown } from "@/components/InlineMarkdown"; -import { GLOSSARY, HUB_COPY, HUB_FAQS, MIXER_GUIDES, MIXER_ROWS, pickMixerLink } from "@/lib/mixerGuides"; +import { + GLOSSARY, + HUB_COPY, + HUB_FAQS, + MIXER_GUIDES, + MIXER_ROWS, + VIRTUAL_SOUNDCHECK_COPY, + VIRTUAL_SOUNDCHECK_ID, + pickMixerLink, +} from "@/lib/mixerGuides"; +import { soundcheckPlayerLink } from "@/lib/site"; import { breadcrumbListJsonLd, faqPageJsonLd, jsonLdScript } from "@/lib/structuredData"; export const metadata = pageMetadata(PAGES.guidesHub); @@ -142,6 +152,30 @@ export default function GuidesHubPage() { +
+
+

{VIRTUAL_SOUNDCHECK_COPY.title}

+
+

+ +

+ +

+ +

+

{VIRTUAL_SOUNDCHECK_COPY.player}

+ {/* The link in a paragraph of its own, tagged so PostHog shows the visits this section sent. */} +

+ {VIRTUAL_SOUNDCHECK_COPY.playerLink} +

+
+

{HUB_COPY.glossaryTitle}

diff --git a/website/app/guides/record/x32/content.mdx b/website/app/guides/record/x32/content.mdx index 365ea494..5708bf6e 100644 --- a/website/app/guides/record/x32/content.mdx +++ b/website/app/guides/record/x32/content.mdx @@ -176,6 +176,8 @@ When a channel's source is the card: - its gain knob becomes a digital trim of plus or minus 12 dB - phantom power and preamp gain move to **Setup > Preamps** +What to record for one, and an app that plays it back, are in [Record the multitrack for a virtual soundcheck](/guides/record#virtual-soundcheck). + ## X32 tap points The tap point is where in the channel the recording is taken: the raw input, or later, after the EQ or the fader. Which one to pick, and why, is in [Pre or post fader](/guides/record/pre-or-post-fader). On the X32: diff --git a/website/app/guides/record/xr18/content.mdx b/website/app/guides/record/xr18/content.mdx index 1ed5c5bb..c1b7e9ee 100644 --- a/website/app/guides/record/xr18/content.mdx +++ b/website/app/guides/record/xr18/content.mdx @@ -129,6 +129,8 @@ Good to know: - A channel uses only one source at a time. - The monitor source is the main LR (post fader) out of the box. You can also pick a bus, an aux or USB 17/18. +What to record for one, and an app that plays it back, are in [Record the multitrack for a virtual soundcheck](/guides/record#virtual-soundcheck). + ## XR18 tap points The tap point is where in the channel the recording is taken: the raw input, or later, after the EQ or the fader. Which one to pick, and why, is in [Pre or post fader](/guides/record/pre-or-post-fader). On the XR18: diff --git a/website/lib/mixerGuides.ts b/website/lib/mixerGuides.ts index fd0d45a5..c7bee263 100644 --- a/website/lib/mixerGuides.ts +++ b/website/lib/mixerGuides.ts @@ -287,6 +287,26 @@ export const HUB_COPY = { glossaryTitle: "Glossary", } as const; +// The hub's section on recording the multitrack for a virtual soundcheck (#virtual-soundcheck). The XR18 and X32 +// guides' playback sections link here. "Virtual soundcheck" describes the job; it is never an app's name. What it says +// of ShowRecorder is what `fits` above and lib/guide.ts say; what it says of SoundcheckPlayer is what soundcheckplayer.app +// says. The link to that site is added by the page (lib/site.ts imports this file, so it can't be built here). +export const VIRTUAL_SOUNDCHECK_ID = "virtual-soundcheck"; +export const VIRTUAL_SOUNDCHECK_COPY = { + title: "Record the multitrack for a virtual soundcheck", + intro: + "A virtual soundcheck plays a recorded show back through the mixer's channels over USB, so you can set the mix with no band on stage. It starts with the recording: one track per channel, from a show or a rehearsal.", + steps: [ + "**Record every channel to its own track.** Any of the three ways above does it. ShowRecorder does it on an iPhone or iPad: every USB Channel to its own WAV file.", + `**Record the raw input.** The playback comes back in at the same point, so the channel's trim, EQ and dynamics work on it as they did on the live input. [Pre or post fader](${TAP_POINT_GUIDE}) explains each tap point.`, + "**Mark the songs.** In ShowRecorder, tap the flag at each song to drop a Marker, so you can find the song again.", + ], + playback: `To play it back, the mixer's channels take the USB returns in place of the stage inputs. The guides show where: [XR18 playback](${GUIDES_HUB}/xr18#xr18-playback-for-virtual-soundcheck) and [X32 playback](${GUIDES_HUB}/x32#x32-playback-for-virtual-soundcheck), or pick your mixer above.`, + player: + "SoundcheckPlayer, from the maker of ShowRecorder, plays the tracks back from an iPhone, iPad or Mac, each one on its own channel. It opens a ShowRecorder Take with its Markers. On an XR18 or MR18 it switches the channels to USB, and puts them back when you're done. It is in testing now.", + playerLink: "SoundcheckPlayer, the virtual soundcheck app", +} as const; + // The line under a guide in "Pick your mixer" when ShowRecorder has Mixer Link for it, linking to its ShowRecorder page. export function pickMixerLink(productPage: string): string { return `Mixer Link: ShowRecorder takes the channel names and colors from this mixer ([how it works](${productPage})).`; diff --git a/website/lib/site.ts b/website/lib/site.ts index 1d806425..ef30b475 100644 --- a/website/lib/site.ts +++ b/website/lib/site.ts @@ -17,7 +17,10 @@ export const ISSUES_URL = `${REPO_URL}/issues`; export const FACEBOOK_URL = "https://www.facebook.com/profile.php?id=61596288844683"; // The sister site: SoundcheckPlayer plays a Take back into the mixer. Tagged like every link we write, so PostHog // (Owned Sites, $host soundcheckplayer.app) shows the visits this site sent. One campaign per placement. -export const SOUNDCHECKPLAYER_URL = "https://soundcheckplayer.app/?utm_source=showrecorder&utm_campaign=footer"; +export function soundcheckPlayerLink(campaign: string): string { + return `https://soundcheckplayer.app/?utm_source=showrecorder&utm_campaign=${campaign}`; +} +export const SOUNDCHECKPLAYER_URL = soundcheckPlayerLink("footer"); // Pro's price. It is set in lib/price.ts (lib/docs.ts needs it, and this file imports lib/docs.ts) and read from here. export { PRO_PRICE, PRO_PRICE_TEXT } from "@/lib/price"; diff --git a/website/tests/soundcheckPlayerLink.test.ts b/website/tests/soundcheckPlayerLink.test.ts index dec42c33..ac82e6c8 100644 --- a/website/tests/soundcheckPlayerLink.test.ts +++ b/website/tests/soundcheckPlayerLink.test.ts @@ -32,7 +32,8 @@ describe("the link to soundcheckplayer.app", () => { it("is never written as a bare, untagged address anywhere on the site", () => { for (const file of ["app", "components", "lib"].flatMap((d) => sources(path.join(ROOT, d)))) { for (const [url] of readFileSync(file, "utf8").matchAll(/https:\/\/soundcheckplayer\.app[^\s"'`)<]*/g)) { - expect(url, file).toMatch(/\?utm_source=showrecorder&utm_campaign=[a-z0-9-]+$/); + // A fixed campaign, or the one place that builds the link: soundcheckPlayerLink(campaign) in lib/site.ts. + expect(url, file).toMatch(/\?utm_source=showrecorder&utm_campaign=([a-z0-9-]+|\$\{campaign\})$/); } } }); diff --git a/website/tests/virtualSoundcheckSection.test.ts b/website/tests/virtualSoundcheckSection.test.ts new file mode 100644 index 00000000..92a26f7d --- /dev/null +++ b/website/tests/virtualSoundcheckSection.test.ts @@ -0,0 +1,74 @@ +import { readFileSync } from "node:fs"; +import path from "node:path"; +import { createElement } from "react"; +import { renderToStaticMarkup } from "react-dom/server"; +import GuidesHubPage from "@/app/guides/record/page"; +import { TAP_POINT_GUIDE } from "@/lib/mixerGuides"; +import { SOUNDCHECKPLAYER_URL, soundcheckPlayerLink } from "@/lib/site"; + +// "Virtual soundcheck" is what people search for (Eric, 2026-12-03). The guides hub has a section on recording the +// multitrack for one, which links to SoundcheckPlayer, the app that plays it back. The XR18 and X32 guides' playback +// sections link to it, so the facts live in one place. + +const ROOT = path.resolve(__dirname, ".."); +const read = (...p: string[]) => readFileSync(path.join(ROOT, ...p), "utf8"); +const hub = renderToStaticMarkup(createElement(GuidesHubPage)); +const section = hub.match(/
/)?.[0] ?? ""; +const text = section.replace(/<[^>]+>/g, " ").replace(/'/g, "'").replace(/\s+/g, " "); + +describe("the hub's section on recording for a virtual soundcheck", () => { + it("has its own heading, which other pages can link to", () => { + expect(section).toMatch(/

Record the multitrack for a virtual soundcheck<\/h2>/); + }); + + it("says what a virtual soundcheck is and what to record for one", () => { + expect(text).toMatch(/plays a recorded show back through the mixer's channels/); + expect(text).toMatch(/no band on stage/); + expect(text).toMatch(/every channel to its own track/i); + expect(text).toMatch(/raw input/); + expect(text).toMatch(/Marker/); + expect(section).toContain(`href="${TAP_POINT_GUIDE}"`); + }); + + it("claims of ShowRecorder only what the hub already says: every USB Channel to its own WAV, on iPhone or iPad", () => { + expect(text).toMatch(/every USB Channel to its own WAV file/); + expect(text).toMatch(/iPhone or iPad/); + expect(text).not.toMatch(/\$\d|free trial|best|only app/i); + }); + + it("links to the playback sections of the XR18 and X32 guides, not a copy of them", () => { + expect(section).toContain('href="/guides/record/xr18#xr18-playback-for-virtual-soundcheck"'); + expect(section).toContain('href="/guides/record/x32#x32-playback-for-virtual-soundcheck"'); + expect(read("app", "guides", "record", "xr18", "content.mdx")).toMatch(/^## XR18 playback for virtual soundcheck$/m); + expect(read("app", "guides", "record", "x32", "content.mdx")).toMatch(/^## X32 playback for virtual soundcheck$/m); + }); + + it("links to SoundcheckPlayer with a tagged link, in a paragraph of its own", () => { + const link = soundcheckPlayerLink("guides-virtual-soundcheck"); + expect(link).toBe("https://soundcheckplayer.app/?utm_source=showrecorder&utm_campaign=guides-virtual-soundcheck"); + expect(section).toMatch(new RegExp(`

[^<]+

`)); + expect(SOUNDCHECKPLAYER_URL).toBe(soundcheckPlayerLink("footer")); + }); + + it("says of SoundcheckPlayer only what its own page says, and that it is in testing", () => { + expect(text).toMatch(/each one on its own channel/); + expect(text).toMatch(/XR18 or MR18/); + expect(text).toMatch(/in testing/); + expect(text).not.toMatch(/App Store/); + }); + + it("uses virtual soundcheck as a description, never as an app's name, and names no trademark owner", () => { + expect(section).not.toMatch(/Virtual Soundcheck/); + expect(text).not.toMatch(/Yamaha/); + }); +}); + +describe("the XR18 and X32 guides", () => { + it("link from their playback sections to the hub's section", () => { + for (const slug of ["xr18", "x32"]) { + const mdx = read("app", "guides", "record", slug, "content.mdx"); + const playback = mdx.match(/^## \w+ playback for virtual soundcheck$[\s\S]*?(?=^## )/m)?.[0] ?? ""; + expect(playback, slug).toContain("(/guides/record#virtual-soundcheck)"); + } + }); +});