# Trying to syphon sound from spotify to a sketch

**URL:** <https://discourse.processing.org/t/trying-to-syphon-sound-from-spotify-to-a-sketch/37003>\
**Category:** Libraries\
**Created:** [May 21, 2022, 5:36pm UTC](https://discourse.processing.org/t/trying-to-syphon-sound-from-spotify-to-a-sketch/37003 "2022-05-21T17:36:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yairkass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/yairkass/32/5366_2.png) [@yairkass](https://discourse.processing.org/u/yairkass)\
**Post date:** [May 21, 2022, 5:36pm UTC](https://discourse.processing.org/t/trying-to-syphon-sound-from-spotify-to-a-sketch/37003/1 "2022-05-21T17:36:15Z")

</div>

Hey everybody 🙂  
I’m testing syphoning sound from my mac to a processing sketch for some audio viz stuff.  
I installed Sound Siphon and created a new virtual input.  
When i list my sound devices in processing, I can recognize my new virtual input,  
and when I run a sketch, sound gets muted as expected( i checked this option in Sound Siphon).  
Everything seems to work but whatever I do it seems that sound doesn’t “flow” in.  
Here is the small test code i’m running,  
I’m also attaching a screenshot of Sound Siphon.

```auto
import processing.sound.*;

  Sound s;
  AudioIn in;  
  Amplitude amp;
  
void setup() {

  size(600, 600);
  colorMode(RGB);
  fill(200,0,0);
  noStroke();
  rectMode(CENTER);

  s = new Sound(this);
  s.inputDevice(3);

  in = new AudioIn(this, 0);
  in.start();

  amp = new Amplitude(this);
  amp.input(in);

}

void draw() {
  println(amp.analyze());
  background(0);
  rect(width/2,height/2,30,10+amp.analyze()*100);
}

```

 ![Screen Shot 2022-05-21 at 20.35.04](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/f/0fd6e1be821c5c842160395523a3009637e4a3e3.jpeg)
