# yezegeye/summertime-map architecture

> Architecture diagram of the GitHub repository yezegeye/summertime-map, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yezegeye/summertime-map
- Repository: https://github.com/yezegeye/summertime-map

## Overview

Summertime Map collects recordings of Gershwin’s “Summertime,” matches each to a playable preview, computes audio features, and aims to map differences between performances. The implemented update command synchronizes the Spotify playlist, matches recordings through Deezer or iTunes, analyzes previews with ReccoBeats, and reports questionable matches. The README describes a planned notebook analysis (PCA, clustering, and validation), JSON export, and interactive website with cluster descriptions and preview playback. The graph distinguishes implemented workflow from planned capabilities; planned links follow README statements, not inspected implementation.

Main entry points: [`summertime/features.py`](https://github.com/yezegeye/summertime-map/blob/main/summertime/features.py) (Preview analysis), [`summertime/update.py`](https://github.com/yezegeye/summertime-map/blob/main/summertime/update.py) (Update command), [`summertime/matching.py`](https://github.com/yezegeye/summertime-map/blob/main/summertime/matching.py) (Recording matcher), [`summertime/playlist.py`](https://github.com/yezegeye/summertime-map/blob/main/summertime/playlist.py) (Playlist sync)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Collection and matching"]
  node_update["Update command<br/>[update.py]"]
  node_playlist["Playlist sync<br/>[playlist.py]"]
  node_datahelpers["Data utilities<br/>[data.py]"]
  node_matching["Recording matcher<br/>[matching.py]"]
end

subgraph group_analysis["Features and analysis"]
  node_features["Preview analysis<br/>[features.py]"]
  node_dataset["Merged dataset<br/>[features.py]"]
  node_notebook["PCA and clustering<br/>[summertime.ipynb]"]
end

subgraph group_presentation["Map experience"]
  node_export["Map JSON export"]
  node_website["Interactive map"]
end

subgraph group_storage["Local data"]
  node_songs[("Song list<br/>[songs.csv]")]
  node_matches[("Recording matches<br/>[matches.csv]")]
  node_clips[("Downloaded previews<br/>[data.py]")]
  node_featuredata[("Audio features<br/>[features.csv]")]
end

node_user(("Curator"))
node_spotify["Spotify playlist"]
node_deezer["Deezer catalog"]
node_itunes["iTunes Search"]
node_preview["Preview providers"]
node_reccobeats["ReccoBeats analysis"]
node_visitor(("Map visitor"))

node_user -->|"runs"| node_update
node_update -->|"syncs tracks"| node_playlist
node_playlist -->|"reads playlist"| node_spotify
node_playlist -->|"adds tracks"| node_songs
node_update -->|"loads songs"| node_datahelpers
node_update -->|"updates matches"| node_matching
node_matching -->|"searches first"| node_deezer
node_matching -->|"searches fallback"| node_itunes
node_matching -->|"reads and writes"| node_matches
node_update -->|"updates features"| node_features
node_features -->|"fetches clips"| node_preview
node_features -->|"uploads audio"| node_reccobeats
node_features -->|"caches clips"| node_clips
node_features -->|"writes features"| node_featuredata
node_features -->|"uses paths and features"| node_datahelpers
node_features -->|"loads matches"| node_matching
node_features -->|"merges song data"| node_dataset
node_dataset -->|"reads songs"| node_songs
node_dataset -->|"reads matches"| node_matches
node_dataset -->|"reads features"| node_featuredata
node_dataset -->|"analyzes with"| node_notebook
node_notebook -.->|"exports map data"| node_export
node_export -.->|"provides map data"| node_website
node_visitor -.->|"explores map"| node_website
node_website -.->|"plays previews"| node_preview

click node_update "https://github.com/yezegeye/summertime-map/blob/main/summertime/update.py"
click node_playlist "https://github.com/yezegeye/summertime-map/blob/main/summertime/playlist.py"
click node_songs "https://github.com/yezegeye/summertime-map/blob/main/data/songs.csv"
click node_datahelpers "https://github.com/yezegeye/summertime-map/blob/main/summertime/data.py"
click node_matching "https://github.com/yezegeye/summertime-map/blob/main/summertime/matching.py"
click node_matches "https://github.com/yezegeye/summertime-map/blob/main/data/matches.csv"
click node_features "https://github.com/yezegeye/summertime-map/blob/main/summertime/features.py"
click node_clips "https://github.com/yezegeye/summertime-map/blob/main/summertime/data.py"
click node_featuredata "https://github.com/yezegeye/summertime-map/blob/main/data/features.csv"
click node_dataset "https://github.com/yezegeye/summertime-map/blob/main/summertime/features.py"
click node_notebook "https://github.com/yezegeye/summertime-map/blob/main/notebooks/summertime.ipynb"
click node_website "https://github.com/yezegeye/summertime-map/tree/main/site"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_update,node_playlist,node_datahelpers,node_matching,node_preview toneBlue
class node_features,node_dataset,node_notebook toneAmber
class node_export,node_website toneMint
class node_songs,node_matches,node_clips,node_featuredata toneRose
class node_user,node_spotify,node_deezer,node_itunes,node_reccobeats,node_visitor toneIndigo
```

## Components

### Collection and matching

- [Update command](https://github.com/yezegeye/summertime-map/blob/main/summertime/update.py): `summertime/update.py`
- [Playlist sync](https://github.com/yezegeye/summertime-map/blob/main/summertime/playlist.py): `summertime/playlist.py`
- [Data utilities](https://github.com/yezegeye/summertime-map/blob/main/summertime/data.py): `summertime/data.py`
- [Recording matcher](https://github.com/yezegeye/summertime-map/blob/main/summertime/matching.py): `summertime/matching.py`

### Features and analysis

- [Preview analysis](https://github.com/yezegeye/summertime-map/blob/main/summertime/features.py): `summertime/features.py`
- [Merged dataset](https://github.com/yezegeye/summertime-map/blob/main/summertime/features.py): `summertime/features.py`
- [PCA and clustering](https://github.com/yezegeye/summertime-map/blob/main/notebooks/summertime.ipynb): `notebooks/summertime.ipynb`

### Map experience

- **Map JSON export**
- [Interactive map](https://github.com/yezegeye/summertime-map/tree/main/site): `site`

### Local data

- [Song list](https://github.com/yezegeye/summertime-map/blob/main/data/songs.csv): `data/songs.csv`
- [Recording matches](https://github.com/yezegeye/summertime-map/blob/main/data/matches.csv): `data/matches.csv`
- [Downloaded previews](https://github.com/yezegeye/summertime-map/blob/main/summertime/data.py): `summertime/data.py`
- [Audio features](https://github.com/yezegeye/summertime-map/blob/main/data/features.csv): `data/features.csv`

### Other components

- **Curator**
- **Spotify playlist**
- **Deezer catalog**
- **iTunes Search**
- **Preview providers**
- **ReccoBeats analysis**
- **Map visitor**

## Connections

- Curator → Update command: runs (evidence: `README.md`)
- Update command → Playlist sync: syncs tracks (evidence: `summertime/update.py`)
- Playlist sync → Spotify playlist: reads playlist (evidence: `summertime/playlist.py`)
- Playlist sync → Song list: adds tracks (evidence: `summertime/playlist.py`)
- Update command → Data utilities: loads songs (evidence: `summertime/update.py`)
- Update command → Recording matcher: updates matches (evidence: `summertime/update.py`)
- Recording matcher → Deezer catalog: searches first (evidence: `summertime/matching.py`)
- Recording matcher → iTunes Search: searches fallback (evidence: `summertime/matching.py`)
- Recording matcher → Recording matches: reads and writes (evidence: `summertime/matching.py`)
- Update command → Preview analysis: updates features (evidence: `summertime/update.py`)
- Preview analysis → Preview providers: fetches clips (evidence: `summertime/features.py`)
- Preview analysis → ReccoBeats analysis: uploads audio (evidence: `summertime/features.py`)
- Preview analysis → Downloaded previews: caches clips (evidence: `summertime/features.py`)
- Preview analysis → Audio features: writes features (evidence: `summertime/features.py`)
- Preview analysis → Data utilities: uses paths and features (evidence: `summertime/features.py`)
- Preview analysis → Recording matcher: loads matches (evidence: `summertime/features.py`)
- Preview analysis → Merged dataset: merges song data (evidence: `summertime/features.py`)
- Merged dataset → Song list: reads songs (evidence: `README.md`)
- Merged dataset → Recording matches: reads matches (evidence: `README.md`)
- Merged dataset → Audio features: reads features (evidence: `README.md`)
- Merged dataset → PCA and clustering: analyzes with (evidence: `README.md`)
- PCA and clustering → Map JSON export: exports map data (evidence: `README.md`)
- Map JSON export → Interactive map: provides map data (evidence: `README.md`)
- Map visitor → Interactive map: explores map (evidence: `README.md`)
- Interactive map → Preview providers: plays previews (evidence: `README.md`)
