# Sound Library error when playing sound files

**URL:** <https://discourse.processing.org/t/sound-library-error-when-playing-sound-files/306>\
**Category:** Libraries\
**Created:** [May 23, 2018, 7:14pm UTC](https://discourse.processing.org/t/sound-library-error-when-playing-sound-files/306 "2018-05-23T19:14:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin\_lincoln](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/justin_lincoln/32/53_2.png) [@justin\_lincoln](https://discourse.processing.org/u/justin_lincoln)\
**Post date:** [May 23, 2018, 7:14pm UTC](https://discourse.processing.org/t/sound-library-error-when-playing-sound-files/306/1 "2018-05-23T19:14:36Z")

</div>

When I use the Sound library I consistently get this error when playing a sound file “ERROR:/synth/map/input : Audio input index 0 out of range for synth 2.” I will hear some sound, but certainly parts of the sound are dropping. Is there any work around? Should I switch to Minim when playing sound files in a program?

This is some example code:

```auto
import processing.video.*;
Movie movie;
//sound library comes after movie library
import processing.sound.*;
SoundFile song;
Amplitude amp;

void setup(){
fullScreen();
background(0);
movie = new Movie(this, "84.mov");
movie.loop();
song = new SoundFile(this,"STE-017.wav");
song.loop();
amp = new Amplitude(this);
amp.input(song);
}

void movieEvent(Movie m) {
  m.read();
}

void draw(){
 fill(0);
 imageMode(CENTER);
 rect(0,0,width,height);
float msize = map(amp.analyze(),0,.6,.7,1.7);
image(movie, width/2, height/2, width * msize, height * msize);
 
}

```

---

<div class="post-metadata">

**Author:** ![ProcessingOrg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/processingorg/32/18341_2.png) [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Post date:** [May 23, 2018, 10:53pm UTC](https://discourse.processing.org/t/sound-library-error-when-playing-sound-files/306/2 "2018-05-23T22:53:51Z")

</div>

The Sound Library has been archived—it’s not in current development. We’re currently working to re-write it from scratch to have the same API, but a different audio engine. I do recommend working with Minim at this moment.

---

<div class="post-metadata">

**Author:** ![ProcessingOrg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/processingorg/32/18341_2.png) [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Post date:** [July 27, 2018, 8:27pm UTC](https://discourse.processing.org/t/sound-library-error-when-playing-sound-files/306/3 "2018-07-27T20:27:20Z")

</div>

Here’s a link to the current Sound library development: [Early builds of the new Processing Sound library available for testing](https://discourse.processing.org/t/early-builds-of-the-new-processing-sound-library-available-for-testing/1796)
