Re: [PD] lillypond

2008-04-04 Thread robcanning
Jaime Oliver wrote:
 Hello,

 Does any of you know of a way of making lillypond files from pd?

 best,

 J


hi jamie,
i have been working like this with pd for a couple of years now and have 
found FOMUS to be the best solution
cheers
rob
 -- 
 Jaime E Oliver LR

 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 www.realidadvisual.org/jaimeoliver 
 http://www.realidadvisual.org/jaimeoliver
 www-crca.ucsd.edu/ http://www-crca.ucsd.edu/
 www.realidadvisual.org http://www.realidadvisual.org

 9168 Regents Rd. Apt. G
 La Jolla, CA 92037
 USA
 

 ___
 PD-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
   


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] help with widgets

2008-03-18 Thread robcanning
hello,

i have just started using toxy widgets and need one basic bit of help:

i create a widget:
widget popup menuename$1

when this is created it is created with the abstractions $1argument i.e. 
the widget is now called menuename123 instead of menuename$1

i want to create an abstraction with a variable widget name
how can i send a message to change the name of the widget?

thanks

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] no 0.41.1 extended debian testing in autobuild

2008-03-11 Thread robcanning
hi,

there doesn't seem to have been a extended debian testing .deb created 
in autobuild since 20080307

Pd-0.41.1-extended-20080307-debian-testing-i386.deb 
http://autobuild.puredata.info/auto-build/2008-03-07/Pd-0.41.1-extended-20080307-debian-testing-i386.deb

is there a good reason for this or is something broken

thanks

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] no 0.41.1 extended debian testing in autobuild

2008-03-11 Thread robcanning
ok i checked the logs and saw various errors in the file so am not quite 
sure who to gently poke..so, i'll very tentatively gently poke yves 
though this may be mistargeted...

here is the end of the log from 
http://autobuild.puredata.info/auto-build/2008-03-08/logs/2008-03-08_06.29.55_linux_debian-testing-i386_pd-main+libs_run-automated-builder.txt

