technically, this is for mac users only.
summary
(1) realtime sound input
(2) soundflower
(3) jack os x
(4) recommendations
(5) freebies
(6) realtime recordings
realtime sound input
when you work with sound and you need to do realtime analysis like fft or measuring sound levels, sometimes you just wish to be able to pick up internal sounds that are coming from internal sound sources like itunes. usually what i do is, i use the build in microphone of my macbook to feed the sound input back into my machine, which i would then use with one of the sound libraries like sonia, minim, or ess to process the incoming sound. the big fall down with this solution, using the mic input, is that sound is hard to calibrate and you also have all the surround noise in the input stream.
soundflower
a better solution is to use soundflower from cycling74, the makers of max/msp. soundflower is free software, an inter-application audio routing utility for mac osx. “Soundflower is a virtual audio device that provides an easy and simple way for Max/MSP and other applications to send and receive audio to and from any other application. Running with very low latency and cpu usage, Soundflower allows each client application to use its usual buffer size.”
the installation is pretty much straight forward. download the package, read the readme till the end. to use soundflower, choose soundflower as the output in the system preferences and also choose soundflower as the input. if you have done so, you wont hear any sound coming out of your speakers anymore when playing. therefore cycling74 comes with soundflowerbed, a menubar extension (double-click and see the little flower in the menu bar). from the pulldown menu of soundflowerbed choose build-in output to route the sound to both, the speakers and the soundflower channel.
downer. soundflower and processing sound libraries. so far i only got sonia to work with soundflower. minim and ess however still pick up the input from the microphone, although the sound input is set to soundflower 2ch in the system preferences.
jack os x
jack osx is an OS X implementation of Jack, and it installs everything necessary to take full advantage of Jack on OS X. the jack server, the jack audio router, the jack audio plugins, the jackPilot application.
i didnt have the time to figure things out with jack os x, i basically got the same results as with soundflower in regard to the processing libraries.
recommendations
when it comes to routing internal sound sources to applications e.g. processing, i recommend to use soundflower. use soundflower 2ch as input and output, with soundflowerbed route the output to the build-in output so you can hear what is playing. in processing use the sonia library for analysis like fft.
if you feel comfortable with sound-synthesis applications like supercollider or chuck then you may write your own realtime analyzer and route the raw values over to processing via osc, use the oscP5 library for osc support in processing.
freebies
other freebies apps to look into would be soundsource and linein from rogueamoeba.
“SoundSource is a tiny tool for OS X enabling you to switch your audio input and output sources with a single click. And with the System setting, you can transfer system beeps to a secondary audio source so you won’t be disturbed.”
“LineIn is a simple application for OS X to enable the soft playthru of audio from input devices. In simpler terms, you can use LineIn to play sound coming in through a microphone or any other device plugged in to your Sound In port.”
realtime recording
to record a live audio stream from your mac machine, there is wiretap (it used to be free, now you would need to invest a few bucks), or audio hijack pro.