Hi,
ah, Lua is so much fun. Attached is some coroutine scheduling to create lots of bullets as an excercise for the bullet hell Ikaruga-style shmup I'm going to write for Pd/Gem in 2008. Or maybe not. Anyway, pdlua required, get it from goto10.org
Frank Barknecht _ ______footils.org__
Hum, exactly where on goto10 is the stuff for pdlua? I looked and there doesn't seem to be an obvious link.
Thanks,
Mike
On 10/30/07, Frank Barknecht fbar@footils.org wrote:
Hi,
ah, Lua is so much fun. Attached is some coroutine scheduling to create lots of bullets as an excercise for the bullet hell Ikaruga-style shmup I'm going to write for Pd/Gem in 2008. Or maybe not. Anyway, pdlua required, get it from goto10.org
Ciao
Frank Barknecht _ ______footils.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Mike McGonagle wrote:
Hum, exactly where on goto10 is the stuff for pdlua? I looked and there doesn't seem to be an obvious link.
development version:
svn co https://devel.goto10.org/svn/maximus/pdlua pdlua
or browse:
https://devel.goto10.org/listing.php?repname=maximus&path=%2Fpdlua%2F&am...
or tarball of latest release:
https://devel.goto10.org/dl.php?repname=maximus&path=%2Freleases%2Fpdlua...
Thanks,
Claude
Hi List...
I would be interested to know as well ;-)
Back on the list ;-)
What could pdlua be good for ? Or better asked - and i would
appreciate an answer for non-nerds - what reason could there be for
using another extension language within pd ?? For what kind of
problems ?
What is the difference to for examples python, or writing a specifi
external ???
I am just curious....if it is something worth learning for me
bye.....have a good time
Luigi
Am 30.10.2007 um 23:26 schrieb Mike McGonagle:
Hum, exactly where on goto10 is the stuff for pdlua? I looked and there doesn't seem to be an obvious link.
Thanks,
Mike
On 10/30/07, Frank Barknecht fbar@footils.org wrote:
Hi,
ah, Lua is so much fun. Attached is some coroutine scheduling to create lots of bullets as an excercise for the bullet hell Ikaruga-style shmup I'm going to write for Pd/Gem in 2008. Or maybe not. Anyway, pdlua required, get it from goto10.org
Ciao
Frank Barknecht _
______footils.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Help the Environment, Plant a Bush back in Texas!
"I place economy among the first and most important republican virtues, and public debt as the greatest of the dangers to be feared. To preserve our independence, we must not let our rulers load us with perpetual debt." -- Thomas Jefferson, third US president, architect and author
(1743-1826)"Give Peace a Chance" -- John Lennon (9 October 1940 – 8 December
1980)Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician
If you think you can, or you think you can't, you are probably right. —Mark Twain
"Art may imitate life, but life imitates TV." Ani DiFranco
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Hallo, Luigi Rensinghoff hat gesagt: // Luigi Rensinghoff wrote:
What could pdlua be good for ?
Well, scripting can be used to easily overcome some limitations of Pd. pdlua or whatever scripting language could be used to replace a lot of externals. One Lua fits all. When used to replace abstractions, it may even be faster. (I'm considering to implement list-abs alternatively as Lua classes, it would become much, much faster.)
Or better asked - and i would
appreciate an answer for non-nerds - what reason could there be for
using another extension language within pd ??
Are you using *any* extension language in Pd?
If not, lua may be the easiest start: It's easy to compile, compiled versions could be statically compiled, the language is fully documented with a wonderful book (see www.lua.org).
What is the difference to for examples python, or writing a specifi
external ???
Lua and Python are quite similar, and I like them both. Lua is faster than Python (and of course faster than Tcl, too), but Lua lacks the huge amount of libraries that come with Python.
One nice thing about Lua is, that it's written in just ANSI-C. It could even be included in Miller's Pd as a general scripting language without any dependencies. (Though pdlua's choice of GPL does not quite fit the BSD/MIT tradition of Pd and Lua.) Pd immediatly would get an important data type that is currently missing: hash/dictionary/table. 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. Pd-extended could include pdlua as a static build without adding a single dependency.(The Lua library really is tiny - about 200k, I even run Lua apps on my Nintendo DS.)
Lua and Pd seem to share a similar mindset in some parts. For example both come with a complete, but rather small set of core features to limit the number of dependencies. Additional features are developed outside of the core.
Language freaks (nerds) can find some nice features as well. The coroutines feature that started this thread is an example, closures and recursion are others.
Well, but above all it's fun to write Lua programs. Why, that's hard to explain.
Frank Barknecht _ ______footils.org__
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'.
Nice promotion btw. Thanks.
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.
Frank Barknecht _ ______footils.org__
This looks like a "poor man's" Supercollider. ;)
On 11/1/07, Frank Barknecht fbar@footils.org wrote:
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__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 01/11/2007, at 10.51, Frank Barknecht wrote:
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: (snip)
Ah, ok. It was especially the 'BibTex fashion' that got me curious.
Now i know what you mean by 'fashion'. I think. There is no nesting
in BibTeX for what i know of though.
All that blah blah said i think what your write about the structured-
ness is a good thing, as it allows for a (BibTeX kinda) way of
handling/doing multi diminutional arrays even with strings as keys.
Instruments[bass][tb303][cutoff] = 10 Instruments[bass][tb303][cf] = 440 Instruments[drumm] = drummset1
Patterns[p1] = "1 0 0 0 1 0 0 1" Patterns[p2] = "0 0 1 0 0 0 1 0"
Score[bass] = p1 Score[drum] = p2
Though the idea is the same, the Poor Mans SC is properly more human
readable. Hope you post your example somewhere when you get to it.
Best, Steffen
Hallo, Steffen Juul hat gesagt: // Steffen Juul wrote:
Ah, ok. It was especially the 'BibTex fashion' that got me curious.
Now i know what you mean by 'fashion'. I think. There is no nesting
in BibTeX for what i know of though.All that blah blah said i think what your write about the structured- ness is a good thing, as it allows for a (BibTeX kinda) way of
handling/doing multi diminutional arrays even with strings as keys.
- Which in a PHP fashion could be like:
Instruments[bass][tb303][cutoff] = 10 Instruments[bass][tb303][cf] = 440 Instruments[drumm] = drummset1
Patterns[p1] = "1 0 0 0 1 0 0 1" Patterns[p2] = "0 0 1 0 0 0 1 0"
Score[bass] = p1 Score[drum] = p2
A nice thing with Lua would/could be that many entries actually could be code. For example one could define harmonic voices in the config file as functions like:
function major7(n) return {n, n + 4, n + 7, n + 10} end
and use this with the instruments:
sax(major7(60))
or
c = major7(60) sax.play(c) trumpet.play(c) c = minor7(62) sax.play(c) ...
I don't know if it makes sense to write a general purpose file loader around this, but I plan to do some examples of this approach.
Frank Barknecht _ ______footils.org__
On Wed, 2007-10-31 at 21:11 +0100, Frank Barknecht wrote:
If not, lua may be the easiest start: It's easy to compile, compiled versions could be statically compiled, the language is fully documented with a wonderful book (see www.lua.org).
[snip]
Language freaks (nerds) can find some nice features as well. The coroutines feature that started this thread is an example, closures and recursion are others.
Damn you Frank, you just made me want to go and learn YAL (Yet Another Language)...!
That's another couple of weeks (or maybe years) of my life down the drain ;-)
Jamie