![]() Instead, I used some MATLAB string processing functionality to break the path string down into easily processable chunks. I certainly didn't want to write a fully general SVG path parser just to do a prototype. "Q" - draw a quadratic Bezier curve segment using three points.Fortunately for me, since I just wanted to try a quick prototype, the path in the treble clef outline file contained only a few commands: I found this w3.org page that explains SVG paths in detail. There didn't seem to be much to it:Ĭlearly, I needed to understand more about an SVG path. I don't know that much about SVG files, but I downloaded the file and looked at it in a text editor. But the line "Outline (as SVG file)" on that info page caught my eye. The precise positioning and size of a Unicode character is too dependent on which font one uses. One online resource I like to use for Unicode is, which has this info page for the treble clef:īut I wasn't sure that using the Unicode character directly was really going to work out for me. That's how I got started on this quest.įirst, I wondered if there is a Unicode symbol for treble clef (also known as the G clef). For one of these charts, I wanted to be able to place several treble clef symbols, precisely and with high quality. I thought it was fun, and I learned a few things, so I wanted to share it.Īs a personal project, I make specialized fingering charts for the French horn. My discovery and implementation process for doing this involved Unicode characters, SVG files, string processing, Bezier curves, kron, implicit expansion, and polyshape. Today I will show you how I plotted this treble clef symbol in MATLAB: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |