Sound Library?

I’m fairly new to Ruby and programming in general. I wanted to make a
program using the BlinkenLights library(which I already have and know
how to use) that would make the LEDs pulsate to the bass of the music. I
already have a few other sound libraries but all they do is play sound
and detect tags. Is there any libraries or anyway in code I could detect
audio playing?

On Jan 6, 2008, at 7:40 PM, Jono Oshea wrote:

I’m fairly new to Ruby and programming in general. I wanted to make a
program using the BlinkenLights library(which I already have and know
how to use) that would make the LEDs pulsate to the bass of the
music. I
already have a few other sound libraries but all they do is play sound
and detect tags. Is there any libraries or anyway in code I could
detect
audio playing?

What library have you found that plays sound?

I’m fairly new to Ruby and programming in general. I wanted to make a
program using the BlinkenLights library(which I already have and know
how to use) that would make the LEDs pulsate to the bass of the music. I
already have a few other sound libraries but all they do is play sound
and detect tags. Is there any libraries or anyway in code I could detect
audio playing?

Wow, that’s a cool library. Are you talking about live audio? If
you’re on OS X, you can probably call down to the CoreAudio APIs using
either Ruby DL or RubyCocoa, but it won’t necessarily be a picnic.


Giles B.

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

On Jan 6, 2008, at 6:40 PM, Jono Oshea wrote:

You’ll probably need a C/C++/Obj-C library to do this fast enough to
appear to be in sync.
You might however simply consider looking into one of the game
libraries.
rubygame
gosu
etc…
they don’t just do games,
they do sound and animation and such well.

You might look at the C code for VLC player at videolan.org
Pretty slick software, crossplatform, and includes some minimal audio
visualizer/analyzer.

Jono Oshea wrote:

P.S.(To thefed) I was using the win32 sound library. I’m pretty sure it
comes with ruby if not its on ruby

Sorry somtimes I’m dumb and submit things before I’m down typing. It’s
on rubyforge**

On Jan 6, 2008, at 11:40 PM, John J. wrote:

You’ll probably need a C/C++/Obj-C library to do this fast enough
to appear to be in sync.
You might however simply consider looking into one of the game
libraries.
rubygame
gosu
etc…
they don’t just do games,
they do sound and animation and such well.

I’m trying to use rubygame right now, but it keeps giving me a
“warning: bad filetype” error for all my audio files.

thefed wrote:

On Jan 6, 2008, at 11:40 PM, John J. wrote:

You’ll probably need a C/C++/Obj-C library to do this fast enough
to appear to be in sync.
You might however simply consider looking into one of the game
libraries.
rubygame
gosu
etc…
they don’t just do games,
they do sound and animation and such well.

I’m trying to use rubygame right now, but it keeps giving me a
“warning: bad filetype” error for all my audio files.

I can’t even install the gem. I tried through the repository and locally
but I keep getting some error about it not being able to build native
extensions or something?

On Jan 8, 2008, at 1:38 AM, Jono Oshea wrote:

they don’t just do games,
they do sound and animation and such well.

I’m trying to use rubygame right now, but it keeps giving me a
“warning: bad filetype” error for all my audio files.

I can’t even install the gem. I tried through the repository and
locally
but I keep getting some error about it not being able to build native
extensions or something?

You have to have like 3 libs installed. See the rubyforge page.

John J. wrote:

On Jan 6, 2008, at 6:40 PM, Jono Oshea wrote:

You’ll probably need a C/C++/Obj-C library to do this fast enough to
appear to be in sync.
You might however simply consider looking into one of the game
libraries.
rubygame
gosu
etc…
they don’t just do games,
they do sound and animation and such well.

You might look at the C code for VLC player at videolan.org
Pretty slick software, crossplatform, and includes some minimal audio
visualizer/analyzer.

Thanks. I’ll look into all of that.

P.S.(To thefed) I was using the win32 sound library. I’m pretty sure it
comes with ruby if not its on ruby

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs