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
75 changes: 75 additions & 0 deletions docs/app-store/screenshots/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# App Store screenshots

The frames planned in [`../listing.md`](../listing.md#screenshots), taken again at App Store sizes with the generated
fixture ([`../fixture/README.md`](../fixture/README.md)). No Cambridge-MT test Stems appear in any frame. Nothing here
has been uploaded to App Store Connect.

- **`iphone-6.9/`**: 1320 × 2868, the 6.9" iPhone set (iPhone 17 Pro Max Simulator, iOS 27.2).
- **`ipad-13/`**: 2064 × 2752, the 13" iPad set (iPad Pro 13-inch (M5) Simulator, iOS 27.2), since the app is built for
iPad (`TARGETED_DEVICE_FAMILY: "1,2"`).

Every frame is portrait, in Dark unless its name says Sunlight. They are PNG with no alpha channel, as App Store Connect
requires. The status bar shows 9:41, full signal and a full battery that isn't charging. **Checked only in the
Simulator**, from a Debug build: the meters move to a silent fake interface (`-previewOutputs`), not a real XR18.

The captions are for App Store Connect, or for a caption layer added later. They aren't drawn on the images.

The captions follow the plan's table. Its subtitle section (#96, after "Virtual Soundcheck" was picked) says the first
caption should carry "play a multitrack back into your mixer", but the table still has "Every Stem on its own
channel". Decide which before captions are drawn; something like "Play a multitrack back into your mixer, each Stem on
its own channel" would do.

| # | File | Caption | What it shows |
|---|---|---|---|
| 1 | `01-playing-into-mixer-dark.png` | Every Stem on its own channel | Take 2 playing at 0:12, every Stem on its channel, with Mixer, "1-12 on USB" and "10 Stems" chips |
| 2 | `02-take-list-mini-player-dark.png` | Pick a Take, with its Markers | The Show's two Takes, with length, date and Markers, and Take 2 in the mini player |
| 3 | `03-jump-to-song-dark.png` | Jump straight to the song | The "Song 2" Marker tapped, playing about 10 seconds into it |
| 4 | `04-preview-on-speaker-dark.png` | Prep on your phone before the gig | Preview on: every Stem mixed to stereo on the phone's speaker, no mixer |
| 5 | `05-playing-into-mixer-sunlight.png` | Sunlight for a bright stage | Frame 1 in Sunlight |
| 6 | `06-take-list-mini-player-sunlight.png` | Keep browsing while it plays | Frame 2 in Sunlight |
| 7 | `07-folder-of-stems-dark.png` | Stems from any DAW, on the channels you choose | The Folder of Stems "Saturday Show Stems" playing, names under the meters |
| 8 | `08-restore-banner-dark.png` | Restore puts the mixer back | Paused, with the "Channels 1-12 are still playing from USB" banner and Restore |
| 9 | `09-hand-set-list-dark.png` | Or set USB by hand, from a list | No mixer set up: the Mixer sheet lists each channel to set to USB, with its Stem's name |

Frames 1 to 6 are the six the plan picked. Frame 3 is portrait now, not landscape, and frame 4 is on the current player
screen. Frames 7 to 9 are three of the four the plan suggested adding (open question 9). The fourth, the "Switch … to
USB?" question, needs a mixer that answers, so it isn't here.

## Source

All frames come from [`scripts/capture_screenshots.sh`](../../../scripts/capture_screenshots.sh), with the Take written by
`scripts/make_fixture.py take` and these Debug launch arguments (`App/DebugPreview.swift`):

| # | Launch arguments | Also |
|---|---|---|
| 1, 5 | `-previewTake <fixture> -previewTakeNumber 2 -previewOutputs 18 -previewInterfaceName X18/XR18 -mixerAddress 192.168.1.20 -previewAutoplay YES -appearanceMode dark` (or `sunlight`) | Pending switch set; taken 14 s after launch |
| 2, 6 | As 1, plus `-previewScreen takes` | Pending switch set; 14 s |
| 3 | As 1 | Pending switch set; "Song 2" tapped with idb at 3 s; taken 12 s later |
| 4 | `-previewTake <fixture> -previewTakeNumber 2 -previewOutputs 2 -previewInterfaceName Speaker -previewAutoplay YES -appearanceMode dark` | 14 s |
| 7 | `-previewFolder "docs/app-store/fixture/Saturday Show Stems" -previewOutputs 18 -previewInterfaceName X18/XR18 -mixerAddress 192.168.1.20 -previewAutoplay YES -appearanceMode dark` | Pending switch set; 14 s |
| 8 | As 1, plus `-previewPauseAfter 9` | Pending switch set; 12 s |
| 9 | `-previewTake <fixture> -previewTakeNumber 2 -previewOutputs 18 -previewInterfaceName X18/XR18 -previewAutoplay YES -previewSheet mixer -appearanceMode dark` | 14 s |

"Pending switch set" means the script writes a saved switch of channels 1-12 to USB into the app's `pendingRestore`
default first, the way a real switch leaves it. That gives the "1-12 on USB" chip, and the Restore banner while paused.

To take them again:

1. Write the Take: `python3 scripts/make_fixture.py take /tmp/fixture`.
2. Build the Debug app for the Simulator (`xcodegen generate`, then `xcodebuild … -configuration Debug -destination
'generic/platform=iOS Simulator'`) and install it on one booted Simulator.
3. On the iPad, set Settings › Multitasking & Gestures to **Full Screen Apps** first. Windowed apps put the app's name in
the status bar and a resize corner in the frame.
4. `scripts/capture_screenshots.sh <udid> iphone|ipad /tmp/fixture <out folder>`.
5. Look at every frame. The meters move, so a frame can catch the Dynamic Island's now-playing pill (it shows in
Sunlight); take that one again.

