|
|
|
@ -173,6 +173,7 @@ do |
|
|
|
|
fill_mod=`expr "${sample['len']}" % "${AUDIO_BLOCK_SIZE}"` |
|
|
|
|
fill=`expr "${AUDIO_BLOCK_SIZE}" - "${fill_mod}"` |
|
|
|
|
sample['len']=`expr "${sample['len']}" + "${fill}"` |
|
|
|
|
sample['len']=`expr "${sample['len']}" / 2` |
|
|
|
|
|
|
|
|
|
echo "// Converted from ${sample['filename']}, length = ${sample['len']} bytes" >> "${DRUMSET_H}" |
|
|
|
|
echo "PROGMEM const int8_t ${sample['name']}[] = {" >> "${DRUMSET_H}" |
|
|
|
|