Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The site for SoundcheckPlayer: a static Next.js site (App Router, TypeScript, Tailwind CSS 4) exported to plain HTML
and served by nginx. It is set up the same way as showrecorder.app (ShowRecorder's `website/`), trimmed to the
landing page, `/privacy` and `/support`. It lives in this repo beside the app, but it is its own project, and nothing in the Xcode project reads it.
landing page, `/privacy`, `/support` and the `/virtual-soundcheck` guide. It lives in this repo beside the app, but it is its own project, and nothing in the Xcode project reads it.

## Requirements

Expand Down Expand Up @@ -48,6 +48,9 @@ changes.
and a Mac are called tested (not the iPad), that the contact comes from `SUPPORT_CONTACT_URL`, and that there is no FAQ structured data in the page.
- `tests/layout.test.tsx` checks that the width, header, type scale and hero order are showrecorder.app's (#100), so
the two sites' headers and titles line up.
- `tests/virtualSoundcheck.test.tsx` renders `/virtual-soundcheck` and checks that its HowTo and FAQPage structured
data say exactly what the page says, the trademark note, the tagged showrecorder.app links, the canonical address and
that "virtual soundcheck" is always lowercase.
- `tests/analytics.test.ts` checks the PostHog setup, the `?internal=1` opt-out and the Content-Security-Policy.
- `tests/structuredData.test.tsx` checks the SoftwareApplication data restates the page and states no price, offer,
rating, review or download link.
Expand All @@ -59,6 +62,7 @@ changes.
| The landing page | `app/page.tsx` |
| `/privacy`: the app, then this website. The words shared with the home page, and the effective date | `app/privacy/page.tsx`, `lib/privacy.ts` |
| `/support`: the FAQ and the contact | `app/support/page.tsx`, `lib/faq.ts` |
| `/virtual-soundcheck`: the steps, the comparison, the FAQ and their structured data, with a source for each fact | `app/virtual-soundcheck/page.tsx`, `lib/virtualSoundcheck.ts` |
| The support contact, one constant (`SUPPORT_CONTACT_URL`) | `lib/site.ts` |
| Header and footer on every page | `components/SiteHeader.tsx`, `components/SiteFooter.tsx` |
| A page's title, description and canonical address | `lib/pageMetadata.ts` |
Expand Down
33 changes: 33 additions & 0 deletions website/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -545,3 +545,36 @@ section {
.doc-note {
font-size: 0.95rem;
}

/* /virtual-soundcheck: the steps and the comparison table. */
.steps {
padding-left: 1.4em;
}

.table-scroll {
overflow-x: auto;
}

.compare {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}

.compare caption {
text-align: left;
color: var(--muted);
padding-bottom: 8px;
}

.compare th,
.compare td {
text-align: left;
vertical-align: top;
padding: 10px 12px 10px 0;
border-bottom: 1px solid var(--hairline);
}

.compare td {
color: var(--muted);
}
11 changes: 8 additions & 3 deletions website/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { SITE_URL } from "@/lib/site";
export const dynamic = "force-static";

export default function sitemap(): MetadataRoute.Sitemap {
// Every page of the site. /privacy and /support have no trailing slash: nginx serves privacy.html and support.html
// at those addresses.
return [{ url: `${SITE_URL}/` }, { url: `${SITE_URL}/privacy` }, { url: `${SITE_URL}/support` }];
// Every page of the site. The pages other than the home page have no trailing slash: nginx serves privacy.html,
// support.html and virtual-soundcheck.html at those addresses.
return [
{ url: `${SITE_URL}/` },
{ url: `${SITE_URL}/privacy` },
{ url: `${SITE_URL}/support` },
{ url: `${SITE_URL}/virtual-soundcheck` },
];
}
165 changes: 165 additions & 0 deletions website/app/virtual-soundcheck/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
import type { Metadata } from "next";
import { metadata as siteMetadata } from "@/app/layout";
import { SiteFooter } from "@/components/SiteFooter";
import { SiteHeader } from "@/components/SiteHeader";
import { pageMetadata } from "@/lib/pageMetadata";
import { SITE_NAME, showRecorderLink } from "@/lib/site";
import { jsonLdText } from "@/lib/structuredData";
import {
COMPARISON,
FORMATS,
HOWTO_TITLE,
OTHER_MIXERS,
PAGE_PATH,
PAGE_TITLE,
STEPS,
type QuestionEntry,
faqJsonLd,
howToJsonLd,
virtualSoundcheckFaq,
} from "@/lib/virtualSoundcheck";

// /virtual-soundcheck: how to play a show's Stems back into the Mixer, for a live-sound engineer. The words are in
// lib/virtualSoundcheck.ts, with a source for each fact; the HowTo and FAQPage data are built from the same strings.

export const metadata: Metadata = pageMetadata(siteMetadata, {
name: PAGE_TITLE,
description:
"Play a show's multitrack back into the same Mixer, each Stem on its own channel, and mix without the band. Step by step with an XR18 or MR18.",
path: PAGE_PATH,
});

// An answer, with its link (if any) around the words it names. The text stays exactly the answer string.
function Answer({ entry }: { entry: QuestionEntry }) {
if (!entry.link) return <p>{entry.answer}</p>;
const at = entry.answer.indexOf(entry.link.text);
if (at < 0) return <p>{entry.answer}</p>;
return (
<p>
{entry.answer.slice(0, at)}
<a href={entry.link.href}>{entry.link.text}</a>
{entry.answer.slice(at + entry.link.text.length)}
</p>
);
}

export default function VirtualSoundcheckPage() {
const faq = virtualSoundcheckFaq();
return (
<>
<SiteHeader />
<main id="main" tabIndex={-1}>
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: jsonLdText(howToJsonLd()) }} />
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: jsonLdText(faqJsonLd()) }} />

<section className="doc">
<div className="wrap narrow">
<h1>{PAGE_TITLE}</h1>
<p>
Record every channel of a show, then play it back into the same Mixer and mix it again without the band.
Here is how, with an X Air Mixer and {SITE_NAME}.
</p>
<h2 id="what">What a virtual soundcheck is, and why</h2>
<p>
You record every channel of a show to its own track. Later you play those tracks back into the same
Mixer, each on the channel it came from, in place of the live inputs.
</p>
<p>
Then you can work on the mix without the band in the room: EQ, dynamics, effects and monitor mixes.
Rework a song that went wrong, or let a new engineer practice on a real show.
</p>
</div>
</section>

<section className="doc band" aria-labelledby="how">
<div className="wrap narrow">
<h2 id="how">{HOWTO_TITLE}</h2>
<p>
{SITE_NAME} plays the Stems from an iPhone or Mac into the Mixer over USB, each on its own channel. It
has been tested on a real XR18 and MR18, from an iPhone and from a Mac.
</p>
<ol className="steps">
{STEPS.map((step) => (
<li key={step.name} className="step">
<h3>{step.name}</h3>
<p>{step.text}</p>
</li>
))}
</ol>
<p>{OTHER_MIXERS}</p>
</div>
</section>

<section className="doc" aria-labelledby="source">
<div className="wrap narrow">
<h2 id="source">Where the multitrack comes from</h2>
<h3>Record it with ShowRecorder</h3>
<p>
ShowRecorder records every channel the Mixer sends over USB, each to its own file, on an iPhone or iPad.
It is a separate app from the same maker, and its Takes keep their Markers.
</p>
<p>
<a href={showRecorderLink("/", "virtual-soundcheck")}>More about ShowRecorder</a>
</p>
<h3>Or export Stems from a DAW</h3>
<p>
{`Export one file per channel. ${SITE_NAME} plays ${FORMATS}. Files are converted to the interface's rate as they play. Start a file's name with its channel number, like "01 Kick", and it plays on that channel.`}
</p>
</div>
</section>

<section className="doc band" aria-labelledby="compare">
<div className="wrap narrow">
<h2 id="compare">A laptop with a DAW, or a phone with {SITE_NAME}</h2>
<p>A laptop with a DAW can do much more. {SITE_NAME} does one job: it plays.</p>
<div className="table-scroll" role="region" aria-labelledby="compare-caption" tabIndex={0}>
<table className="compare">
<caption id="compare-caption">A laptop with a DAW compared with a phone with {SITE_NAME}</caption>
<thead>
<tr>
<td />
<th scope="col">Laptop with a DAW</th>
<th scope="col">Phone with {SITE_NAME}</th>
</tr>
</thead>
<tbody>
{COMPARISON.map((row) => (
<tr key={row.topic}>
<th scope="row">{row.topic}</th>
<td>{row.laptop}</td>
<td>{row.phone}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
</section>

<section className="doc" aria-labelledby="questions">
<div className="wrap narrow">
<h2 id="questions">Questions</h2>
{faq.map((entry) => (
<div key={entry.id} className="faq-entry">
<h3 id={entry.id}>{entry.question}</h3>
<Answer entry={entry} />
</div>
))}
</div>
</section>

<section className="doc band" aria-labelledby="small-print">
<div className="wrap narrow">
<h2 id="small-print">Small print</h2>
<p>
&quot;virtual soundcheck&quot; is used here only to describe playing a recording back through a Mixer.
{" "}
{SITE_NAME} is not affiliated with Yamaha.
</p>
</div>
</section>
</main>
<SiteFooter campaign="virtual-soundcheck" />
</>
);
}
3 changes: 3 additions & 0 deletions website/components/SiteFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export function SiteFooter({ campaign }: { campaign: Campaign }) {
<li>
<a href="/support">Support</a>
</li>
<li>
<a href="/virtual-soundcheck">Virtual soundcheck guide</a>
</li>
</ul>
</nav>
<p className="legal">
Expand Down
1 change: 1 addition & 0 deletions website/lib/llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function llmsTxt(testflightUrl: string | null = TESTFLIGHT_URL): string {
`- [${SITE_NAME}](${page()}): the home page. What the app plays, what it does on the mixer, and Preview.`,
`- [Get the beta](${page("#beta")}): the email sign-up for the TestFlight invite.`,
`- [Support](${page("support")}): common questions (the audio files it plays, X Air switching and Restore, the hand-set list, Preview) and how to reach the developer.`,
`- [How to do a virtual soundcheck](${page("virtual-soundcheck")}): a step-by-step guide with an XR18 or MR18, where the multitrack comes from, a laptop with a DAW compared with a phone, and common questions.`,
`- [Privacy](${page("privacy")}): what the app does with your information (it collects none and uses only the local network, for the mixer), how the site counts visits (PostHog, no cookies) and where the beta list is kept (Buttondown).`,
"",
"## Optional",
Expand Down
6 changes: 3 additions & 3 deletions website/lib/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export function betaCta(testflightUrl: string | null = TESTFLIGHT_URL): { href:
// Every link to showrecorder.app is tagged, so PostHog (Owned Sites) shows the visits this site sent.
const SHOWRECORDER_URL = "https://showrecorder.app";

// `campaign` says where the link is: "landing" for the home page, "privacy" and "support" for those pages, "llms"
// for /llms.txt.
export type Campaign = "landing" | "privacy" | "support" | "llms";
// `campaign` says where the link is: "landing" for the home page, "privacy", "support" and "virtual-soundcheck" for
// those pages, "llms" for /llms.txt.
export type Campaign = "landing" | "privacy" | "support" | "virtual-soundcheck" | "llms";

export function showRecorderLink(path = "/", campaign: Campaign = "landing"): string {
return `${SHOWRECORDER_URL}${path}?utm_source=soundcheckplayer&utm_campaign=${campaign}`;
Expand Down
Loading
Loading