Live Coding in Ruby?

I was wondering if anyone here has run across references for Live Coding
in Ruby. I have kind of wanted to play around with Live Coding but dont
really want to work with some other language to do it. I’d rather play
in ruby :slight_smile: I found a midi library for ruby but it is only for
reading/generating tracks, not really for generating the sound on the
fly. So does anyone have an idea where I can get started with this?

Thanks,

-Alex

You mean like using IRB?
Seriously, I think you’re looking for irb. It comes with ruby standard.
Just type irb, you’ll get a window. Type code, it’ll run immediately.
Mutate your classes, muck with them, run their methods, push and pop
and print them out, etc etc, all live.

I’m almost positive that’s what you’re looking for

–Kyle

I know about IRB and it is probably part of the answer…

From the WikiPage:

Live coding is the name given to the process of writing software in
realtime as part of a performance. (i.e. a musical performance)

http://en.wikipedia.org/wiki/Live_coding

I am looking for a way to play sounds at different frequencies with
different timing and delays and such. I’m not very musical, but I
thought it would fun to play around with in Ruby. I am interested in
directions to look for generating/outputting audio with Ruby and
depending on what I find, possibly make some kind of useful library of
live coding functions for use in IRB.

Sorry if my request was originally unclear.

Thanks,
-Alex

Hi

How about rjb(ruby java bridge) + jsyn ?

rjb
http://rjb.rubyforge.org/

jsyn
http://www.softsynth.com/jsyn/

as a reference, but unfortunately only japanese
http://cutuplog.cocolog-nifty.com/videolog/2005/09/rubyruby_d914.html

2007/5/8, Alex C. [email protected]:

On 5/7/07, Alex C. [email protected] wrote:


Posted via http://www.ruby-forum.com/.

Hi! I recently started a live coding project using JRuby. I think ti
woudl work with RJB to if I put some effort into it. Currently you
can play notes with their MIDI number. You can also only play one
note/note loop at a time. My temporary solution is have many IRB
windows open that connect to the DRb server.

I just wrote this last night, so it’s very rough. I hope to get more
stuff done on it this week.

Code is at http://pastie.caboo.se/59745

On 5/7/07, Jeremy McAnally [email protected] wrote:

I think he means for electronic music, but I dont know of anything for
that (even though I’ve never really looked either).

–Jeremy

oOoh… So find a midi library, require ‘some/midilibrary’ and and go to
it :wink:

Alex C. wrote:

I was wondering if anyone here has run across references for Live Coding
in Ruby. I have kind of wanted to play around with Live Coding but dont
really want to work with some other language to do it. I’d rather play
in ruby :slight_smile: I found a midi library for ruby but it is only for
reading/generating tracks, not really for generating the sound on the
fly. So does anyone have an idea where I can get started with this?

Thanks,

-Alex

http://www.vimeo.com/793380

I think he means for electronic music, but I dont know of anything for
that (even though I’ve never really looked either).

–Jeremy

On 5/7/07, Kyle S. [email protected] wrote:


http://www.jeremymcanally.com/

My free Ruby e-book:
http://www.humblelittlerubybook.com/book/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/

Alex C. wrote:

really want to work with some other language to do it. I’d rather play
in ruby :slight_smile: I found a midi library for ruby but it is only for
reading/generating tracks, not really for generating the sound on the
fly.

Archaeopteryx perhaps :

http://github.com/gilesbowkett/archaeopteryx/wikis/home

It’s a live performance orientated MIDI generation tool. Have a look at
some of the screencasts.

Chris

Hello Alex,

well you maybe heard about OpenAL project (same as OpenGL, just the
‘A’
stands for Audio).

Ruby openAL :
http://rubyforge.org/projects/ruby-openal/

OpenAL itself (important because of documentation):
http://connect.creativelabs.com/openal/default.aspx

I did not tried it. All I know is that OpenAL is very good thing and I
found
that ruby project. I hope it will help you.

Cheers,

V.

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