graph TD
start[Start ChopAndPackAgent] --> input[Receive 10 MP3s + Beat Data]
subgraph Silo1[Format Conversion]
input --> convert[Convert MP3s to WAV]
convert --> wavfiles[10 WAV Files]
end
subgraph Silo2[Audio Chopping]
wavfiles --> calcDur[Calculate 16-Beat Duration]
calcDur --> chopLoop[Process Each WAV File]
chopLoop --> findBeat[Find First Beat Marker]
findBeat --> extract[Extract 16-Beat Segment]
extract --> saveChop[Save Chopped WAV]
saveChop --> checkMore{More Files?}
checkMore -->|Yes| chopLoop
checkMore -->|No| allChopped[10 Chopped WAVs]
end
subgraph Silo3[Packaging]
allChopped --> rename[Rename Files]
rename --> createZip[Create ZIP Archive]
createZip --> finalZip[Final ZIP File]
end
finalZip --> output[Return ZIP URL]
output --> finish[End ChopAndPackAgent]