Scene file format and loader with hot reload #5

Closed
opened 2026-11-01 23:21:16 +00:00 by Weissstreifen · 0 comments

A scene is a text file in scenes/, the data a CSV next to it. The format is read with parin_kit.algorithm.parse (line based, # comments). First draft:

size = 1280x720
background = solid        # solid | green | transparent
data sales = sales.csv    # named data sets

beat 0.0 title "Most played games 2026"
beat 1.0 bars sales x=label y=hours stagger=0.08
beat 4.5 highlight bars "Minecraft"
beat 6.0 exit bars
beat 6.5 pie sales x=label y=share
  • Elements have an id, a type, a data set, column mapping, a layout box (at=x,y,w,h or a preset like left/center/full) and options.
  • Beats are times (seconds, or +0.5 after the previous one, maybe @marker later) with an action: enter, change (new data/values), highlight, exit.
  • CSV: header row, numbers with . decimals, quoted strings.
  • Errors show on the canvas with file:line, and don't crash the player.
  • Reload when the scene or a CSV changes, keeping the current playback time.

Done when: the example above loads, and editing the CSV updates the bars at once.

A scene is a text file in `scenes/`, the data a CSV next to it. The format is read with `parin_kit.algorithm.parse` (line based, `#` comments). First draft: ``` size = 1280x720 background = solid # solid | green | transparent data sales = sales.csv # named data sets beat 0.0 title "Most played games 2026" beat 1.0 bars sales x=label y=hours stagger=0.08 beat 4.5 highlight bars "Minecraft" beat 6.0 exit bars beat 6.5 pie sales x=label y=share ``` - Elements have an id, a type, a data set, column mapping, a layout box (`at=x,y,w,h` or a preset like `left`/`center`/`full`) and options. - Beats are times (seconds, or `+0.5` after the previous one, maybe `@marker` later) with an action: enter, change (new data/values), highlight, exit. - CSV: header row, numbers with `.` decimals, quoted strings. - Errors show on the canvas with file:line, and don't crash the player. - Reload when the scene or a CSV changes, keeping the current playback time. **Done when:** the example above loads, and editing the CSV updates the bars at once.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/daviz#5
No description provided.