|Question: Is our homework now due on Mondays at 10, or was that just the first assignment (so it's still due Friday at 7)?|
|Question: Where is the blockingplay() method? It is not in the Sound Samples.|
|Question: for this homework we are going to write long code something like|
pete-turtle on world
pete.square(30); c4.blockingPlay(); pete.forward(100); e4.blockingPlay().....???
|Question: Just to clarify, are sampled sounds the sounds that are in .wav files in our mediasources folder? If not, I am confused as to what sampled sounds are.|
|Question: Can we use sound files other than the ones in the MedisaSources Folder??? I assume we do but I was not sure.|
|Question: When we are using midi, how do we write two notes playing at one time? For example, you need to write chords with piano music, and I would like for the chords to be played on one part, instead of having multiple parts with one note for each beat.|
|Question: What happens if your computer can't run it b/c there is not enough memory?|
|Question: Sometimes when I run my Turtle Dance, I get an error that says something like "Exception in thread...Concurrent Modification...". It doesn't happen all the time, which is weird. What is it?|
|Question: Is there a way to make the background color of a world something other than white?|
|Question: For the hw, it says implement it in a main method. So I just wanted to clarify, is a main method something similar to what we did in hw 2 for example, we defined our class and then wrote:|
static public void main()I was just wondering if this is what defines a main method.
|Question: Why is Dawn answering all these questions when she should be busy at work?|
|Question: What are "the other ways" of making the turtle dance w/ music ?|
|Question: I can't remember, what is the way to get access to the table that shows all the notes and their respective JMC notation?|
|Question: Do you want us to show the turtle, or is it enough to just drop a picture? Does the turtle have to be visible?|
|Question: Frame Sequence keeps giving me the following warning|
File: C:\Documents and Settings\Leflor\My Documents\Programs\java-source-Fall06\FrameSequence.java [line: 161]
Warning: C:\Documents and Settings\Leflor\My Documents\Programs\java-source-Fall06\FrameSequence.java:161: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
And when I run my code a pointer is returned as null so it just stops running before it gets to play the video, I get frames no moving imagery in front of me though.
NullPointerException: at FrameSequence.replay(FrameSequence.java:210) at turtleFrames.replayFrames(turtleFrames.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)
String name; name.charAt(0);will yield the same error, because you're trying to access a specific letter of the String name, but you have yet to define name as anything. Your NullPointerException occurs because you call FrameSequence's replay() method without adding any frames to FrameSequence. -Dawn Finney
|Question: When I try to compile one of the example files like Song.java the very first line: import jm.music.data.; is highlighted. The error reads|
Error: C:\Documents and Settings\Owner\Desktop\cs1316\java-source-Fall06\java-source-Fall06\Song.java:1: package jm.music.data does not exist
do i have to set a path or something?
|but I already have a path to jmusic set up in preferences.|
|my jmusic.jar isn't actually inside the inst folder though. its right in the top layer of the jmusic folder. should the path be directly on the .jar file?|
|much obliged Dawn. it works now.|
|Question: I've put my whole code in order and it looks right and compiles correctly and even runs, but the sound does not play in the place I put it in. I have a while loop so the turtles spin for a while and even though the sound is placed higher above the while loop the music still plays after. tell me why!|
|lol my problem is that the turtles don't show up, although I have the blank world come up. instead of doing Turtle.show(); which gives me an error message I did the names of my turtles: Jones.show(); etc...|
World world = new World(); Turtle t = new Turtle(world);before you do