## What to know before uploading

- **The Mixer chip shows an address**, 192.168.1.20, as it does on a real device: the app keeps no name for a Mixer.
- **The interface name** is `X18/XR18`, the name an XR18 gives over USB, set with `-previewInterfaceName` (Debug only).
- **Frame 9 shows "X-Air mixer (XR18, MR18)"**, the app's own heading. The listing keeps MR18 out of its copy (open
question 4); it is in the app, not in a caption.
- **Frame 4's header says "Preview"**: that is the feature it shows (Preview mixes to stereo), not the Debug preview.
- **iPad frame 8's meters** show the levels held at the pause, where the iPhone's are at rest. Both are what the app
draws.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions scripts/capture_screenshots.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/bash
# Takes the App Store frames (docs/app-store/screenshots/README.md) in a booted Simulator, from a Debug build and the
# generated fixture (docs/app-store/fixture/README.md). Debug launch arguments are in App/DebugPreview.swift.
#
# scripts/capture_screenshots.sh <simulator udid> <iphone|ipad> <fixture take folder> <out folder>
#
# Install the Debug app on the Simulator first. Frame 03 taps a Marker with idb (IDB=/path/to/idb to override).
# On the iPad, first set Settings > Multitasking & Gestures to Full Screen Apps: windowed apps put the app's name in the
# status bar and a resize corner on the screen.
# The meters move, so each frame is taken a fixed time into the groove, when the whole band plays.
set -euo pipefail

udid=$1 kind=$2 take=$3 out=$4
repo=$(cd "$(dirname "$0")/.." && pwd)
stems="$repo/docs/app-store/fixture/Saturday Show Stems"
app=dev.ericdahl.SoundcheckPlayer
idb=${IDB:-idb}
mkdir -p "$out"

# Apple's marketing status bar: 9:41 on Tue Jan 9 (the iPad shows the date), a full battery not charging, Wi-Fi.
# The time is in this Mac's time zone, which the Simulator shows.
zone=$(date +%z)
xcrun simctl status_bar "$udid" override --time "2007-01-09T09:41:00.000${zone:0:3}:${zone:3:2}" --dataNetwork wifi \
--wifiMode active --wifiBars 3 --cellularMode active --cellularBars 4 --batteryState discharging --batteryLevel 100

