You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 2. Install ffmpeg. This is how to do it on Ubuntu:
70
-
sudo apt-get update
71
-
apt-get install ffmpeg
72
-
```
73
-
74
-
### Specify the input files & run the code
75
-
76
-
1. Create a `csv` file to pass as input to the `pipeline.py` file.
77
-
78
-
The only mandatory column is `src`, with the file paths of the songs to analyze. Youtube URLs are also supported on a
79
-
best-effort basis (uses `yt-dlp` to download the audio).
80
-
81
-
Example:
82
-
83
-
```csv
84
-
src
85
-
/home/linomp/Downloads/CURETAJE - Arutam.mp3
86
-
https://youtu.be/dQw4w9WgXcQ?si=J-UoAhM54KQGR6eW
87
-
```
88
-
89
-
<details>
90
-
<summary>Additional fields (advanced)</summary>
91
-
Other fields are supported for debugging & development, with the most important one being `step_size_in_seconds`, which determines the size of the segments on which the song is split & analized (default value: 0.15s).
92
-
93
-
In `pipeline.py` you can see all the configurable fields. If left blank or unspecified, defaults will be used.
94
-
95
-
Here is an example specifying an extra field:
96
-
97
-
```csv
98
-
src,step_size_in_seconds
99
-
/home/linomp/Downloads/CURETAJE - Arutam.mp3
100
-
./tmp/DER WEG EINER FREIHEIT - Ruhe (Tobias Schuler Drum Playthrough).mp3,0.1
101
-
./tmp/Deceso.mp3,0.18
102
-
```
103
-
</details>
104
-
105
-
2. Point to the csv file & run it
106
-
```bash
107
-
pipeline.py ./songs.csv
108
-
```
109
-
110
59
## News
111
60
The Blast Beat Detector was presented in the [6th meetup](https://pythonleiden.nl/meeting-2025-11-13.html) of the Python Leiden user group 🇳🇱! --> [**Slides here**](https://docs.google.com/presentation/d/1iJMSQG28AYHlkn9QP00kx2yHenX1uifUPS29b-Rtshc/edit?usp=sharing)
0 commit comments