Implemented distance matrix and used openmp to scale accross cores

This commit is contained in:
2026-02-10 03:18:14 -06:00
parent 2f86f5fd99
commit 39f3513241
2 changed files with 97 additions and 19 deletions

View File

@@ -6,7 +6,9 @@ Spectogramspectrogram
`for %f in (*.wav) do ffmpeg -y -i "%f" -ar 44100 -lavfi "showspectrumpic=s=256x256:scale=log:legend=0" "img\%~nf.png"`
With loudnorm to try to improve performance
With loudnorm to try to improve performance by normalizing loudness
<sup> Seems to work much better
`for %f in (*.wav) do ffmpeg -y -i "%f" -ar 44100 -lavfi "loudnorm,showspectrumpic=s=256x256:scale=log:legend=0" "img\%~nf.png"`
@@ -14,7 +16,7 @@ With loudnorm to try to improve performance
Used for gathering the image data
## Building
`clang src/main.c -Iexternal -O2 -o soundknn.exe`
`clang src/main.c -Iexternal -O3 -fopenmp -march=native -o soundknn.exe`
### Todo
- [x] Load all images from directory