Algorithm info: Bandlab Splitter
Submitted by Bas Curtiz
NOTE:
1. Converted the original M4A files (bass, drums, other, vocals) to WAV using dbpoweramp.
2. Merged bass, drums, other to form instrumental part using WSL/ffmpeg:
for i in {0..100}; do ffmpeg -i "song_`printf %03d "$i"`_bass.wav" -i "song_`printf %03d "$i"`_other.wav" -i "song_`printf %03d "$i"`_drums.wav" -filter_complex "[0]volume=3[a];[1]volume=3[b];[2]volume=3[c];[a][b][c]amix=inputs=3:duration=longest" "song_`printf %03d "$i"`_instrum.wav" -y; done
3. Had to fixed/add length using python/ffmpeg:
import os
for f in os.listdir("."):
os.system(f'ffmpeg -i {f} -af "apad=pad_dur=1.00545" {f}_fixed.wav')
...and cut back to 1 minute using:
import os
for f in os.listdir("."):
os.system(f'ffmpeg -i {f} -t "1:00.00000" {f}_cut.wav')
Date added: 2023-06-24 |