Sound Library?

J

Jono Oshea

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?
 
T

thefed

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?
 
G

Giles Bowkett

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 Bowkett

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

John Joyce

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?
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.
 
J

Jono Oshea

John said:
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
 
J

Jono Oshea

Jono said:
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**
 
T

thefed

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.
 
J

Jono Oshea

thefed said:
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?
 
T

thefed

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,921
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top