(a) Extend the program with a further command-line argument that defines the ‘‘root A’’ tuning. For example, ‘‘Baroque’’ pitch defines A ¼ 415 Hz. In fact, A ¼ 440 Hz is itself a relatively recent...


(a) Extend the program with a further command-line argument that defines the ‘‘root A’’ tuning. For example, ‘‘Baroque’’ pitch defines A ¼ 415 Hz. In fact, A ¼ 440 Hz is itself a relatively recent ‘‘standard’’—especially in the United States, where the pitch of A ¼ 435 Hz was recently in widespread use.


(b) (experimental) Add a further argument that defines the division of the octave. For example, a popular alternative temperament uses a 19-note equal-temperament division. A value of 24 would define a quarter-tone ET scale. In each case, trap inappropriate user input with suitable error messages.

Nov 22, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here