Skip to content

Commit 7463a52

Browse files
committed
updated jdk and added comments
1 parent 68650fc commit 7463a52

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<version>1.0-SNAPSHOT</version>
1010

1111
<properties>
12-
<maven.compiler.source>17</maven.compiler.source>
13-
<maven.compiler.target>17</maven.compiler.target>
12+
<maven.compiler.source>23</maven.compiler.source>
13+
<maven.compiler.target>23</maven.compiler.target>
1414
</properties>
1515

1616
<repositories>

src/main/java/com/processing_example/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public class Main extends PApplet {
1414

1515
int green = 400; //the green color value of the 2 squares --changes on mouseclick.
16-
SoundFile sound;
16+
SoundFile sound; //the sound file!
1717

1818
//sets up processing and prints the hello world message to the console.
1919
public static void main(String[] args) {
@@ -31,7 +31,7 @@ public void settings()
3131
public void setup()
3232
{
3333
background(30, 150, 100);
34-
sound = new SoundFile(this, "audio/15 Tristezas de un Doble A Cut.aif");
34+
sound = new SoundFile(this, "audio/15 Tristezas de un Doble A Cut.aif"); //load it -- this is an Astor Piazzolla song don't redistribute! thx -- also its aif but should work with mp3s, etc.
3535
}
3636

3737
//draws some nested rectangles
@@ -48,7 +48,7 @@ public void draw()
4848
//changes the colors of the 2 squares
4949
public void mousePressed()
5050
{
51-
sound.play();
51+
sound.play(); //I play it when you press the mouse.
5252
if( green == 400 )
5353
green = 200;
5454
else green = 400;
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)