# The Somewhat Possible Game by Kristoffer Pauly

**URL:** <https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739>\
**Category:** Libraries\
**Created:** [September 22, 2018, 3:12pm UTC](https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739 "2018-09-22T15:12:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tefa](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tefa/32/1181_2.png) [@tefa](https://discourse.processing.org/u/tefa)\
**Post date:** [September 22, 2018, 3:12pm UTC](https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739/1 "2018-09-22T15:12:03Z")

</div>

Hello Dear Processors, I found an awesome game I want to learn from [https://www.dropbox.com/s/6yvuv1i84u41j0m/The\_Somewhat\_Possible\_Game.zip?dl=0](http://download) but it is throwing an ArrayIndexOutOfBoundsException: 3 error and highlights line 51 where it says:  
`backgroundMusic = new SoundFile(this, "Dance of the Pixies.mp3");`﻿  
on an array that has 300 iterations and it is declared to have 300 iterations.

- You need to download the Sound library if it is not in your processing library already.

Thank you!

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [September 23, 2018, 1:11am UTC](https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739/2 "2018-09-23T01:11:46Z")

</div>

It is an obvious question: Did you install the sound library?

Notice that is not common to share files using dropbox. It is preferred to use github.

In that line, the reason that you get that error is either because you dont have the library or possibly, because you do not have the mp3 file. However, your error description seems to point to the culprit.

You can check you have the sound library installed by running any of the provided examples that comes with the PDE.

Kf

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 23, 2018, 9:04am UTC](https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739/3 "2018-09-23T09:04:01Z")

</div>

same here ( win7 / processing 3.4 / sound lib installed )  
the /data/Dance of the Pixies.mp3 file is good but crash the sound lib  
i copy over /data/vibraphon.aiff from example **SimplePlayback**  
and change to  
backgroundMusic = new SoundFile(this, “vibraphon.aiff”);  
now it works. ( not forget to click on the game window )

---

<div class="post-metadata">

**Author:** ![tefa](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tefa/32/1181_2.png) [@tefa](https://discourse.processing.org/u/tefa)\
**Post date:** [September 25, 2018, 2:42am UTC](https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739/4 "2018-09-25T02:42:08Z")

</div>

> [@kll](#):
>
> **SimplePlayback**

Yes, changing the music file format mp3 to aiff fixes the issue. Thank you very much!
