Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8028691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:12:10+00:00 2026-06-05T00:12:10+00:00

I have this awesome audio visualizer created with Processing 2.0a5 with the minim library,

  • 0

I have this awesome audio visualizer created with Processing 2.0a5 with the minim library, which uses fft to analyze the audio data.

import ddf.minim.*;
import ddf.minim.analysis.*;

Minim minim;
AudioPlayer song;
FFT fft;

int col=0; // color, oscillates over time.

void setup()
{
size(498, 89);

// always start Minim first!
minim = new Minim(this);

// specify 512 for the length of the sample buffers
// the default buffer size is 1024
song = minim.loadFile("obedear.mp3", 2048);

song.play();

// an FFT needs to know how
// long the audio buffers it will be analyzing are
// and also needs to know
// the sample rate of the audio it is analyzing
fft = new FFT(song.bufferSize(), song.sampleRate());


}

void draw()
{
colorMode(HSB);  
background(0);
// first perform a forward fft on one of song's buffers
// I'm using the mix buffer
// but you can use any one you like
fft.forward(song.mix);
col++;
if (255<col){col=0;} // loops the color
strokeWeight(8);
stroke(col, 255, 255);

// draw the spectrum as a series of vertical lines
// I multiple the value of getBand by 4
// so that we can see the lines better
for(int i = 0; i < fft.specSize(); i++)
{
line(i-160, height, i-160, height - fft.getBand(i)*2);
}


}

void stop()
{
song.close();
minim.stop();

super.stop();
}

So now what I would like to do is import the song source via a url, like say from soundcloud. The url might look something like this – http://api.soundcloud.com/tracks/46893/stream?client_id=759a08f9fd8515cf34695bf3e714f74b which returns a 128 kbps mp3 stream. I know that JMF 2.1 has support for a URLDataSource for streaming audio, but I’m not sure that JMF and processing/minim/fft will play nicely together. I am really new to java and still not totally familiar with the ins and outs. I’m used to php and html really. I also saw that Soundcloud has Soundmanager2 streaming integration in its javascript SDK. Not sure if this would offer any possible integration solutions.

Ideally I would like to serve up a list of soundcloud songs to the user with php and html, and on click, I would like to play the song with my own visualizer, preferably the one I created in processing. I am having a real tough time trying to get this to work, and my ignorance with java definitely doesn’t help. Any suggestions for the best way to make this happen, if it’s even possible at all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:12:12+00:00Added an answer on June 5, 2026 at 12:12 am

    Holy sh@t! Minim’s loadFile accepts direct urls, like the one I posted above as the filename param! I found the answer here: code.compartmental.net/tools/minim/manual-minim There was so many different documentation links I guess I missed “the manual”. Anyway this is awesome. If anyone wants a cool java-based audio player and visualizer, feel free to steal mine (mostly openly avail code anyway).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this awesome MySQL query that's returning me an awesome array >
What are my options for printing in Silverlight 3? Assume I have this awesome
I have an awesome trouble with Gem. After executing this command: rm -f /usr/local/lib/ruby/gems/1.9.1/cache/*
I have this DependencyProperty which holds an entity with a property that is a
I have recently downloaded the most recent build of this awesome tool WSDL2OBJC from
Hey, first time poster on this awesome community. I have a regular expression in
so I have this JButtons to which I add Icons. The Icons are too
Hey all, I've been messing around with this awesome library on my *nix box,
Ok so at work we have discovered that this method to fetch related data
I have this really awesome idea, but cannot find out if there are any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.