Commit 23d4387b authored by konsumer's avatar konsumer

helps with purr-data#519 to document loading pdlua extensions

parent 04a966c8
#N canvas 576 203 637 279 10;
#N canvas 1391 285 531 473 10;
#X declare -stdpath doc/examples/pdlua;
#X declare -stdpath extra/pdlua/examples;
#X msg 44 58;
#X text 70 57 << more methods will come (maybe);
#X text 53 99 << global interface to pdlua;
#X text 113 20 << load and run a Lua file (searches Pd's path);
#X msg 17 21 load hello.lua;
#X text 17 191 See also:;
#X obj 37 216 hello;
#X text 15 135 Side-effects:;
#X obj 17 101 pdlua;
#X obj 87 216 pdluax hello;
#X text 29 157 [pdlua] registers a loader that allows Pd classes written
#X declare -lib hello;
#X text 68 112 << global interface to pdlua;
#X msg 32 74 load hello.lua;
#X text 30 375 See also:;
#X obj 50 400 hello;
#X text 30 148 Side-effects:;
#X obj 32 114 pdlua;
#X obj 100 400 pdluax hello;
#X text 44 170 [pdlua] registers a loader that allows Pd classes written
in Lua to be loaded.;
#X obj 282 109 declare -stdpath doc/examples/pdlua;
#X obj 69 264 declare -stdpath doc/examples/pdlua;
#N canvas 128 92 621 356 pdlua_HOWTO 0;
#X obj 13 3 cnv 15 500 140 empty empty pdlua_HOWTO 20 12 0 14 -135137
-66577 0;
......@@ -131,7 +129,7 @@ from [send receiver] and " \; receiver message".;
#X text 56 2126 pd.post("a string");
#X obj 479 1663 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -257985
-1;
#X floatatom 602 1789 5 0 0 0 - - -;
#X floatatom 602 1789 5 0 0 0 - - -, f 5;
#X msg 514 1614 1000;
#X msg 552 1614 100;
#X text 32 1761 See doc/examples/lreceive.pd_lua for details.;
......@@ -205,7 +203,15 @@ menu using Find->Find Last Error.;
#X connect 72 0 73 0;
#X connect 72 1 64 0;
#X connect 73 0 39 0;
#X restore 282 90 pd pdlua_HOWTO;
#X obj 282 129 declare -stdpath extra/pdlua/examples;
#X connect 0 0 8 0;
#X connect 4 0 8 0;
#X restore 185 400 pd pdlua_HOWTO;
#X obj 70 285 declare -stdpath extra/pdlua/examples;
#X obj 72 349 declare -lib hello;
#X text 46 240 These set the path to find your files:;
#X text 128 73 << dynamically load and run a Lua file (searches Pd's
path);
#X text 27 213 Declare:;
#X text 30 26 [pdlua] enables you to load a lua script named whatever.pd_lua
as an extension., f 62;
#X text 46 312 This tells pdlua to load hello.pd_lua \, from your path
\, so you can use [hello]:, f 58;
#X connect 1 0 5 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment