[PD] Fun with Lua coroutines

Frank Barknecht fbar at footils.org
Thu Nov 1 10:51:53 CET 2007


Hallo,
Steffen Juul hat gesagt: // Steffen Juul wrote:

> On 31/10/2007, at 21.11, Frank Barknecht wrote:
> 
> >Lua could also be used as a very powerful "textfile" replacement, that
> >would allow more structured score files in a BibTex fashion. Wait for
> >an example for this coming soon.
> 
> I'm really looking forward to see what you mean by 'structured score  
> files in a BibTex fashion'.

I mean something like this: http://www.lua.org/pil/10.1.html of course
adapted to music, so a datafile could look like: 

    Instruments{
        bass = tb303{
            cutoff = 10,
            cf = 440
        },
        drum = "drumset1"
    }

    Patterns{
        p1 = "1 0 0 0 1 0 0 1",
        p2 = "0 0 1 0 0 0 1 0",
    }

    Score{
       bass.play(p1),
       drum.play(p2)
    }

or so.

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__




More information about the Pd-list mailing list