David Casal wrote:
(anon cow steps outta shadows)
Hello All,
Can anyone advise on how to replicate the URN object from Max in PD? And while we're at it, COUNTER and DRUNK?
unfortunately i do not know, what the URN object does.
COUNTER: there are various types of counters in the examples at doc/2.control.examples/06.counter.pd doc/2.control.examples/07.more_counters.pd you can easily design your own counter (even one, that behaves like the max-object)
DRUNK: if you edit your counter, so that the stepsize becomes a random value (with the "random" object) this will behave somehow like drunk.
The PD-Lib project at Sourceforge haven't got to it yet...I tried with != and == constructs, even tried to do Anti-bis from RTC-Lib out of Rowe's machine musicianship, but I guess my pd skills aren't up to it yet. The main problem was trying to get the equivalent of:
if ($i1!=$i2) then $i1 else out2 bang
#N canvas 241 175 450 300 10; #X obj 85 30 inlet; #X obj 197 30 inlet; #X obj 85 103 select 1 0; #X obj 85 54 t f f; #X obj 85 186 outlet; #X obj 160 188 outlet; #X obj 85 158 f; #X obj 85 80 != $2; #X connect 0 0 3 0; #X connect 1 0 7 1; #X connect 2 0 6 0; #X connect 2 1 5 0; #X connect 3 0 7 0; #X connect 3 1 6 1; #X connect 6 0 4 0; #X connect 7 0 2 0;
to work in PD. Tried expr (this is where I belate dumbness, surely) with no success. There's gotta be an easy way...right?
David
David Casal ¬ d.casal@uea.ac.uk http://ariada.uea.ac.uk/~dcasal
ARTWORLD Project Sainsbury Centre For Visual Arts University of East Anglia
01603-593246 --- 07803-173959
Hi list, i was wondering can anyone explain why when i open the foo1.pd file from the doc 6.externs directoy that pd does not recognize the object? I tried doing a make but it siad 'nothing to be done for foo1.c'. I am using Win95 does that make a difference? I am interested in writing some simple externs (and i mean simple!) but it seems that every way i turn I hit a dead end, I would greatly appreciate any suggestions or advice on this topic,
Regards, Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Rory Walsh wrote:
Hi list, i was wondering can anyone explain why when i open the foo1.pd file from the doc 6.externs directoy that pd does not recognize the object? I tried doing a make but it siad 'nothing to be done for foo1.c'.
are you sure that the "foo1.dll" exists ? guessing from the way pd reacts on your "-path $MYPATH" option, it seems that you are using directory-names with spaces in it. is this true ? if so, you should try to set the $MYPATH within quotes, like 'pd -path "my seperated pathname"' if this doesn_t work either you could try using the pathname the DOS-prompt gives you (something like "my~1") if this still doesn't work, you should maybe change to the DOS-prompt, chdir to the doc/6.externs path and start pd from there
I am using Win95 does that make a difference?
apart from the fact, that windos-users like to use filenames that contain spaces, it should be fun (but maybe not "great" fun)
mfg.cdsa.gt IOhannes
Whoops, there's no foo1.dll file, I guess that's that then? I tried compiling it myself, it compiled okay but it would not build for me, loads of errors. Is there any other information on writing one's own objects, I'm talking really basic? Thanks for the help!
Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
On Mon, 13 Aug 2001, Rory Walsh wrote:
Whoops, there's no foo1.dll file, I guess that's that then? I tried compiling it myself, it compiled okay but it would not build for me, loads of errors. Is there any other information on writing one's own objects, I'm talking really basic? Thanks for the help!
Rory.
could you send the errors you get ? so compiling does fine, but linking fails ? maybe you have to edit the makefile to point to the correct pd-path (i think pd.lib is needed somehow)
mfg.cdas.t IOhannes
When I tried running a make in dos it said nothing to make, so then i tried compiling it in VC++, and I got the following linking errors when i tried to build it,
Linking... foo1.obj : error LNK2001: unresolved external symbol _post foo1.obj : error LNK2001: unresolved external symbol _pd_new foo1.obj : error LNK2001: unresolved external symbol _class_doaddfloat foo1.obj : error LNK2001: unresolved external symbol _class_addmethod foo1.obj : error LNK2001: unresolved external symbol _class_new foo1.obj : error LNK2001: unresolved external symbol _gensym LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/foo1.exe : fatal error LNK1120: 7 unresolved externals Error executing link.exe. foo1.exe - 8 error(s), 0 warning(s)
I have included pd.lib in the additional library path, but it is still not working for me, any ideas? Much appreciated!
Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Yikes, I can't understand why you're getting this. Those symbols should all be in pd.lib, yes. Just grasping at straws, here are 2 things I would try now...
the "new" .lib format. I've had this happen before. The solution is to delete all the .obj files and recompile Pd with your own compiler.
ones in extra) definitely have working makefiles (although you'll have to modify paths.)
I'd be grateful to hear, if you can get it fixed, what you ended up having to do...!
cheers Miller
On Tue, Aug 14, 2001 at 01:59:44PM +0100, Rory Walsh wrote:
When I tried running a make in dos it said nothing to make, so then i tried compiling it in VC++, and I got the following linking errors when i tried to build it,
Linking... foo1.obj : error LNK2001: unresolved external symbol _post foo1.obj : error LNK2001: unresolved external symbol _pd_new foo1.obj : error LNK2001: unresolved external symbol _class_doaddfloat foo1.obj : error LNK2001: unresolved external symbol _class_addmethod foo1.obj : error LNK2001: unresolved external symbol _class_new foo1.obj : error LNK2001: unresolved external symbol _gensym LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/foo1.exe : fatal error LNK1120: 7 unresolved externals Error executing link.exe. foo1.exe - 8 error(s), 0 warning(s)
I have included pd.lib in the additional library path, but it is still not working for me, any ideas? Much appreciated!
Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Okay I'm having problems recompiling choice.c, I'm trying to compile it in Dos but it keeps saying choice.c up to date, I renamed the choice.dll file as i thought this might be the reason it keeps saying choice.c up to date but this did not help. I'm new to this so I'm can safely say that I'm probably doing something wrong! When I try compiling it in VC++ in windows I keep getting loads of linking problems. How do I stop the compiler from thinking choice.c is up to date? Thanks for the help!
regards, Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
On Wed, 15 Aug 2001, Rory Walsh wrote:
Okay I'm having problems recompiling choice.c, I'm trying to compile it in Dos but it keeps saying choice.c up to date, I renamed the choice.dll file as i thought this might be the reason it keeps saying choice.c up to date but this did not help. I'm new to this so I'm can safely say that I'm probably doing something wrong! When I try compiling it in VC++ in windows I keep getting loads of linking problems. How do I stop the compiler from thinking choice.c is up to date? Thanks for the help!
ok. to compile in the dos-window, you should use the "nmake" command instead of "make" (but i guess you got this ?) run "nmake clean" before trying to recompile alternatively you can delete the *.obj files (they are used to test, whether your *.c files have been already compiled)
when trying to recompile from within vc++ you obviously try to create a *.exe file (as you indicated in a prior mail). this is wrong ! when creating a new project, you will have to make a "dynamic runtime library (dll)". you might want to have a look at the vc-project from zexy (yeah!)
mfg.cds.rt IOhannes
regards, Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Ok, I know an awful lot more about .dll files than i used to! I managed to compile foo1.c and recompile choice.c although I could not use the makefiles provided, in the end I just compiled them from VC++ running in windows, now I guess all i have to do is study the code! Thanks for all the help, oh yeah the confusion as to the -nogui was that i thought it would give you a similar environment to csound whereas one can load + change score files from prompt('-L stdin').
regards, Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Sorry Miller I forgot to mention that I am using VC++6.0 just incase you were still wondering.
Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie