Is it possible to, with the use of Processing and Minim (or other libraries / languages), create an AudioInput like object to monitor any and all audio output?

For example I am working on a visualizer of sorts, but would like to allow another application to be playing the music rather than using the Playback class or something of the like.