install: cannot stat 
`/home/pd/auto-build/pd-main+libs/externals/pidip/*.pd_linux': No such file or 
directory
make[2]: *** [pidip_install] Error 1
make[2]: Leaving directory `/home/pd/auto-build/pd-main+libs/externals'
make[1]: *** [externals_install] Error 2
make[1]: Leaving directory `/home/pd/auto-build/pd-main+libs/packages'
make: *** [install] Error 2
upload specs linux_make . deb
Uploading /home/pd/auto-build/pd-main+libs/packages/linux_make/./Pd*.deb
ls: /home/pd/auto-build/pd-main+libs/packages/linux_make/./Pd*.deb: No such 
file or directory

thanks

rob c



Hans-Christoph Steiner wrote:

 You can check the build log to find out, there is a build log for each 
 build.  It will be there if the build ran.

 http://autobuild.puredata.info/auto-build/2008-03-11/logs/2008-03-11_06.29.54_linux_debian-testing-i386_pd-main+libs_run-automated-builder.txt
  


 Usually it's because something got broken.  You can politely poke 
 whoever broke it, so that it gets fixed :)

 .hc

 On Mar 11, 2008, at 7:00 AM, robcanning wrote:

 hi,

 there doesn't seem to have been a extended debian testing .deb 
 created in autobuild since 20080307

 Pd-0.41.1-extended-20080307-debian-testing-i386.deb 
 http://autobuild.puredata.info/auto-build/2008-03-07/Pd-0.41.1-extended-20080307-debian-testing-i386.deb
  


 is there a good reason for this or is something broken

 thanks

 rob c



  


 Man has survived hitherto because he was too ignorant to know how to 
 realize his wishes.  Now that he can realize them, he must either 
 change them, or perish.-William Carlos Williams






___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] vbap define_loudspeakers messages

2008-03-08 Thread robcanning
Georg Holzmann wrote:
 Hallo!


 There are also ambisonic externals from IEM and Jasch, for better 
 spatialization.

 I would not say better ;) - it depends ...

 Maybe a Spatialisation with Pure-Data page would be nice - is there 
 something like that out there already? a  web page, academic papers, 
 performance documentation, patches??

 Last year I did a workshop on this, you can find the files here:
 http://grh.mur.at/misc/PdSpatialization.tar.gz

 LG
 Georg


great stuff! thanks for sharing :)

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] iem_ambi in pd-extended 0.41

2008-03-08 Thread robcanning
hi,

[import iem_ambi]

[ambi_decode3] doesn't get created

iem_ambi.pd_linux doesn't exist

thanks

rob c

///
Debian Testing
Pd version 0.41-1extended-20080227
compiled 07:30:28 Feb 27 2008
///

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pvoc~.pd_linux from pvoc~.c

2008-03-07 Thread robcanning
hi,
can anyone tell me how i get pvoc~.pd_linux from pvoc~.c
i cant find a makefile and dont know how to write one
i'm on debian testing and Pd version 0.41-1extended-20080227
thanks
rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] vbap define_loudspeakers messages

2008-03-07 Thread robcanning
hi,

is it possible to send messages to the define_loadspeakers with the 
speaker definitions

i would like to manipulate my spatialisation routines by manipulating 
the speaker definitions but don't want to create new instances of the 
[define_loudspeaker] each time

any suggestions?

thanks

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] vbap define_loudspeakers messages

2008-03-07 Thread robcanning


---BeginMessage---

Derek Holzer wrote:
hi derek,
Kind of an odd way to do it...move locations of the speakers instead 
of the locations of the sounds ;-)
i like it, its kinda fun - you can have a sound orbiting then jumble up 
the speaker definitions in various ways
not very elegant perhaps but simple and can give some nice results with 
minimum fuss
would be interested to hear how other people create spatialisation 
routines/choreographies...


One thing I would watch our for is if redefining the speakers 
interrupts the DSP chain or not, in which case you'd get some dropouts 
every time you did it. You might want to check that out before 
proceeding.
yes this happens, thats why i was wondering if it was possible to to 
send a message rather than initiating a new instance

not that this may help, just wanted to give it a try...

cheers

rob c


best!
d.

PS... some multichannel inspiration now showing at the Hamburger 
Bahnhohf, Berlin:


http://www.hamburgerbahnhof.de/sonder/08/leitner0108/leitnere.html


robcanning wrote:

hi,

is it possible to send messages to the define_loadspeakers with the 
speaker definitions


i would like to manipulate my spatialisation routines by manipulating 
the speaker definitions but don't want to create new instances of the 
[define_loudspeaker] each time


any suggestions?






---End Message---
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] vbap define_loudspeakers messages

2008-03-07 Thread robcanning
Derek Holzer wrote:
 On another note, something I've never liked about vbap is this hole 
 in the middle problem. Pan a sound from left to right through the 
 middle of your room, rather than around the edge of the circle. Hear 
 how everything jumps from left to right when you cross the zero point 
 at the middle? That's the part I hate. I guess it's the inherent 
 problem with cartesian vs polar coordinate systems.

 best,
 d.

i wonder are there any ports of any of these objects around
http://www.maxobjects.com/?request=surround

vbapan~ seems to allow either cartesian or polar coordinate systems

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pvoc~.pd_linux from pvoc~.c

2008-03-07 Thread robcanning

Hans-Christoph Steiner wrote:

 cd pure-data/trunk/externals
 make vbap
hi hc,

make vbap to build pvoc~? really?

 Or its included in Pd-extended.
i'm on debian Pd version 0.41-1extended-20080227 and the pvoc~.pd_linux 
isn't here

i have a C file in:

/usr/local/lib/pd/extra/bsaylor/pvoc~.c

and also

/usr/local/lib/pd/extra/fftease/pvoc~.c

maybe i am missing something?

thanks

rob c

 .hc

 On Mar 7, 2008, at 6:57 AM, robcanning wrote:

 hi,
 can anyone tell me how i get pvoc~.pd_linux from pvoc~.c
 i cant find a makefile and dont know how to write one
 i'm on debian testing and Pd version 0.41-1extended-20080227
 thanks
 rob c

 ___
 PD-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list



  


 I have the audacity to believe that peoples everywhere can have three 
 meals a day for their bodies, education and culture for their minds, 
 and dignity, equality and freedom for their spirits.  - Martin 
 Luther King, Jr.






___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] vbap define_loudspeakers messages

2008-03-07 Thread robcanning
Hans-Christoph Steiner wrote:

 On Mar 7, 2008, at 9:20 AM, robcanning wrote:

 Derek Holzer wrote:
 On another note, something I've never liked about vbap is this hole
 in the middle problem. Pan a sound from left to right through the
 middle of your room, rather than around the edge of the circle. Hear
 how everything jumps from left to right when you cross the zero point
 at the middle? That's the part I hate. I guess it's the inherent
 problem with cartesian vs polar coordinate systems.

 best,
 d.

 i wonder are there any ports of any of these objects around
 http://www.maxobjects.com/?request=surround

 vbapan~ seems to allow either cartesian or polar coordinate systems


 They are listed there as pd extenrals also, try it out.  If there is 
 source, it's usually pretty easy to port Max externals to Pd.  There 
 are some ambi ones there too.

 http://www.maxobjects.com/?v=librariesid_library=116requested=surroundoperateur=id_plateforme=
  


 There are also ambisonic externals from IEM and Jasch, for better 
 spatialization.


great! i didn't realise this stuff was there ... easy to get lost when 
there are just so many externals!

I'll have a look at this stuff.

Maybe a Spatialisation with Pure-Data page would be nice - is there 
something like that out there already? a  web page, academic papers, 
performance documentation, patches??

many thanks

rob c










___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd-0.41-2.msw.exe is missing [expr]

2008-03-02 Thread robcanning

 Bug:  If you install Pd-0.41-2.msw.exe on a fresh computer, it does  
 not work.  It's missing [expr].
  
on linux you have to add [expr] to the path, i don't remember having to 
do this on previous versions
thanks
rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [PD-dev] SQLite for PD v0.0

2008-02-14 Thread robcanning

 Basically, I have a set of abstractions that I have been developing 
 along with the externals (some for SQL, and some for other things). 
 But I am seeing my stuff as kind of a self contained library that I 
 have been using for my own projects.

hi mike,

i have looking at doing something with pdlua and luasql for database 
management in pd - i was just interested in seeing your externals and 
what they do in case i am wasting my time reinventing something you have 
already made,
do your externals write to sql databases or only do lookup in existing 
sql databases?

thanks

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [PD-dev] SQLite for PD v0.0

2008-01-31 Thread robcanning
i'd love to try this - is there a makefile for linux out there?
or is there any other sql type object out there?
thanks
rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pdlua output

2008-01-30 Thread robcanning
Frank Barknecht wrote:
 Hallo,
 robcanning hat gesagt: // robcanning wrote:

   
 i add a list to a table with:

 -- insert [list] into 1st inlet:
 function M:in_1_insert(list)
table.insert(self.mydata, list)
 end

 then i search the table for the pattern score = 1 and ask it to print 
 the lines containing the matched pattern

 -- what to do on scores into 1st inlet:
 function M:in_1_scores()
 for i, v in ipairs(self.mydata) do
 if string.match(v, score = 1, 1, true) then
 self:outlet(1, list, v) end
 end
 end

 the problem is that the string.match is expecting a string and getting a 
 table and i'm not sure how to fix this - i thought the ipairs was 
 iterating the table into a string  but its not.

 here is the error from pd:
 [string rob2]:19: bad argument #1 to 'match' (string expected, got table)
 

 Okay, that's an issue with the general kinds of types in Lua, which
 can be a bit confusing at first. Basically in Lua/Pd you will have to
 deal with these three types: numbers, strings and tables. (There are
 more types e.g. functions.)

 Now the first two are easy: numbers are 1, 2, 3.141, ... and strings
 are this and that, too. Tables however are a bit trickier: For one
 they can be like lists in Pd: 

  counts = {1, 2, 3, four, and five}
  print(counts[4]) -- prints: four
  print(type(counts[4])) -- it's a string

 These kinds of tables which are indexed with numbers are also called
 arrays in Lua parlance. In Pd they are called lists. 

 Arrays also can contain other arrays and tables:

  counts = {1, 2, 3, four, and five, 
 {x, y, z} 
  }

 But the outlet functions in pdlua generally only work with flat
 arrays! So you first need to convert your data to a flat array using a
 pairs/ipairs iterator for example.

 In the in_*_something(args) methods, args generally is an array as
 well (except for the bang, float and symbol methods).

 The self.mydata table in rob2.lua is not flat, so it needs to be made
 flat like that. 

 self.mydata also is a key/value table (containing flat arrays indexed
 by string or numeric keys).

 Tables in Lua can be key/value containers, which is something, Pd
 doesn't have directly: 

  veggies = {apples = 4, potatoes = 10}
  print(veggies.apples)  -- prints: 4

 And to make things worse, tables can contain tables: 

  stuff = {counts, veggies}
  print(stuff[2].potatoes) -- prints: 10

 or even stuff like functions: 

  stuff.func = function() 
  -- does nothing
  end

  for k,v in pairs(stuff) do 
  print (k,v)
  end

 So, you see in that part here: 

  for i, v in ipairs(self.mydata) do
 if string.match(v, score = 1, 1, true) then
  self:outlet(1, list, v) 
 end
  end

 You have one v which is expected to be a string in string.match(),
 and another which is expected to be a table/array in self:outlet()!

 This won't work, and the error message of Lua tells you, that v (the
 values of self.mydata) is a table, so it won't work in string.match()

 I hope this clears it up a bit.

 Now for the fix: You can convert a (flat) list/array to a string with
 table.concat(somelist, sep) where sep is the separator. If you use a
 space for sep, you can use 

  string.match(table.concat(v,  ), score = 1)

 or a bit better:

  string.find(table.concat(v,  ), score = 1, 1, true)

 Better because string.find doesn't try to build and return a string,
 which you wouldn't be interested in anyhow.

 Ciao
   
   
ok great - i got the hang of that now i think

now what i cant figure out is how to pass arguments to the code from a 
pd message

ok, so this code finds all the scores with a value greater than one and 
sends them to outlet one when given the message [greaterthan(


function M:in_1_greaterthan()
for i, v in ipairs(self.mydata) do
  if tonumber(string.match(table.concat(v,  ), score=(%d+)))  1
then self:outlet(1, , v) end
end
end

now i want to be able to send the message [greaterthan score 3(

so in the code where it says score=(%d+))) - i need score to be 
variable from second part of the message  the 1 needs to be a 
variable from the 3rd part of the message

i know its somewhere within the () below but i cant seem to get it right
function M:in_1_greaterthan()

thanks,

rob c






___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pdlua output

2008-01-23 Thread robcanning
also, the code works in lua but not in the pdlua object
somewhere i am getting mixed up between floats lists strings atoms 
tables etc. but i cant see where

here is the working lua code

  tbl = {}
   table.insert(tbl, '1, s22df, 1, score = 3')
   table.insert(tbl, '1, s22df, 1, score = 2')
   table.insert(tbl, '1, s22df, 1, score = 1')
  for i, v in ipairs(tbl) do if string.match(v, score = 1, 1, true) 
then print(v) end end
1, s22df, 1, score = 1

thanks

rob

 i'll clarify a bit...
 i add a list to a table with:

 -- insert [list] into 1st inlet:
 function M:in_1_insert(list)
table.insert(self.mydata, list)
 end

 then i search the table for the pattern score = 1 and ask it to 
 print the lines containing the matched pattern

 -- what to do on scores into 1st inlet:
 function M:in_1_scores()
 for i, v in ipairs(self.mydata) do
 if string.match(v, score = 1, 1, true) then
 self:outlet(1, list, v) end
 end
 end

 the problem is that the string.match is expecting a string and getting 
 a table and i'm not sure how to fix this - i thought the ipairs was 
 iterating the table into a string  but its not.

 here is the error from pd:
 [string rob2]:19: bad argument #1 to 'match' (string expected, got 
 table)

 lua and lua files attached

 any guidance welcome,

 thanks

 rob c
 

 local NAME_OF_CLASS = rob2
 local M = pd.Class:new():register(NAME_OF_CLASS)

 function M:initialize(name, args)
 self.outlets = 2
 self.inlets = 1
 self.mydata = {} 
 return true
 end

 -- insert [list] into 1st inlet:
 function M:in_1_insert(list)
 table.insert(self.mydata, list) 
 end

 -- what to do on scores into 1st inlet:
 function M:in_1_scores()
 for i, v in ipairs(self.mydata) do 
 if string.match(v, score = 1, 1, true) then 
 self:outlet(1, foo, v) end 
 end 
 end

 -- what to do on print into 1st inlet:
 function M:in_1_print()
 for k,v in pairs(self.mydata) do
 pd.post(k .. :  .. table.concat(self.mydata[k],  ))
 end
 end

 -- what to do on reset into 1st inlet:
 function M:in_1_reset()
 self.mydata = {}
 end
   
 

 #N canvas 123 334 512 437 10;
 #X msg 52 64 print;
 #X msg 53 86 scores;
 #X obj 17 131 rob2;
 #X msg 17 43 insert s d d d 2 2 2 2 w score = 1;
 #X msg 54 106 reset;
 #X obj 17 161 prepend set;
 #X msg 17 183;
 #X obj 17 11 loadbang;
 #X connect 0 0 2 0;
 #X connect 1 0 2 0;
 #X connect 2 0 5 0;
 #X connect 3 0 2 0;
 #X connect 4 0 2 0;
 #X connect 5 0 6 0;
 #X connect 7 0 3 0
   

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pdlua output (was: manipulation of text files - grep - shell - coll)

2008-01-22 Thread robcanning
hi,
ok - i have started learning to use lua with pdlua and have a question 
with regards to getting stuff out of the my pdlua object

in lua this works:
for i, v in ipairs(self.mydata) do if string.match(v, score = 1, 1, 
true) then print(v) end end

so i thought if i change print(v) with pd.post(v) i would get an output 
in the pd terminal but no...

also  how would i get the output  of the above to come out of outlet 
self:outlet(v) i would have guessed but obviously i have the wrong approach.

thanks

robc

-- what to do on scores into 1st inlet:
function M:in_1_scores()
for i, v in ipairs(self.mydata) do if string.match(v, score = 1, 1, 
true) then print(v) end end



___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pdlua output

2008-01-22 Thread robcanning

i'll clarify a bit...

i add a list to a table with:

-- insert [list] into 1st inlet:
function M:in_1_insert(list)
   table.insert(self.mydata, list)
end

then i search the table for the pattern score = 1 and ask it to print 
the lines containing the matched pattern


-- what to do on scores into 1st inlet:
function M:in_1_scores()
for i, v in ipairs(self.mydata) do
if string.match(v, score = 1, 1, true) then
self:outlet(1, list, v) end
end
end

the problem is that the string.match is expecting a string and getting a 
table and i'm not sure how to fix this - i thought the ipairs was 
iterating the table into a string  but its not.


here is the error from pd:
[string rob2]:19: bad argument #1 to 'match' (string expected, got table)

lua and lua files attached

any guidance welcome,

thanks

rob c





local NAME_OF_CLASS = rob2
local M = pd.Class:new():register(NAME_OF_CLASS)

function M:initialize(name, args)
self.outlets = 2
self.inlets = 1
self.mydata = {} 
return true
end

-- insert [list] into 1st inlet:
function M:in_1_insert(list)
table.insert(self.mydata, list) 
end

-- what to do on scores into 1st inlet:
function M:in_1_scores()
for i, v in ipairs(self.mydata) do 
if string.match(v, score = 1, 1, true) then 
self:outlet(1, foo, v) end 
end 
end

-- what to do on print into 1st inlet:
function M:in_1_print()
for k,v in pairs(self.mydata) do
pd.post(k .. :  .. table.concat(self.mydata[k],  ))
end
end

-- what to do on reset into 1st inlet:
function M:in_1_reset()
self.mydata = {}
end
#N canvas 123 334 512 437 10;
#X msg 52 64 print;
#X msg 53 86 scores;
#X obj 17 131 rob2;
#X msg 17 43 insert s d d d 2 2 2 2 w score = 1;
#X msg 54 106 reset;
#X obj 17 161 prepend set;
#X msg 17 183;
#X obj 17 11 loadbang;
#X connect 0 0 2 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 3 0 2 0;
#X connect 4 0 2 0;
#X connect 5 0 6 0;
#X connect 7 0 3 0;
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] manipulation of text files - grep - shell - coll

2008-01-19 Thread robcanning
Frank Barknecht wrote:
 Hallo,
 robcanning hat gesagt: // robcanning wrote:

   
 could anyone recommend a library for, or method of, manipulating lists 
 of strings in textfile format?
 i need to be able to grep, sort, file etc.
 up until now i have been using [coll] but its not powerful enough for my 
 needs.
 

 What about an objectclass written in Python or Lua? 

 Ciao
   
well my programming skills don't really extend far pass writing the odd 
bash script but yes, writing an objectclass would be ideal (you mean a 
pd objectclass?) any pointers on where to start with this using python?

i have been using [shell] to echo $1write this text to a file but 
i am finding it very slow (between 20-30ms) to write one line - i am 
quite happy working with this method but am finding it way too slow - an 
tricks on how to speed up the shell? - seems strange that is so slow.

thanks

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] manipulation of text files - grep - shell - coll

2008-01-19 Thread robcanning
Frank Barknecht wrote:
 Hallo,
 robcanning hat gesagt: // robcanning wrote:

   
 well my programming skills don't really extend far pass writing the odd 
 bash script but yes, writing an objectclass would be ideal (you mean a 
 pd objectclass?) any pointers on where to start with this using python?
 

 Unless you already have pyext installed, I think installing the Lua
 loader is a bit easier. You need to check it out from the subversion
 repo at goto10, install the lua5.1-dev packages for your distro, then
 on Linux a simple make should compile it. Load it with -lib lua.

 Learning Lua or Python is useful in other contexts as well, and
 actually it's not that hard to turn that knowledge into a Pd object
 class. You may want to start at http://lua-users.org/wiki/LuaTutorial

 IMO writing shell scripts is harder than writing Lua/Python scripts.

 The general structure for both Python and Lua Pd classes is very
 simple. I attached a quickie demonstrating this for Lua: ltxt is a
 kind of simplified coll or textfile, where you can store data
 under float and symbol keys and look it up again. Starting with that
 it's easy to extend this with methods to search for keys, sort the
 data storage array etc, delete data where keys match a certain pattern
 etc. The example is more meant to illustrate the general structure of
 a Lua Pd class than as a real object to use.

 Ciao
   
   
frank this is great! - thanks so much - i'll have a proper look at it 
and let you know how i get on with it.
i know i really need to learn some programming outside pd - i just never 
know where to start - so many choices! - maybe i will just get stuck 
into this lua/python stuff
thanks
rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] manipulation of text files - grep - shell - coll

2008-01-19 Thread robcanning

 i have been using [shell] to echo $1write this text to a file 
 but i am finding it very slow (between 20-30ms) to write one line - i 
 am quite happy working with this method but am finding it way too 
 slow - an tricks on how to speed up the shell? - seems strange that 
 is so slow.

 shell is fast, but it takes long to start it up.
 whenever you send a command, a new shell environment is created.

 for alternative solutions with running outside programs, i once 
 proposed a server that communicates with Pd via pdsend/receive on 
 this list.

 for appending lines to a file, you can use zexy's  [fwriteln].

 this doesn't solve your problem of grep/sed/awk though.

 gfma.dr
 IOhannes


this is useful - i can write the files with fwriteln - then use the 
shell to grep them - the speed was needed at the writing end more than 
the grepping end - so this has solved my problem for now though i do 
need to come up with a more elegant solution in the long run
thanks
rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] manipulation of text files - grep - shell - coll

2008-01-18 Thread robcanning
hello,
could anyone recommend a library for, or method of, manipulating lists 
of strings in textfile format?
i need to be able to grep, sort, file etc.
up until now i have been using [coll] but its not powerful enough for my 
needs.
recently i have been experimenting with [shell] but it doesn't respond 
fast enough -  if i dump a load of information triggered by an [until] 
then shell gives me the old process still running message
i could regulate the flow if info into the [shell] but before i start in 
that direction i was wondering is there a library or method  out there 
that would do it more efficiently.
thanks,
rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pduino - [import]: ERROR: can't load library

2008-01-16 Thread robcanning
hi,

having problems with the pduino patch on a cvs checkout from last week - 
Pd version 0.41.0-test10
details below - i can create makesymbol but not /zexy/makesymbol as with 
flatspace/comport comport
anyone know what i might be doing wrong or is this a bug of some sort?
thanks
rob c

comport - PD external for unix/windows
LGPL 1998-2006,  Winfried Ritsch and others (see LICENCE.txt)
Institute for Electronic Music - Graz
[import] $Revision: 1.2 $
written by Hans-Christoph Steiner [EMAIL PROTECTED]
compiled on Jan  7 2008 at 13:14:45
compiled against Pd version 0.41.0
[import]: ERROR: can't load library in flatspace
[import]: ERROR: can't load library in hardware
[import]: ERROR: can't load library in flatspace
[import]: ERROR: can't load library in iemlib
[import]: ERROR: can't load library in mapping
 flatspace/comport $1 57600
... couldn't create
 zexy/makesymbol firmata_version_%s.%s
... couldn't create

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] maxlib help files makefile cvs

2008-01-08 Thread robcanning
seems the make file for maxlib in cvs is looking for help/help-*.pd
instead of help/*-help.pd

cp: cannot stat `help/help-*.pd': No such file or directory

localhost:/home/robc/pd/externals/maxlib/help# ls
allow-help.pd etc.

rob c

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list