Attempt to reconstruct target audio using snippets of source audio.
This tool is inspired by the Scott Johnson album John Somebody (this track in particular) in which samples of speech and laughter are cut up, rearranged and looped to create rhythm and melody.
Install Python >3.9 and the dependencies with poetry:
poetry install
puython collager.py COMMAND
Run python collager.py --help
for more details.
python collager.py collage -t target.wav -s source.wav -o collage.wav
Chop the given file in to snippets of 250 milliseconds
python collager.py chop -l 250 -f sample.wav -o sample_slices/
Let's begin with two breakbeats:
- Black Heat Zimba Ku (source)
- The Winstons Amen Brother (source)
We want to recreate the drum pattern of the former using audio from the latter.
python collage_files.py -i docs/audio/breaks/black_heat__zimba_ku.wav -s docs/audio/breaks/amen_brother.wav -o amen_zimba.wav -f sigmoid
You can listen to the output here