Last active
December 9, 2017 11:52
-
-
Save hak7a3/ddd4af8944d180de25fe8ee8443b62cc to your computer and use it in GitHub Desktop.
Merry X'mas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\begin{document} | |
Merry X'mas | |
%% Embeded MIDI sound | |
\immediate \pdfobj stream {\pdfunescapehex{% | |
4D546864% header start | |
00000006% header size (currently, 6 only) | |
0001% format | |
0002% #track | |
01E0% delta time | |
%% track 1 (meta data) | |
4D54726B% track start | |
0000000B% size of data | |
00 FF 51 03 03 D0 90% delta time 0, tempo to 130 | |
00FF2F00% delta time 0, end of track | |
%% track 2 (audio data) | |
4D54726B% track start | |
00000052% size of data 13 * 4 + 10 * 3 = 82 | |
%----------------------------------------------------- | |
0090407F% delta time 0, channel 0 note on, 40 with volume 7f | |
83604000% delta time 30, channel 0 note off(ommited), 40 | |
00407F% | |
83604000% | |
00407F% | |
87404000% | |
00407F% | |
83604000% | |
00407F% | |
83604000% | |
00407F% | |
87404000% | |
00407F% | |
83604000% | |
00437F% | |
83604300% | |
003C7F% | |
85503C00% | |
003E7F% | |
81703E00% | |
00407F% | |
96404000% | |
00FF2F00% delta time 0, end of track | |
}}% | |
%% add file attachment annotation | |
\pdfannot width 1em height 1.7ex depth 0.3ex { | |
/Subtype /FileAttachment | |
/FS << | |
/EF << /F \the\pdflastobj\space 0 R >> | |
/F (attach.mid) | |
/Type /Filespec | |
>> | |
} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment