author | František Kučera <franta-hg@frantovo.cz> |
Tue, 19 May 2020 22:56:20 +0200 | |
branch | v_0 |
changeset 0 | dcdd12e654da |
permissions | -rw-r--r-- |
franta-hg@0 | 1 |
sysex2smf: sysex2smf.cpp |
franta-hg@0 | 2 |
g++ -fno-omit-frame-pointer -fsanitize=address -o sysex2smf sysex2smf.cpp $(shell pkg-config --cflags --libs smf) |
franta-hg@0 | 3 |
|
franta-hg@0 | 4 |
clean: |
franta-hg@0 | 5 |
rm -f sysex2smf |
franta-hg@0 | 6 |
rm -f test.mid |
franta-hg@0 | 7 |
|
franta-hg@0 | 8 |
test.txt: |
franta-hg@0 | 9 |
echo ahoj > test.txt |
franta-hg@0 | 10 |
|
franta-hg@0 | 11 |
test.syx: test.txt |
franta-hg@0 | 12 |
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 |
franta-hg@0 | 13 |
|
franta-hg@0 | 14 |
test.mid: sysex2smf test.syx |
franta-hg@0 | 15 |
cat test.syx | ./sysex2smf test.mid |