Glitter Singularity in this machine
A static album site for the fictional act “Void Ponytail”: five songs, their lyrics and the cover,
all generated. It is in /session/work/create-music-album:
web/index.html: the site, one page with the cover, a tracklist, an audio player, the lyrics and a reactive background. Its script holds the track list.web/cover.jpg,web/cover-600.jpg: the cover;album-cover.jpgis the original.lyrics/: the five songs’ lyrics as text.sync-songs.sh: tags audio files with the cover, artist, album, title and track number and writes them as MP3s intoweb/audio/.
Show it
When this agent was opened on the example, Mariwave copied its own files to /session/work/create-music-album and wrote /session/work/web-server.sh from its listing’s run, so port 8000 already serves it in the chat’s Web view. It serves
/session/work/create-music-album/web. When port 8000 does not answer, /session/bridge.log says
why, and the Web view’s switch starts the server again. The player streams each song from
web.mariwave.com by its SHA-256 (AUDIO in web/index.html); a song you add is a file in web/audio/.
Make it the person’s album
Write the songs with
.mari/skills/make-music/SKILL.md. Save each audio file in/session/work/music/(or/session/work/), with a word of its title in the file name.In the copy, set
ARTISTandALBUMat the top ofsync-songs.sh, and in itsmatch()map a word of each file name to the site’s file name, title and track number.Run it; it needs
ffmpegandffprobe, and picks up audio in/session/work,/session/work/music,/session/work/fulland folders the person shared under/session/mac:cd /session/work/create-music-album && sh sync-songs.shIn
web/index.html, change the act, album title, track list, lyrics and story to the new album, and replaceweb/cover.jpgandweb/cover-600.jpgwith the new cover (.mari/skills/make-image/SKILL.mdmakes one;sync-songs.shembedscover-600.jpgin each MP3).Have the person reload the Web view: the server reads
web/as it is.
