Fall2011.CSCI180Homework3 History

Hide minor edits - Show changes to markup

Changed lines 66-67 from:

pitch = ((velocity - minVelocity) / (maxVelocity - minVelocity) * 90) + 30

to:

pitch = int((velocity - minVelocity) / (maxVelocity - minVelocity) * 90) + 30

Added lines 70-73:

Alternatively, we could use the jythonMusic mapValue() function. This function expects as arguments the value to be mapped, the smallest and largest possible value to be mapped, and the smallest and largest values of the destination range:

pitch = mapValue(velocity, minVelocity, maxVelocity, 30, 120)

Added line 76:
  1. Make your program do all the necessary calculations. In other words, your program should include the formula that generates each pitch. Make your program do all the work (as opposed to you doing some of the calculations (e.g., in the Python interpreter, or via a calculator) and then using the numeric results in the program).
Deleted line 78:
  1. Make sure you convert pitch to an integer (via the int() function) before using it to create a MIDI note.
Changed line 7 from:

Due Date: Friday, Oct. 28\\

to:

Due Date: Monday, Oct. 31\\

Changed line 14 from:

Due Date: Thursday, Oct. 27\\

to:

Due Date: Tuesday, Nov. 1\\

Changed lines 136-137 from:
  1. Olivier Messiaen, "Mode de valeurs et d'intensites" (1949).
to:
  1. Olivier Messiaen, "Mode de valeurs et d'intensitÚs" for piano (1949).
Changed lines 136-137 from:
  1. Olivier Messiaen, "Mode de valeurs et d'intensites (1949).
to:
  1. Olivier Messiaen, "Mode de valeurs et d'intensites" (1949).
Changed lines 136-137 from:
to:
  1. Olivier Messiaen, "Mode de valeurs et d'intensites (1949).
Added lines 52-55:

Planets and the Golden Ratio

Using Bode's law, it has been shown that "the orbital data of all planets, asteroids, moons, and rings in the solar system reduce to a simple numerical pattern based on the golden ratio. A set of integers, not unlike the quantum numbers of atomic systems, defines the mean orbits of all planets and major satellites." [2]

Changed lines 79-80 from:

Follow the Golden Rule of Style: "A program should be as easy for a human being to read and understand as it is for a computer to execute." [2]

to:

Follow the Golden Rule of Style: "A program should be as easy for a human being to read and understand as it is for a computer to execute." [3]

Added line 133:
  1. Jan C. A. Boeyens, "Commensurability in the solar system", Physics Essays, 22(4), pp. 493-500, Dec. 2009.
Added lines 1-138: