posts tagged with the keyword ‘audio’

2011.04.18

I got into Processing when I saw that it was a way to interface my desktop computer with an Arduino. Since then I’ve been exploring Processing more and seeing what it can do.

The latest excursion has been into audio, and I found a library called minim to play with. Download it, unzip it, and drop the ‘minim’ folder into your ‘libraries’ folder in your Processing folder, and you’re ready to go. Here’s my first experiment.

There’s an example for AudioInput which shows audio waveforms, so I grabbed the example and modified it slightly, I mainly twiddled the numbers a bit for a larger display.

Audio Waveform

Here’s the (slightly modified) code. (1280×800 being the screen size of my MacBook.)

/*
 * WavyLines.pde
 */

import ddf.minim.*;

Minim minim;
AudioInput in;

void setup()
{
  size(1280, 800, P3D);
  minim = new Minim(this);
  minim.debugOn();
  in = minim.getLineIn(Minim.STEREO, 1280);
}

void draw()
{
  background(0);
  stroke(0,255,0);
  // draw the waveforms
  for(int i = 0; i < in.bufferSize() - 1; i++)
  {
    line(i, 250 + in.left.get(i)*150, i+1, 250 + in.left.get(i+1)*150);
    line(i, 550 + in.right.get(i)*150, i+1, 550 + in.right.get(i+1)*150);
  }
}

void stop()
{
  // always close Minim audio classes when you are done with them
  in.close();
  minim.stop();
  super.stop();
}

This code (at least on Mac OS X) runs and expects the sound input to be the built-in mic on the MacBook. This is pretty fun, and my daughter (who plays the trumpet) had a good time making all sorts of strange noises and watching the waveforms that were generated. If you export it from Processing as an application, you can run it full screen with no menubar, etc.

While the mic input is fun, you can also build yourself a little audio visualizer that reacts to what audio your computer is playing. There’s a bit in the manual about Setting the System Mixers, but I just went the Soundflower route here.

Once you’ve got Soundflower installed, you can set up your audio routing…

Sound Out
Sound In

Here’s my sound output and sound input settings in System Preferences.

Fire up Soundflowerbed, and then choose a song in iTunes and our “WavyLines” application should respond appropriately.

Waveform

Here’s what you should get… well, depending on the audio playing. Maybe I can team up with the guys in the Handmade Music Group at the Milwaukee Makerspace and come up with some ways to enhance this into something even cooler.

2011.02.21

Easy Button

I’ve had an easy button lying around the house for a few years now, and remembered reading about how “easy” it was to do a little circuit-bending with it, so I finally got around to doing that…

I did a quick search for some details and found this Easy! blog post, read the bit about a 1Meg pot and figured I’d give it a try. I didn’t have a 1Meg pot on hand (I’m sure the Milwaukee Makerspace probably has a boatload of potentiometers and other parts I could have used, but I built this thing at home) so I ended going to Radio Shack, and while they don’t have breadboards or much other stuff, they do have a few electronic components on hand.

Once you open the Easy Button (screws are under the rubber feet) you can see the main resistor, right under the rubber switch. (It’s in the center in the photo below.)

Easy Open

Take that resistor out and then solder in the wires for the potentiometer. That should be about it for the electrical part of it… (I know, you also see a push-button switch in the top photo, I’ll get to that in a minute.)

Since I tend to just start on these things without any real thought as to how they will be finished—I fly by the seat of my pants a lot—it’s always a learning experience. I had a plan to mount the pot onto the big red button, so I Dremeled the heck out of one of the legs on the bottom side of the button to make it fit, and I then realized it just wouldn’t fit, so I thought I could mount it on the inside plastic housing with a hot glue gun, this worked well, but I took out the piece of metal to do this, and, well the metal piece is what makes the button pop back up, so when I reassembled it, the button didn’t work, as it got stuck. Oh, I also built it wrong, with the button turned 180 degrees, so things didn’t line up, so I Dremeled some more, and that contributed to making the button more useless, even though I tried to put half of the metal shield thing back in. (Hacksawing that thing was a nightmare!)

I had started to document the whole thing with photos, but when it was apparent I did so many things wrong, I abandoned the plan… that said, I’m pretty confident that if I did it again, I’d get it all right the second time. Despite all that, I came up with the idea of putting in the push-button switch, which worked great, as it is much easier to push, and you can use it while twiddling the knob. From the outside you really can’t tell that things didn’t work out the way I planned, so I’ll call that a win.

Here’s a video (Vimeo, blip.tv) of the Easy Button in action… It’s a challenge to get the knob in just the right position, so it’s become a game at our house to see who can get the best sound (or longest bend) out of it.

If you’re totally new to circuit-bending, the Easy Button is a simple project to start with… if you are totally clueless, swing on down to the Milwaukee Makerspace for one of their Electronics and Programming Nights when non-members are welcome, and I’m sure someone there can help you get started.

2011.02.11

Web414 Matt Gauger and I talked about the The Maker Movement at the February 2011 Web414 Meeting. Here’s the audio in case you missed it.

Besides the history of the maker movement, and the modern-day rise of it, we talked about Hackerspaces and Makerspaces, how they may be similar or different, as well as some of the things that go on at a makerspace, and what type of people (and things) you might find at one. We also talked about our own place here in town, the Milwaukee Makerspace.

We really didn’t do a lot of planning for this talk, as we were filling in for someone with another topic who couldn’t make it, but I think that’s fine, and just goes to show that you really don’t need to prepare that much to speak at Web414, as long as you know the subject, and can speak intelligently about it (or fake it like we did) you’re good to go.

You can find the audio at Ourmedia or the Internet Archive, and you can download an MP3 of this talk.

Also, if you want to get all of the audio I publish automagically downloaded podcasting style, subscribe to the feed.

2010.12.23

iPod

I got an iPod for Christmas in 2005. I’m going to review it now. Wait, 2005… Is that a typo!? No…

I’m still using the first iPod I ever got. My wife gave me the 5th generation 30GB iPod with video. And yes, I did review this iPod back in 2007. So what? I’m reviewing it again.

I love this iPod. I have not felt the urge to upgrade or replace it. It works as well as it did 5 years ago when I got it. The interface is simple and easy to use. It does one thing, and it does it well.

I use this iPod almost every day. At least, every day I drive. I’d guess that 98% of its usage is in my car as an audio player connected to my car stereo. I have no desire to get an iPod touch, as I actually think the interface would be much more difficult to use while driving. In my previous review I did mention something about this:

The iPod interface also requires you to look, or at least be able to feel around and guess where to push. Other players (with actual buttons) allow you to memorize where the buttons are and what they do. I could operate my Rio while driving and never take my eyes off the road. This seems to be a big concern with the iPhone as well, it will require visual attention to be able to use it.

Maybe it’s because I’ve been using the old iPod interface for so long, but I feel much more at ease using it to navigate for music playing than I do for my iPhone. It’s all spin and click, no typing or swiping.

I still on occasion have an issue with the iPod not turning off, but it happens seldom enough that it’s not really a bother. Battery life also seems a bit shorter than it used to be, but hey, it is 5 years old and has been used a lot. The battery does hold a charge, so that’s good. The only really bothersome thing is that at some point it got confused and started showing the wrong artwork for some of the files on it. So I’ll be listening to Sleep and it shows album cover art for Cat Power. I’ve gotten used to it. A restore might fix that, but I’ve never had the energy to do one.

I don’t need apps, or wifi, or a camera, or anything except a music player, so as long as it holds out, I’ll keep using the 5th generation 30GB iPod for my automotive audio needs.

(And yes, I do realize that by posting the sentence above, it will somehow cease to function within a matter of weeks. I’ll let you know when that happens.)

2010.12.15

BarCampMilwaukee We’re about two months past BarCampMilwaukee5, and I stumbled across an old blog post of mine titled BarCampMilwaukee2: Ideas which was posted about two months before BarCampMilwaukee2 happened. I hope that made sense…

The post mentions a few things that we wanted to do at the time, and I’m happy to say we’ve (finally) accomplished a few of these things.

Kevin had the following suggestion:

Podcasts. There is no time of year better then when the SXSW podcast feed fires up again. I think video of the whole confab will be too intense and would require some people to be in production all day. That’s no fun. I was thinking of setting up audio recorders and running them non stop. Video of some more interesting visual sessions (read robots) would be neat. In fact, we should have a session room dedicated to video so were not schlepping stuff all over.

Ah yes… Audio! Kevin says “I was thinking of setting up audio recorders and running them non stop.” Well, we came pretty close on that one. The Convo Droid consists of a Zoom H2 Handy Portable Stereo Recorder with an 8GB SD card. It can easily record over 30 hours of high quality audio. I ran it pretty much non-stop during BarCampMadison3 and BarCampMilwaukee5. I captured a ton of audio. In fact, I probably still haven’t processed it all yet. (We need to define a process for BarCampMilwaukee6 to mark the beginning/end of a session, and do a better job of tagging the audio.) For BarCampMilwaukee5 we also had Gabe Wollenburg and Joshua Cowles capturing audio. Most of it showed up on the BarCampMilwaukee Blog (I also set up my own site to allow for automagic download “podcast style” see my audio tag for more info.)

Kevin also mentions video… a bit more resource intensive than audio, but still doable. For BarCampMadison3 I had two MiniDV video cameras, and a handful of blank tapes. I managed to capture a number of sessions, which you can find by browsing through the barcampmadison3 tag. I would have recorded more, but I ran out of tapes… I was able to do a lot of video capture at BarCampMadison3 because I wasn’t really involved in organizing or running it, so I was free to capture. For BarCampMilwaukee5, I was too involved in running things to deal with setting up cameras and swapping tapes.

If all goes as planned, we’ll have at least one room in Bucketworks wired up for quality audio/video capture at the push of a button before BarCampMilwaukee6 rolls around…

And if you’re wondering why we care so much about capturing and publishing the audio and video from BarCamp, it goes to the core of what the event is all about sharing knowledge, not just with the people at the event, but the people who couldn’t make it, or don’t know what BarCamp is yet. Share what you know… Learn what you don’t. :)

« Older Entries | Newer Entries »

buy the button:

But The Button

recently at:


top recent artists: