concatenating wav files...
using ffmpeg
good for making drum kits for the m8 – you can do this in a directory with a lot of tiny samples.
1. prepare the directory
put all the samples you want to concatenate into the same directory and then navigate to that location in the terminal.
2. add silence
this will create copies of the files which have a tiny amount of silence appended to them. this helps with the m8s auto-slice function (though you'll still usually want to tweak the results). This command will do it:
for i in *.wav; do ffmpeg -i "$i" -af "adelay=100|100" "${i%.*}-EDIT.wav"; done
3. remove the original files.
the newly created files will have “-EDIT” added to their names just before the .wav file extension. only keep those ones in the directory. (you can just move the other ones out of the folder, or delete them if you made copies to begin with).
4. generate input text file
from the files which are now in the folder
for f in *.wav; do echo "file '$f'" >> mylist.txt; done
- bonus: you can change the order of the sounds by editing this text file before executing the next step.
5. concatenate all the wav files
ffmpeg -f concat -safe 0 -i mylist.txt -c copy concat.wav
6. rename the resultant “concat.wav” file
... to whatever describes the collection you've created. (I like to prefix these files with “cct” ie. “cct-Yamaha-MR10.wav”)
7. load it up
fine tune the slices, & fuck around with it.