# Issues with sound output

**URL:** <https://discourse.processing.org/t/issues-with-sound-output/7104>\
**Category:** Libraries\
**Created:** [January 2, 2019, 3:22pm UTC](https://discourse.processing.org/t/issues-with-sound-output/7104 "2019-01-02T15:22:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mllobet](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mllobet](https://discourse.processing.org/u/mllobet)\
**Post date:** [January 2, 2019, 3:22pm UTC](https://discourse.processing.org/t/issues-with-sound-output/7104/1 "2019-01-02T15:22:25Z")

</div>

I’m new in this stuff and my code can’t sound. Someone can help me to make that code sound? Thank you

```auto
import ddf.minim.*;
import ddf.minim.ugens.*;

Minim minim;
AudioOutput out;

void setup(){
minim = new Minim(this);
 AudioOutput out = minim.getLineOut();
 out.setTempo(100);
   out.resumeNotes(); 
   
   String[] seq_bass = {"C2","E2”,”G2”,”B2”,”C3”,”B2","G2","E2","C2","E2”,”G2”,”B2”,”C3”,”B2","G2","E2"};
    for (int bar=0;bar<16;bar++){
  for (int i=0;i<seq_bass.length;i++){
    out.playNote( bar*8+0.25*i, 0.06, seq_bass[i] );
    out.playNote( 0.25*i+0.375, 0.06, seq_bass[i] );
    }
}

   out.pauseNotes();
}

```

---

<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:** [January 3, 2019, 2:22am UTC](https://discourse.processing.org/t/issues-with-sound-output/7104/2 "2019-01-03T02:22:42Z")

</div>

> [What’s wrong here?](https://discourse.processing.org/t/whats-wrong-here/7104)

first of all the TITLE,  
pls edit to something useful so readers might want to help you.

also the code should be formatted  
using the Preformatted text feature

```auto
</>

```

when you start using a big library like

> minim

you start from a example,  
and to help us, so we not have to search 20min where you start from  
you should point out here from what example you started.

also there might be too many problems involved, your computer,  
operating system, sound hardware…  
so you should test first the example ( without any changes )  
and report here that with that you hear the sound,  
but after making following change … NOT.

now to your problem:  
i see some basic problems about variables  
and also about resume / pause  
so i made it to give out ( not sound ), some terrible noise!!  
you are very lucky that it does not work.

```auto
import ddf.minim.*;
import ddf.minim.ugens.*;

Minim minim;
AudioOutput out;

void setup() {
  minim = new Minim(this);
  out = minim.getLineOut();
  out.setTempo(100);
  out.pauseNotes();

  String[] seq_bass = {"C2", "E2", "G2", "B2", "C3", "B2", "G2", "E2", "C2", "E2", "G2", "B2", "C3", "B2", "G2", "E2"};
  for (int bar=0; bar<16; bar++) {
    for (int i=0; i<seq_bass.length; i++) {
      out.playNote( bar+0.25*i, 0.06, seq_bass[i] );
      out.playNote( 0.25*i+0.375, 0.06, seq_bass[i] );
    }
  }
  out.resumeNotes();
}

void draw() {
}

```

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [January 3, 2019, 8:49am UTC](https://discourse.processing.org/t/issues-with-sound-output/7104/3 "2019-01-03T08:49:54Z")

</div>

@mllobet We hope the example helps. Feel free to let us know if you have any more questions or comments.

Also, here are some tips that can help you get assistance with your questions quicker. - [Guidelines—Tips on Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147)

Best of luck on your project 🙂
