# Ruby sound library RUDL and ruby 1.9

**URL:** <https://www.ruby-forum.com/t/ruby-sound-library-rudl-and-ruby-1-9/185459>\
**Category:** Ruby\
**Created:** [March 20, 2010, 2:01pm UTC](https://www.ruby-forum.com/t/ruby-sound-library-rudl-and-ruby-1-9/185459 "2010-03-20T14:01:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![G\_Brandon\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/76d3ee/32.png) [@G\_Brandon\_H](https://www.ruby-forum.com/u/G_Brandon_H)\
**Post date:** [March 20, 2010, 2:01pm UTC](https://www.ruby-forum.com/t/ruby-sound-library-rudl-and-ruby-1-9/185459/1 "2010-03-20T14:01:58Z")

</div>

hello,  
I am trying to obtain a sound library so I can write morse code practice  
applications in ruby, I came across RUDL but can’t seem to get it to  
build on my machine. Here’s the output I get when I build it:  
[http://pastie.org/877083](http://pastie.org/877083)

I followed the dependency instructions that came with the library, and I  
see there seems to be a patch necessary to build it. Either I don’t  
understand how to apply the patch, or there’s another bug.

Anyone got this working, or can you recommend a gem/lib that will let me  
make noise w/ ruby?  
bonus pretzels if it works in jruby!

thanks,  
GB Hoyt

---

<div class="post-metadata">

**Author:** ![G\_Brandon\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/76d3ee/32.png) [@G\_Brandon\_H](https://www.ruby-forum.com/u/G_Brandon_H)\
**Post date:** [March 20, 2010, 2:08pm UTC](https://www.ruby-forum.com/t/ruby-sound-library-rudl-and-ruby-1-9/185459/2 "2010-03-20T14:08:59Z")

</div>

G Brandon H. wrote:

[…]

> I came across RUDL but can’t seem to get it to build on my  
> machine. Here’s the output I get when I build it:  
> [http://pastie.org/877083](http://pastie.org/877083)

See [http://aur.archlinux.org/packages.php?ID=24767](http://aur.archlinux.org/packages.php?ID=24767)

ruby-1.9.1.patch is the patch you need to build rudl-0.8. You may  
need the gcc4.patch from that page as well, at least on Arch  
Linux.

---

<div class="post-metadata">

**Author:** ![G\_Brandon\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/76d3ee/32.png) [@G\_Brandon\_H](https://www.ruby-forum.com/u/G_Brandon_H)\
**Post date:** [March 22, 2010, 10:00am UTC](https://www.ruby-forum.com/t/ruby-sound-library-rudl-and-ruby-1-9/185459/3 "2010-03-22T10:00:00Z")

</div>

On Sat, Mar 20, 2010 at 7:42 AM, G Brandon H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Anyone got this working, or can you recommend a gem/lib that will let me  
> Â make noise w/ ruby?  
> bonus pretzels if it works in jruby!

There’s a full set of sound libraries shipped with every Java runtime,  
and they’re as easy to use from JRuby as any Ruby library (with  
nothing to build or install either!)

Here’s a couple demos using the midi support in the JRE from Ruby:

> **[jruby-demos/midi at master · jruby/jruby-demos](https://github.com/jruby/jruby-demos/tree/master/midi/)**
>
> master/midi/

I’ve not used the other sound libraries (basic formats built-in, many  
third-party libs for other sound formats), but pretty much anything  
you want to play ought to have a library for it.

- Charlie
