convert.sh 354 B

12345678910111213141516
  1. #!/bin/bash
  2. sdlBrt converter_a_1j.sdlbas song.csv 8 > 1a.txt
  3. sed 's/]/]\n/g' 1a.txt > 1b.txt
  4. sed -r '/^\s*$/d' 1b.txt > 1c.txt
  5. cat 1c.txt | grep -wv nul > 1d.txt
  6. sdlBrt converter_b_sn76489x2_1a.sdlbas 1d.txt > 1e.txt
  7. cat 1e.txt | cut -f1 -d";" > 1f.txt
  8. xxd -r -p 1f.txt song.vgm
  9. mkdir _debug_
  10. mv 1*.txt _debug_/
  11. vgmplay song.vgm
  12. #rm song.vgm
  13. #rm _.hex