diff options
author | N.N. <electrickery@users.sourceforge.net> | 2015-06-13 12:21:12 +0000 |
---|---|---|
committer | N.N. <electrickery@users.sourceforge.net> | 2015-06-13 12:21:12 +0000 |
commit | 9d16d0cf0d17acb3c1b7e9a372c0c3f4c2b75739 (patch) | |
tree | 12be90f82f78b2b6975ff07a40c205a940d20ed2 | |
parent | 098c95e67256aec5e1eef9482192b05db48be386 (diff) |
Added class_sethelpsymbol to all nettle objects
Replaced import by declare in the help patch
svn path=/trunk/externals/miXed/; revision=17486
-rw-r--r-- | cyclone/shadow/nettles.c | 24 | ||||
-rw-r--r-- | doc/help/cyclone/nettles-help.pd | 34 |
2 files changed, 40 insertions, 18 deletions
diff --git a/cyclone/shadow/nettles.c b/cyclone/shadow/nettles.c index b1df43f..c9ddb04 100644 --- a/cyclone/shadow/nettles.c +++ b/cyclone/shadow/nettles.c @@ -490,12 +490,15 @@ void nettles_setup(void) sizeof(t_rbinop), 0, A_DEFFLOAT, 0); class_addbang(rminus_class, rminus_bang); class_addfloat(rminus_class, rminus_float); + class_sethelpsymbol(rminus_class, gensym("nettles")); + rdiv_class = class_new(gensym("!/"), (t_newmethod)rdiv_new, 0, sizeof(t_rbinop), 0, A_DEFFLOAT, 0); class_addbang(rdiv_class, rdiv_bang); class_addfloat(rdiv_class, rdiv_float); - + class_sethelpsymbol(rdiv_class, gensym("nettles")); + sigeq_class = class_new(gensym("==~"), (t_newmethod)sigeq_new, 0, sizeof(t_sigeq), 0, A_GIMME, 0); @@ -506,39 +509,56 @@ void nettles_setup(void) sic_setup(sigeq_class, sigeq_dsp, SIC_FLOATTOSIGNAL); class_addmethod(sigeq_class, (t_method)sigeq__algo, gensym("_algo"), A_FLOAT, 0); + class_sethelpsymbol(sigeq_class, gensym("nettles")); signeq_class = class_new(gensym("!=~"), (t_newmethod)signeq_new, 0, sizeof(t_signeq), 0, A_GIMME, 0); sic_setup(signeq_class, signeq_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(signeq_class, gensym("nettles")); + siglt_class = class_new(gensym("<~"), (t_newmethod)siglt_new, 0, sizeof(t_siglt), 0, A_GIMME, 0); sic_setup(siglt_class, siglt_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(siglt_class, gensym("nettles")); + siggt_class = class_new(gensym(">~"), (t_newmethod)siggt_new, 0, sizeof(t_siggt), 0, A_GIMME, 0); sic_setup(siggt_class, siggt_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(siggt_class, gensym("nettles")); + sigleq_class = class_new(gensym("<=~"), (t_newmethod)sigleq_new, 0, sizeof(t_sigleq), 0, A_GIMME, 0); sic_setup(sigleq_class, sigleq_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(sigleq_class, gensym("nettles")); + siggeq_class = class_new(gensym(">=~"), (t_newmethod)siggeq_new, 0, sizeof(t_siggeq), 0, A_GIMME, 0); sic_setup(siggeq_class, siggeq_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(siggeq_class, gensym("nettles")); + sigrminus_class = class_new(gensym("!-~"), (t_newmethod)sigrminus_new, 0, sizeof(t_sigrminus), 0, A_GIMME, 0); sic_setup(sigrminus_class, sigrminus_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(sigrminus_class, gensym("nettles")); + sigrover_class = class_new(gensym("!/~"), (t_newmethod)sigrover_new, 0, sizeof(t_sigrover), 0, A_GIMME, 0); sic_setup(sigrover_class, sigrover_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(sigrover_class, gensym("nettles")); + sigmod_class = class_new(gensym("%~"), (t_newmethod)sigmod_new, 0, sizeof(t_sigmod), 0, A_GIMME, 0); sic_setup(sigmod_class, sigmod_dsp, SIC_FLOATTOSIGNAL); + class_sethelpsymbol(sigmod_class, gensym("nettles")); + sigaccum_class = class_new(gensym("+=~"), (t_newmethod)sigaccum_new, 0, sizeof(t_sigaccum), 0, A_DEFFLOAT, 0); @@ -546,6 +566,8 @@ void nettles_setup(void) class_addbang(sigaccum_class, sigaccum_bang); class_addmethod(sigaccum_class, (t_method)sigaccum_set, gensym("set"), A_FLOAT, 0); + class_sethelpsymbol(sigaccum_class, gensym("nettles")); + logpost(NULL, 4, "this is cyclone/nettles %s, %dth %s build", CYCLONE_VERSION, CYCLONE_BUILD, CYCLONE_RELEASE); } diff --git a/doc/help/cyclone/nettles-help.pd b/doc/help/cyclone/nettles-help.pd index c152df6..4512059 100644 --- a/doc/help/cyclone/nettles-help.pd +++ b/doc/help/cyclone/nettles-help.pd @@ -1,5 +1,5 @@ -#N canvas 584 81 570 594 10; -#X obj 414 44 import cyclone/nettles; +#N canvas 521 79 569 596 10; +#X obj 413 44 import cyclone/nettles; #X obj 23 165 ==~; #X obj 23 240 !=~; #X obj 23 265 <~; @@ -8,7 +8,7 @@ #X obj 23 350 >=~; #X obj 23 409 !/~; #X obj 23 443 %~; -#X obj 22 523 +=~; +#X obj 23 523 +=~; #X obj 23 190 _==1~; #X obj 23 215 _==2~; #X obj 23 91 !-; @@ -16,7 +16,6 @@ #X obj 23 380 !-~; #X text 71 190 sigeq - outlet is 1 when inlets are equal as floats ; -#X text 72 214 sigeq - compare more (8?) samples in block; #X text 72 164 sigeq - outlet is 1 when inlets are equal as ints?; #X msg 23 140 _algo n; #X text 85 141 switch mode: 0 \, 1 \, 2; @@ -45,6 +44,14 @@ than right; #X text 69 502 set sum to 0; #X obj 0 557 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289 0; +#N canvas 319 385 428 109 Related_objects 0; +#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0; +#X text 6 1 Related Objects; +#X restore 205 559 pd Related_objects; +#X text 12 23 Nettles: bin-ops; +#X obj 0 0 cnv 15 552 40 empty empty nettles 3 12 0 18 -204280 -1 0 +; +#X text 72 214 sigeq - fast compare \, 8 samples at once; #N canvas 616 258 377 299 META 0; #X text 0 20 LICENSE SIBSD; #X text 0 100 LIBRARY cyclone; @@ -62,11 +69,7 @@ adapted the patch to pd-extended 2015-02-02; #X text 0 60 INLET_0 float signal message; #X text 0 0 KEYWORDS bin ops for control messages and signals; #X restore 503 559 pd META; -#N canvas 319 385 428 109 Related_objects 0; -#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0; -#X text 6 1 Related Objects; -#X restore 205 559 pd Related_objects; -#N canvas 1 81 1114 741 signal 0; +#N canvas 110 125 1114 741 signal 0; #X obj 391 134 !=~; #X obj 390 103 sig~; #X obj 438 103 sig~; @@ -166,8 +169,7 @@ left inlet; #X obj 819 625 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 842 625 set 42; -#X obj 0 0 cnv 15 552 40 empty empty signal_operations 3 12 0 18 -204280 --1 0; +#X obj 0 0 cnv 15 552 40 empty empty empty 3 12 0 18 -204280 -1 0; #X floatatom 765 183 5 0 0 0 - - -, f 5; #X text 759 52 sigrminus : outlet = left inlet minus right inlet; #X obj 777 467 dspSwitch~; @@ -186,6 +188,7 @@ left inlet; #X obj 223 117 _==1~; #X obj 223 139 _==2~; #X text 200 98 alternate objects:; +#X text 18 20 signal_operators; #X connect 0 0 3 0; #X connect 1 0 0 0; #X connect 2 0 0 1; @@ -251,7 +254,7 @@ left inlet; #X connect 84 0 82 0; #X connect 85 0 82 0; #X restore 425 177 pd signal ops; -#N canvas 1 80 450 414 control 0; +#N canvas 588 290 450 414 control 0; #X obj 0 0 cnv 15 552 40 empty empty empty 3 12 0 18 -204280 -1 0; #X text 8 19 control message operators; #X obj 59 149 !-; @@ -283,9 +286,6 @@ left inlet; #X connect 12 0 10 0; #X connect 13 0 2 0; #X restore 424 103 pd control ops; -#X text 12 23 Nettles: bin-ops; -#X obj 0 0 cnv 15 552 40 empty empty nettles 3 12 0 18 -204280 -1 0 -; -#X connect 18 0 1 0; +#X connect 17 0 1 0; +#X connect 30 0 9 0; #X connect 31 0 9 0; -#X connect 32 0 9 0; |