Dateien hochladen nach „addon/Drums“

pull/101/head
positionhigh 3 years ago
parent 385853f018
commit f8bd51f6b1
  1. BIN
      addon/Drums/Clap808.wav
  2. BIN
      addon/Drums/CowBell.wav
  3. 23
      addon/Drums/convertwav.sh

Binary file not shown.

Binary file not shown.

@ -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
Loading…
Cancel
Save