| ||||||||||
All homework are due by 10 pm on the due date! |
Extra Credit: Up to 10 points extra credit if you also use JMusic for generating some of the music for the dance. Use the class Play and the method midi, as in Play.midi(myPhrase,false) to play MIDI without notating it. (You'll need false to make it work.) 2 points of extra credit are for using JMusic at all, 5 more points for using it musically with more than one instrument, and 3 more points for having two parts at once. You may also need Play.waitCycle(someScore) to get the program to pause for synchronization. EACH JMusic instrument you use counts for ONE of your four different sounds. |
For +2 points extra credit, use the SongPart class and create your song with more than one part and instrument. |
For +5 points extra credit, implement a new kind of repeat or weave – maybe one that weaves two copies each time it does an insert? Include your modified SongNode or SongPart classs in your turnin. Maybe even get a start on HW5? |
Extra Credit 5 points: Make some of your methods work with PositionedSceneElement, and use them to create a long pattern of smallish images via weaving and repeating, in order to create an interesting tiling on a long picture (e.g., at least 50 really-scaled-small nodes long). Say "dog, dog, house, dog, dog, tree–repeat a few dozen times." Show a fifth picture of some long picture with the tiling pattern appearing on it. |
You must write HW6 using Pair Programming. Announce your pair at Student229. Not working in a pair is a 5% score penalty (i.e., you lose five points from the start.) |
THERE MUST BE AT LEAST 20 FRAMES IN YOUR ANIMATION. |
For 5 points extra credit, use both Sound play() and blockingPlay() in your animation play() – but NOTE that you still can't CREATE any new sounds in your animation play() method. All the sounds still have to be in some kind of linked list data structure before you get started. |
For 10 points extra credit, create a new kind of linked list of sounds where there is a variable that indicates whether the sound should be (a) play()-ed or (b) blockingPlay()-ed. Still have one sound per frame, but some sounds will be starting a background sound (those of type (a)) and others will be playing a synchronization sound (those of type (b)). |
This assignment is worth 25 points EXTRA CREDIT!. It is not necessary to do this assignment, and it's not necessary to do it in pairs, though you can if you want. |
WalkingCharacter myPerson = new WalkingCharacter(); // Do whatever setUp() you need in the constructor myPerson.show(); //Open up the FrameSequence or whatever else you're using for showing myPerson.walk(20); //Take 20 steps
You must write HW7 using Pair Programming. Announce your pair at Student229. Not working in a pair is a 10% score penalty (i.e., you lose ten points from the start.) |
For +5 points extra credit: Provide a text area for entering a filename, and a Save button, then write the created MIDI out to a file. Use Write.midi(myPartOrScore,"filename.mid") to write out the music from JMusic. |
> Integer.parseInt("123") 123
You must write HW8 using Pair Programming. Announce your pair at Student229. Not working in a pair is a 20% score penalty (i.e., you lose twenty points from the start.) |
Initial counts | Should there be more Corn, or fewer Deer? Would culling the herd help more survive? Would more Wolves create better equilibrium? |
Ranges | Should Deer or Wolves smell only closer, or farther? Should they not be able to jump to Corn or Deer in a single time step? |
For +5 Extra Credit: Implement male and female Deer. Every 12 weeks, the female Deer can become pregnant if there is a male Deer within smell range. (You decide if the female jumps to the male, or the male jumps to the female.) Pregnancy lasts for 6 weeks, during which time the female will die if she doesn't get corn every THREE timesteps. At the end of six weeks, a new Deer is produced (randomly selected gender). |
You must write HW9 using Pair Programming. Announce your pair at Student229. Not working in a pair is a 20% score penalty (i.e., you lose twenty points from the start.) |
EXTRA CREDIT: There is no requirement to have different types of runner, but I'll offer up to 5 points extra credit for having two or more types. One type of villager might look younger and move faster, another might look older and move slower. One might be TRYING to get hit by the bulls. Mark Guzdial |