Repository navigation
Conversation
Cassette is now a tape that fills the screen (960 x 608, or 880 x 560 over two rows of keys), in the style MENU's new Tape Style row picks, or Up and Down on Now Playing: Smoke, the smooth shell it always had and the default, and Pinstripe, Cover Band, Ferric, Metal, Clear, Red and Worn in pixel art, drawn by code on a grid of 8-unit cells (16 on the Smart Pro). The pixel tape is two still textures and two sprite sheets made once (a pack for every half cell of radius, a hub for every 7.5 degrees), copied with nearest sampling six times a frame; the reels follow mp4look's model as before. The label is handwritten in Caveat SemiBold, with the characters it lacks drawn run by run in Lexend or Noto. The time is on the label, a small cover is on it, the line under the window slides when long, and the tape's number comes from the album's length, which the daemon now sums (LENGTH). A and a track change click on the tape (two new sounds). Labs: https://claude.ai/artifact/R9NmVeShdu9DwH9Cg74cge and https://claude.ai/artifact/5G6HnCFCJdYdtLhBiVdf7Q
DESIGN.md says the tape and its styles, the handwriting and its fallback; look-tape-h replaces look-cassette-w. The style's pill sits over the clock and clear of the tape, Cover Band prints its number in the ink on a light cover's color, both reels share one pack sheet but on Clear, and each tape says its textures' size in the log. The i18n run shoots the Clear card, Worn paused, the pill and the Tape Style list on every style.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MP4's Cassette look is now a tape that fills the screen, in eight styles, as I picked in the two Tape Styles labs:
What changes
look-tape-hreplaceslook-cassette-w).mp4.tape. Defaults change nothing for someone who never touches it: Cover is still the default look, Smoke the default style.mp4t_step) and say the style's name in a pill for hold-short.LENGTHrequest,tags_folder_length); checked against ffprobe on res/bgm (1767.7 s both). No number shows until it answers, so it never changes in front of you.mp4t_side).tape-key,tape-wind, the same in every voice, made by tools/gensounds.py from designdef's tones) with the voice's own sound. No hiss. UI Sounds Off is silent.The pixel art (src/pixtape.c)
Drawn by code from cassette.h's millimetres on a grid of cells, with the placeholders' rules: an outline cell, a light top-left row and a dark bottom-right row, flat tones, an ordered dither. A cell is 8 units (5 pixels on the Pixel 2, 8 on the Brick) or 16 on the Smart Pro (15 pixels, where 8 would be 7.5):
mp4t_cellpicks it from the profile's panel.mp4t_pack_half,mp4t_hub_frameover mp4look'smp4l_tape, not a copy of it).Clear's label
The lab's Clear had its label as a strip of paper on the glass, with both lines crammed into it over the reels. It is now a card along the top: an outline cell round it, its paper's dark rows at its foot and right, a one-cell shadow on the shell and reels under it, wall to wall inside the shell, taller so the song's row and the line under it each have room, its foot at the hubs' tops. The words are in the same order and sizes as on the other styles.
The handwriting and its fallback
res/fonts/hand.ttfis Caveat SemiBold: tools/handfont.py makes the static wght 600 instance of Google Fonts' variable Caveat (google/fonts 82823f5) and names it; no glyph is changed. Its SIL OFL 1.1 isLICENSES/OFL-Caveat.txt, listed in THIRD-PARTY-LICENSES.md and copied to the card'sLicenses/; mk/payload.sh puts the font beside menu.ttf.Caveat has Latin and Cyrillic.
ui_hand_facedraws a line run by run: what Caveat lacks goes in Lexend at the size whose x-height meets Caveat's, or for Chinese and Japanese in Noto, one cut for the whole line's ideographs (the set that is on, then Japanese's for kana, Chinese's otherwise, asface_forchooses). Every run sits on Caveat's baseline. It does not depend on #467: the hand face is opened outsideui_face_open's records, so if #467 lands the line is still never handed to one face whole.Choices I made
Checks
make check-mp4look: the styles' words both ways, Smoke the default and for an unknown word, Up and Down round the kept ones and back, Smoke smooth and the rest pixel; the tape's number (38 min 46, 52 min 60, 71 min 90, past 90 120, none unknown) and side; the hub frame nearest the angle, all 48 met in a turn, stepping down while playing, a rewind's fastest step under 30 degrees; the packs' half cells; a cell whole pixels on the Pixel 2 (8 = 5), Brick (8 = 8) and Smart Pro (16 = 15) from their profiles. The new tests do not build without the change.make check-handface: the runs of Latin, Cyrillic, mixed Chinese, kana, a simplified-only line and Greek; a mixed line measures as its runs; a kanji has ink, not an empty box; in English and in 日本語. It fails 14 times with the fallback taken out.make check-menusupdated for the row: Tape Style under Player Look, Smoke by default, dead off Cassette, live and saying the style on it, absent on books, videos and All with no songs.make native, check-design, check-sounds, and the fullmake check(CHECK_JOBS=4): every check passes. In the first run check-diatom and check-building-doc failed until Diatom's copy of design.h and the checks' table were brought up to date, and check-i18n-shots found MP4's Repeat on One under the fold below the new row (its shot now puts the cursor on Repeat); all three pass now, the i18n run whole (1005 screens). check-portal failed once under load and passes alone.Looked at
Host shots of every style, light and dark, Pixel 2 and Brick; the Smart Pro canvas with #398 merged in a scratch tree (16-unit cells, the tape at x 208); a long title and a long artist and album line sliding; a Chinese and Japanese album, a mixed Latin and kanji title and a Cyrillic one; Worn; Clear before and after; French and German with two rows of keys; paused; the style pill; MENU's row and the list.
Cost, measured on the host
Made once: 3 to 14 ms a pixel style, 530 KB of textures at 8-unit cells (back and front 36 KB each, the pack sheet, 48 hub frames), 1.1 MB on Clear (two pack sheets); 130 to 200 KB at 16-unit cells. Smoke: 3.4 MB, drawn once a theme. Each one says so in the log:
mp4: the worn tape drawn in 4 ms, 532 KB of textures. A frame: the same six copies as before, the pixel ones nearest-sampled.On the Pixel 2 (not done here)
grep "tape drawn\|cassette drawn"the launcher's log: each style's one-off time and size.px2-perf 30: the panel's frame-time median and 95th percentile, the launcher's CPU, the GPU's clock. Then the same on Cover and on 1.1.0's Cassette for a baseline.