I want to write a program that will generate random notes and draw them on the screen on a staff. I want to use Cocoa or Cocoa Touch. What's the best way to go about displaying the notes? Should I somehow use a music font, or pngs of each note, or what? Are there any good tutorials or sources of info out there on this topic?
I would be very tempted to use a custom music font and render it using the new ability in iOS4 to import custom fonts (I'm pretty sure it's iOS4 in general, and not just the iPad). I also assume that the entirety of CoreText is available on the mac too, but even if not, I'm sure the code wouldn't be vastly different.
Anyway, you can read about loading custom fonts here;
http://www.freetimestudios.com/2010/09/20/ipad-and-ios-4-custom-font-loading/
Or the slightly more hardcore way here;
http://www.freetimestudios.com/2010/09/13/custom-fonts-on-the-ipad-and-ios-4/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With