[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Live Coding in Ruby?

Alex Ciarlillo

5/7/2007 7:14:00 PM

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

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

9 Answers

Kyle Schmitt

5/7/2007 7:49:00 PM

0

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

Jeremy McAnally

5/7/2007 8:07:00 PM

0

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 Schmitt <kyleaschmitt@gmail.com> wrote:
> 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.jeremymca...

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

My blogs:
http://www.mrneigh...
http://www.rubyinpra...

Kyle Schmitt

5/7/2007 8:40:00 PM

0

On 5/7/07, Jeremy McAnally <jeremymcanally@gmail.com> 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 ;)

Alex Ciarlillo

5/8/2007 5:15:00 AM

0

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/L...

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

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

daisuke watanabe

5/8/2007 5:45:00 AM

0

Hi

How about rjb(ruby java bridge) + jsyn ?

rjb
http://rjb.ruby...

jsyn
http://www.softsynth...

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

2007/5/8, Alex Ciarlillo <ac251404@ohio.edu>:
> 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/L...
>
> 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
>
> --
> Posted via http://www.ruby-....
>
>

Chris Carter

5/8/2007 11:56:00 AM

0

On 5/7/07, Alex Ciarlillo <ac251404@ohio.edu> 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 :) 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
>
> --
> Posted via http://www.ruby-....
>
>

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

--
Chris Carter
concentrationstudios.com
brynmawrcs.com

Macario Ortega

11/11/2008 4:37:00 AM

0

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

Vladimir Fekete

11/11/2008 6:16:00 AM

0

Hello Alex,

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

Ruby openAL :
http://rubyforge.org/projects/ru...

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

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.


On Tue, Nov 11, 2008 at 01:36:57PM +0900, Macario Ortega wrote:
> Alex Ciarlillo 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 :) 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....
> --
> Posted via http://www.ruby-....
>
>

Chris Lowis

11/11/2008 11:03:00 AM

0

Alex Ciarlillo wrote:
> 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.

Archaeopteryx perhaps :

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

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

Chris
--
Posted via http://www.ruby-....