How poke19962008/mash-up works
Mash Up is a small command-line audio mixer: running main.py loads the song definitions, analyzes one incoming and one outgoing song, selects a transition region, adjusts tempo, crossfades the segments, and exports final.mp3. The implementation keeps these stages in one class rather than separate modules. The README also describes future chroma-based song selection, but marks it as under construction; it is not implemented in the sampled source. Only main.py was sampled, so the graph shows relationships visible there and in the README.
Main entry points: main.py Mash workflow · songs.json Song definitions
Components 14
Mash generation
- Song definitions
songs.json - Mash workflow
main.py - Input audio
- Audio segmentation
main.py - Segment speed adjustment
main.py - Crossfade assembly
main.py - Audio cache
main.py - final.mp3
Audio analysis
- Tempo and beats
main.py - Tempo adjustment
main.py - Fade region scoring
main.py
Other components
- User
- Librosa
- PyDub
Connections 14
- User → Mash workflow: runs
main.py - Mash workflow → Song definitions: reads
main.py - Mash workflow → Input audio: loads
main.py - Mash workflow → Audio cache: reads and writes
main.py - Mash workflow → Tempo and beats: analyzes
main.py - Tempo and beats → Librosa: tracks beats
main.py - Tempo and beats → Tempo adjustment: computes
main.py - Tempo and beats → Fade region scoring: scores
main.py - Fade region scoring → Tempo and beats: uses beat data
main.py - Mash workflow → Audio segmentation: segments
main.py - Audio segmentation → PyDub: loads audio
main.py - Mash workflow → Segment speed adjustment: adjusts tempo
main.py - Mash workflow → Crossfade assembly: assembles
main.py - Crossfade assembly → final.mp3: exports
main.py