# What a switch to USB leaves behind: channels 1-12 on USB, to be restored (MixerRouting's "pendingRestore").
pending=$(python3 -c '
import json
p = {"host": "192.168.1.20", "read": {"channels": {str(c): False for c in range(1, 13)}},
"change": {"channels": {str(c): True for c in range(1, 13)}}, "readTrims": {"channels": {}}, "trimChange": {"channels": {}}}
print(json.dumps(p, separators=(",", ":")).encode().hex())')

# launch <with pending switch: yes|no> <args...>
launch() {
local seeded=$1; shift
xcrun simctl terminate "$udid" "$app" 2>/dev/null || true
xcrun simctl spawn "$udid" defaults delete "$app" 2>/dev/null || true
if [ "$seeded" = yes ]; then xcrun simctl spawn "$udid" defaults write "$app" pendingRestore -data "$pending"; fi
xcrun simctl launch "$udid" "$app" "$@" >/dev/null
}

# App Store Connect refuses a PNG with an alpha channel, so each frame is saved as plain RGB (needs ffmpeg).
shot() {
xcrun simctl io "$udid" screenshot "$out/$1-$kind.rgba.png" >/dev/null 2>&1
ffmpeg -hide_banner -loglevel error -y -i "$out/$1-$kind.rgba.png" -pix_fmt rgb24 "$out/$1-$kind.png"
rm "$out/$1-$kind.rgba.png"
echo "$out/$1-$kind.png"
}

xr18=(-previewOutputs 18 -previewInterfaceName X18/XR18)
mixer=(-mixerAddress 192.168.1.20)
take2=(-previewTake "$take" -previewTakeNumber 2)

for mode in dark sunlight; do
# Taken about 12 s in: the whole band, the vocal and the harmony are playing.
launch yes "${take2[@]}" "${xr18[@]}" "${mixer[@]}" -previewAutoplay YES -appearanceMode $mode
sleep 14; shot "$([ $mode = dark ] && echo 01 || echo 05)-playing-into-mixer-$mode"
launch yes "${take2[@]}" "${xr18[@]}" "${mixer[@]}" -previewAutoplay YES -previewScreen takes -appearanceMode $mode
sleep 14; shot "$([ $mode = dark ] && echo 02 || echo 06)-take-list-mini-player-$mode"
done

# 03: Song 2's Marker tapped, then about 10 s into the song. The chip's place on screen differs by device.
launch yes "${take2[@]}" "${xr18[@]}" "${mixer[@]}" -previewAutoplay YES -appearanceMode dark
sleep 3
if [ "$kind" = ipad ]; then "$idb" ui tap --udid "$udid" 390 1077; else "$idb" ui tap --udid "$udid" 356 643; fi
sleep 12; shot 03-jump-to-song-dark

# 04: the stereo preview on a phone's own speaker (2 outputs).
launch no "${take2[@]}" -previewOutputs 2 -previewInterfaceName Speaker -previewAutoplay YES -appearanceMode dark
sleep 14; shot 04-preview-on-speaker-dark

# 07: the Folder of Stems, as a DAW exported it.
launch yes -previewFolder "$stems" "${xr18[@]}" "${mixer[@]}" -previewAutoplay YES -appearanceMode dark
sleep 14; shot 07-folder-of-stems-dark

# 08: paused with a switch still pending: the Restore banner.
launch yes "${take2[@]}" "${xr18[@]}" "${mixer[@]}" -previewAutoplay YES -previewPauseAfter 9 -appearanceMode dark
sleep 12; shot 08-restore-banner-dark

# 09: no Mixer set up: the Mixer sheet's list of channels to set to USB by hand.
launch no "${take2[@]}" "${xr18[@]}" -previewAutoplay YES -previewSheet mixer -appearanceMode dark
sleep 14; shot 09-hand-set-list-dark

xcrun simctl terminate "$udid" "$app" 2>/dev/null || true
xcrun simctl spawn "$udid" defaults delete "$app" 2>/dev/null || true
Loading