# casperchristensenscc/crescendo architecture

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

- Interactive diagram: https://gitdiagram.com/casperchristensenscc/crescendo
- Repository: https://github.com/casperchristensenscc/crescendo

## Overview

Crescendo is a Windows Forms music player. The user loads local audio files into a library, selects a song or playlist, and plays it with playback controls; the app also supports playlist management, shuffle, track navigation, and playback progress. These behaviors are concentrated in Form1.cs rather than separate domain modules. The excerpts show startup, audio playback, and metadata lookup; the remaining capabilities are documented by the sampled handler names and code. Evidence is limited to the supplied excerpts, so the graph omits unshown control wiring.

Main entry points: [`Crescendo/Form1.cs`](https://github.com/casperchristensenscc/crescendo/blob/master/Crescendo/Form1.cs) (Player and library UI), [`Crescendo/Program.cs`](https://github.com/casperchristensenscc/crescendo/blob/master/Crescendo/Program.cs) (Application startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop app"]
  node_program["Application startup<br/>[Program.cs]"]
  node_player["Player and library UI<br/>[Form1.cs]"]
end

subgraph group_audio["Audio services"]
  node_naudio["NAudio playback"]
  node_taglib["TagLib metadata"]
end

node_user(("User"))
node_audiofiles["Local audio files"]

node_user -->|"uses"| node_player
node_program -->|"starts"| node_player
node_player -->|"plays audio"| node_naudio
node_player -->|"reads tags"| node_taglib
node_player -->|"loads and reads"| node_audiofiles

click node_program "https://github.com/casperchristensenscc/crescendo/blob/master/Crescendo/Program.cs"
click node_player "https://github.com/casperchristensenscc/crescendo/blob/master/Crescendo/Form1.cs"

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_program,node_player,node_user toneBlue
class node_naudio,node_taglib toneAmber
class node_audiofiles toneIndigo
```

## Components

### Desktop app

- [Application startup](https://github.com/casperchristensenscc/crescendo/blob/master/Crescendo/Program.cs): `Crescendo/Program.cs`
- [Player and library UI](https://github.com/casperchristensenscc/crescendo/blob/master/Crescendo/Form1.cs): `Crescendo/Form1.cs`

### Audio services

- **NAudio playback**
- **TagLib metadata**

### Other components

- **User**
- **Local audio files**

## Connections

- User → Player and library UI: uses (evidence: `Crescendo/Form1.cs`)
- Application startup → Player and library UI: starts (evidence: `Crescendo/Program.cs`)
- Player and library UI → NAudio playback: plays audio (evidence: `Crescendo/Form1.cs`)
- Player and library UI → TagLib metadata: reads tags (evidence: `Crescendo/Form1.cs`)
- Player and library UI → Local audio files: loads and reads (evidence: `Crescendo/Form1.cs`)
