parent
9ed4126e10
commit
2ff0998085
@ -0,0 +1,21 @@ |
||||
#!/bin/bash |
||||
|
||||
rm -f /tmp/banks2c_[0-9].tmp |
||||
for b in `find ../SD/ -iname "*.syx" | sort -V` |
||||
do |
||||
python ../../third-party/Synth_Dexed/tools/sysex2c.py "${b}" >> /tmp/banks2c_1.tmp |
||||
done |
||||
|
||||
cat /tmp/banks2c_1.tmp | sed "s/^\/\/.*//" | sed -e '/^$/d' | sed -e '/^#/d' > /tmp/banks2c_2.tmp |
||||
cat /tmp/banks2c_2.tmp | sed -e '/uint8_t progmem_bank\[1\]/d' | sed -e '/^\}\;/d' | sed -e '/^{/d' > /tmp/banks2c_3.tmp |
||||
cat /tmp/banks2c_3.tmp | sed -e 's/^\t}/\t},/' > /tmp/banks2c_4.tmp |
||||
head -n -1 /tmp/banks2c_4.tmp > /tmp/banks2c_5.tmp |
||||
echo "#pragma once" > /tmp/banks2c_6.tmp |
||||
echo "" >> /tmp/banks2c_6.tmp |
||||
echo "uint8_t progmem_bank[100][32][128] PROGMEM =" >> /tmp/banks2c_6.tmp |
||||
echo "{" >> /tmp/banks2c_6.tmp |
||||
cat /tmp/banks2c_5.tmp >> /tmp/banks2c_6.tmp |
||||
echo " }" >> /tmp/banks2c_6.tmp |
||||
echo "};" >> /tmp/banks2c_6.tmp |
||||
cat /tmp/banks2c_6.tmp |
||||
rm -f /tmp/banks2c_[0-9].tmp |
@ -1,26 +0,0 @@ |
||||
#!/bin/bash |
||||
|
||||
echo "#include <Arduino.h>" > synth_dexed.h |
||||
echo "#include <Audio.h>" >> synth_dexed.h |
||||
echo "#include \"config.h\"" >> synth_dexed.h |
||||
for i in `cat includes.txt` |
||||
do |
||||
echo "/*****************************************************" >> synth_dexed.h |
||||
echo " * CODE; ${i}" >> synth_dexed.h |
||||
echo " *****************************************************/" >> synth_dexed.h |
||||
|
||||
cat $i >> synth_dexed.h |
||||
echo "" >> synth_dexed.h |
||||
echo "//=====================================================" >> synth_dexed.h |
||||
done |
||||
|
||||
echo "#include \"synth_dexed.h\"" > synth_dexed.cpp |
||||
for i in `ls orig_code/*.cpp` |
||||
do |
||||
echo "/*****************************************************" >> synth_dexed.cpp |
||||
echo " * CODE; ${i}" >> synth_dexed.cpp |
||||
echo " *****************************************************/" >> synth_dexed.cpp |
||||
cat $i >> synth_dexed.cpp |
||||
echo "" >> synth_dexed.cpp |
||||
echo "//=====================================================" >> synth_dexed.cpp |
||||
done |
@ -1,17 +0,0 @@ |
||||
orig_code/synth.h |
||||
orig_code/aligned_buf.h |
||||
orig_code/sin.h |
||||
orig_code/exp2.h |
||||
orig_code/fast_log.h |
||||
orig_code/freqlut.h |
||||
orig_code/lfo.h |
||||
orig_code/env.h |
||||
orig_code/pitchenv.h |
||||
orig_code/controllers.h |
||||
orig_code/PluginFx.h |
||||
orig_code/fm_op_kernel.h |
||||
orig_code/fm_core.h |
||||
orig_code/dx7note.h |
||||
orig_code/dexed.h |
||||
orig_code/porta.h |
||||
orig_code/source_microdexed.h |
Loading…
Reference in new issue