

I did some research, and the big music notation tools (finale, sibelius, etc.) use true type fonts. I would love if someone proves me wrong, but I can’t find much of anything online. Therefore, at least in the music notation domain specifically, no one has really done this in OpenGL. In these papers, the only details this author supplies are: 1) they use “OpenGL Vector Graphics” and b) “picking” for interacting with the user ( ). The source is not available, but they have a few academic papers where they allude to OpenGL. There is 1 project that I found which uses OpenGL to render music notation – it’s a university project called PWGL.

The free notation software that I found either used a) some sort of a post script library (eg Lilypond) to basically generate a post script file and display it to the user (no interactivity), or b) used a platform-specific graphics toolkit (all of the ABC notation editors, for example) to draw very primitive notation glyphs (a few use gtk). There are very few (none?) mature music notation programs. I had looked before, but I wanted to look again after reading your reply. I scoured sourceforge, as well as google, for some musical notation software that uses opengl. What is the best method of drawing glyphs and fonts for my particular application?Īs a final note, I am looking for a combination of speed and a crisp, high resolution because I will be updating the screen during a live performance, and musical notation has many tiny graphic nuances that are significant to the performer.Īny answers or advice you have are greatly appreciated. However, I read online that doing too many polygons could be really slow. Is a font a bad thing to use in an OpenGL program? As an alternative to a bitmap type font, I was considering drawing a complex glyph (like a trebel clef) with polygons. There are many different glyphs used in music notation (a few hundred).

What is the preferred way to do this sort of 2d drawing? I researched truetype fonts and OpenGL online, but it sounds like that might be impossible or very slow.

as well as other italic markings in the score (eg the word “sim.” on the 6th line from the top). Additionally, I need to use a custom serif font to add in the composer’s name at the top, etc. The glyphs could be the notes themselves (ovals at a slight tilt), or the clefs, or the sharps and flats, or the time signature (4/4). I now need to add glyphs of various sizes and shapes to draw the actual notation. It probably doesn’t sound like a lot, but I am an opengl beginner, and it took me a few hours to get set up. Here’s an example of music notation to refresh your memory (courtesy of google images):Ĭurrently, I have successfully drawn the horizontal lines (staves) using OpenGL and gotten them to antialias. I am trying to make an OpenGL program that can display music notation.
