diff --git a/addon/Drums/Clap808.wav b/addon/Drums/Clap808.wav new file mode 100644 index 0000000..91ccd28 Binary files /dev/null and b/addon/Drums/Clap808.wav differ diff --git a/addon/Drums/CowBell.wav b/addon/Drums/CowBell.wav new file mode 100644 index 0000000..01f9e59 Binary files /dev/null and b/addon/Drums/CowBell.wav differ diff --git a/addon/Drums/convertwav.sh b/addon/Drums/convertwav.sh new file mode 100644 index 0000000..578ab90 --- /dev/null +++ b/addon/Drums/convertwav.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +WAV2SKETCH="./wav2sketch" + +if [ ! -e "${WAV2SKETCH}" ] +then + gcc "${HOME}/Arduino-Teensy/MicroDexed/third-party/wav2sketch.c" -o "${WAV2SKETCH}" + chmod 700 "${WAV2SKETCH}" +fi + +"${WAV2SKETCH}" -16 + +rm *.h +rm -f drumset.h +touch drumset.h + +for i in `ls -1 *.cpp` +do + echo "# ${i}" >> drumset.h + cat "${i}" | grep '^[A-Za-z0-9]' >> drumset.h + echo "" >> drumset.h + rm "${i}" +done