Question: Specify, design and implement a class that can be used to hold information about a musical note.
A programmer should be able to set and retrieve the length of the note and the value of the note. The length of a note may be a sixteenth note, eight notes, quarter note, half note, or a whole note.
A value is specified by indicating how far the note lies above or below the A note that orchestras use in tuning. V In counting "how far", you should include both the while and black notes on a piano.
You need to prepare a complete java program
- The default constructor should set a note to a middle C quarter note.
- Include methods to set a note to a specified length and value.
- Write methods to retrieve information about a note, including methods to tell you the letter of the note (A, B , C)
- Whether the note is natural or sharp white or black on the piano, and the frequency of the note in hertz.
- To calculate the frequency, use the formula 440 x 2^(n/12) where n is the note number.
You need to implement a class that will be used to hold information about a musical note.