[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Sound Library?

Jono Oshea

1/7/2008 12:41:00 AM

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?
--
Posted via http://www.ruby-....

8 Answers

fedzor

1/7/2008 1:57:00 AM

0


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?

Giles Bowkett

1/7/2008 3:10:00 AM

0

> 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.bl...
Blog: http://gilesbowkett.bl...
Portfolio: http://www.gilesg...
Tumblelog: http://giles....

John Joyce

1/7/2008 4:41:00 AM

0


On Jan 6, 2008, at 6: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?
> --
> Posted via http://www.ruby-....
>
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

1/7/2008 6:06:00 AM

0

John Joyce 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
--
Posted via http://www.ruby-....

Jono Oshea

1/7/2008 6:08:00 AM

0

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**
--
Posted via http://www.ruby-....

fedzor

1/7/2008 8:18:00 PM

0


On Jan 6, 2008, at 11:40 PM, John Joyce 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.

Jono Oshea

1/8/2008 6:39:00 AM

0

thefed wrote:
> On Jan 6, 2008, at 11:40 PM, John Joyce 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?
--
Posted via http://www.ruby-....

fedzor

1/8/2008 9:48:00 PM

0


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

> thefed wrote:
>> On Jan 6, 2008, at 11:40 PM, John Joyce 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?

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