Results 1 to 7 of 7
  1. #1
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

    Default 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!

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: A few general questions

    Quote Originally Posted by Dissonance View Post
    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.
    That could work.

    I could have Java draw the staff so that the notes appear when the image is clicked.
    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.

    Music notation programs use MusicXML to communicated across platforms and between programs. Is it possible to display MusicXML in an applet?
    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.

    Would someone please give me some advice so that I can start doing some research on how to implement the graphics? Thanks!
    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.

  3. #3
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

    Default Re: A few general questions

    Fubarable, this is very helpful. Thanks!

  4. #4
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

    Default 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.

  5. #5
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default 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.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,237
    Rep Power
    19

    Default Re: A few general questions

    Please go through the Forum Rules -- particularly the third paragraph.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

Similar Threads

  1. General Error- What does that mean?
    By mathidioticz in forum New To Java
    Replies: 1
    Last Post: 01-22-2012, 01:14 PM
  2. General questions about Java Garbage Collection
    By tutiplain in forum New To Java
    Replies: 5
    Last Post: 11-19-2010, 03:57 PM
  3. general help.
    By socboy6579 in forum New To Java
    Replies: 1
    Last Post: 10-24-2010, 10:41 PM
  4. general help.
    By socboy6579 in forum New To Java
    Replies: 1
    Last Post: 10-24-2010, 09:20 PM
  5. Replies: 9
    Last Post: 12-01-2009, 08:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •