Question: Abstract Data Types java program, please do java program
Specify, implement and design 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 note, 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. in counting "how far", you should include both the while and black notes on a piano.
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....G)
- Whether the note is natural or sharp (i.e.. white or black on the piano), and the frequency of the note in hertz.
- To evaluate the frequency, use the formula 440 x 2^(n/12) where n is the note number.
Shown output length and the value of the note