From: Dominique F. <fo...@gr...> - 2014-08-07 08:42:23
|
Hi Henry, The GuidoQuartz example should be quite obsolete and is probably not a good way to understand how to use the library. Actually and to display a music score, the sample code in samples/GuidoDisplay.cpp is the more appropriate to get the different steps (although it makes use of an obsolete postscript device). Basically, what you have to do to display a score is: - initialize the library (GuidoInit) (only once) - read a guido file (or string) (GuidoFile2AR or GuidoString2AR) - convert the resulting abstract representation (ARHandler) to a graphic representation (GuidoAR2GR) - and eventually draw this graphic representation (GuidoOnDraw) and that’s all. I’ve no experience on iOS but normally, you don’t have to load the font, that’s done by the library. But the guido font has to be installed or embedded into your application in a way the font loader can find it. Best, — Dominique Le 6 août 2014 à 08:51, Henry Flurry <gui...@he...> a écrit : > Hello, All! > > I’m looking to integrate GuidoLib framework into an iOS app, but I’m failing to find documentation that outlines how to do such. > > I have managed to compile the code into a working iOS app and run some GUIDO library functions (specifically, those outlined in TestGuidoFactory() example). > > To get things displaying or drawn into an UIImage … Here’s what I’m coming up with, so far. > > - I need to init the Guido lib > - I need to load the font > - Somehow I need to create the appropriate context in which to draw my GRHandler, which I can create by reading a file or generating the data programatically > - ??? > > The Quartz Example is fairly scattered across many, many and methods, as far as I can tell, and it is difficult to discern in what order what methods are called. > > I would love to see sample source code that uses the standard CocoaTouch library, written presumably in Objective-C++ — or even sample snippets that use the OSX specific CPP classes. > > Anybody willing to share some examples? Once i get going, I’ll be happy to share what I learn, too. > > Thanks! > > Henry > > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Guidolib-devel mailing list > Gui...@li... > https://lists.sourceforge.net/lists/listinfo/guidolib-devel |