# Arraylist containing x sounds—How?

**URL:** https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311
**Category:** Libraries
**Created:** [December 4, 2018, 11:52pm UTC](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311 "2018-12-04T23:52:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HelaRua](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@HelaRua](https://discourse.processing.org/u/HelaRua)
#### Post date: [December 4, 2018, 11:52pm UTC](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311/1 "2018-12-04T23:52:44Z")

</div>

Hiii~

Does anyone know how to make an arraylist consisting of x sounds?  
I just made one with images… but I can’t find the equivalent for sound.  
Bleh \>:-(

Ty!!

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [December 5, 2018, 8:58pm UTC](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311/2 "2018-12-05T20:58:16Z")

</div>

This really depends on your context. How are you representing your sounds? What have you tried so far?

I’d recommend taking a look at this guide as well:

> [@Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147):
>
> Summary (TL;DR) Ask complete questions to get better answers! Be specific. For example: I want to load an image. I tried using createImg() , and I expected the image to be on canvas, but what happened instead was the image showing up below the canvas. Isolate your problem and work in small steps. Share only the code directly related to your problem if it is part of a bigger project, and if something isn’t working, try the smallest code that could do the thing you want. Can we run your code to …

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [December 7, 2018, 8:06pm UTC](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311/3 "2018-12-07T20:06:55Z")

</div>

Just pointing this to your other post:

> [@Multiple draggable images (drags once and locks)](https://discourse.processing.org/t/multiple-draggable-images-drags-once-and-locks/6001/5):
>
> Were you able to resolve this, or are you still working on this problem? It looks like you want to know how to move from a series of img variables to an array of images. PImage[] imgs = new PImage[30]; You might be interested in some of the array reference pages, tutorials, and examples: [https://processing.org/reference/Array.html](https://processing.org/reference/Array.html)[https://processing.org/reference/arrayaccess.html](https://processing.org/reference/arrayaccess.html)[https://processing.org/tutorials/arrays/](https://processing.org/tutorials/arrays/)[https://processing.org/examples/array.html](https://processing.org/examples/array.html)

…the key point being that you need a sound type from either the imported Sound library or Minim – it isn’t built in to Processing the way that PImage is.
