How does one put sound from a live site into an audio visualizer.

edited April 2016 in Library Questions

As of now my sound is just coming from a file on my computer but I would like to load live sounds from a site?

Tagged:

Answers

  • What library are you using? Doesn't it have a line input example? Make sure to make the microphone your default audio device.

  • There are couple of ways you can do that --

    1. Read sound from the computer sound card. It will pickup some noise too [note sure]
    2. Use the API of the website if given.
  • hi @blyk! how would i use the API of the website given?

    this is my sample code rn:

    import ddf.minim.*;

    float spin = 3;

    Minim minim; AudioPlayer player; AudioInput input;

    void setup() {

    size(800,700,P3D); background(0); lights(); minim = new Minim(this); player = minim.loadFile("./10 Chrome Country.wav"); [this loads the audio] player.play(); }

  • hi @bcolouredmirroball! how would i use the API of the website given?

    this is my sample code rn:

    import ddf.minim.*;

    float spin = 3;

    Minim minim; AudioPlayer player; AudioInput input;

    void setup() {

    size(800,700,P3D); background(0); lights(); minim = new Minim(this); player = minim.loadFile("./10 Chrome Country.wav"); [this loads the audio] player.play(); }

Sign In or Register to comment.