[PD] pdlua output (was: manipulation of text files - grep - shell - coll)
robcanning
robcanning at eircom.net
Tue Jan 22 14:53:08 CET 2008
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
More information about the Pd-list
mailing list