I545 ASSIGNMENT: MORE R - Don Byrd - 25 Jan. 2008 1. Modify ChromaticWanderings.r to make it involve whole-tone scales. A _whole-tone scale_ is one where the interval between notes is always 2 semitones. There are only two different whole-tone scales: (a) C, D, E, F#, G#, A#; and (b) Db, Eb, F, G, A, B. Change the program so it emphasizes notes in one of them by playing those notes for twice the duration when it does play them. Be sure to add a comment saying which one your program emphasizes. You don't need to make it work for any values of the low and high notes of the range, just those in the range it plays, but it'd be better if it works for any possible range of MIDI notes. (You'll recall that part of last week's assignment for the Informatics and CompSci majors was to do something similar with a scale other than whole-tone. Whole-tone scales are easier :-) .) INFORMATICS AND COMPUTER SCIENCE MAJORS (and anyone that feels ambitious), also do this: 2. Make your new "WholeToneWanderings" program: (a) use one whole-tone scale when it's going up and the other when it's going down; (b) emphasize a certain note (i.e., letter name) regardless of octave when it's going up and a different note when it's going down, and include a comment giving the letter names, either by playing it even longer than normally-emphasized notes or by making it louder than the other notes (you're right, we haven't talked about controlling loudness yet :-) ); and (c) work for any range, if it doesn't already. EVERYONE: Send me your source code as an e-mail attachment. EXTRA CREDIT: Does your program's output have much of a feeling of rhythm? Probably not. Can you think of ways to change that? For extra credit, implement it. A HINT: to help you tell if your program is working, have it play longer notes: set tatum to something like .25 instead of .1. JUST FOR FUN: With genuine MIDI, the note number must be an integer, but with our R programs, it doesn't. What happens if you have your program take steps of, say, 0.5 semitones instead of 1 semitone?