aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-05-22 19:56:58 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-05-22 19:56:58 +0000
commit517844c1a415f24039633b63da8171b3c192098a (patch)
tree1855fcd819578d6a0cf848dcfaf907a5d4cad058
parent690e7788439c0c549f394783b924f07be12be87e (diff)
moved splash-screen from _new() to _setup() (so it only shows up once, when the external/library is loaded)
svn path=/trunk/externals/ann/; revision=3068
-rwxr-xr-xsrc/ann_mlp.c13
-rwxr-xr-xsrc/ann_td.c13
2 files changed, 12 insertions, 14 deletions
diff --git a/src/ann_mlp.c b/src/ann_mlp.c
index 64ce75f..6c0c2b8 100755
--- a/src/ann_mlp.c
+++ b/src/ann_mlp.c
@@ -508,13 +508,6 @@ static void *ann_mlp_new(t_symbol *s, int argc, t_atom *argv)
ann_mlp_load_ann_from_file(x, NULL , 0, NULL);
}
- post("");
- post("ann_mlp: neural nets for PD");
- post("version: "VERSION"");
- post("compiled: "__DATE__);
- post("author: Davide Morelli");
- post("contact: info@davidemorelli.it www.davidemorelli.it");
-
return (void *)x;
}
@@ -527,6 +520,12 @@ static void ann_mlp_free(t_ann_mlp *x)
}
void ann_mlp_setup(void) {
+ post("");
+ post("ann_mlp: multilayer perceptron for PD");
+ post("version: "VERSION"");
+ post("compiled: "__DATE__);
+ post("author: Davide Morelli");
+ post("contact: info@davidemorelli.it www.davidemorelli.it");
ann_mlp_class = class_new(gensym("ann_mlp"),
(t_newmethod)ann_mlp_new,
diff --git a/src/ann_td.c b/src/ann_td.c
index 8712e42..689a8f7 100755
--- a/src/ann_td.c
+++ b/src/ann_td.c
@@ -603,13 +603,6 @@ static void *ann_td_new(t_symbol *s, int argc, t_atom *argv)
ann_td_load_ann_from_file(x, NULL , 0, NULL);
}
- post("");
- post("ann_td: time delay neural nets for PD");
- post("version: "VERSION"");
- post("compiled: "__DATE__);
- post("author: Davide Morelli");
- post("contact: info@davidemorelli.it www.davidemorelli.it");
-
return (void *)x;
}
@@ -623,6 +616,12 @@ static void ann_td_free(t_ann_td *x)
}
void ann_td_setup(void) {
+ post("");
+ post("ann_td: time delay neural nets for PD");
+ post("version: "VERSION"");
+ post("compiled: "__DATE__);
+ post("author: Davide Morelli");
+ post("contact: info@davidemorelli.it www.davidemorelli.it");
ann_td_class = class_new(gensym("ann_td"),
(t_newmethod)ann_td_new,