# Minim get computer audio?

**URL:** <https://discourse.processing.org/t/minim-get-computer-audio/42520>\
**Category:** Libraries\
**Created:** [July 30, 2023, 2:08pm UTC](https://discourse.processing.org/t/minim-get-computer-audio/42520 "2023-07-30T14:08:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [July 30, 2023, 2:08pm UTC](https://discourse.processing.org/t/minim-get-computer-audio/42520/1 "2023-07-30T14:08:56Z")

</div>

I wonder if its possible to get what the computer is playing, for example youtube from google chrome.

I have this code that gets the microphone input. I dont know if it works 100% correctly but it kinda works, if someone is able to make this code work correctly, i just entered random numbers, please tell me!

😃

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

Minim minim;
AudioInput input;
FFT fft;

void setup() {
  size(400, 400, P2D);
  minim = new Minim(this);
  input = minim.getLineIn(Minim.STEREO, 1024, 100000);
  fft = new FFT( input.bufferSize(), input.sampleRate());
}

void draw() {
  println(frameRate);
  background(255);
  fft.forward(input.mix);
  
  for (int h = 1; h < 500; h = h +=2) {
    noStroke();
    fill(0);
    rect(50+h/2, 50, 1, fft.getBand(h));
  }
}

```

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [July 30, 2023, 3:34pm UTC](https://discourse.processing.org/t/minim-get-computer-audio/42520/2 "2023-07-30T15:34:50Z")

</div>

Take a look at the examples that come with the Minim Library:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/c/0c26da1f2945ec0f67f5c12d9ee1cc5806858698.png)

Additional references:  
[https://code.compartmental.net/minim/](https://code.compartmental.net/minim/)

`:)`

---

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [July 30, 2023, 9:06pm UTC](https://discourse.processing.org/t/minim-get-computer-audio/42520/3 "2023-07-30T21:06:33Z")

</div>

I didnt find anything for output, i think its impossible with minim!

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [July 30, 2023, 9:28pm UTC](https://discourse.processing.org/t/minim-get-computer-audio/42520/4 "2023-07-30T21:28:59Z")

</div>

> [@nuhuhwy](#):
>
> I didnt find anything for output, i think its impossible with minim!

Sometimes you have to fiddle with the Windows sound settings:

[https://discourse.processing.org/t/getting-live-audio-input/23143/6](https://discourse.processing.org/t/getting-live-audio-input/23143/6)

I am not actively working on this… please share if you find a solution.

`:)`

---

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [July 30, 2023, 10:47pm UTC](https://discourse.processing.org/t/minim-get-computer-audio/42520/5 "2023-07-30T22:47:50Z")

</div>

I tried doing this, installing a virtual input device!

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/a/a/aa4f3cc85066573b2e9784ab563ff6dae452bafb.png)

This didnt work and i dont knwo why!
