From 517844c1a415f24039633b63da8171b3c192098a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sun, 22 May 2005 19:56:58 +0000 Subject: 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 --- src/ann_mlp.c | 13 ++++++------- src/ann_td.c | 13 ++++++------- 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, -- cgit v1.2.1