# wiccy46/pysti architecture

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

- Interactive diagram: https://gitdiagram.com/wiccy46/pysti
- Repository: https://github.com/wiccy46/pysti

## Overview

This is a small Python prototype for calculating Speech Transmission Index (STI) from an impulse response. Its principal workflow is to octave-band filter the response, calculate its modulation transfer function, then derive STI values; filtering and MTF calculation are distinct helpers called by the STI routine. The repository also contains impulse-response audio files, but no shown code connects them to the calculation. There is no README, and only pysti.py was sampled.

Main entry points: [`pysti.py`](https://github.com/wiccy46/pysti/blob/master/pysti.py) (STI calculation)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Analysis caller"))
node_sti["STI calculation<br/>[pysti.py]"]
node_octave["Octave filtering<br/>[pysti.py]"]
node_mtf["MTF calculation<br/>[pysti.py]"]

node_caller -.->|"provides impulse response"| node_sti
node_sti -->|"calls"| node_octave
node_sti -->|"calls"| node_mtf

click node_sti "https://github.com/wiccy46/pysti/blob/master/pysti.py"
click node_octave "https://github.com/wiccy46/pysti/blob/master/pysti.py"
click node_mtf "https://github.com/wiccy46/pysti/blob/master/pysti.py"

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_caller toneIndigo
class node_sti,node_octave,node_mtf toneTeal
```

## Components

### Other components

- **Analysis caller**
- [STI calculation](https://github.com/wiccy46/pysti/blob/master/pysti.py): `pysti.py`
- [Octave filtering](https://github.com/wiccy46/pysti/blob/master/pysti.py): `pysti.py`
- [MTF calculation](https://github.com/wiccy46/pysti/blob/master/pysti.py): `pysti.py`

## Connections

- Analysis caller → STI calculation: provides impulse response
- STI calculation → Octave filtering: calls (evidence: `pysti.py`)
- STI calculation → MTF calculation: calls (evidence: `pysti.py`)
