1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Makefile Tue May 19 22:56:20 2020 +0200
1.3 @@ -0,0 +1,15 @@
1.4 +sysex2smf: sysex2smf.cpp
1.5 + g++ -fno-omit-frame-pointer -fsanitize=address -o sysex2smf sysex2smf.cpp $(shell pkg-config --cflags --libs smf)
1.6 +
1.7 +clean:
1.8 + rm -f sysex2smf
1.9 + rm -f test.mid
1.10 +
1.11 +test.txt:
1.12 + echo ahoj > test.txt
1.13 +
1.14 +test.syx: test.txt
1.15 + cat test.txt | tr -d \\n | ../mt-32-display/mt-32-display | sed -r 's/[^abcdefABCDEF0-9]|(--[^--]*--)//g' | sed 's/../\\\\x\0/g' | xargs echo -en > test.syx
1.16 +
1.17 +test.mid: sysex2smf test.syx
1.18 + cat test.syx | ./sysex2smf test.mid