Skip to content

Commit 53ee887

Browse files
authored
Create README.md
1 parent 3bb1bea commit 53ee887

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

src/blastbeat_detector/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
## Local development
3+
4+
### Install deps
5+
6+
```bash
7+
# 1. Install python requirements
8+
python -m venv venv
9+
source venv/bin/activate
10+
pip install -r requirements.txt
11+
12+
# 2. Install ffmpeg. This is how to do it on Ubuntu:
13+
sudo apt-get update
14+
apt-get install ffmpeg
15+
```
16+
17+
### Specify the input files & run the code
18+
19+
1. Create a `csv` file to pass as input to the `pipeline.py` file.
20+
21+
The only mandatory column is `src`, with the file paths of the songs to analyze. Youtube URLs are also supported on a
22+
best-effort basis (uses `yt-dlp` to download the audio).
23+
24+
Example:
25+
26+
```csv
27+
src
28+
/home/linomp/Downloads/CURETAJE - Arutam.mp3
29+
https://youtu.be/dQw4w9WgXcQ?si=J-UoAhM54KQGR6eW
30+
```
31+
32+
<details>
33+
<summary>Additional fields (advanced)</summary>
34+
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).
35+
36+
In `pipeline.py` you can see all the configurable fields. If left blank or unspecified, defaults will be used.
37+
38+
Here is an example specifying an extra field:
39+
40+
```csv
41+
src,step_size_in_seconds
42+
/home/linomp/Downloads/CURETAJE - Arutam.mp3
43+
./tmp/DER WEG EINER FREIHEIT - Ruhe (Tobias Schuler Drum Playthrough).mp3,0.1
44+
./tmp/Deceso.mp3,0.18
45+
```
46+
</details>
47+
48+
2. Point to the csv file & run it
49+
```bash
50+
pipeline.py ./songs.csv
51+
```

0 commit comments

Comments
 (0)