Live Coding in Ruby?

A

Alex Ciarlillo

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 :) 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
 
K

Kyle Schmitt

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
 
J

Jeremy McAnally

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

--Jeremy

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


--
http://www.jeremymcanally.com/

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

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

Kyle Schmitt

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 ;)
 
A

Alex Ciarlillo

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
 
C

Chris Carter

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 :) 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

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
 
M

Macario Ortega

Alex said:
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 :) 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


 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top