I make slideshows with music, and I want the photos to change on the beat. Start with Pictures/Lisbon and “Sunday Drive”.
baba new slideshow
Write .baba/surfaces/slideshow/src/surface.ts
baba / open surface=slideshow
baba /slideshow new photos=Pictures/Lisbon track="Sunday Drive"
Made a slideshow surface, and “Lisbon” on it: 8 photos, one every two beats.
A as a collage. B with a cut on every beat. C zooming in.
The surface can't do those yet. I'll add layouts, cuts by beat and motion to it.
Edit .baba/surfaces/slideshow/src/surface.ts
Edit .baba/surfaces/slideshow/ui/index.tsx
baba restart
baba /slideshow/parts/A layout kind=collage
baba /slideshow/parts/B cut every=beat
baba /slideshow/parts/C motion kind=zoom-in
Done. A is a collage, B changes on every beat, and C zooms in.