Results 1 to 7 of 7
Thread: A few general questions
- 06-23-2012, 07:28 PM #1
Programming Again
- Join Date
- May 2012
- Location
- Eugene, OR
- Posts
- 55
- Rep Power
- 0
A few general questions
Hello! I made a few GUIs to quiz students of music theory. I'm planning to make some more, and I have a few questions.
The quizzes have two main types of problems: 1. multiple choice based on identifying a note on a staff, and 2. writing a note on the staff by clicking on a specific part of it.
My question is about how I should handle the graphics. I could have a folder of images so that when a specific part of the image is clicked, it is replaced by a new image. I could have Java draw the staff so that the notes appear when the image is clicked. Music notation programs use MusicXML to communicated across platforms and between programs. Is it possible to display MusicXML in an applet?
Would someone please give me some advice so that I can start doing some research on how to implement the graphics? Thanks!
-
Re: A few general questions
That could work.
And that could work as well. My personal preference is for the latter as it makes more sense to leave as a use as a background image, that which is unchanging -- the music staffs, and then draw a sprite (which can also be an image) on top of the background image.I could have Java draw the staff so that the notes appear when the image is clicked.
Absolutely this can be done, but the devil of course is in the details. Easiest would be to find a library that already does this, and that you can legally use. More difficult but doable is to study the format of MusicXML and roll your own simple library to do this.Music notation programs use MusicXML to communicated across platforms and between programs. Is it possible to display MusicXML in an applet?
I have to give a caveat that I have not personally created a program such as this, but I can visualize how it can be done, and it seems to me that you're on the right path.Would someone please give me some advice so that I can start doing some research on how to implement the graphics? Thanks!
- 06-23-2012, 07:44 PM #3
Programming Again
- Join Date
- May 2012
- Location
- Eugene, OR
- Posts
- 55
- Rep Power
- 0
Re: A few general questions
Fubarable, this is very helpful. Thanks!
- 06-28-2012, 06:26 AM #4
Programming Again
- Join Date
- May 2012
- Location
- Eugene, OR
- Posts
- 55
- Rep Power
- 0
Re: A few general questions
If anybody else is interested, one of the programs here library - Are there any music notation rendering libraries for Java? - Stack Overflow might be able to render music in an applet.
- 06-28-2012, 07:26 AM #5
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Re: A few general questions
Getting nice looking manuscript is - I would guess - a highly nontrivial task. But your requirements (in the OP) are rather more modest: displaying a note and interacting with user input.
I would go with the idea of a component that draws a sprite on a background. (or a vector graphic equivalent).
Remember - as with a lot of gui stuff - the component can be usefully be kept separate from the model. The latter could well use a standard xml format (or cut down but compatible version) to load/save data from files etc.
- 06-28-2012, 08:58 PM #6
Re: A few general questions
Please go through the Forum Rules -- particularly the third paragraph.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 06-30-2012, 12:39 AM #7
Programming Again
- Join Date
- May 2012
- Location
- Eugene, OR
- Posts
- 55
- Rep Power
- 0
Similar Threads
-
General Error- What does that mean?
By mathidioticz in forum New To JavaReplies: 1Last Post: 01-22-2012, 01:14 PM -
General questions about Java Garbage Collection
By tutiplain in forum New To JavaReplies: 5Last Post: 11-19-2010, 03:57 PM -
general help.
By socboy6579 in forum New To JavaReplies: 1Last Post: 10-24-2010, 10:41 PM -
general help.
By socboy6579 in forum New To JavaReplies: 1Last Post: 10-24-2010, 09:20 PM -
A few general questions regarding scope of local inner classes.
By Half_Duplex in forum New To JavaReplies: 9Last Post: 12-01-2009, 08:30 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks